Add missing ChangeLog entry.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
7ce05d21
TV
12020-11-30 Tom de Vries <tdevries@suse.de>
2
3 PR symtab/26905
4 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
5 is_reference parameter.
6 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
7
88b91969
TT
82020-11-30 Tom Tromey <tom@tromey.com>
9
10 * rust-lang.c (rust_op_name): Remove.
11 (exp_descriptor_rust): Update.
12 * parser-defs.h (op_name_standard): Don't declare.
13 (struct exp_descriptor) <op_name>: Remove.
14 * parse.c (exp_descriptor_standard): Update.
15 * opencl-lang.c (exp_descriptor_opencl): Update.
16 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
17 * f-lang.c (op_name_f): Remove.
18 (f_language::exp_descriptor_tab): Update.
19 * expression.h (op_name): Update.
20 * expprint.c (op_name): Rewrite.
21 (op_name_standard): Remove.
22 (dump_raw_expression, dump_subexp): Update.
23 * c-lang.c (exp_descriptor_c): Update.
24 * ax-gdb.c (gen_expr): Update.
25 * ada-lang.c (ada_op_name): Remove.
26 (ada_exp_descriptor): Update.
27
1cd49c43
TT
282020-11-30 Tom Tromey <tom@tromey.com>
29
30 * eval.c (init_array_element): Remove.
31 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
32
96fb9086
HD
332020-11-29 Hannes Domani <ssbssa@yahoo.de>
34
35 PR tui/26973
36 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
37 static locator win info.
38
b4132322
AR
392020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
40
41 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
42 program.
43
3df8c6af
AB
442020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
45
46 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
47 is always initialized.
48
0ae45769
RA
492020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
50 * MAINTAINERS (Write After Approval): Add myself.
51
239ca5e4
PW
522020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
53
54 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
55 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
56
cbfa382a
TT
572020-11-25 Tom Tromey <tom@tromey.com>
58
59 * eval.c (evaluate_subexp_standard): Remove unnecessary
60 variables.
61
af30c400
TT
622020-11-25 Tom Tromey <tom@tromey.com>
63
64 * d-lang.c: Include parser-defs.h.
65 * rust-lang.c: Include parser-defs.h.
66 * c-lang.h: Do not include parser-defs.h.
67
1c64f6cb
SM
682020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
69
70 * regcache.h (struct cached_reg): Remove typedef.
71
2c20a601
JB
722020-11-24 Joel Brobecker <brobecker@adacore.com>
73
74 * README: Fix the URL of the MPFR library.
75
c609df64
JB
762020-11-24 Joel Brobecker <brobecker@adacore.com>
77
78 * README: Document the --with-libgmp-prefix configure option.
79
fa123c32
JB
802020-11-24 Joel Brobecker <brobecker@adacore.com>
81
82 * NEWS: Add entry documenting support for DWARF-based fixed
83 point types.
84
0fb8bb02
JB
852020-11-24 Joel Brobecker <brobecker@adacore.com>
86
87 * NEWS: Document that building GDB now requires GMP.
88
4afa9fd9
JB
892020-11-24 Joel Brobecker <brobecker@adacore.com>
90
91 * typeprint.c (print_type_scalar): Add handling of
92 TYPE_CODE_FIXED_POINT.
93
af619ce9
JB
942020-11-24 Joel Brobecker <brobecker@adacore.com>
95
96 * valarith.c (fixed_point_binop): Replace the
97 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
98 users accordingly.
99
e6fcee3a
JB
1002020-11-24 Joel Brobecker <brobecker@adacore.com>
101
102 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
103 replacing fixed_point_scaling_factor. All callers updated
104 throughout this project.
105 (fixed_point_scaling_factor): Delete declaration.
106 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
107 fixed_point_scaling_factor. Adjust implementation accordingly.
108
d19937a7
JB
1092020-11-24 Joel Brobecker <brobecker@adacore.com>
110
111 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
112 replacing the fixed_point_type_base_type function. All callers
113 updated throughout this project.
114 (fixed_point_type_base_type): Remove declaration.
115 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
116 fixed_point_type_base_type. Adjust implementation accordingly.
117
2a12c336
JB
1182020-11-24 Joel Brobecker <brobecker@adacore.com>
119
120 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
121 New methods.
122 (INIT_FIXED_POINT_SPECIFIC): Adjust.
123 (TYPE_FIXED_POINT_INFO): Delete macro.
124 (allocate_fixed_point_type_info): Change return type to void.
125 * gdbtypes.c (copy_type_recursive): Replace the use of
126 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
127 (fixed_point_scaling_factor): Likewise.
128 (allocate_fixed_point_type_info): Change return type to void.
129 Adjust implementation accordingly.
130 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
131 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
132
c9f0b43f
JB
1332020-11-24 Joel Brobecker <brobecker@adacore.com>
134
135 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
136 into one single gdb::array_view parameter.
137 (gdb_mpz::write): Likewise.
138 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
139 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
140 into one single gdb::array_view parameter.
141 Adjust implementation accordingly.
142 (gdb_mpz::write): Likewise.
143 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
144 * unittests/gmp-utils-selftests.c: Adapt following changes above.
145 * valarith.c, valops.c, valprint.c, value.c: Likewise.
146
987b6703
JB
1472020-11-24 Joel Brobecker <brobecker@adacore.com>
148
149 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
150 Change return type to std::string. Update all callers.
151 * gmp-utils.c (gmp_string_printf): Likewise.
152
4fbb7cce
JB
1532020-11-24 Joel Brobecker <brobecker@adacore.com>
154
155 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
156 instead of mpq_set_ui to initialize our GMP rational.
157
d6ab69dd
TV
1582020-11-23 Tom de Vries <tdevries@suse.de>
159
160 * debuginfod-support.c (debuginfod_source_query)
161 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
162
dab72643
TT
1632020-11-21 Tom Tromey <tom@tromey.com>
164
165 * breakpoint.c (watchpoint_exp_is_const): Return bool.
166
c0ad05d5
SM
1672020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
168
169 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
170 Pass 2.0 to pow.
171 (gdb_mpz_write_all_from_small): Likewise.
172
a43b29c9
SM
1732020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
174
175 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
176 of abs.
177
ae41200b
NA
1782020-11-20 Nick Alcock <nick.alcock@oracle.com>
179
180 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
181 ctf_arc_open_by_name.
182
139633c3
NA
1832020-11-20 Nick Alcock <nick.alcock@oracle.com>
184
185 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
186 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
187
cbbcd7a7
PA
1882020-11-20 Pedro Alves <pedro@palves.net>
189
190 * language.c (language_arch_info::lookup_primitive_type): Use
191 gdb::function_view instead of gdb::function.
192 (template language_lookup_primitive_type): Rename to ...
193 (language_lookup_primitive_type_1): ... this, and make static.
194 (language_lookup_primitive_type(const struct language_defn *,
195 struct gdbarch *, const char *): Make non-template.
196 (language_lookup_primitive_type(const struct language_defn *,
197 struct gdbarch *, std::function<bool (struct type *)>): Make
198 non-template and use gdb::function_view.
199 * language.h (language_arch_info::lookup_primitive_type): Use
200 gdb::function_view instead of std::function.
201 (language_lookup_primitive_type): No longer template.
202 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
203 lambda instead of a std::function.
204
d5ef21c3
AA
2052020-11-19 Andreas Arnez <arnez@linux.ibm.com>
206
207 PR tdep/26916
208 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
209 and STOCFH.
210
a5adb8f3
SM
2112020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
212
213 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
214
70125a45
SM
2152020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
216
217 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
218 in `loop_cb` parameter.
219 * gdbarch.c: Re-generate.
220 * gdbarch.h: Re-generate.
221 * arch-utils.c (default_read_core_file_mappings): Remove `other`
222 parameter.
223 * arch-utils.h (default_read_core_file_mappings): Likewise.
224 * corelow.c (core_target::build_file_mappings): Likewise.
225 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
226 (linux_core_info_proc_mappings): Likewise.
227
a5c641b5
AB
2282020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
229
230 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
231 * NEWS: Mention new options.
232 * f-array-walker.h: New file.
233 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
234 (repack_array_slices): New static global.
235 (show_repack_array_slices): New function.
236 (fortran_array_slicing_debug): New static global.
237 (show_fortran_array_slicing_debug): New function.
238 (value_f90_subarray): Delete.
239 (skip_undetermined_arglist): Delete.
240 (class fortran_array_repacker_base_impl): New class.
241 (class fortran_lazy_array_repacker_impl): New class.
242 (class fortran_array_repacker_impl): New class.
243 (fortran_value_subarray): Complete rewrite.
244 (set_fortran_list): New static global.
245 (show_fortran_list): Likewise.
246 (_initialize_f_language): Register new commands.
247 (fortran_adjust_dynamic_array_base_address_hack): New function.
248 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
249 Declare.
250 * f-valprint.c: Include 'f-array-walker.h'.
251 (class fortran_array_printer_impl): New class.
252 (f77_print_array_1): Delete.
253 (f77_print_array): Delete.
254 (fortran_print_array): New.
255 (f_value_print_inner): Update to call fortran_print_array.
256 * gdbtypes.c: Include 'f-lang.h'.
257 (resolve_dynamic_type_internal): Call
258 fortran_adjust_dynamic_array_base_address_hack.
259
a15a5258
AB
2602020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
261
262 * breakpoint.c (struct watch_options): New struct.
263 (watch_option_defs): New static global.
264 (make_watch_options_def_group): New function.
265 (watch_maybe_just_location): Convert option parsing.
266 (watch_command_completer): New function.
267 (_initialize_breakpoint): Build help text using options mechanism.
268
2e362716
AB
2692020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
270
271 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
272 (watch_command_1): Update parameter types. Convert locals to
273 bool.
274 (watch_command_wrapper): Change parameter type.
275 (watch_maybe_just_location): Change locals to bool.
276 (rwatch_command_wrapper): Update parameter type.
277 (awatch_command_wrapper): Update parameter type.
278 * breakpoint.h (watch_command_wrapper): Change parameter type.
279 (rwatch_command_wrapper): Update parameter type.
280 (awatch_command_wrapper): Update parameter type.
281 * eval.c (fetch_subexp_value): Change parameter type.
282 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
283 'false' not '0'.
284 * value.h (fetch_subexp_value): Change parameter type in
285 declaration.
286
b3ff61f8
AB
2872020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
288
289 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
290 skip_spaces.
291
5b7d45d3
KS
2922020-11-18 Keith Seitz <keiths@redhat.com>
293
294 * linux-tdep.c (dump_note_entry_p): Return true instead of
295 checking `filename'.
296
c44191f8
TV
2972020-11-18 Tom de Vries <tdevries@suse.de>
298
299 * debuginfod-support.c (debuginfod_source_query)
300 (debuginfod_debuginfo_query): Also do early exit if
301 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
302
5d8254e1
TV
3032020-11-18 Tom de Vries <tdevries@suse.de>
304
305 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
306 warning.
307
584903d3
SM
3082020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
309
310 * gdbtypes.h (get_array_bounds): Return bool, adjust some
311 callers. Move doc here.
312 * gdbtypes.c (get_array_bounds): Return bool
313
6f2643db
AB
3142020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
315
316 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
317 assert.
318 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
319 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
320 case to the default.
321
037d7135
AB
3222020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
323
324 * printcmd.c: Include 'safe-ctype.c'.
325 (skip_over_slash_fmt): New function.
326 (print_command_completer): Call skip_over_slash_fmt.
327 (display_and_x_command_completer): New function.
328 (_initialize_printcmd): Add command completion for 'x' and
329 'display'.
330
2b3cb400
PA
3312020-11-16 Pedro Alves <pedro@palves.net>
332
333 * frame.c (get_prev_frame): Move get_frame_id call from here ...
334 (get_prev_frame_always_1): ... to here.
335 * inline-frame.c (inline_frame_this_id): Mention
336 get_prev_frame_always_1 in comment.
337
b74dbc20
JB
3382020-11-15 Joel Brobecker <brobecker@adacore.com>
339
340 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
341 handling.
342 (value_less): Add fixed-point handling.
343
0a12719e
JB
3442020-11-15 Joel Brobecker <brobecker@adacore.com>
345
346 * eval.c (binop_promote): Add fixed-point type handling.
347 * valarith.c (fixed_point_binop): New function.
348 (scalar_binop): Add fixed-point type handling.
349 (value_neg): Add fixed-point type handling.
350 * valops.c (value_cast_to_fixed_point): New function.
351 (value_cast): Add fixed-point type handling.
352
0c9150e4
JB
3532020-11-15 Joel Brobecker <brobecker@adacore.com>
354
355 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
356 range types.
357 * c-typeprint.c (c_type_print_varspec_prefix)
358 (c_type_print_varspec_suffix, c_type_print_base_1): Add
359 TYPE_CODE_FIXED_POINT handling.
360 * p-typeprint.c (pascal_type_print_varspec_prefix)
361 (pascal_type_print_varspec_suffix): Likewise.
362 * typeprint.c (print_type_fixed_point): New function.
363 * typeprint.h (print_type_fixed_point): Add declaration.
364
b26daff9
JB
3652020-11-15 Joel Brobecker <brobecker@adacore.com>
366
367 * printcmd.c (print_scalar_formatted): Add fixed-point type
368 handling when options->format is set.
369
09584414
JB
3702020-11-15 Joel Brobecker <brobecker@adacore.com>
371
372 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
373 * dwarf2/read.c (get_dwarf2_rational_constant)
374 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
375 (has_zero_over_zero_small_attribute): New functions.
376 read_base_type, set_die_type): Add fixed-point type handling.
377 * gdb-gdb.py.in: Add fixed-point type handling.
378 * gdbtypes.c: #include "gmp-utils.h".
379 (create_range_type, set_type_code): Add fixed-point type handling.
380 (init_fixed_point_type): New function.
381 (is_integral_type, is_scalar_type): Add fixed-point type handling.
382 (print_fixed_point_type_info): New function.
383 (recursive_dump_type, copy_type_recursive): Add fixed-point type
384 handling.
385 (fixed_point_type_storage): New typedef.
386 (fixed_point_objfile_key): New static global.
387 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
388 (fixed_point_type_base_type, fixed_point_scaling_factor): New
389 functions.
390 * gdbtypes.h: #include "gmp-utils.h".
391 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
392 (union type_specific) <fixed_point_info>: New field.
393 (struct fixed_point_type_info): New struct.
394 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
395 (init_fixed_point_type, is_fixed_point_type)
396 (fixed_point_type_base_type, fixed_point_scaling_factor)
397 (allocate_fixed_point_type_info): Add declarations.
398 * valprint.c (generic_val_print_fixed_point): New function.
399 (generic_value_print): Add fixed-point type handling.
400 * value.c (value_as_address, unpack_long): Add fixed-point type
401 handling.
402
e55c6530
JB
4032020-11-15 Joel Brobecker <brobecker@adacore.com>
404
405 * utils.h (uinteger_pow): Add declaration.
406 * utils.c (uinteger_pow): Moved here (without changes)...
407 * valarith.c (uinteger_pow): ... from here.
408
b34c74ab
JB
4092020-11-15 Joel Brobecker <brobecker@adacore.com>
410
40d9d2fd 411 * gmp-utils.h, gmp-utils.c: New file.
b34c74ab
JB
412 * unittests/gmp-utils-selftests.c: New file.
413 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
414 unittests/gmp-utils-selftests.c.
415 (COMMON_SFILES) Add gmp-utils.c.
416 (HFILES_NO_SRCDIR): Add gmp-utils.h.
417
1b4ac058
JB
4182020-11-15 Joel Brobecker <brobecker@adacore.com>
419
420 * configure.ac: Generate an error if a usable GMP library
421 could not be found.
422 * configure: Regenerate.
423
2c947d9b
JB
4242020-11-15 Joel Brobecker <brobecker@adacore.com>
425
426 * configure.ac: Add support for --with-libgmp-prefix.
427 * Makefile.in (LIBGMP): New variable.
428 (CLIBS): Include $(LIBGMP).
429 * configure, config.in: Regenerate
430
9dd02fc0
AB
4312020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
432
433 PR cli/26879
434 * f-exp.y (COMPLETE): New token.
435 (exp): Two new rules for tab-completion.
436 (saw_name_at_eof): New static global.
437 (last_was_structop): Likewise.
438 (yylex): Set new variables, and return COMPLETE token at the end
439 of the input stream in some cases.
440
758cb810
TT
4412020-11-14 Tom Tromey <tom@tromey.com>
442
443 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
444
749065b7
TT
4452020-11-14 Tom Tromey <tom@tromey.com>
446
447 * opencl-lang.c (opencl_component_ref): Make "comps" const.
448
2c5b1849
SM
4492020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
450
451 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
452
e8b2f0d9
TT
4532020-11-13 Tom Tromey <tom@tromey.com>
454
455 * c-lang.c (convert_ucn, convert_octal, convert_hex)
456 (convert_escape, parse_one_string): Constify.
457
25f4c262
KS
4582020-11-13 Keith Seitz <keiths@redhat.com>
459
460 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
461 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
462 outside of ELF segments" warning for debugin
463
9d3ab915
KS
4642020-11-13 Keith Seitz <keiths@redhat.com>
465
466 PR gdb/23034
467 * elfread.c (elf_symfile_segments): Output a BFD file name
468 for the "Loadable section ... outside of ELF segments" warning.
469
9ecab40c
SM
4702020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
471
472 PR gdb/26835
473 * arm-tdep.c (class arm_instruction_reader): New.
474 (target_arm_instruction_reader): New.
475 (arm_analyze_prologue): Add instruction reader parameter and use
476 it. Use arm_expand_immediate.
477 (class target_arm_instruction_reader): Adjust.
478 (arm_skip_prologue): Adjust.
479 (arm_expand_immediate): New.
480 (arm_scan_prologue): Adjust.
481 (arm_analyze_prologue_test): New.
482 (class test_arm_instruction_reader): New.
483
5a7cf527
AB
4842020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
485
486 * f-lang.c (fortran_argument_convert): Add declaration. Add
487 header comment, taken from f-lang.h. Make static.
488 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
489 (fortran_argument_convert): Delete declaration.
490
7bea47f0
AB
4912020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
492
493 * ada-exp.y (find_primitive_type): Make parameter const.
494 * ada-lang.c (enum ada_primitive_types): Delete.
495 (ada_language::language_arch_info): Update.
496 * c-lang.c (enum c_primitive_types): Delete.
497 (c_language_arch_info): Update.
498 (enum cplus_primitive_types): Delete.
499 (cplus_language::language_arch_info): Update.
500 * d-lang.c (enum d_primitive_types): Delete.
501 (d_language::language_arch_info): Update.
502 * f-lang.c (enum f_primitive_types): Delete.
503 (f_language::language_arch_info): Update.
504 * go-lang.c (enum go_primitive_types): Delete.
505 (go_language::language_arch_info): Update.
506 * language.c (auto_or_unknown_language::language_arch_info):
507 Update.
508 (language_gdbarch_post_init): Use obstack_new, use array indexing.
509 (language_string_char_type): Add header comment, call function in
510 language_arch_info.
511 (language_bool_type): Likewise
512 (language_arch_info::bool_type): Define.
513 (language_lookup_primitive_type_1): Delete.
514 (language_lookup_primitive_type): Rewrite as a templated function
515 to call function in language_arch_info, then instantiate twice.
516 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
517 (language_arch_info::lookup_primitive_type_and_symbol): Define.
518 (language_arch_info::lookup_primitive_type): Define twice with
519 different signatures.
520 (language_arch_info::lookup_primitive_type_as_symbol): Define.
521 (language_lookup_primitive_type_as_symbol): Rewrite to call a
522 member function in language_arch_info.
523 * language.h (language_arch_info): Complete rewrite.
524 (language_lookup_primitive_type): Make templated.
525 * m2-lang.c (enum m2_primitive_types): Delete.
526 (m2_language::language_arch_info): Update.
527 * opencl-lang.c (OCL_P_TYPE): Delete.
528 (enum opencl_primitive_types): Delete.
529 (opencl_type_data): Delete.
530 (builtin_opencl_type): Delete.
531 (lookup_opencl_vector_type): Update.
532 (opencl_language::language_arch_info): Update, lots of content
533 moved from...
534 (build_opencl_types): ...here. This function is now deleted.
535 (_initialize_opencl_language): Delete.
536 * p-lang.c (enum pascal_primitive_types): Delete.
537 (pascal_language::language_arch_info): Update.
538 * rust-lang.c (enum rust_primitive_types): Delete.
539 (rust_language::language_arch_info): Update.
540
bf6e5d01
SM
5412020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
542
543 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
544 dwarf2_queue_guard.
545
1350c3b4
SM
5462020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
547
548 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
549 comment.
550
6f738b01
SM
5512020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
552
553 * dwarf2/read.c (dwarf_read_debug_printf,
554 dwarf_read_debug_printf_v): New macros, use throughout the file.
555
10c19fad
SV
5562020-11-12 Shahab Vahedi <shahab@synopsys.com>
557
558 * arc-linux-tdep.c (collect_register): Populate "eret" by
559 "pc" value from the regcache when asked for "pc" value.
560
1f2624a3
TT
5612020-11-12 Tom Tromey <tom@tromey.com>
562
563 PR rust/26799:
564 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
565 exist.
566
ab33b152
AB
5672020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
568
569 * features/Makefile (XMLTOC): Add rx.xml.
570 (FEATURE_XMLFILES): Remove rx.xml.
571 (FEATURE_CFILES rule): Pass '-single-feature' flag.
572 * features/rx.c: Regenerate.
573 * features/rx.xml: Wrap in `target` tags, and reindent.
574 * target-descriptions.c (struct maint_print_c_tdesc_options): New
575 structure.
576 (maint_print_c_tdesc_opt_def): New typedef.
577 (maint_print_c_tdesc_opt_defs): New static global.
578 (make_maint_print_c_tdesc_options_def_group): New function.
579 (maint_print_c_tdesc_cmd): Make use of command line flags, only
580 print single feature C file for target descriptions containing a
581 single feature.
582 (maint_print_c_tdesc_cmd_completer): New function.
583 (_initialize_target_descriptions): Update call to register command
584 completer, and include command line flag in help text.
585
550820e1
AB
5862020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
587
588 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
589 numbers.
590 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
591 enum values.
592
baf20f76
TT
5932020-11-10 Tom Tromey <tom@tromey.com>
594
595 * value.h (internalvar_name): Update.
596 * value.c (internalvar_name): Make return type const.
597
caaece0e
TT
5982020-11-10 Tom Tromey <tom@tromey.com>
599
600 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
601 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
602 const.
603
8e20b4be
TT
6042020-11-10 Tom Tromey <tom@tromey.com>
605
606 * objc-lang.h (value_nsstring): Update.
607 * objc-lang.c (value_nsstring): Make "ptr" const.
608
86775fab
AB
6092020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
610
611 * expprint.c (print_subexp_funcall): Increment expression position
612 after reading argument count.
613 * f-lang.c (print_subexp_f): Skip over opcode before calling
614 common function.
615 (dump_subexp_body_f): Likewise.
616
3fed4c0b
RG
6172020-11-06 Romain Geissler <romain.geissler@amadeus.com>
618
619 PR python/26832
620 * configure: Regenerate.
621 * configure.ac: Check for python modules ctypes instead of
622 itertools.
623
ac3d4064
PA
6242020-11-06 Pedro Alves <pedro@palves.net>
625
626 * macroexp.c (struct macro_buffer): Split in two classes. Add
627 uses adjusted.
628 (struct shared_macro_buffer): New, factored out from struct
629 macro_buffer.
630 (struct growable_macro_buffer): New, factored out from struct
631 macro_buffer.
632 (set_token, get_comment, get_identifier, get_pp_number)
633 (get_character_constant, get_string_literal, get_punctuator)
634 (get_next_token_for_substitution): Constify parameters.
635 (substitute_args): Constify locals.
636
606decb2
TT
6372020-11-05 Tom Tromey <tom@tromey.com>
638
639 * dwarf2/read.c (read_cutu_die_from_dwo)
640 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
641 (build_type_psymtabs_1): Update.
642 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
643 parameter.
644 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
645 Don't read section. Add assert.
646
9c91c725
TT
6472020-11-04 Tom Tromey <tromey@adacore.com>
648
649 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
650
8d9fd3a1
TT
6512020-11-04 Tom Tromey <tromey@adacore.com>
652
653 * ada-typeprint.c (ada_print_type): Handle __T types.
654
d8f62e84
TT
6552020-11-04 Tom Tromey <tromey@adacore.com>
656
657 * dwarf2/read.c (add_partial_symbol, process_die):
658 Handle DW_TAG_array_type.
659 (is_type_tag_for_partial): Add "lang" parameter.
660 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
661
7ff5b937
TT
6622020-11-04 Tom Tromey <tromey@adacore.com>
663
664 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
665
10f6a3ad
TT
6662020-11-04 Tom Tromey <tromey@adacore.com>
667
668 * dwarf2/read.c (read_array_type): Only apply stride to innermost
669 array.
670
b72795a8
TT
6712020-11-04 Tom Tromey <tromey@adacore.com>
672
673 * gdbtypes.c (update_static_array_size): Handle bit stride.
674
24aa1b02
TT
6752020-11-04 Tom Tromey <tromey@adacore.com>
676
677 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
678
c9a28cbe
TT
6792020-11-04 Tom Tromey <tromey@adacore.com>
680
681 * ada-lang.c (ada_is_any_packed_array_type): New function.
682 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
683
57567375
TT
6842020-11-04 Tom Tromey <tromey@adacore.com>
685
686 * dwarf2/read.c (recognize_bound_expression)
687 (quirk_ada_thick_pointer): New functions.
688 (read_array_type): Call quirk_ada_thick_pointer.
689 (set_die_type): Add "skip_data_location" parameter.
690 (quirk_ada_thick_pointer): New function.
691 (process_structure_scope): Call quirk_ada_thick_pointer.
692 * ada-lang.c (ada_is_unconstrained_packed_array_type)
693 (decode_packed_array_bitsize): Handle thick pointers without
694 parallel types.
695 (ada_is_gnat_encoded_packed_array_type): Rename from
696 ada_is_packed_array_type.
697 (ada_is_constrained_packed_array_type): Update.
698 * ada-valprint.c (ada_val_print_gnat_array): Remove.
699 (ada_value_print_1): Use ada_get_decoded_value.
700
a7400e44
TT
7012020-11-04 Tom Tromey <tromey@adacore.com>
702
703 * ada-lang.c (recursively_update_array_bitsize): New function.
704 (decode_constrained_packed_array_type): Call it.
705
75fd6a26
TT
7062020-11-04 Tom Tromey <tromey@adacore.com>
707
708 * ada-lang.c (to_fixed_array_type): Error if
709 decode_constrained_packed_array_type returns NULL.
710
93f9561e
TT
7112020-11-04 Tom Tromey <tromey@adacore.com>
712
713 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
714
257e02d8
TT
7152020-11-02 Tom Tromey <tromey@adacore.com>
716
717 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
718 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
719 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
720 * amd64-ravenscar-thread.c: New file.
721 * amd64-ravenscar-thread.h: New file.
722 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
723 * configure.tgt (amd64_tobjs): Add ravenscar objects.
724
74d877e5
AB
7252020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
726
727 * main.c (execute_cmdargs): New function.
728 (captured_main_1): Make use of execute_cmdargs.
729
64aaad63
AB
7302020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
731
732 * NEWS: Mention changes to config file search path.
733 * main.c
734
5b3d3560
TT
7352020-11-02 Tom Tromey <tromey@adacore.com>
736
737 * python/python.c: Consolidate two HAVE_PYTHON blocks.
738 (python_GdbModuleDef): Move earlier. Now static.
739 (do_start_initialization): Consolidate some IS_PY3K blocks.
740
dda83cd7
SM
7412020-11-02 Simon Marchi <simon.marchi@efficios.com>
742
743 * aarch64-linux-tdep.c: Fix indentation.
744 * aarch64-ravenscar-thread.c: Fix indentation.
745 * aarch64-tdep.c: Fix indentation.
746 * aarch64-tdep.h: Fix indentation.
747 * ada-lang.c: Fix indentation.
748 * ada-lang.h: Fix indentation.
749 * ada-tasks.c: Fix indentation.
750 * ada-typeprint.c: Fix indentation.
751 * ada-valprint.c: Fix indentation.
752 * ada-varobj.c: Fix indentation.
753 * addrmap.c: Fix indentation.
754 * addrmap.h: Fix indentation.
755 * agent.c: Fix indentation.
756 * aix-thread.c: Fix indentation.
757 * alpha-bsd-nat.c: Fix indentation.
758 * alpha-linux-tdep.c: Fix indentation.
759 * alpha-mdebug-tdep.c: Fix indentation.
760 * alpha-nbsd-tdep.c: Fix indentation.
761 * alpha-obsd-tdep.c: Fix indentation.
762 * alpha-tdep.c: Fix indentation.
763 * amd64-bsd-nat.c: Fix indentation.
764 * amd64-darwin-tdep.c: Fix indentation.
765 * amd64-linux-nat.c: Fix indentation.
766 * amd64-linux-tdep.c: Fix indentation.
767 * amd64-nat.c: Fix indentation.
768 * amd64-obsd-tdep.c: Fix indentation.
769 * amd64-tdep.c: Fix indentation.
770 * amd64-windows-tdep.c: Fix indentation.
771 * annotate.c: Fix indentation.
772 * arc-tdep.c: Fix indentation.
773 * arch-utils.c: Fix indentation.
774 * arch/arm-get-next-pcs.c: Fix indentation.
775 * arch/arm.c: Fix indentation.
776 * arm-linux-nat.c: Fix indentation.
777 * arm-linux-tdep.c: Fix indentation.
778 * arm-nbsd-tdep.c: Fix indentation.
779 * arm-pikeos-tdep.c: Fix indentation.
780 * arm-tdep.c: Fix indentation.
781 * arm-tdep.h: Fix indentation.
782 * arm-wince-tdep.c: Fix indentation.
783 * auto-load.c: Fix indentation.
784 * auxv.c: Fix indentation.
785 * avr-tdep.c: Fix indentation.
786 * ax-gdb.c: Fix indentation.
787 * ax-general.c: Fix indentation.
788 * bfin-linux-tdep.c: Fix indentation.
789 * block.c: Fix indentation.
790 * block.h: Fix indentation.
791 * blockframe.c: Fix indentation.
792 * bpf-tdep.c: Fix indentation.
793 * break-catch-sig.c: Fix indentation.
794 * break-catch-syscall.c: Fix indentation.
795 * break-catch-throw.c: Fix indentation.
796 * breakpoint.c: Fix indentation.
797 * breakpoint.h: Fix indentation.
798 * bsd-uthread.c: Fix indentation.
799 * btrace.c: Fix indentation.
800 * build-id.c: Fix indentation.
801 * buildsym-legacy.h: Fix indentation.
802 * buildsym.c: Fix indentation.
803 * c-typeprint.c: Fix indentation.
804 * c-valprint.c: Fix indentation.
805 * c-varobj.c: Fix indentation.
806 * charset.c: Fix indentation.
807 * cli/cli-cmds.c: Fix indentation.
808 * cli/cli-decode.c: Fix indentation.
809 * cli/cli-decode.h: Fix indentation.
810 * cli/cli-script.c: Fix indentation.
811 * cli/cli-setshow.c: Fix indentation.
812 * coff-pe-read.c: Fix indentation.
813 * coffread.c: Fix indentation.
814 * compile/compile-cplus-types.c: Fix indentation.
815 * compile/compile-object-load.c: Fix indentation.
816 * compile/compile-object-run.c: Fix indentation.
817 * completer.c: Fix indentation.
818 * corefile.c: Fix indentation.
819 * corelow.c: Fix indentation.
820 * cp-abi.h: Fix indentation.
821 * cp-namespace.c: Fix indentation.
822 * cp-support.c: Fix indentation.
823 * cp-valprint.c: Fix indentation.
824 * cris-linux-tdep.c: Fix indentation.
825 * cris-tdep.c: Fix indentation.
826 * darwin-nat-info.c: Fix indentation.
827 * darwin-nat.c: Fix indentation.
828 * darwin-nat.h: Fix indentation.
829 * dbxread.c: Fix indentation.
830 * dcache.c: Fix indentation.
831 * disasm.c: Fix indentation.
832 * dtrace-probe.c: Fix indentation.
833 * dwarf2/abbrev.c: Fix indentation.
834 * dwarf2/attribute.c: Fix indentation.
835 * dwarf2/expr.c: Fix indentation.
836 * dwarf2/frame.c: Fix indentation.
837 * dwarf2/index-cache.c: Fix indentation.
838 * dwarf2/index-write.c: Fix indentation.
839 * dwarf2/line-header.c: Fix indentation.
840 * dwarf2/loc.c: Fix indentation.
841 * dwarf2/macro.c: Fix indentation.
842 * dwarf2/read.c: Fix indentation.
843 * dwarf2/read.h: Fix indentation.
844 * elfread.c: Fix indentation.
845 * eval.c: Fix indentation.
846 * event-top.c: Fix indentation.
847 * exec.c: Fix indentation.
848 * exec.h: Fix indentation.
849 * expprint.c: Fix indentation.
850 * f-lang.c: Fix indentation.
851 * f-typeprint.c: Fix indentation.
852 * f-valprint.c: Fix indentation.
853 * fbsd-nat.c: Fix indentation.
854 * fbsd-tdep.c: Fix indentation.
855 * findvar.c: Fix indentation.
856 * fork-child.c: Fix indentation.
857 * frame-unwind.c: Fix indentation.
858 * frame-unwind.h: Fix indentation.
859 * frame.c: Fix indentation.
860 * frv-linux-tdep.c: Fix indentation.
861 * frv-tdep.c: Fix indentation.
862 * frv-tdep.h: Fix indentation.
863 * ft32-tdep.c: Fix indentation.
864 * gcore.c: Fix indentation.
865 * gdb_bfd.c: Fix indentation.
866 * gdbarch.sh: Fix indentation.
867 * gdbarch.c: Re-generate
868 * gdbarch.h: Re-generate.
869 * gdbcore.h: Fix indentation.
870 * gdbthread.h: Fix indentation.
871 * gdbtypes.c: Fix indentation.
872 * gdbtypes.h: Fix indentation.
873 * glibc-tdep.c: Fix indentation.
874 * gnu-nat.c: Fix indentation.
875 * gnu-nat.h: Fix indentation.
876 * gnu-v2-abi.c: Fix indentation.
877 * gnu-v3-abi.c: Fix indentation.
878 * go32-nat.c: Fix indentation.
879 * guile/guile-internal.h: Fix indentation.
880 * guile/scm-cmd.c: Fix indentation.
881 * guile/scm-frame.c: Fix indentation.
882 * guile/scm-iterator.c: Fix indentation.
883 * guile/scm-math.c: Fix indentation.
884 * guile/scm-ports.c: Fix indentation.
885 * guile/scm-pretty-print.c: Fix indentation.
886 * guile/scm-value.c: Fix indentation.
887 * h8300-tdep.c: Fix indentation.
888 * hppa-linux-nat.c: Fix indentation.
889 * hppa-linux-tdep.c: Fix indentation.
890 * hppa-nbsd-nat.c: Fix indentation.
891 * hppa-nbsd-tdep.c: Fix indentation.
892 * hppa-obsd-nat.c: Fix indentation.
893 * hppa-tdep.c: Fix indentation.
894 * hppa-tdep.h: Fix indentation.
895 * i386-bsd-nat.c: Fix indentation.
896 * i386-darwin-nat.c: Fix indentation.
897 * i386-darwin-tdep.c: Fix indentation.
898 * i386-dicos-tdep.c: Fix indentation.
899 * i386-gnu-nat.c: Fix indentation.
900 * i386-linux-nat.c: Fix indentation.
901 * i386-linux-tdep.c: Fix indentation.
902 * i386-nto-tdep.c: Fix indentation.
903 * i386-obsd-tdep.c: Fix indentation.
904 * i386-sol2-nat.c: Fix indentation.
905 * i386-tdep.c: Fix indentation.
906 * i386-tdep.h: Fix indentation.
907 * i386-windows-tdep.c: Fix indentation.
908 * i387-tdep.c: Fix indentation.
909 * i387-tdep.h: Fix indentation.
910 * ia64-libunwind-tdep.c: Fix indentation.
911 * ia64-libunwind-tdep.h: Fix indentation.
912 * ia64-linux-nat.c: Fix indentation.
913 * ia64-linux-tdep.c: Fix indentation.
914 * ia64-tdep.c: Fix indentation.
915 * ia64-tdep.h: Fix indentation.
916 * ia64-vms-tdep.c: Fix indentation.
917 * infcall.c: Fix indentation.
918 * infcmd.c: Fix indentation.
919 * inferior.c: Fix indentation.
920 * infrun.c: Fix indentation.
921 * iq2000-tdep.c: Fix indentation.
922 * language.c: Fix indentation.
923 * linespec.c: Fix indentation.
924 * linux-fork.c: Fix indentation.
925 * linux-nat.c: Fix indentation.
926 * linux-tdep.c: Fix indentation.
927 * linux-thread-db.c: Fix indentation.
928 * lm32-tdep.c: Fix indentation.
929 * m2-lang.c: Fix indentation.
930 * m2-typeprint.c: Fix indentation.
931 * m2-valprint.c: Fix indentation.
932 * m32c-tdep.c: Fix indentation.
933 * m32r-linux-tdep.c: Fix indentation.
934 * m32r-tdep.c: Fix indentation.
935 * m68hc11-tdep.c: Fix indentation.
936 * m68k-bsd-nat.c: Fix indentation.
937 * m68k-linux-nat.c: Fix indentation.
938 * m68k-linux-tdep.c: Fix indentation.
939 * m68k-tdep.c: Fix indentation.
940 * machoread.c: Fix indentation.
941 * macrocmd.c: Fix indentation.
942 * macroexp.c: Fix indentation.
943 * macroscope.c: Fix indentation.
944 * macrotab.c: Fix indentation.
945 * macrotab.h: Fix indentation.
946 * main.c: Fix indentation.
947 * mdebugread.c: Fix indentation.
948 * mep-tdep.c: Fix indentation.
949 * mi/mi-cmd-catch.c: Fix indentation.
950 * mi/mi-cmd-disas.c: Fix indentation.
951 * mi/mi-cmd-env.c: Fix indentation.
952 * mi/mi-cmd-stack.c: Fix indentation.
953 * mi/mi-cmd-var.c: Fix indentation.
954 * mi/mi-cmds.c: Fix indentation.
955 * mi/mi-main.c: Fix indentation.
956 * mi/mi-parse.c: Fix indentation.
957 * microblaze-tdep.c: Fix indentation.
958 * minidebug.c: Fix indentation.
959 * minsyms.c: Fix indentation.
960 * mips-linux-nat.c: Fix indentation.
961 * mips-linux-tdep.c: Fix indentation.
962 * mips-nbsd-tdep.c: Fix indentation.
963 * mips-tdep.c: Fix indentation.
964 * mn10300-linux-tdep.c: Fix indentation.
965 * mn10300-tdep.c: Fix indentation.
966 * moxie-tdep.c: Fix indentation.
967 * msp430-tdep.c: Fix indentation.
968 * namespace.h: Fix indentation.
969 * nat/fork-inferior.c: Fix indentation.
970 * nat/gdb_ptrace.h: Fix indentation.
971 * nat/linux-namespaces.c: Fix indentation.
972 * nat/linux-osdata.c: Fix indentation.
973 * nat/netbsd-nat.c: Fix indentation.
974 * nat/x86-dregs.c: Fix indentation.
975 * nbsd-nat.c: Fix indentation.
976 * nbsd-tdep.c: Fix indentation.
977 * nios2-linux-tdep.c: Fix indentation.
978 * nios2-tdep.c: Fix indentation.
979 * nto-procfs.c: Fix indentation.
980 * nto-tdep.c: Fix indentation.
981 * objfiles.c: Fix indentation.
982 * objfiles.h: Fix indentation.
983 * opencl-lang.c: Fix indentation.
984 * or1k-tdep.c: Fix indentation.
985 * osabi.c: Fix indentation.
986 * osabi.h: Fix indentation.
987 * osdata.c: Fix indentation.
988 * p-lang.c: Fix indentation.
989 * p-typeprint.c: Fix indentation.
990 * p-valprint.c: Fix indentation.
991 * parse.c: Fix indentation.
992 * ppc-linux-nat.c: Fix indentation.
993 * ppc-linux-tdep.c: Fix indentation.
994 * ppc-nbsd-nat.c: Fix indentation.
995 * ppc-nbsd-tdep.c: Fix indentation.
996 * ppc-obsd-nat.c: Fix indentation.
997 * ppc-ravenscar-thread.c: Fix indentation.
998 * ppc-sysv-tdep.c: Fix indentation.
999 * ppc64-tdep.c: Fix indentation.
1000 * printcmd.c: Fix indentation.
1001 * proc-api.c: Fix indentation.
1002 * producer.c: Fix indentation.
1003 * producer.h: Fix indentation.
1004 * prologue-value.c: Fix indentation.
1005 * prologue-value.h: Fix indentation.
1006 * psymtab.c: Fix indentation.
1007 * python/py-arch.c: Fix indentation.
1008 * python/py-bpevent.c: Fix indentation.
1009 * python/py-event.c: Fix indentation.
1010 * python/py-event.h: Fix indentation.
1011 * python/py-finishbreakpoint.c: Fix indentation.
1012 * python/py-frame.c: Fix indentation.
1013 * python/py-framefilter.c: Fix indentation.
1014 * python/py-inferior.c: Fix indentation.
1015 * python/py-infthread.c: Fix indentation.
1016 * python/py-objfile.c: Fix indentation.
1017 * python/py-prettyprint.c: Fix indentation.
1018 * python/py-registers.c: Fix indentation.
1019 * python/py-signalevent.c: Fix indentation.
1020 * python/py-stopevent.c: Fix indentation.
1021 * python/py-stopevent.h: Fix indentation.
1022 * python/py-threadevent.c: Fix indentation.
1023 * python/py-tui.c: Fix indentation.
1024 * python/py-unwind.c: Fix indentation.
1025 * python/py-value.c: Fix indentation.
1026 * python/py-xmethods.c: Fix indentation.
1027 * python/python-internal.h: Fix indentation.
1028 * python/python.c: Fix indentation.
1029 * ravenscar-thread.c: Fix indentation.
1030 * record-btrace.c: Fix indentation.
1031 * record-full.c: Fix indentation.
1032 * record.c: Fix indentation.
1033 * reggroups.c: Fix indentation.
1034 * regset.h: Fix indentation.
1035 * remote-fileio.c: Fix indentation.
1036 * remote.c: Fix indentation.
1037 * reverse.c: Fix indentation.
1038 * riscv-linux-tdep.c: Fix indentation.
1039 * riscv-ravenscar-thread.c: Fix indentation.
1040 * riscv-tdep.c: Fix indentation.
1041 * rl78-tdep.c: Fix indentation.
1042 * rs6000-aix-tdep.c: Fix indentation.
1043 * rs6000-lynx178-tdep.c: Fix indentation.
1044 * rs6000-nat.c: Fix indentation.
1045 * rs6000-tdep.c: Fix indentation.
1046 * rust-lang.c: Fix indentation.
1047 * rx-tdep.c: Fix indentation.
1048 * s12z-tdep.c: Fix indentation.
1049 * s390-linux-tdep.c: Fix indentation.
1050 * score-tdep.c: Fix indentation.
1051 * ser-base.c: Fix indentation.
1052 * ser-mingw.c: Fix indentation.
1053 * ser-uds.c: Fix indentation.
1054 * ser-unix.c: Fix indentation.
1055 * serial.c: Fix indentation.
1056 * sh-linux-tdep.c: Fix indentation.
1057 * sh-nbsd-tdep.c: Fix indentation.
1058 * sh-tdep.c: Fix indentation.
1059 * skip.c: Fix indentation.
1060 * sol-thread.c: Fix indentation.
1061 * solib-aix.c: Fix indentation.
1062 * solib-darwin.c: Fix indentation.
1063 * solib-frv.c: Fix indentation.
1064 * solib-svr4.c: Fix indentation.
1065 * solib.c: Fix indentation.
1066 * source.c: Fix indentation.
1067 * sparc-linux-tdep.c: Fix indentation.
1068 * sparc-nbsd-tdep.c: Fix indentation.
1069 * sparc-obsd-tdep.c: Fix indentation.
1070 * sparc-ravenscar-thread.c: Fix indentation.
1071 * sparc-tdep.c: Fix indentation.
1072 * sparc64-linux-tdep.c: Fix indentation.
1073 * sparc64-nbsd-tdep.c: Fix indentation.
1074 * sparc64-obsd-tdep.c: Fix indentation.
1075 * sparc64-tdep.c: Fix indentation.
1076 * stabsread.c: Fix indentation.
1077 * stack.c: Fix indentation.
1078 * stap-probe.c: Fix indentation.
1079 * stubs/ia64vms-stub.c: Fix indentation.
1080 * stubs/m32r-stub.c: Fix indentation.
1081 * stubs/m68k-stub.c: Fix indentation.
1082 * stubs/sh-stub.c: Fix indentation.
1083 * stubs/sparc-stub.c: Fix indentation.
1084 * symfile-mem.c: Fix indentation.
1085 * symfile.c: Fix indentation.
1086 * symfile.h: Fix indentation.
1087 * symmisc.c: Fix indentation.
1088 * symtab.c: Fix indentation.
1089 * symtab.h: Fix indentation.
1090 * target-float.c: Fix indentation.
1091 * target.c: Fix indentation.
1092 * target.h: Fix indentation.
1093 * tic6x-tdep.c: Fix indentation.
1094 * tilegx-linux-tdep.c: Fix indentation.
1095 * tilegx-tdep.c: Fix indentation.
1096 * top.c: Fix indentation.
1097 * tracefile-tfile.c: Fix indentation.
1098 * tracepoint.c: Fix indentation.
1099 * tui/tui-disasm.c: Fix indentation.
1100 * tui/tui-io.c: Fix indentation.
1101 * tui/tui-regs.c: Fix indentation.
1102 * tui/tui-stack.c: Fix indentation.
1103 * tui/tui-win.c: Fix indentation.
1104 * tui/tui-winsource.c: Fix indentation.
1105 * tui/tui.c: Fix indentation.
1106 * typeprint.c: Fix indentation.
1107 * ui-out.h: Fix indentation.
1108 * unittests/copy_bitwise-selftests.c: Fix indentation.
1109 * unittests/memory-map-selftests.c: Fix indentation.
1110 * utils.c: Fix indentation.
1111 * v850-tdep.c: Fix indentation.
1112 * valarith.c: Fix indentation.
1113 * valops.c: Fix indentation.
1114 * valprint.c: Fix indentation.
1115 * valprint.h: Fix indentation.
1116 * value.c: Fix indentation.
1117 * value.h: Fix indentation.
1118 * varobj.c: Fix indentation.
1119 * vax-tdep.c: Fix indentation.
1120 * windows-nat.c: Fix indentation.
1121 * windows-tdep.c: Fix indentation.
1122 * xcoffread.c: Fix indentation.
1123 * xml-syscall.c: Fix indentation.
1124 * xml-tdesc.c: Fix indentation.
1125 * xstormy16-tdep.c: Fix indentation.
1126 * xtensa-config.c: Fix indentation.
1127 * xtensa-linux-nat.c: Fix indentation.
1128 * xtensa-linux-tdep.c: Fix indentation.
1129 * xtensa-tdep.c: Fix indentation.
1130
e1f57067
AB
11312020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1132 Craig Blackmore <craig.blackmore@embecosm.com>
1133
1134 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
1135 as an unsigned value.
1136
ae7754b2
TT
11372020-11-01 Tom Tromey <tom@tromey.com>
1138
1139 * dbxread.c (dbx_end_psymtab): Update.
1140 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1141 (build_type_psymtabs_reader): Update.
1142 * xcoffread.c (xcoff_end_psymtab): Update.
1143 * ctfread.c (scan_partial_symbols): Update.
1144 * psymtab.c (sort_pst_symbols): Remove.
1145 (partial_symtab::end): Rename from end_psymtab_common. Inline
1146 sort_pst_symbols.
1147 * psympriv.h (struct partial_symtab) <end>: New method.
1148 (end_psymtab_common): Don't declare.
1149
0684bb51
TT
11502020-11-01 Tom Tromey <tom@tromey.com>
1151
1152 * symmisc.c (count_psyms): New function.
1153 (print_objfile_statistics): Use it.
1154 * psymtab.c (append_psymbol_to_list): Remove.
1155 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
1156 * objfiles.h (struct objstats) <n_psyms>: Remove.
1157
089002bb
TT
11582020-11-01 Tom Tromey <tom@tromey.com>
1159
1160 * dbxread.c (dbx_end_psymtab): Update.
1161 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
1162 (build_type_psymtabs_reader): Update.
1163 * xcoffread.c (xcoff_end_psymtab): Update.
1164 * ctfread.c (scan_partial_symbols): Update.
1165 * psympriv.h (end_psymtab_common): Update.
1166 * psymtab.c (end_psymtab_common): Remove objfile parameter.
1167 (sort_pst_symbols): Likewise.
1168
525454d6
TT
11692020-11-01 Tom Tromey <tom@tromey.com>
1170
1171 * dbxread.c (dbx_symfile_read): Update.
1172 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1173 * xcoffread.c (xcoff_initial_scan): Update.
1174 * psympriv.h (init_psymbol_list): Don't declare.
1175 * psymtab.c (init_psymbol_list): Remove.
1176
60bd1d53
JB
11772020-11-01 Joel Brobecker <brobecker@adacore.com>
1178
1179 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
1180 gnat_encoded_fixed_type_info. Update all callers.
1181
db99d0d0
JB
11822020-11-01 Joel Brobecker <brobecker@adacore.com>
1183
1184 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
1185 line too long.
1186
75f24e86
JB
11872020-11-01 Joel Brobecker <brobecker@adacore.com>
1188
1189 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
1190 cast_from_fixed. Update all callers.
1191 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
1192 Update all callers.
1193 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
1194 Update all callers.
1195 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
1196 ada_scaling_factor.
1197 * ada-typeprint.c: Replace call to ada_scaling_factor by call
1198 to print_gnat_encoded_fixed_point_type.
1199 * ada-valprint.c: Likewise.
1200
4f0469cd
AB
12012020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1202
1203 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
1204 (debug_prefixed_printf): Add check of debug_displaced flag.
1205 * linux-nat.c (linux_nat_debug_printf): Add check of
1206 debug_linux_nat flag.
1207
17417fb0
SM
12082020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1209
1210 * infrun.c (infrun_debug_printf_1): Remove.
1211 (displaced_debug_printf_1): Remove.
1212 (stop_all_threads): Use debug_prefixed_printf.
1213 * infrun.h (infrun_debug_printf_1): Remove.
1214 (infrun_debug_printf): Use debug_prefixed_printf.
1215 (displaced_debug_printf_1): Remove.
1216 (displaced_debug_printf): Use debug_prefixed_printf.
1217 * linux-nat.c (linux_nat_debug_printf_1): Remove.
1218 (linux_nat_debug_printf): Use debug_prefixed_printf.
1219
ad6dba1c
SM
12202020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1221
1222 * configure: Re-generate.
1223 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
1224 AC_LANG_PROGRAM.
1225
b6fb30ed
SM
12262020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1227
1228 * configure: Re-generate.
1229
5164c117
SM
12302020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1231
1232 * configure: Re-generate.
1233
864ca435
SM
12342020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1235
1236 * configure: Re-generate.
1237
b9442ec1
SM
12382020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1239
1240 * configure: Re-generate.
1241
294f2697
SM
12422020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1243
1244 * acinclude.m4: Modernize.
1245 * configure: Re-generate.
1246
5593a99a
SM
12472020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1248
1249 * configure.ac: Modernize.
1250 * configure: Re-generate.
1251
e41fda1d
SM
12522020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1253
1254 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
1255 * configure: Re-generate.
1256 * configure.ac: Remove AM_PROG_CC_STDC.
1257
91e1a0ed
SM
12582020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1259
1260 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
1261 AC_CANONICAL_SYSTEM.
1262 * configure: Re-generate.
1263
136821d9
SM
12642020-10-30 Simon Marchi <simon.marchi@efficios.com>
1265
1266 * infrun.h (displaced_debug_printf): New macro. Replace
1267 displaced debug prints throughout to use it.
1268 (displaced_debug_printf_1): New declaration.
1269 (displaced_step_dump_bytes): Return string, remove ui_file
1270 parameter, update all callers.
1271 * infrun.c (displaced_debug_printf_1): New function.
1272 (displaced_step_dump_bytes): Return string, remove ui_file
1273 parameter
1274
aa2045e7
SM
12752020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
1276
1277 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
1278
b1ec2735
TT
12792020-10-30 Tom Tromey <tromey@adacore.com>
1280
1281 * Makefile.in (stamp-init): Depend on config.status.
1282
b78b3a29
TBA
12832020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1284
1285 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
1286
d70bdd3c
PA
12872020-10-30 Pedro Alves <pedro@palves.net>
1288
1289 * thread.c (lookup_selected_frame): Move ...
1290 * frame.c (lookup_selected_frame): ... here.
1291
79952e69
PA
12922020-10-30 Pedro Alves <pedro@palves.net>
1293
1294 * blockframe.c (block_innermost_frame): Use get_selected_frame.
1295 * frame.c
1296 (scoped_restore_selected_frame::scoped_restore_selected_frame):
1297 Use save_selected_frame. Save language as well.
1298 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
1299 Use restore_selected_frame, and restore language as well.
1300 (selected_frame_id, selected_frame_level): New.
1301 (selected_frame): Update comments.
1302 (save_selected_frame, restore_selected_frame): New.
1303 (get_selected_frame): Use lookup_selected_frame.
1304 (get_selected_frame_if_set): Delete.
1305 (select_frame): Record selected_frame_level and selected_frame_id.
1306 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
1307 fields.
1308 (get_selected_frame): Make 'message' parameter optional.
1309 (get_selected_frame_if_set): Delete declaration.
1310 (select_frame): Update comments.
1311 (save_selected_frame, restore_selected_frame)
1312 (lookup_selected_frame): Declare.
1313 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
1314 * infrun.c (struct infcall_control_state) <selected_frame_level>:
1315 New field.
1316 (save_infcall_control_state): Use save_selected_frame.
1317 (restore_selected_frame): Delete.
1318 (restore_infcall_control_state): Use restore_selected_frame.
1319 * stack.c (select_frame_command_core, frame_command_core): Use
1320 get_selected_frame.
1321 * thread.c (restore_selected_frame): Rename to ...
1322 (lookup_selected_frame): ... this and make extern. Select the
1323 current frame if the frame level is -1.
1324 (scoped_restore_current_thread::restore): Also restore the
1325 language.
1326 (scoped_restore_current_thread::~scoped_restore_current_thread):
1327 Don't try/catch.
1328 (scoped_restore_current_thread::scoped_restore_current_thread):
1329 Save the language as well. Use save_selected_frame.
1330
58103c33
SM
13312020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1332
1333 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
1334 documentation.
1335 * gdbarch.h: Re-generate.
1336
40a53766
SM
13372020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1338
1339 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
1340 parameter.
1341 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
1342 Likewise.
1343 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1344 Likewise.
1345 * arch-utils.c (default_displaced_step_hw_singlestep):
1346 Likewise.
1347 * arch-utils.h (default_displaced_step_hw_singlestep):
1348 Likewise.
1349 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
1350 Likewise.
1351 * s390-tdep.c (s390_displaced_step_hw_singlestep):
1352 Likewise.
1353 * gdbarch.c: Re-generate.
1354 * gdbarch.h: Re-generate.
1355 * infrun.c (resume_1): Adjust.
1356
8407f91b
TT
13572020-10-29 Tom Tromey <tom@tromey.com>
1358
1359 * progspace.c (program_space::~program_space): Don't call
1360 exec_close.
1361
5008b3b2
TT
13622020-10-29 Tom Tromey <tom@tromey.com>
1363
1364 * exec.c (exec_target::close): Don't change current program
1365 space.
1366
d9eebde0
TT
13672020-10-29 Tom Tromey <tom@tromey.com>
1368
1369 * symfile.c (add_symbol_file_command): Update.
1370 * exec.c (program_space::add_target_sections): Rename.
1371 * symfile-mem.c (symbol_file_add_from_memory): Update.
1372 * progspace.h (struct program_space) <add_target_sections>:
1373 Declare new overload.
1374 * exec.h (add_target_sections_of_objfile): Don't declare.
1375
3769e227
TT
13762020-10-29 Tom Tromey <tom@tromey.com>
1377
1378 * solib.c (solib_map_sections): Update.
1379 * exec.c (program_space::add_target_sections): Now a method.
1380 (exec_file_attach): Update.
1381 * exec.h (add_target_sections): Don't declare.
1382 * progspace.h (struct program_space) <add_target_sections>:
1383 Declare.
1384
2a3f84af
TT
13852020-10-29 Tom Tromey <tom@tromey.com>
1386
1387 * progspace.h (struct program_space) <remove_target_sections>:
1388 Declare.
1389 * exec.c (program_space::remove_target_sections): Now a method.
1390 * exec.h (remove_target_sections): Don't declare.
1391
004eecfd
TT
13922020-10-29 Tom Tromey <tom@tromey.com>
1393
1394 * inferior.c (delete_inferior): Update.
1395 * progspace.c (program_space::empty): Rename from
1396 program_space_empty_p. Return bool.
1397 * progspace.h (struct program_space) <empty>: New method.
1398 (program_space_empty_p): Don't declare.
1399
e39fb971
TT
14002020-10-29 Tom Tromey <tom@tromey.com>
1401
1402 * progspace.c (program_space::~program_space): Don't call
1403 clear_program_space_solib_cache.
1404 (program_space::clear_solib_cache): Rename from
1405 clear_solib_cache.
1406 * solib.c (handle_solib_event): Update.
1407 * progspace.h (struct program_space) <clear_solib_cache>: New
1408 method.
1409 (clear_program_space_solib_cache): Don't declare.
1410
a42d7dd8
TT
14112020-10-29 Tom Tromey <tom@tromey.com>
1412
1413 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1414 * target.c (info_target_command): Update.
1415 * symfile.c (syms_from_objfile_1, finish_new_objfile)
1416 (symbol_file_clear, reread_symbols): Update.
1417 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
1418 * stabsread.c (scan_file_globals): Update.
1419 * solib.c (update_solib_list): Update.
1420 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
1421 (svr4_fetch_objfile_link_map, enable_break)
1422 (svr4_relocate_main_executable)
1423 (svr4_iterate_over_objfiles_in_search_order): Update.
1424 * solib-frv.c (lm_base, enable_break)
1425 (frv_relocate_main_executable): Update.
1426 (main_got, frv_fdpic_find_canonical_descriptor): Update.
1427 (frv_fetch_objfile_link_map): Update.
1428 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
1429 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
1430 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
1431 * remote.c (remote_target::get_offsets): Update.
1432 (remote_target::start_remote)
1433 (extended_remote_target::post_attach): Update.
1434 * objfiles.c (entry_point_address_query): Update.
1435 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
1436 * minsyms.c (get_symbol_leading_char): Update.
1437 * frame.c (inside_main_func): Update.
1438 * progspace.h (symfile_objfile): Remove macro.
1439
19f6550e
TT
14402020-10-29 Tom Tromey <tom@tromey.com>
1441
1442 * exec.c (exec_file_attach): Update.
1443 * progspace.c (program_space::exec_close): Update.
1444 * progspace.h (struct program_space) <ebfd>: Now a
1445 gdb_bfd_ref_ptr.
1446 <set_exec_bfd>: Change argument type.
1447 <exec_bfd>: Update.
1448
7e10abd1
TT
14492020-10-29 Tom Tromey <tom@tromey.com>
1450
1451 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1452 * symfile.c (reread_symbols): Update.
1453 * symfile-mem.c (add_symbol_file_from_memory_command)
1454 (add_vsyscall_page): Update.
1455 * source-cache.c (source_cache::get_plain_source_lines): Update.
1456 * solib-svr4.c (find_program_interpreter, elf_locate_base)
1457 (svr4_current_sos_direct, svr4_exec_displacement)
1458 (svr4_relocate_main_executable): Update.
1459 (svr4_iterate_over_objfiles_in_search_order): Update.
1460 * solib-frv.c (enable_break2, enable_break): Update.
1461 * solib-dsbt.c (lm_base, enable_break): Update.
1462 * solib-darwin.c (find_program_interpreter)
1463 (darwin_solib_create_inferior_hook): Update.
1464 * sol-thread.c (rw_common, ps_pdmodel): Update.
1465 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
1466 * remote.c (compare_sections_command)
1467 (remote_target::trace_set_readonly_regions): Update.
1468 * remote-sim.c (get_sim_inferior_data)
1469 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
1470 (gdbsim_target_open, gdbsim_target::files_info): Update.
1471 * exec.h (exec_bfd): Remove macro.
1472 * progspace.c (initialize_progspace): Update.
1473 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
1474 Update.
1475 * nto-procfs.c (nto_procfs_target::post_attach)
1476 (nto_procfs_target::create_inferior): Update.
1477 * maint.c (maintenance_info_sections): Update.
1478 * linux-thread-db.c (thread_db_target::get_thread_local_address):
1479 Update.
1480 * infcmd.c (post_create_inferior): Update.
1481 * gcore.c (default_gcore_arch, default_gcore_target): Update.
1482 (objfile_find_memory_regions): Update.
1483 * exec.c (validate_exec_file, exec_file_attach)
1484 (exec_read_partial_read_only, print_section_info): Update.
1485 * corelow.c (core_target_open): Update.
1486 * corefile.c (reopen_exec_file, validate_files): Update.
1487 * arm-tdep.c (gdb_print_insn_arm): Update.
1488 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
1489 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
1490 methods.
1491
b55221ab
TT
14922020-10-29 Tom Tromey <tom@tromey.com>
1493
1494 * progspace.h (current_target_sections): Remove macro.
1495 * solib-svr4.c (scan_dyntag): Update.
1496 * solib-dsbt.c (scan_dyntag): Update.
1497 * exec.c (exec_target::close): Update.
1498 (add_target_sections, add_target_sections_of_objfile)
1499 (remove_target_sections, exec_target::get_section_table)
1500 (exec_target::files_info, set_section_command)
1501 (exec_set_section_address, exec_target::has_memory)
1502 (exec_target::has_memory): Update.
1503
5a36e715
TT
15042020-10-29 Tom Tromey <tom@tromey.com>
1505
1506 * source-cache.c (source_cache::get_plain_source_lines): Use
1507 current_program_space.
1508 * corefile.c (reopen_exec_file): Use current_program_space.
1509 * exec.c (exec_file_attach): Use current_program_space.
1510 * exec.h (exec_bfd_mtime): Remove.
1511
784c8592
TT
15122020-10-29 Tom Tromey <tom@tromey.com>
1513
1514 * gcore.c (default_gcore_mach): Remove.
1515 (create_gcore_bfd): Update.
1516
8a4f1402
TT
15172020-10-29 Tom Tromey <tom@tromey.com>
1518
1519 * progspace.c (program_space::exec_close): New method, from
1520 exec_close in exec.c.
1521 * exec.c (exec_close): Move to progspace.c.
1522 (exec_target::close, exec_file_attach): Update.
1523 * progspace.h (struct program_space) <exec_close>: Declare
1524 method.
1525
c20cb686
TT
15262020-10-29 Tom Tromey <tom@tromey.com>
1527
1528 * progspace.h (struct program_space) <exec_filename>: Rename from
1529 pspace_exec_filename. Now a unique_xmalloc_ptr.
1530 * inferior.c (print_selected_inferior): Update.
1531 (print_inferior): Update.
1532 * mi/mi-main.c (print_one_inferior): Update.
1533 * exec.h (exec_filename): Remove macro.
1534 * corefile.c (get_exec_file): Update.
1535 * exec.c (exec_close): Update.
1536 (exec_file_attach): Update.
1537 * progspace.c (clone_program_space): Update.
1538 (print_program_space): Update.
1539
6be2a9ab
TT
15402020-10-29 Tom Tromey <tom@tromey.com>
1541
1542 * target-section.h (struct target_section): Add constructor.
1543 * exec.c (build_section_table, add_target_sections_of_objfile):
1544 Update.
1545 * corelow.c (core_target::build_file_mappings): Update.
1546
cfaa8f76
TBA
15472020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1548
1549 PR gdb/19318
1550 * inferior.c (detach_inferior_command): Restore the current thread.
1551 (kill_inferior_command): Ditto.
1552
1b00ef06
TV
15532020-10-28 Tom de Vries <tdevries@suse.de>
1554
1555 PR symtab/26772
1556 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
1557 map, check it in the "best match" loop.
1558
7f40ce1a
SM
15592020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1560
1561 * m32c-tdep.c: Remove unused includes.
1562
5eb9e3f5
SM
15632020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1564
1565 * xtensa-tdep.c: Remove includes.
1566
b1d4d8d1
TBA
15672020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1568
1569 * breakpoint.c (struct condition_command_opts): New struct.
1570 (condition_command_option_defs): New static global.
1571 (make_condition_command_options_def_group): New function.
1572 (condition_completer): Update to consider the '-force' flag.
1573 (condition_command): Use gdb::option for the '-force' flag.
1574
bd24c5d6
TV
15752020-10-27 Tom de Vries <tdevries@suse.de>
1576
1577 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
1578 symbols in section check.
1579
61eb46a4
TV
15802020-10-27 Tom de Vries <tdevries@suse.de>
1581
1582 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
1583
733d554a
TBA
15842020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1585
1586 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
1587 * breakpoint.c: Update the help text of the 'condition' and 'break'
1588 commands.
1589 (set_breakpoint_condition): Take a new bool parameter
1590 to control whether condition definition should be forced even when
1591 the condition expression is invalid in all of the current locations.
1592 (condition_command): Update the call to 'set_breakpoint_condition'.
1593 (find_condition_and_thread): Take the "-force-condition" flag into
1594 account.
1595 * linespec.c (linespec_keywords): Add "-force-condition" as an
1596 element.
1597 (FORCE_KEYWORD_INDEX): New #define.
1598 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
1599 as a keyword.
1600 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
1601 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
1602 * python/py-breakpoint.c (bppy_set_condition): Ditto.
1603 * NEWS: Mention the changes to the 'break' and 'condition' commands.
1604
b5fa468f
TBA
16052020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1606
1607 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
1608 * breakpoint.c (set_breakpoint_location_condition): New function.
1609 (set_breakpoint_condition): Disable a breakpoint location if parsing
1610 the condition string gives an error.
1611 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
1612 (build_target_condition_list): Ditto.
1613 (build_target_command_list): Ditto.
1614 (build_bpstat_chain): Ditto.
1615 (print_one_breakpoint_location): Ditto.
1616 (print_one_breakpoint): Ditto.
1617 (breakpoint_1): Ditto.
1618 (bp_location::bp_location): Ditto.
1619 (locations_are_equal): Ditto.
1620 (update_breakpoint_locations): Ditto.
1621 (enable_disable_bp_num_loc): Ditto.
1622 (init_breakpoint_sal): Use set_breakpoint_location_condition.
1623 (find_condition_and_thread_for_sals): New static function.
1624 (create_breakpoint): Call find_condition_and_thread_for_sals.
1625 (location_to_sals): Call find_condition_and_thread_for_sals instead
1626 of find_condition_and_thread.
1627
1c47ec3e
TV
16282020-10-26 Tom de Vries <tdevries@suse.de>
1629
1630 * dwarf2/read.c (process_full_comp_unit): Call
1631 dwarf2_find_base_address.
1632
6390859c
TT
16332020-10-26 Tom Tromey <tromey@adacore.com>
1634
1635 * gdbtypes.c (create_range_type): Revert previous patch. Add
1636 comment.
1637
d744f0f9
PA
16382020-10-26 Pedro Alves <pedro@palves.net>
1639
1640 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
1641 (my_waitpid): Use gdb::handle_eintr.
1642
006811bc
SM
16432020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
1644
1645 * acinclude.m4: Update ptrace.m4 path.
1646 * ptrace.m4: Moved to gdbsupport.
1647
c75e31a1
SM
16482020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1649
1650 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
1651 instead of target_gdbarch.
1652
32495661
SM
16532020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1654
1655 * jit.c (jit_reader_load_command): Pass current inferior.
1656 (jit_inferior_init): Change parameter type to inferior, use it.
1657 (jit_inferior_created): Remove.
1658 (jit_inferior_created_hook): Pass inferior parameter down.
1659 (_initialize_jit): Use jit_inferior_created_hook instead of
1660 jit_inferior_created.
1661 * jit.h (jit_inferior_created_hook): Add inferior parameter.
1662 * infrun.c (follow_exec): Pass inferior to
1663 jit_inferior_created_hook.
1664
3f66685e
SM
16652020-10-24 Simon Marchi <simon.marchi@efficios.com>
1666
1667 * linux-thread-db.c (check_pid_namespace_match): Add inferior
1668 parameter and use it.
1669 (thread_db_inferior_created): Pass inferior argument.
1670
a0ff652f
SM
16712020-10-24 Simon Marchi <simon.marchi@efficios.com>
1672
1673 * aix-thread.c (aix_thread_inferior_created): Add inferior
1674 parameter.
1675 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
1676 * dummy-frame.c (cleanup_dummy_frames): Likewise.
1677 * jit.c (jit_inferior_created): Likewise.
1678 * linux-thread-db.c (thread_db_inferior_created): Likewise.
1679 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
1680 * observable.h (inferior_created): Likewise.
1681 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1682 * symfile-mem.c (add_vsyscall_page): Likewise.
1683 * infcmd.c (post_create_inferior): Pass inferior argument.
1684
3c67532c
JB
16852020-10-24 Joel Brobecker <brobecker@adacore.com>
1686
1687 GDB 10.1 released.
1688
8747316e
JB
16892020-10-23 Joel Brobecker <brobecker@adacore.com>
1690
1691 * ada-typeprint.c (ada_print_type): Remove superfluous second call
1692 to ada_check_typedef.
1693
1a0ea399
AB
16942020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1695
1696 * f-exp.y (f_parse): Rename to...
1697 (f_language::parser): ...this.
1698 * f-lang.c (f_get_encoding): Rename to...
1699 (f_language::get_encoding): ...this.
1700 (f_op_print_tab): Rename to...
1701 (f_language::op_print_tab): ...this.
1702 (exp_descriptor_f): Rename to...
1703 (f_language::exp_descriptor_tab): ...this.
1704 (class f_language): Moved to f-lang.h.
1705 (f_language::language_arch_info): New function, moved out of class
1706 declaration.
1707 (f_language::search_name_hash): Likewise.
1708 (f_language::lookup_symbol_nonlocal): Likewise.
1709 (f_language::get_symbol_name_matcher_inner): Likewise.
1710 * f-lang.h: Add 'valprint.h' include.
1711 (class f_language): Moved here from f-lang.c.
1712 * f-typeprint.c (f_type_print_args): Delete commented out
1713 declaration.
1714 (f_print_typedef): Rename to...
1715 (f_language::print_typedef): ...this.
1716 (f_print_type): Rename to...
1717 (f_language::print_type): ...this.
1718 (f_type_print_varspec_prefix): Delete declaration and rename to...
1719 (f_language::f_type_print_varspec_prefix): ...this.
1720 (f_type_print_varspec_suffix): Delete declaration and rename to...
1721 (f_language::f_type_print_varspec_suffix): ...this.
1722 (f_type_print_base): Delete declaration and rename to...
1723 (f_language::f_type_print_base): ...this.
1724 * f-valprint.c (f_value_print_inner): Rename to...
1725 (f_language::value_print_inner): ...this.
1726 * parse.c: Delete 'f-lang.h' include.
1727
88cefd9b
AB
17282020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1729
1730 * language.h (language_defn::print_type): Add variable names in
1731 declaration, and update header comment.
1732
5399db93
AB
17332020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1734
1735 * ada-lang.c (ada_language::demangle): Rename to...
1736 (ada_language::demangle_symbol): ...this.
1737 * c-lang.c (cplus_language::demangle): Rename to...
1738 (cplus_language::demangle_symbol): ...this.
1739 * d-lang.c (d_language::demangle): Rename to...
1740 (d_language::demangle_symbol): ...this.
1741 * f-lang.c (f_language::demangle): Rename to...
1742 (f_language::demangle_symbol): ...this.
1743 * go-lang.c (go_language::demangle): Rename to...
1744 (go_language::demangle_symbol): ...this.
1745 * language.c (language_demangle): Update call to demangle_symbol.
1746 (auto_or_unknown_language::demangle): Rename to...
1747 (auto_or_unknown_language::demangle_symbol): ...this.
1748 * language.h (language_defn::demangle): Rename to...
1749 (language_defn::demangle_symbol): ...this.
1750 * objc-lang.c (objc_language::demangle): Rename to...
1751 (objc_language::demangle_symbol): ...this.
1752 * rust-lang.c (rust_language::demangle): Rename to...
1753 (rust_language::demangle_symbol): ...this.
1754
4b2f86ef
AB
17552020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1756
1757 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
1758 (iterate_over_file_blocks): Replace use of macro with the macros
1759 definition.
1760
e74b39de
AB
17612020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1762
1763 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
1764 * valprint.c (maybe_print_array_index): Replace use of macro with
1765 the macros definition.
1766
00c696a6
AB
17672020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1768
1769 * ada-lang.c (ada_language::print_array_index): Call value_print
1770 directly.
1771 * language.c (language_defn::print_array_index): Likewise.
1772 * language.h (LA_VALUE_PRINT): Delete.
1773 * valprint.c (value_print): Call value_print on the
1774 current_language directly.
1775
d3b67c56
AB
17762020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1777
1778 * language.h (LA_PRINT_TYPEDEF): Delete.
1779 * typeprint.c (typedef_print): Call print_typedef directly on the
1780 current_language object.
1781
790e2a12
AB
17822020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1783
1784 * m2-exp.y (m2_parse): Rename to...
1785 (m2_language::parser): ...this. Update function signature.
1786 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
1787 (m2_op_print): Rename to...
1788 (m2_language::op_print_tab): ...this, and make const.
1789 (exp_descriptor_modula2): Rename to...
1790 (m2_language::exp_descriptor_modula2): ...this.
1791 (class m2_language): Move to m2-lang.h.
1792 (m2_language::language_arch_info): New function, moved out of
1793 class declaration.
1794 (m2_language::printchar): New function, body from m2_printchar.
1795 (m2_language::printstr): New function, moved out of class
1796 declaration.
1797 (m2_language::emitchar): Likewise.
1798 * m2-lang.h (m2_parse): Delete declaration.
1799 (m2_print_typedef): Delete declaration.
1800 (m2_value_print_inner): Delete declaration.
1801 (class m2_language): Class declaration moved from m2-lang.c,
1802 larger functions are left in m2-lang.c.
1803 * m2-typeprint.c (m2_print_typedef): Rename to...
1804 (m2_language::print_typedef): ...this, and update function
1805 signature.
1806 * m2-valprint.c (m2_value_print_inner): Rename to...
1807 (m2_language::value_print_inner): ...this, replace use of
1808 LA_PRINT_STRING with a direct call to printstr member function,
1809 and update recursive call.
1810
b01175fc
AB
18112020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1812
1813 * language.c (default_is_string_type_p): Delete, implementation
1814 moved into auto_or_unknown_language::is_string_type_p.
1815 (unk_op_print_tab): Moved into
1816 auto_or_unknown_language::opcode_print_table.
1817 (unknown_language_arch_info): Delete, implementation moved into
1818 auto_or_unknown_language::language_arch_info.
1819 (class auto_or_unknown_language): New class, member functions
1820 copied from unknown_language class, with some updates.
1821 (class unknown_language): Most member functions moved into
1822 auto_or_unknown_language class. Inherit from
1823 auto_or_unknown_language class.
1824 (class auto_language): Inherit from auto_or_unknown_language.
1825 Delete most member functions.
1826
1a97fe8c
HD
18272020-10-22 Hannes Domani <ssbssa@yahoo.de>
1828
1829 * stabsread.c (read_member_functions): Remove gdb_assert.
1830
6b9d0dfd
HD
18312020-10-22 Hannes Domani <ssbssa@yahoo.de>
1832
1833 * gdbtypes.c (init_complex_type): Check target type name.
1834
4b4bb603
SM
18352020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1836
1837 * target-debug.h (target_debug_print_struct_target_ops_p):
1838 Remove.
1839 (target_debug_print_async_callback_ftype_p): Remove.
1840 (target_debug_print_struct_trace_state_variable_p): Remove.
1841 (target_debug_print_struct_traceframe_info_p): Remove.
1842 (target_debug_print_VEC__btrace_block_s__pp): Remove.
1843 (target_debug_print_enum_btrace_format): Remove.
1844 (target_debug_print_enum_info_proc_what): Remove.
1845 (target_debug_print_thread_info_pp): Remove.
1846
24f5300a
SM
18472020-10-22 Simon Marchi <simon.marchi@efficios.com>
1848
1849 * target.h (struct target_ops) <make_corefile_notes>:
1850 Change return type to unique pointer.
1851 * target.c (dummy_make_corefile_notes): Likewise.
1852 * exec.c (struct exec_target) <make_corefile_notes>:
1853 Likewise.
1854 (exec_target::make_corefile_notes): Likewise.
1855 * procfs.c (class procfs_target) <make_corefile_notes>:
1856 Likewise.
1857 (procfs_do_thread_registers): Adjust to unique pointer.
1858 (struct procfs_corefile_thread_data): Add constructor.
1859 <note_data>: Change type to unique pointer.
1860 (procfs_corefile_thread_callback): Adjust to unique pointer.
1861 (procfs_target::make_corefile_notes): Change return type to
1862 unique pointer.
1863 * target-delegates.c: Re-generate.
1864 * gcore.c (write_gcore_file_1): Adjust.
1865 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
1866 New.
1867
5fb4027f
TV
18682020-10-22 Tom de Vries <tdevries@suse.de>
1869
1870 * block.c (find_block_in_blockvector): Make sure the returned block
1871 contains pc.
1872
4a636814
SM
18732020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1874
1875 PR gdb/26693
1876 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
1877 parameter.
1878 (load_cu): Pass existing CU.
1879 (process_imported_unit_die): Likewise.
1880 (follow_die_offset): Likewise.
1881
1bd57575
LM
18822020-10-22 Luis Machado <luis.machado@linaro.org>
1883
1884 * corelow.c (core_target::xfer_partial): Also check for an empty
1885 m_core_unavailable_mappings vector.
1886
6b4c676c
AB
18872020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1888
1889 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
1890 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
1891 * f-exp.y (arglist): Allow for a series of subranges.
1892 (subrange): Add cases for subranges with strides.
1893 * f-lang.c (value_f90_subarray): Catch use of array strides and
1894 throw an error.
1895 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
1896
f2d8e4c5
AB
18972020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1898
1899 * expprint.c (print_subexp_standard): Change enum range_type to
1900 range_flag and rename variables to match.
1901 (dump_subexp_body_standard): Likewise.
1902 * expression.h (enum range_type): Rename to...
1903 (enum range_flag): ...this.
1904 (range_types): Rename to...
1905 (range_flags): ...this.
1906 * f-lang.c (value_f90_subarray): Change enum range_type to
1907 range_flag and rename variables to match.
1908 * parse.c (operator_length_standard): Likewise.
1909 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
1910 range_type to range_flag.
1911 * rust-lang.c (rust_evaluate_funcall): Likewise.
1912 (rust_range): Likewise.
1913 (rust_compute_range): Likewise.
1914 (rust_subscript): Likewise.
1915
2f1b18db
AB
19162020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1917
1918 * expprint.c (print_subexp_standard): Update to reflect changes to
1919 enum range_type.
1920 (dump_subexp_body_standard): Likewise.
1921 * expression.h (enum range_type): Convert to a bit field enum, and
1922 make the enum unsigned.
1923 * f-exp.y (subrange): Update to reflect changes to enum
1924 range_type.
1925 * f-lang.c (value_f90_subarray): Likewise.
1926 * parse.c (operator_length_standard): Likewise.
1927 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
1928 * rust-lang.c (rust_range): Likewise.
1929 (rust_compute_range): Likewise.
1930 (rust_subscript): Likewise.
1931
a46d1843
SM
19322020-10-21 Simon Marchi <simon.marchi@efficios.com>
1933
1934 * infrun.c (displaced_step_in_progress_thread): Fix comment.
1935 (displaced_step_in_progress): Fix comment.
1936
c21f37a8
SM
19372020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1938
1939 * gdbarch.sh (make_corefile_notes): Return unique pointer.
1940 * gdbarch.c: Re-generate.
1941 * gdbarch.h: Re-generate.
1942 * gcore.c (write_gcore_file_1): Adjust.
1943 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
1944 constructor.
1945 <note_data>: Change type to unique pointer.
1946 <abort_iteration>: Change type to bool.
1947 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
1948 (fbsd_collect_thread_registers): Return void, adjust.
1949 (struct fbsd_corefile_thread_data): Add construtor.
1950 <note_data>: Change type to unique pointer.
1951 (fbsd_corefile_thread): Adjust.
1952 (fbsd_make_corefile_notes): Return unique pointer, adjust.
1953 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
1954 to unique pointer, adjust.
1955 (struct linux_collect_regset_section_cb_data): Add constructor.
1956 <note_data>: Change type to unique pointer.
1957 <abort_iteration>: Change type to bool.
1958 (linux_collect_thread_registers): Return void, adjust.
1959 (struct linux_corefile_thread_data): Add constructor.
1960 <note_data>: Change type to unique pointer.
1961 (linux_corefile_thread): Adjust.
1962 (linux_make_corefile_notes): Return unique pointer, adjust.
1963
07fbbd01
SM
19642020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1965
1966 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
1967 * gdbarch.c: Re-generate.
1968 * gdbarch.h: Re-generate.
1969 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
1970 bool.
1971 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1972 Likewise.
1973 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
1974 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
1975 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
1976 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
1977
39535193
SM
19782020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1979
1980 * gdbarch.sh: Make generated predicates return bool.
1981 * gdbarch.c: Re-generate.
1982 * gdbarch.h: Re-generate.
1983
ad523d01
TT
19842020-10-20 Tom Tromey <tom@tromey.com>
1985
1986 * varobj-iter.h (struct varobj_item): Remove typedef.
1987
c4464ade
SM
19882020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1989
1990 * infrun.c (currently_stepping): Change int to bool
1991 (maybe_software_singlestep): Likewise.
1992 (show_stop_on_solib_events): Likewise.
1993 (stepping_past_nonsteppable_watchpoint): Likewise.
1994 (displaced_step_in_progress_any_inferior): Likewise.
1995 (displaced_step_in_progress_thread): Likewise.
1996 (keep_going_stepped_thread): Likewise.
1997 (thread_still_needs_step_over): Likewise.
1998 (start_step_over): Likewise.
1999 (do_target_resume): Likewise.
2000 (resume_1): Likewise.
2001 (clear_proceed_status): Likewise.
2002 (thread_still_needs_step_over_bp): Likewise.
2003 (proceed): Likewise.
2004 (switch_back_to_stepped_thread): Likewise.
2005 (adjust_pc_after_break): Likewise.
2006 (stepped_in_from): Likewise.
2007 (handle_stop_requested): Likewise.
2008 (handle_syscall_event): Likewise.
2009 (handle_no_resumed): Likewise.
2010 (handle_inferior_event): Likewise.
2011 (finish_step_over): Likewise.
2012 (handle_signal_stop): Likewise.
2013 (process_event_stop_test): Likewise.
2014
2eb20436
SM
20152020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2016
2017 * infrun.c (get_displaced_stepping_state): Fix comment.
2018
e0c45ded
AS
20192020-10-20 Andreas Schwab <schwab@linux-m68k.org>
2020
2021 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
2022
22cc388e
TT
20232020-10-19 Tom Tromey <tromey@adacore.com>
2024
2025 PR tui/26719
2026 * tui/tui-winsource.h (struct tui_source_window_base)
2027 <refresh_window>: Rename from refresh_pad.
2028 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2029 Rename from refresh_pad.
2030 (tui_source_window_base::show_source_content)
2031 (tui_source_window_base::do_scroll_horizontal): Update.
2032
3c6eb4d4
TBA
20332020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2034
2035 * thread.c (_initialize_thread): Fine-tune the help text of
2036 'info threads'.
2037
26703721
TBA
20382020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2039
2040 * frame.c: Remove the unused 'uinteger_option_def' type alias.
2041
61c26be8
MS
20422020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
2043
2044 * breakpoint.c (handle_jit_event): Add an argument, change how
2045 `jit_event_handler` is called.
2046
932539d7
TT
20472020-10-17 Tom Tromey <tom@tromey.com>
2048
2049 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
2050 (scan_xcoff_symtab): Update.
2051 * psymtab.h (class psymtab_storage) <global_psymbols,
2052 static_psymbols, current_global_psymbols,
2053 current_static_psymbols>: Remove.
2054 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
2055 (match_partial_symbol, lookup_partial_symbol): Update.
2056 (print_partial_symbols): Change parameters.
2057 (dump_psymtab, recursively_search_psymtabs)
2058 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
2059 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
2060 (concat): Remove.
2061 (end_psymtab_common): Simplify.
2062 (append_psymbol_to_list): Change parameters.
2063 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
2064 (init_psymbol_list): Simplify.
2065 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2066 * psympriv.h (struct partial_symtab) <empty>: New method.
2067 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
2068 Remove.
2069 <global_psymbols, static_psymbols>: New members.
2070 <add_psymbol>: New methods.
2071 (add_psymbol_to_list): Don't declare.
2072 (psymbol_placement): Move earlier.
2073 * mdebugread.c (parse_partial_symbols): Update.
2074 (handle_psymbol_enumerators): Change parameters.
2075 (mdebug_expand_psymtab): Update.
2076 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2077 (add_partial_symbol): Update.
2078 * dwarf2/index-write.c (write_psymbols): Change parameters.
2079 (write_one_signatured_type): Update.
2080 (recursively_count_psymbols): Update.
2081 (recursively_write_psymbols): Update.
2082 (class debug_names) <recursively_write_psymbols>: Update.
2083 <write_psymbols>: Change parameters.
2084 <write_one_signatured_type>: Update.
2085 * dbxread.c (read_dbx_symtab): Update.
2086 (dbx_end_psymtab): Use partial_symtab::empty.
2087 * ctfread.c (struct ctf_context) <pst>: New member.
2088 (create_partial_symtab): Set it.
2089 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
2090 (scan_partial_symbols): Use the psymtab's context. Update.
2091
cfabbd35
TT
20922020-10-17 Tom Tromey <tom@tromey.com>
2093
2094 * valprint.c (generic_value_print): Remove comment.
2095 * m2-valprint.c (m2_value_print_inner): Remove comment.
2096 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
2097 type.
2098
520596f2
TV
20992020-10-17 Tom de Vries <tdevries@suse.de>
2100
2101 PR symtab/26317
2102 * source.c (select_source_symtab): Handling sal.symtab == NULL for
2103 symbol main.
2104
76547ab3
TV
21052020-10-14 Tom de Vries <tdevries@suse.de>
2106
2107 PR gdb/26733
2108 * solib.c (solib_contains_address_p): Handle
2109 'solib->sections == nullptr'.
2110
d3a07122
SM
21112020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2112
2113 PR gdb/26642
2114 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
2115 target can't do async.
2116 * target.c (target_wait): Assert that we don't pass
2117 TARGET_WNOHANG to a target that can't async.
2118
1b71cfcf
KR
21192020-10-13 Kamil Rytarowski <n54@gmx.com>
2120
2121 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
2122 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
2123 * alpha-bsd-nat.c: Adjust include.
2124 * alpha-bsd-tdep.h: Adjust comment.
2125 * alpha-nbsd-tdep.c: Rename to ...
2126 * alpha-netbsd-tdep.c: ... this, adjust include.
2127 * amd64-nbsd-nat.c: Rename to ...
2128 * amd64-netbsd-nat.c: ... this, adjust include.
2129 * amd64-nbsd-tdep.c: Rename to ...
2130 * amd64-netbsd-tdep.c: ... this, adjust include.
2131 * amd64-tdep.h: Adjust include.
2132 * arm-nbsd-nat.c: Rename to ...
2133 * arm-netbsd-nat.c: ... this, adjust include.
2134 * arm-nbsd-tdep.c: Rename to ...
2135 * arm-netbsd-tdep.c: ... this, adjust include.
2136 * arm-nbsd-tdep.h: Rename to ...
2137 * arm-netbsd-tdep.h: ... this, adjust include.
2138 * configure.nat: Adjust file lists.
2139 * configure.tgt: Likewise.
2140 * hppa-nbsd-nat.c: Rename to ...
2141 * hppa-netbsd-nat.c: ... this, adjust include.
2142 * hppa-nbsd-tdep.c: Rename to ...
2143 * hppa-netbsd-tdep.c: ... this, adjust include.
2144 * i386-nbsd-nat.c: Rename to ...
2145 * i386-netbsd-nat.c: ... this, adjust include.
2146 * i386-nbsd-tdep.c: Rename to ...
2147 * i386-netbsd-tdep.c: ... this, adjust include.
2148 * m68k-bsd-nat.c: Adjust include.
2149 * mips-nbsd-nat.c: Rename to ...
2150 * mips-netbsd-nat.c: ... this, adjust include.
2151 * mips-nbsd-tdep.c: Rename to ...
2152 * mips-netbsd-tdep.c: ... this, adjust include.
2153 * mips-nbsd-tdep.h: Rename to ...
2154 * mips-netbsd-tdep.h: ... this.
2155 * nbsd-nat.c: Rename to ...
2156 * netbsd-nat.c: ... this, adjust include.
2157 * nbsd-nat.h: Rename to ...
2158 * netbsd-nat.h: ... this, adjust include.
2159 * nbsd-tdep.c: Rename to ...
2160 * netbsd-tdep.c: ... this, adjust include.
2161 * nbsd-tdep.h: Rename to ...
2162 * netbsd-tdep.h: ... this.
2163 * ppc-nbsd-nat.c: Rename to ...
2164 * ppc-netbsd-nat.c: ... this, adjust include.
2165 * ppc-nbsd-tdep.c: Rename to ...
2166 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
2167 * ppc-nbsd-tdep.h: Rename to ...
2168 * ppc-netbsd-tdep.h: ... this.
2169 * sh-nbsd-nat.c: Rename to ...
2170 * sh-netbsd-nat.c: ... this, adjust include.
2171 * sh-nbsd-tdep.c: Rename to ...
2172 * sh-netbsd-tdep.c: ... this, adjust include.
2173 * sparc-nbsd-nat.c: Rename to ...
2174 * sparc-netbsd-nat.c: ... this.
2175 * sparc-nbsd-tdep.c: Rename to ...
2176 * sparc-netbsd-tdep.c: ... this, adjust include.
2177 * sparc64-nbsd-nat.c: Rename to ...
2178 * sparc64-netbsd-nat.c: ... this.
2179 * sparc64-nbsd-tdep.c: Rename to ...
2180 * sparc64-netbsd-tdep.c: ... this, adjust include.
2181 * sparc64-tdep.h: Adjust comment.
2182 * vax-bsd-nat.c: Adjust include.
2183 * vax-nbsd-tdep.c: Rename to ...
2184 * vax-netbsd-tdep.c: ... this, adjust include.
2185
d7a78e5c
TT
21862020-10-12 Tom Tromey <tom@tromey.com>
2187
2188 * target.h (struct target_ops) <get_section_table>: Update.
2189 (target_get_section_table): Update.
2190 * target.c (target_get_section_table, target_section_by_addr)
2191 (memory_xfer_partial_1): Update.
2192 * target-section.h (target_section_table): Now an alias.
2193 * target-delegates.c: Rebuild.
2194 * target-debug.h (target_debug_print_target_section_table_p):
2195 Rename from target_debug_print_struct_target_section_table_p.
2196 * symfile.c (build_section_addr_info_from_section_table): Update.
2197 * solib.c (solib_map_sections, solib_contains_address_p): Update.
2198 * solib-svr4.c (scan_dyntag): Update.
2199 * solib-dsbt.c (scan_dyntag): Update.
2200 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2201 Update.
2202 * record-full.c (record_full_core_target::xfer_partial): Update.
2203 * progspace.h (struct program_space) <target_sections>: Update.
2204 * exec.h (print_section_info): Update.
2205 * exec.c (exec_target::close, build_section_table)
2206 (add_target_sections, add_target_sections_of_objfile)
2207 (remove_target_sections, exec_on_vfork)
2208 (section_table_available_memory)
2209 (section_table_xfer_memory_partial)
2210 (exec_target::get_section_table, exec_target::xfer_partial)
2211 (print_section_info, set_section_command)
2212 (exec_set_section_address, exec_target::has_memory): Update.
2213 * corelow.c (core_target::build_file_mappings)
2214 (core_target::xfer_partial, core_target::info_proc_mappings)
2215 (core_target::info_proc_mappings): Update.
2216 * bfd-target.c (class target_bfd): Update
2217
eda214ce
TT
22182020-10-12 Tom Tromey <tom@tromey.com>
2219
2220 * progspace.c (program_space::~program_space): Don't call
2221 clear_section_table.
2222 * exec.h (clear_section_table): Don't declare.
2223 * exec.c (exec_target::close): Update.
2224 (clear_section_table): Remove.
2225
91840ee3
TT
22262020-10-12 Tom Tromey <tom@tromey.com>
2227
2228 * exec.c (add_target_sections_of_objfile): Simplify.
2229
2d128614
TT
22302020-10-12 Tom Tromey <tom@tromey.com>
2231
2232 * solib.c (solib_map_sections): Update.
2233 * record-full.c (record_full_core_open_1): Update.
2234 * exec.h (build_section_table): Return a target_section_table.
2235 * exec.c (exec_file_attach): Update.
2236 (build_section_table): Return a target_section_table.
2237 * corelow.c (core_target::core_target): Update.
2238 * bfd-target.c (target_bfd::target_bfd): Update.
2239
bb2a6777
TT
22402020-10-12 Tom Tromey <tom@tromey.com>
2241
2242 * target.c (target_section_by_addr, memory_xfer_partial_1):
2243 Update.
2244 * target-section.h (struct target_section_table): Use
2245 std::vector.
2246 * symfile.h (build_section_addr_info_from_section_table): Take a
2247 target_section_table.
2248 * symfile.c (build_section_addr_info_from_section_table): Take a
2249 target_section_table.
2250 * solist.h (struct so_list) <sections>: Change type.
2251 <sections_end>: Remove.
2252 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
2253 (solib_contains_address_p): Update.
2254 * solib-svr4.c (scan_dyntag): Update.
2255 * solib-dsbt.c (scan_dyntag): Update.
2256 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2257 Update.
2258 * record-full.c (record_full_core_start, record_full_core_end):
2259 Remove.
2260 (record_full_core_sections): New global.
2261 (record_full_core_open_1, record_full_core_target::xfer_partial):
2262 Update.
2263 * exec.h (build_section_table, section_table_xfer_memory_partial)
2264 (add_target_sections): Take a target_section_table.
2265 * exec.c (exec_file_attach, clear_section_table): Update.
2266 (resize_section_table): Remove.
2267 (build_section_table, add_target_sections): Take a
2268 target_section_table.
2269 (add_target_sections_of_objfile, remove_target_sections)
2270 (exec_on_vfork): Update.
2271 (section_table_available_memory): Take a target_section_table.
2272 (section_table_read_available_memory): Update.
2273 (section_table_xfer_memory_partial): Take a target_section_table.
2274 (print_section_info, set_section_command)
2275 (exec_set_section_address, exec_target::has_memory): Update.
2276 * corelow.c (class core_target) <m_core_section_table,
2277 m_core_file_mappings>: Remove braces.
2278 <~core_target>: Remove.
2279 (core_target::core_target): Update.
2280 (core_target::~core_target): Remove.
2281 (core_target::build_file_mappings)
2282 (core_target::xfer_memory_via_mappings)
2283 (core_target::xfer_partial, core_target::info_proc_mappings):
2284 Update.
2285 * bfd-target.c (target_bfd::xfer_partial): Update.
2286 (target_bfd::target_bfd): Update.
2287 (target_bfd::~target_bfd): Remove.
2288
7b466b10
TT
22892020-10-12 Tom Tromey <tom@tromey.com>
2290
2291 * target.h (struct target_section, struct target_section_table):
2292 Move to target-section.h.
2293 * target-section.h: New file.
2294
87a37e5e
PA
22952020-10-12 Pedro Alves <pedro@palves.net>
2296
2297 PR exp/26602
2298 * valops.c (struct struct_field_searcher): New.
2299 (update_search_result): Rename to ...
2300 (struct_field_searcher::update_result): ... this. Simplify
2301 prototype. Record all found fields.
2302 (do_search_struct_field): Rename to ...
2303 (struct_field_searcher::search): ... this. Simplify prototype.
2304 Maintain stack of visited baseclass path. Call update_result for
2305 fields too. Keep searching fields in baseclasses instead of
2306 stopping at the first found field.
2307 (search_struct_field): Use struct_field_searcher. When looking
2308 for fields, report ambiguous access attempts.
2309
9370fd51
AB
23102020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
2311
2312 * frame.c (inside_main_func): Check full symbols as well as
2313 minimal symbols.
2314
59c8a30b
JB
23152020-10-09 Joel Brobecker <brobecker@adacore.com>
2316
2317 * ada-lang.c (advance_wild_match): Rewrite the function's
2318 description. Change the type of target0, t0 and t1 to char.
2319
7c184d33
TT
23202020-10-09 Tom Tromey <tromey@adacore.com>
2321
2322 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
2323
5c4258f4
TT
23242020-10-09 Tom Tromey <tromey@adacore.com>
2325
2326 * ada-lang.h (ada_encode): Return std::string.
2327 * ada-lang.c (ada_encode_1): Return std::string.
2328 (ada_encode): Likewise.
2329 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
2330 Update.
2331 * ada-exp.y (block_lookup, write_var_or_type): Update.
2332
3d87245c
HD
23332020-10-09 Hannes Domani <ssbssa@yahoo.de>
2334
2335 PR exp/26714
2336 * printcmd.c (print_formatted): Handle void results as
2337 unformatted prints.
2338
bbb826f5
AB
23392020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2340
2341 * arch/aarch32.c (aarch32_create_target_description): Release the
2342 target_desc_up as late as possible.
2343 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2344 * arch/amd64.c (amd64_create_target_description): Likewise.
2345 * arch/arc.c (arc_create_target_description): Return a
2346 target_desc_up, don't release it.
2347 * arch/arc.h (arc_create_target_description): Update declaration.
2348 (arc_lookup_target_description): Move target_desc_up into the
2349 cache, and return a borrowed pointer.
2350 * arch/arm.c (arm_create_target_description): Release the
2351 target_desc_up as late as possible.
2352 * arch/i386.c (i386_create_target_description): Likewise.
2353 * arch/riscv.h (riscv_create_target_description): Update
2354 declaration to match definition.
2355 * arch/tic6x.c (tic6x_create_target_description): Release the
2356 target_desc_up as late as possible.
2357
361cb219
AB
23582020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2359
2360 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
2361 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
2362
f5c4b229
JV
23632020-10-09 Jan Vrany <jan.vrany@labware.com>
2364
2365 * source.c (directory_command): Notify observers that "directories"
2366 parameter has changed.
2367
b2701685
TT
23682020-10-08 Tom Tromey <tom@tromey.com>
2369
2370 * cli/cli-cmds.c (print_disassembly): Style function name and
2371 addresses. Add _() wrappers.
2372
ada508b6
SV
23732020-10-08 Shahab Vahedi <shahab@synopsys.com>
2374
2375 * NEWS: Mention ARC support in GDBserver.
2376
51a948fd
AB
23772020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
2378
2379 * arch/aarch32.c (aarch32_create_target_description): Release
2380 unique_ptr returned from allocate_target_description.
2381 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2382 * arch/amd64.c (amd64_create_target_description): Likewise.
2383 * arch/arc.c (arc_create_target_description): Likewise.
2384 * arch/arm.c (arm_create_target_description): Likewise.
2385 * arch/i386.c (i386_create_target_description): Likewise.
2386 * arch/riscv.c (riscv_create_target_description): Update return
2387 type. Handle allocate_target_description returning a unique_ptr.
2388 (riscv_lookup_target_description): Update to handle unique_ptr.
2389 * arch/tic6x.c (tic6x_create_target_description): Release
2390 unique_ptr returned from allocate_target_description.
2391 * features/microblaze-with-stack-protect.c: Regenerate.
2392 * features/microblaze.c: Regenerate.
2393 * features/mips-dsp-linux.c: Regenerate.
2394 * features/mips-linux.c: Regenerate.
2395 * features/mips64-dsp-linux.c: Regenerate.
2396 * features/mips64-linux.c: Regenerate.
2397 * features/nds32.c: Regenerate.
2398 * features/nios2.c: Regenerate.
2399 * features/or1k.c: Regenerate.
2400 * features/rs6000/powerpc-32.c: Regenerate.
2401 * features/rs6000/powerpc-32l.c: Regenerate.
2402 * features/rs6000/powerpc-403.c: Regenerate.
2403 * features/rs6000/powerpc-403gc.c: Regenerate.
2404 * features/rs6000/powerpc-405.c: Regenerate.
2405 * features/rs6000/powerpc-505.c: Regenerate.
2406 * features/rs6000/powerpc-601.c: Regenerate.
2407 * features/rs6000/powerpc-602.c: Regenerate.
2408 * features/rs6000/powerpc-603.c: Regenerate.
2409 * features/rs6000/powerpc-604.c: Regenerate.
2410 * features/rs6000/powerpc-64.c: Regenerate.
2411 * features/rs6000/powerpc-64l.c: Regenerate.
2412 * features/rs6000/powerpc-7400.c: Regenerate.
2413 * features/rs6000/powerpc-750.c: Regenerate.
2414 * features/rs6000/powerpc-860.c: Regenerate.
2415 * features/rs6000/powerpc-altivec32.c: Regenerate.
2416 * features/rs6000/powerpc-altivec32l.c: Regenerate.
2417 * features/rs6000/powerpc-altivec64.c: Regenerate.
2418 * features/rs6000/powerpc-altivec64l.c: Regenerate.
2419 * features/rs6000/powerpc-e500.c: Regenerate.
2420 * features/rs6000/powerpc-e500l.c: Regenerate.
2421 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
2422 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
2423 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
2424 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
2425 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
2426 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
2427 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
2428 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
2429 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
2430 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
2431 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
2432 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
2433 * features/rs6000/powerpc-vsx32.c: Regenerate.
2434 * features/rs6000/powerpc-vsx32l.c: Regenerate.
2435 * features/rs6000/powerpc-vsx64.c: Regenerate.
2436 * features/rs6000/powerpc-vsx64l.c: Regenerate.
2437 * features/rs6000/rs6000.c: Regenerate.
2438 * features/rx.c: Regenerate.
2439 * features/s390-gs-linux64.c: Regenerate.
2440 * features/s390-linux32.c: Regenerate.
2441 * features/s390-linux32v1.c: Regenerate.
2442 * features/s390-linux32v2.c: Regenerate.
2443 * features/s390-linux64.c: Regenerate.
2444 * features/s390-linux64v1.c: Regenerate.
2445 * features/s390-linux64v2.c: Regenerate.
2446 * features/s390-te-linux64.c: Regenerate.
2447 * features/s390-tevx-linux64.c: Regenerate.
2448 * features/s390-vx-linux64.c: Regenerate.
2449 * features/s390x-gs-linux64.c: Regenerate.
2450 * features/s390x-linux64.c: Regenerate.
2451 * features/s390x-linux64v1.c: Regenerate.
2452 * features/s390x-linux64v2.c: Regenerate.
2453 * features/s390x-te-linux64.c: Regenerate.
2454 * features/s390x-tevx-linux64.c: Regenerate.
2455 * features/s390x-vx-linux64.c: Regenerate.
2456 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
2457 from allocate_target_description.
2458 * target-descriptions.c (allocate_target_description): Update
2459 return type.
2460 (print_c_tdesc::visit_pre): Release unique_ptr returned from
2461 allocate_target_description.
2462
485c47e5
TT
24632020-10-07 Tom Tromey <tromey@adacore.com>
2464
2465 * unittests/search-memory-selftests.c: New file.
2466 * Makefile.in (SELFTESTS_SRCS): Add
2467 unittests/search-memory-selftests.c.
2468
3a135a91
TT
24692020-10-07 Tom Tromey <tromey@adacore.com>
2470
2471 PR gdb/16930:
2472 * findcmd.c (_initialize_mem_search): Mention that the range is
2473 inclusive.
2474
4a72de73
TT
24752020-10-07 Tom Tromey <tromey@adacore.com>
2476
2477 * target.h (simple_search_memory): Don't declare.
2478 * target.c (simple_search_memory): Move to gdbsupport.
2479 (default_search_memory): Update.
2480 * remote.c (remote_target::search_memory): Update.
2481
a038ffd8
SM
24822020-10-07 Simon Marchi <simon.marchi@efficios.com>
2483
2484 * Makefile.in (COMPILE): Add CXXFLAGS.
2485 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
2486 (check-headers): Add CXXFLAGS.
2487
cc463201
AK
24882020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
2489
2490 * arc-linux-tdep.h: New file.
2491 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
2492 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
2493 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
2494 arc_linux_gregset, arc_linux_v2_regset,
2495 arc_linux_iterate_over_regset_sections,
2496 arc_linux_core_read_description): Implement.
2497 (arc_linux_init_osabi): Set iterate_over_regset_sections.
2498 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
2499 (arc_gdbarch_features_create): Add.
2500 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
2501
e4bd363f
SV
25022020-10-07 Shahab Vahedi <shahab@synopsys.com>
2503
2504 * arch/arc.h: Rename "arc_gdbarch_features" to
2505 "arc_arch_features".
2506 * arc-tdep.h: Likewise.
2507 * arc-tdep.c: Likewise.
2508
b68bef99
TBA
25092020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2510
2511 * infcmd.c (attach_command): Remove the redundant call to
2512 `clear_proceed_status`.
2513
4641551a
KR
25142020-10-07 Kamil Rytarowski <n54@gmx.com>
2515
2516 * nat/netbsd-nat.c (write_memory, read_memory): Update.
2517
91e5e8db
KR
25182020-10-07 Kamil Rytarowski <n54@gmx.com>
2519
2520 * nat/netbsd-nat.c (write_memory, read_memory): Add.
2521 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
2522 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
2523
64c03bdb
SM
25242020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
2525
2526 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
2527 (_initialize_break_catch_sig): Don't allocate array.
2528
31a8f60f
AB
25292020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
2530
2531 * symtab.c (find_pc_line): Return unmapped addresses when the
2532 requested address is also unmapped.
2533
9e6dbd8b
SM
25342020-10-05 Simon Marchi <simon.marchi@efficios.com>
2535
2536 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
2537 tui/tui-out.h.
2538
a1d217e8
SM
25392020-10-05 Simon Marchi <simon.marchi@efficios.com>
2540
2541 * amd64-windows-tdep.c (amd64_windows_return_value): Use
2542 type::is_vector instead of TYPE_VECTOR.
2543
7d144117
SM
25442020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
2545
2546 * auto-load.c (auto_load_objfile_script_1): Don't use
2547 debugfile_holder as temporary variable when stripping drive
2548 letter.
2549
cd096ec8
HD
25502020-10-05 Hannes Domani <ssbssa@yahoo.de>
2551
2552 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
2553 Add TYPE_CODE_COMPLEX.
2554 (amd64_windows_return_value): Fix types returned via XMM0.
2555
b58e7f72
AH
25562020-10-05 Alan Hayward <alan.hayward@arm.com>
2557
2558 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
2559 AArch64/ARM maintainers.
2560
8d378f27
SM
25612020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
2562
2563 * NEWS: Mention set/show debug event-loop.
2564
d5519913
TT
25652020-10-02 Tom Tromey <tromey@adacore.com>
2566
2567 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
2568 REG_EXTENDED.
2569
18b67edc
SM
25702020-10-02 Simon Marchi <simon.marchi@efficios.com>
2571
2572 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
2573 * procfs.c (procfs_inferior_created): Remove.
2574 (_initialize_procfs): Don't register procfs_inferior_created.
2575
6b01403b
SM
25762020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2577
2578 * async-event.c (invoke_async_signal_handlers): Add debug
2579 print.
2580 (check_async_event_handlers): Likewise.
2581 * event-top.c (show_debug_event_loop): New function.
2582 (_initialize_event_top): Register "set debug event-loop"
2583 setting.
2584
ba988419
SM
25852020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2586
2587 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
2588 * debug.h: Remove.
2589 * infrun.c: Include gdbsupport/common-debug.h.
2590 * linux-nat.c: Likewise.
2591
db20ebdf
SM
25922020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2593
2594 * async-event.h (create_async_signal_handler): Add name
2595 parameter.
2596 (create_async_event_handler): Likewise.
2597 * async-event.c (struct async_signal_handler) <name>: New field.
2598 (struct async_event_handler) <name>: New field.
2599 (create_async_signal_handler): Assign name.
2600 (create_async_event_handler): Assign name.
2601 * event-top.c (async_init_signals): Pass name when creating
2602 handler.
2603 * infrun.c (_initialize_infrun): Likewise.
2604 * record-btrace.c (record_btrace_push_target): Likewise.
2605 * record-full.c (record_full_open): Likewise.
2606 * remote-notif.c (remote_notif_state_allocate): Likewise.
2607 * remote.c (remote_target::open_1): Likewise.
2608 * tui/tui-win.c (tui_initialize_win): Likewise.
2609
2554f6f5
SM
26102020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2611
2612 * async-event.c (initialize_async_signal_handlers): Pass name to
2613 add_file_handler
2614 * event-top.c (ui_register_input_event_handler): Likewise.
2615 * linux-nat.c (linux_nat_target::async): Likewise.
2616 * run-on-main-thread.c (_initialize_run_on_main_thread):
2617 Likewise
2618 * ser-base.c (reschedule): Likewise.
2619 (ser_base_async): Likewise.
2620 * tui/tui-io.c: Likewise.
2621 * top.h (struct ui) <num>: New field.
2622 * top.c (highest_ui_num): New variable.
2623 (ui::ui): Initialize num.
2624
a7aba266
SM
26252020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2626
2627 * observable.h <inferior_created>: Remove parameters. Update all
2628 listeners.
2629 * inferior.h (post_create_inferior): Remove target parameter.
2630 Update all callers.
2631
048fde1e 26322020-10-02 Nitika Achra <Nitika.Achra@amd.com>
2633
2634 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
2635 and DW_MACRO_undef_strx.
2636 (dwarf_decode_macros): Likewise
2637 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
2638 which is the value of DW_AT_str_offsets_base.
2639 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
2640 str_offsets_base.
2641
064280be
KR
26422020-10-01 Kamil Rytarowski <n54@gmx.com>
2643
2644 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
2645
6ff33035
KR
26462020-10-01 Kamil Rytarowski <n54@gmx.com>
2647
2648 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
2649 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
2650
1eb6eb79
KR
26512020-10-01 Kamil Rytarowski <n54@gmx.com>
2652
2653 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
2654
95eb9e54
TV
26552020-09-30 Tom de Vries <tdevries@suse.de>
2656
2657 PR symtab/26683
2658 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
2659
cae21f8e
TT
26602020-09-30 Tom Tromey <tromey@adacore.com>
2661
2662 * dwarf2/read.c (handle_variant): Use constant_value.
2663
529908cb
TT
26642020-09-29 Tom Tromey <tom@tromey.com>
2665
2666 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
2667 (read_file_scope, dwarf2_get_pc_bounds)
2668 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
2669 (read_structure_type, handle_struct_member_die)
2670 (read_enumeration_type, read_array_type, read_set_type)
2671 (read_tag_pointer_type, read_tag_reference_type)
2672 (read_subroutine_type, read_base_type, read_subrange_type)
2673 (read_full_die_1, partial_die_info::read)
2674 (partial_die_info::read, by, new_symbol)
2675 (dwarf2_const_value_data, dwarf2_const_value_attr)
2676 (dump_die_shallow, dwarf2_fetch_constant_bytes)
2677 (prepare_one_comp_unit): Update.
2678 * dwarf2/attribute.h (DW_UNSND): Remove.
2679
c45bc3f8
TT
26802020-09-29 Tom Tromey <tom@tromey.com>
2681
2682 * dwarf2/read.c (read_func_scope, prototyped_function_p)
2683 (read_subroutine_type, partial_die_info::read)
2684 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
2685 (dwarf2_add_member_fn): Update.
2686 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
2687 * dwarf2/attribute.c (attribute::as_boolean): New method.
2688
23dca5c3
TT
26892020-09-29 Tom Tromey <tom@tromey.com>
2690
2691 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
2692 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
2693 method.
2694 * dwarf2/attribute.c (attribute::as_virtuality): New method.
2695
52c14d11
TT
26962020-09-29 Tom Tromey <tom@tromey.com>
2697
2698 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
2699 the attribute's form.
2700
e8e5c158
TT
27012020-09-29 Tom Tromey <tom@tromey.com>
2702
2703 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
2704 (dwarf2_add_member_fn): Update.
2705 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
2706 * dwarf2/attribute.c (attribute::defaulted): New method, from
2707 is_valid_DW_AT_defaulted.
2708
d4df075e
TT
27092020-09-29 Tom Tromey <tom@tromey.com>
2710
2711 * dwarf2/read.c (dw2_get_file_names_reader)
2712 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
2713 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
2714 (dwarf2_symbol_mark_computed): Use as_unsigned.
2715 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
2716 method.
2717 <form_is_section_offset>: Update comment.
2718
bf23a268
TT
27192020-09-29 Tom Tromey <tom@tromey.com>
2720
2721 * dwarf2/read.c (dwarf2_access_attribute): Rename from
2722 dwarf2_default_access_attribute. Look up attribute.
2723 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
2724 Update.
2725
7a5f294d
TT
27262020-09-29 Tom Tromey <tom@tromey.com>
2727
2728 * dwarf2/read.c (skip_one_die): Update.
2729 (read_full_die_1): Change how reprocessing is done.
2730 (partial_die_info::read): Update.
2731 (read_attribute_value): Remove need_reprocess parameter.
2732 (read_attribute): Likewise.
2733 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
2734 New method.
2735
36d378cf
TT
27362020-09-29 Tom Tromey <tom@tromey.com>
2737
2738 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
2739 (dwarf2_const_value_attr, dump_die_shallow)
2740 (dwarf2_fetch_constant_bytes): Update.
2741 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
2742 comment.
2743 <set_address>: New method.
2744 (DW_ADDR): Remove.
2745 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
2746 (attribute::as_string, attribute::as_address): Add assert.
2747
fe56917a
TT
27482020-09-29 Tom Tromey <tom@tromey.com>
2749
2750 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
2751 (read_attribute_reprocess, read_attribute_value): Update.
2752 (read_attribute): Clear requires_reprocessing.
2753 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
2754 form_requires_reprocessing>: New methods.
2755 <string_init>: Clear requires_reprocessing.
2756 <set_unsigned_reprocess>: New method.
2757 <name>: Shrink by one bit.
2758 <requires_reprocessing>: New member.
2759 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
2760 method.
2761
414ad644
TT
27622020-09-29 Tom Tromey <tom@tromey.com>
2763
2764 * dwarf2/read.c (read_attribute_value): Update.
2765 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
2766 set_unsigned>: New methods.
2767 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
2768
1bc397c5
TT
27692020-09-29 Tom Tromey <tom@tromey.com>
2770
2771 * dwarf2/read.c (get_alignment, read_array_order)
2772 (read_attribute_value, dwarf2_const_value_attr)
2773 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
2774 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
2775 New methods.
2776 (DW_SND): Remove.
2777
630ed6b9
TT
27782020-09-29 Tom Tromey <tom@tromey.com>
2779
2780 * dwarf2/read.c (read_attribute_value, lookup_die_type)
2781 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
2782 Update.
2783 * dwarf2/attribute.h (struct attribute) <as_signature,
2784 set_signature>: New methods.
2785 (DW_SIGNATURE): Remove.
2786
9d2246fc
TT
27872020-09-29 Tom Tromey <tom@tromey.com>
2788
2789 * dwarf2/read.c (read_call_site_scope)
2790 (handle_data_member_location, dwarf2_add_member_fn)
2791 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2792 (partial_die_info::read, read_attribute_value)
2793 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
2794 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
2795 (dwarf2_symbol_mark_computed): Update.
2796 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
2797 methods.
2798 (DW_BLOCK): Remove.
2799 * dwarf2/attribute.c (attribute::form_is_block): Add
2800 DW_FORM_data16.
2801
c6481205
TT
28022020-09-29 Tom Tromey <tom@tromey.com>
2803
2804 * dwarf2/read.c (read_cutu_die_from_dwo)
2805 (read_attribute_reprocess, read_attribute_value, read_attribute)
2806 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
2807 (dwarf2_fetch_constant_bytes): Update.
2808 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
2809 <set_string_noncanonical, set_string_canonical>: New methods.
2810 <string_is_canonical>: Update comment.
2811 <canonical_string_p>: Add assert.
2812 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
2813 * dwarf2/attribute.c (attribute::form_is_string): New method.
2814 (attribute::string): Use it.
2815
3b64bf15
TT
28162020-09-29 Tom Tromey <tom@tromey.com>
2817
2818 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
2819 (dump_die_shallow): Use canonical_string_p.
2820 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
2821 method.
2822
2c830f54
TT
28232020-09-29 Tom Tromey <tom@tromey.com>
2824
2825 * dwarf2/read.c (partial_die_info::read)
2826 (dwarf2_const_value_attr, anonymous_struct_prefix, )
2827 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
2828 attribute::as_string.
2829
6c412691
TT
28302020-09-29 Tom Tromey <tom@tromey.com>
2831
2832 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
2833 DW_ADDR.
2834 (attribute::string): Don't use DW_STRING.
2835 (attribute::get_ref_die_offset): Don't use DW_UNSND.
2836 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
2837
95f982e5
TT
28382020-09-29 Tom Tromey <tom@tromey.com>
2839
2840 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
2841 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
2842 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
2843 * dwarf2/attribute.h (struct attribute): Rename methods.
2844 * dwarf2/attribute.c (attribute::as_address): Rename from
2845 value_as_address.
2846 (attribute::as_string): Rename from value_as_string.
2847
f800b00e
TT
28482020-09-29 Tom Tromey <tom@tromey.com>
2849
2850 * dwarf2/read.c (partial_die_info::read) <case
2851 DW_AT_linkage_name>: Use value_as_string.
2852 (dwarf2_string_attr): Use value_as_string.
2853 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
2854 method.
2855 * dwarf2/attribute.c (attribute::value_as_string): New method.
2856
de38d64a
PA
28572020-09-29 Pedro Alves <pedro@palves.net>
2858
2859 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
2860 defined before using '#pragma GCC diagnostic' instead of checking
2861 __clang__.
2862
9aed480c
TT
28632020-09-28 Tom Tromey <tom@tromey.com>
2864
2865 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
2866 (handle_signal_stop): Update.
2867 * procfs.c (procfs_target::insert_watchpoint): Update.
2868 * target.h (target_have_steppable_watchpoint): Now a function.
2869
8a3ecb79
TT
28702020-09-28 Tom Tromey <tom@tromey.com>
2871
2872 * infrun.c (set_schedlock_func): Update.
2873 * target.h (target_can_lock_scheduler): Now a function.
2874
55f6301a
TT
28752020-09-28 Tom Tromey <tom@tromey.com>
2876
2877 * inferior.h (class inferior) <has_execution>: Update.
2878 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2879 * valops.c (find_function_in_inferior)
2880 (value_allocate_space_in_inferior): Update.
2881 * top.c (kill_or_detach): Update.
2882 * target.c (target_preopen, set_target_permissions): Update.
2883 (target_has_execution_current): Remove.
2884 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
2885 Update.
2886 * solib.c (update_solib_list, reload_shared_libraries): Update.
2887 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
2888 * solib-dsbt.c (enable_break): Update.
2889 * score-tdep.c (score7_fetch_inst): Update.
2890 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
2891 Update.
2892 * remote.c (remote_target::start_remote)
2893 (remote_target::remote_check_symbols, remote_target::open_1)
2894 (remote_target::remote_detach_1, remote_target::verify_memory)
2895 (remote_target::xfer_partial, remote_target::read_description)
2896 (remote_target::get_min_fast_tracepoint_insn_len): Update.
2897 * record-full.c (record_full_open_1): Update.
2898 * record-btrace.c (record_btrace_target_open): Update.
2899 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2900 (value_nsstring): Update.
2901 * linux-thread-db.c (add_thread_db_info)
2902 (thread_db_find_new_threads_silently, check_thread_db_callback)
2903 (try_thread_db_load_1, record_thread): Update.
2904 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
2905 Update.
2906 * linux-fork.c (checkpoint_command): Update.
2907 * infrun.c (set_non_stop, set_observer_mode)
2908 (check_multi_target_resumption, for_each_just_stopped_thread)
2909 (maybe_remove_breakpoints, normal_stop)
2910 (class infcall_suspend_state): Update.
2911 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
2912 (info_program_command, attach_command): Update.
2913 * infcall.c (call_function_by_hand_dummy): Update.
2914 * inf-loop.c (inferior_event_handler): Update.
2915 * gcore.c (gcore_command, derive_heap_segment): Update.
2916 * exec.c (exec_file_command): Update.
2917 * eval.c (evaluate_subexp): Update.
2918 * compile/compile.c (compile_to_object): Update.
2919 * cli/cli-dump.c (restore_command): Update.
2920 * breakpoint.c (update_watchpoint)
2921 (update_inserted_breakpoint_locations)
2922 (insert_breakpoint_locations, get_bpstat_thread): Update.
2923 * target.h (target_has_execution): Remove macro.
2924 (target_has_execution_current): Don't declare.
2925 (target_has_execution): Rename from target_has_execution_1. Add
2926 argument default.
2927
05374cfd
TT
29282020-09-28 Tom Tromey <tom@tromey.com>
2929
2930 * mi/mi-main.c (exec_reverse_continue)
2931 (mi_cmd_list_target_features): Update.
2932 * infrun.c (set_exec_direction_func): Update.
2933 * target.c (default_execution_direction): Update.
2934 * reverse.c (exec_reverse_once): Update.
2935 * target.h (target_can_execute_reverse): Now a function.
2936
9dccd06e
TT
29372020-09-28 Tom Tromey <tom@tromey.com>
2938
2939 * tui/tui-regs.c (tui_get_register)
2940 (tui_data_window::show_registers): Update.
2941 * thread.c (scoped_restore_current_thread::restore)
2942 (scoped_restore_current_thread::scoped_restore_current_thread):
2943 Update.
2944 * regcache-dump.c (regcache_print): Update.
2945 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2946 Update.
2947 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
2948 * mep-tdep.c (current_me_module, current_options): Update.
2949 * linux-thread-db.c (thread_db_load): Update.
2950 * infcmd.c (registers_info, info_vector_command)
2951 (info_float_command): Update.
2952 * ia64-tdep.c (ia64_frame_prev_register)
2953 (ia64_sigtramp_frame_prev_register): Update.
2954 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
2955 * gcore.c (derive_stack_segment): Update.
2956 * frame.c (get_current_frame, has_stack_frames): Update.
2957 * findvar.c (language_defn::read_var_value): Update.
2958 * arm-tdep.c (arm_pc_is_thumb): Update.
2959 * target.c (target_has_registers): Rename from
2960 target_has_registers_1.
2961 * target.h (target_has_registers): Remove macro.
2962 (target_has_registers): Rename from target_has_registers_1.
2963
841de120
TT
29642020-09-28 Tom Tromey <tom@tromey.com>
2965
2966 * windows-tdep.c (tlb_make_value): Update.
2967 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2968 * thread.c (scoped_restore_current_thread::restore)
2969 (scoped_restore_current_thread::scoped_restore_current_thread)
2970 (thread_command): Update.
2971 * stack.c (backtrace_command_1, frame_apply_level_command)
2972 (frame_apply_all_command, frame_apply_command): Update.
2973 * infrun.c (siginfo_make_value, restore_infcall_control_state):
2974 Update.
2975 * gcore.c (derive_stack_segment): Update.
2976 * frame.c (get_current_frame, has_stack_frames): Update.
2977 * auxv.c (info_auxv_command): Update.
2978 * ada-tasks.c (ada_build_task_list): Update.
2979 * target.c (target_has_stack): Rename from target_has_stack_1.
2980 * target.h (target_has_stack): Remove macro.
2981 (target_has_stack): Rename from target_has_stack_1.
2982
a739972c
TT
29832020-09-28 Tom Tromey <tom@tromey.com>
2984
2985 * target.c (target_has_memory): Rename from target_has_memory_1.
2986 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2987 * thread.c (scoped_restore_current_thread::restore)
2988 (scoped_restore_current_thread::scoped_restore_current_thread):
2989 Update.
2990 * frame.c (get_current_frame, has_stack_frames): Update.
2991 * target.h (target_has_memory): Remove macro.
2992 (target_has_memory): Rename from target_has_memory_1.
2993
5b8a4776
TT
29942020-09-28 Tom Tromey <tom@tromey.com>
2995
2996 * target.c (target_has_all_memory_1): Remove.
2997 * target.h (target_has_all_memory): Remove define.
2998 (target_has_all_memory_1): Don't declare.
2999
bd356ec6
SM
30002020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3001
3002 * ser-base.c: Adjust comments formatting.
3003
2c72d5e5
TT
30042020-09-27 Tom Tromey <tom@tromey.com>
3005
3006 PR tui/25342:
3007 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
3008
35a98237
TT
30092020-09-27 Tom Tromey <tom@tromey.com>
3010
3011 PR tui/25342:
3012 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
3013
9e820dec
TT
30142020-09-27 Tom Tromey <tom@tromey.com>
3015
3016 * unittests/tui-selftests.c: Update.
3017 * tui/tui-winsource.h (struct tui_source_window_base)
3018 <extra_margin, show_line_number, refresh_pad>: New methods.
3019 <m_max_length, m_pad>: New members.
3020 (tui_copy_source_line): Update.
3021 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
3022 first_col, line_width, ndigits parameters. Add length.
3023 (tui_source_window_base::show_source_line): Write to pad. Line
3024 number now 0-based.
3025 (tui_source_window_base::refresh_pad): New method.
3026 (tui_source_window_base::show_source_content): Write to pad. Call
3027 refresh_pad.
3028 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
3029 not refill.
3030 (tui_source_window_base::update_exec_info): Call
3031 show_line_number.
3032 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
3033 method.
3034 <m_digits>: New member.
3035 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
3036 and m_max_length.
3037 (tui_source_window::show_line_number): New method.
3038 * tui/tui-io.h (tui_puts): Fix comment.
3039 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
3040 m_max_length.
3041
c15c15c8
TT
30422020-09-27 Tom Tromey <tom@tromey.com>
3043
3044 * tui/tui-winsource.c
3045 (tui_source_window_base::set_is_exec_point_at): Don't call
3046 show_source_line.
3047
149830c1
TT
30482020-09-27 Tom Tromey <tom@tromey.com>
3049
3050 * python/py-tui.c (class tui_py_window) <refresh_window>: New
3051 method.
3052 <erase>: Update.
3053 <cursor_x, cursor_y>: Remove.
3054 <m_inner_window>: New member.
3055 (tui_py_window::rerender): Create inner window.
3056 (tui_py_window::output): Write to inner window.
3057
8f9929bb
GR
30582020-09-26 Gareth Rees <grees@undo.io> (tiny change)
3059
3060 PR python/26586
3061 * cli/cli-script.c (execute_control_commands): don't set
3062 instream to nullptr here as this breaks the from_tty argument
3063 to gdb.execute in Python.
3064 (execute_user_command): set instream to nullptr here instead.
3065
956bdb59
SM
30662020-09-25 Simon Marchi <simon.marchi@efficios.com>
3067
3068 * infrun.h (infrun_debug_printf): Fix formatting.
3069 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
3070
3b93626b
SJ
30712020-09-25 Saagar Jha <saagar@saagarjha.com>
3072
3073 * compile/compile-object-load.h (struct munmap_list): Add
3074 explicitly-defined move constructor.
3075
b551a89f
TT
30762020-09-24 Tom Tromey <tromey@adacore.com>
3077
3078 PR tui/26638:
3079 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
3080 method.
3081 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
3082 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
3083 (tui_prev_win): Rewrite.
3084
99bb393f
HD
30852020-09-23 Hannes Domani <ssbssa@yahoo.de>
3086
3087 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
3088 in WOW64 processes as SIGINT.
3089 * nat/windows-nat.h: Make wow64_process a shared variable.
3090 * windows-nat.c: Remove static wow64_process variable.
3091
20a5fcbd
TT
30922020-09-23 Tom Tromey <tom@tromey.com>
3093
3094 PR symtab/25470:
3095 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
3096 offset and bit size.
3097 * printcmd.c (print_scalar_formatted): Handle zero-length
3098 integer.
3099 (print_scalar_formatted): Use bit_size_differs_p.
3100 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
3101 constant.
3102 (union type_specific): <int_stuff>: New member.
3103 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
3104 methods.
3105 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
3106 TYPE_SPECIFIC_FIELD.
3107 (recursive_dump_type, copy_type_recursive): Update.
3108 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
3109 DW_AT_data_bit_offset.
3110
bac51ab7
TT
31112020-09-23 Tom Tromey <tom@tromey.com>
3112
3113 * utils.h (class gdb_argv): Add move operators.
3114 <append>: New methods.
3115 * compile/compile.c (build_argc_argv): Remove.
3116 (compile_args_argc): Remove.
3117 (compile_args_argv): Change type.
3118 (set_compile_args): Simplify.
3119 (append_args): Remove.
3120 (filter_args): Remove argcp parameter.
3121 (get_args): Return gdb_argv. Simplify.
3122 (compile_to_object): Update.
3123
92677124
TT
31242020-09-23 Tom Tromey <tom@tromey.com>
3125
3126 * compile/compile-object-run.c (do_module_cleanup)
3127 <~do_module_cleanup> :Remove.
3128 (do_module_cleanup): Update.
3129 * compile/compile-object-load.h (struct munmap_list): Add move
3130 assignment operator.
3131 <source_file>: Now a std::string.
3132 <munmap_list>: Rename. No longer a pointer.
3133 * compile/compile-object-load.c (struct setup_sections_data): Add
3134 constructor.
3135 <setup_one_section>: Declare.
3136 <munmap_list>: Move earlier.
3137 <m_bfd>: New member.
3138 <m_last_size, m_last_section_first, m_last_prot,
3139 m_last_max_alignment>: Rename, add initializers where needed.
3140 (setup_sections_data::setup_one_section): Rename from
3141 setup_sections. Update.
3142 (compile_object_load): Update. Don't use bfd_map_over_sections.
3143
e616f60a
TT
31442020-09-23 Tom Tromey <tom@tromey.com>
3145
3146 * compile/compile-object-run.c (struct do_module_cleanup): Add
3147 parameters to constructor. Update destructor.
3148 <source_file, scope, scope_data, out_value_type, out_value_addr,
3149 munmap_list_head, objfile_name_string>: Remove.
3150 <module>: New member.
3151 (do_module_cleanup): Update.
3152 (compile_object_run): Update.
3153
e947a848
TT
31542020-09-23 Tom Tromey <tom@tromey.com>
3155
3156 * compile/compile.c (eval_compile_command): Update.
3157 * compile/compile-object-run.h (compile_object_run): Take a
3158 compile_module_up.
3159 * compile/compile-object-run.c (compile_object_run): Take a
3160 compile_module_up.
3161 * compile/compile-object-load.h (struct compile_module): Add
3162 constructor, destructor.
3163 (compile_module_up): New typedef.
3164 (compile_object_load): Return compile_object_up.
3165 * compile/compile-object-load.c (compile_object_load): Return
3166 compile_module_up.
3167
0dbf6ee6
TT
31682020-09-23 Tom Tromey <tom@tromey.com>
3169
3170 * compile/compile-object-run.c (struct do_module_cleanup): Add
3171 constructor, destructor.
3172 <objfile_name_string>: Don't use struct hack.
3173 (do_module_cleanup): Use delete.
3174 (compile_object_run): Use new.
3175
ebe824f5
TT
31762020-09-23 Tom Tromey <tom@tromey.com>
3177
3178 * compile/compile-cplus-types.c
3179 (compile_cplus_convert_struct_or_union): Use std::vector.
3180 (compile_cplus_convert_func): Likewise.
3181 * compile/compile-c-types.c (convert_func): Use std::vector.
3182
5dd918d9
TT
31832020-09-21 Tom Tromey <tromey@adacore.com>
3184
3185 * sparc-tdep.c (sparc32_skip_prologue): Use
3186 skip_prologue_using_sal.
3187
5486c517
TT
31882020-09-19 Tom Tromey <tom@tromey.com>
3189
3190 * symfile.c (add_section_size_callback): Remove.
3191 (load_one_section): Rename from load_section_callback. Change
3192 parameters.
3193 (generic_load): Use foreach.
3194
8a6bb1d1
TT
31952020-09-19 Tom Tromey <tom@tromey.com>
3196
3197 * exec.c (add_to_section_table): Remove.
3198 (build_section_table): Use foreach.
3199
08f93a1a
TT
32002020-09-19 Tom Tromey <tom@tromey.com>
3201
3202 * elfread.c (elf_locate_sections): Change parameters.
3203 (elf_symfile_read): Use foreach.
3204
03cd72b8
TT
32052020-09-19 Tom Tromey <tom@tromey.com>
3206
3207 * cli/cli-dump.c (struct callback_data): Remove.
3208 (restore_one_section): Rename from restore_section_callback.
3209 Change parameters.
3210 (restore_binary_file): Change parameters.
3211 (restore_command): Use foreach.
3212
f4f2b85f
TT
32132020-09-19 Tom Tromey <tom@tromey.com>
3214
3215 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
3216 (gcore_copy_callback): Likewise.
3217 (gcore_memory_sections): Use foreach.
3218
b35c1d1c
TT
32192020-09-19 Tom Tromey <tom@tromey.com>
3220
3221 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
3222 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
3223 parameters.
3224 (generic_elf_osabi_sniffer): Use foreach.
3225 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
3226 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
3227
5bb6e9dd
TT
32282020-09-19 Tom Tromey <tom@tromey.com>
3229
3230 * dwarf2/read.c (locate_dwz_sections): Change parameters.
3231 (dwarf2_get_dwz_file): Use foreach.
3232 (dwarf2_locate_dwo_sections): Change parameters.
3233 (open_and_init_dwo_file): Use foreach.
3234 (dwarf2_locate_common_dwp_sections): Change parameters.
3235 (open_and_init_dwp_file): Use foreach.
3236
ad7277da
TT
32372020-09-19 Tom Tromey <tom@tromey.com>
3238
3239 * symfile.h: (find_lowest_section): Don't declare.
3240 * symfile.c (find_lowest_section): Now static. Change
3241 parameters.
3242 (struct place_section_arg): Remove.
3243 (place_section): Change parameters.
3244 (addr_info_make_relative): Use foreach.
3245 (symfile_dummy_outputs): Remove.
3246 (default_symfile_relocate): Use foreach.
3247
cb814f2e
TT
32482020-09-19 Tom Tromey <tom@tromey.com>
3249
3250 * objfiles.c (add_to_objfile_sections): Rename from
3251 add_to_objfile_sections_full.
3252 (add_to_objfile_sections): Remove.
3253 (build_objfile_section_table): Use foreach.
3254
3cabfd26
TT
32552020-09-19 Tom Tromey <tom@tromey.com>
3256
3257 * stap-probe.c (get_stap_base_address_1): Remove.
3258 (get_stap_base_address): Use foreach.
3259
1ce51eb5
TT
32602020-09-19 Tom Tromey <tom@tromey.com>
3261
3262 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
3263 parameters.
3264 (gdb_bfd_close_or_warn): Use foreach.
3265
a190fabb
TT
32662020-09-19 Tom Tromey <tom@tromey.com>
3267
3268 * corelow.c (add_to_thread_list): Change parameters.
3269 (core_target_open): Use foreach.
3270
cafb0d81
TT
32712020-09-19 Tom Tromey <tom@tromey.com>
3272
3273 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
3274 existing function.
3275
c8d5abea
AB
32762020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3277
3278 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
3279 for arrays.
3280
6d816919
AB
32812020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3282
3283 * eval.c: Remove 'f-lang.h' include.
3284 (value_f90_subarray): Moved to f-lang.c.
3285 (eval_call): Renamed to...
3286 (evaluate_subexp_do_call): ...this, is no longer static, header
3287 comment moved into header file.
3288 (evaluate_funcall): Update call to eval_call.
3289 (skip_undetermined_arglist): Moved to f-lang.c.
3290 (fortran_value_subarray): Likewise.
3291 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3292 moved to evaluate_subexp_f.
3293 (calc_f77_array_dims): Moved to f-lang.c
3294 * expprint.c (print_subexp_funcall): New function.
3295 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3296 moved to print_subexp_f, OP_FUNCALL uses new function.
3297 (dump_subexp_body_funcall): New function.
3298 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
3299 moved to dump_subexp_f, OP_FUNCALL uses new function.
3300 * expression.h (evaluate_subexp_do_call): Declare.
3301 * f-lang.c (value_f90_subarray): Moved from eval.c.
3302 (skip_undetermined_arglist): Likewise.
3303 (calc_f77_array_dims): Likewise.
3304 (fortran_value_subarray): Likewise.
3305 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
3306 (operator_length_f): Likewise.
3307 (print_subexp_f): Likewise.
3308 (dump_subexp_body_f): Likewise.
3309 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
3310 declaration of this operation to here.
3311 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
3312 support moved to operator_length_f.
3313 * parser-defs.h (dump_subexp_body_funcall): Declare.
3314 (print_subexp_funcall): Declare.
3315 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
3316 fortran-operator.def.
3317
8c37706a
AB
33182020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3319
3320 * eval.c (fortran_value_subarray): New function, content is taken
3321 from...
3322 (evaluate_subexp_standard): ...here, in two places. Now arrays
3323 and strings both call the new function.
3324 (calc_f77_array_dims): Add header comment, handle strings.
3325
14f9473c
VC
33262020-09-18 Victor Collod <vcollod@nvidia.com>
3327
3328 PR gdb/26635
3329 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
3330 (i386_analyze_prologue): Call i386_skip_endbr.
3331
b60cea74
TT
33322020-09-18 Tom Tromey <tromey@adacore.com>
3333
3334 * windows-nat.c (struct windows_nat_target) <wait>: Update.
3335 (windows_nat_target::wait): Update.
3336 * target/wait.h (enum target_wait_flag): New. Use
3337 DEF_ENUM_FLAGS_TYPE.
3338 * target/target.h (target_wait): Change type of options.
3339 * target.h (target_options_to_string, default_target_wait):
3340 Update.
3341 (struct target_ops) <wait>: Change type of options.
3342 * target.c (target_wait, default_target_wait, do_option): Change
3343 type of "options".
3344 (target_options_to_string): Likewise.
3345 * target-delegates.c: Rebuild.
3346 * target-debug.h (target_debug_print_target_wait_flags): Rename
3347 from target_debug_print_options.
3348 * sol-thread.c (class sol_thread_target) <wait>: Update.
3349 (sol_thread_target::wait): Update.
3350 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
3351 (rs6000_nat_target::wait): Update.
3352 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
3353 Update.
3354 (remote_target::wait_ns, remote_target::wait_as): Change type of
3355 "options".
3356 (remote_target::wait): Update.
3357 * remote-sim.c (struct gdbsim_target) <wait>: Update.
3358 (gdbsim_target::wait): Update.
3359 * record-full.c (class record_full_base_target) <wait>: Update.
3360 (record_full_wait_1): Change type of "options".
3361 (record_full_base_target::wait): Update.
3362 * record-btrace.c (class record_btrace_target) <wait>: Update.
3363 (record_btrace_target::wait): Update.
3364 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
3365 Update.
3366 (ravenscar_thread_target::wait): Update.
3367 * procfs.c (class procfs_target) <wait>: Update.
3368 (procfs_target::wait): Update.
3369 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
3370 * obsd-nat.c (obsd_nat_target::wait): Update.
3371 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
3372 (nto_procfs_target::wait): Update.
3373 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
3374 * nbsd-nat.c (nbsd_wait): Change type of "options".
3375 (nbsd_nat_target::wait): Update.
3376 * linux-thread-db.c (class thread_db_target) <wait>: Update.
3377 (thread_db_target::wait): Update.
3378 * linux-nat.h (class linux_nat_target) <wait>: Update.
3379 * linux-nat.c (linux_nat_target::wait): Update.
3380 (linux_nat_wait_1): Update.
3381 * infrun.c (do_target_wait_1, do_target_wait): Change type of
3382 "options".
3383 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
3384 * inf-ptrace.c (inf_ptrace_target::wait): Update.
3385 * go32-nat.c (struct go32_nat_target) <wait>: Update.
3386 (go32_nat_target::wait): Update.
3387 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
3388 * gnu-nat.c (gnu_nat_target::wait): Update.
3389 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
3390 * fbsd-nat.c (fbsd_nat_target::wait): Update.
3391 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
3392 * darwin-nat.c (darwin_nat_target::wait): Update.
3393 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
3394 (bsd_uthread_target::wait): Update.
3395 * aix-thread.c (class aix_thread_target) <wait>: Update.
3396 (aix_thread_target::wait): Update.
3397
0295dde6
AB
33982020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
3399
3400 * compile/compile-object-run.c (create_copied_type_recursive): New
3401 function.
3402 (compile_object_run): Use new function.
3403
d3483b43
JT
34042020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
3405
3406 * NEWS: Mention x86_64 Cygwin core file support.
3407
e7d612ad
JT
34082020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3409
3410 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
3411 (core_process_module_section): Handle NOTE_INFO_MODULE64.
3412
aff9d387
JT
34132020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3414
62a5151b
JT
3415 * windows-tdep.h: Add prototypes.
3416 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
3417 (i386_windows_core_pid_to_str): Move and rename ...
3418 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
3419 (windows_core_pid_to_str): ... and here.
3420 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
3421
34222020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
3423 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
3424 (amd64_windows_init_abi_common): ... and register.
3425
7d155da3
JT
34262020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3427
3428 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
3429 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
3430
e8ef12b9
PA
34312020-09-18 Pedro Alves <pedro@palves.net>
3432
3433 PR gdb/26631
3434 * thread.c (thread_find_command): Switch inferior before calling
3435 target methods.
3436
c1e1314d
TT
34372020-09-17 Tom Tromey <tromey@adacore.com>
3438
3439 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
3440 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
3441 (tdesc_arch_data_up): New typedef.
3442 (tdesc_use_registers, tdesc_data_alloc): Update.
3443 (tdesc_data_cleanup): Don't declare.
3444 * target-descriptions.c (tdesc_data_alloc): Return a
3445 tdesc_arch_data_up.
3446 (tdesc_arch_data_deleter::operator()): Rename from
3447 tdesc_data_cleanup. Change argument type.
3448 (tdesc_use_registers): Change early_data to an rvalue reference.
3449 (tdesc_use_registers): Don't use delete.
3450 * sparc-tdep.c (sparc32_gdbarch_init): Update.
3451 * s390-tdep.c (s390_gdbarch_init): Update.
3452 * rx-tdep.c (rx_gdbarch_init): Update.
3453 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3454 * riscv-tdep.c (riscv_gdbarch_init): Update.
3455 * or1k-tdep.c (or1k_gdbarch_init): Update.
3456 * nios2-tdep.c (nios2_gdbarch_init): Update.
3457 * nds32-tdep.c (nds32_gdbarch_init): Update.
3458 * mips-tdep.c (mips_gdbarch_init): Update.
3459 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
3460 * m68k-tdep.c (m68k_gdbarch_init): Update.
3461 * i386-tdep.c (i386_gdbarch_init): Update.
3462 * arm-tdep.c (arm_gdbarch_init): Update.
3463 * arc-tdep.c (arc_tdesc_init): Update.
3464 (arc_gdbarch_init): Update.
3465 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
3466
0363df3d
HD
34672020-09-17 Hannes Domani <ssbssa@yahoo.de>
3468
3469 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
3470 for WOW64 processes.
3471
280a9412
TT
34722020-09-17 Tom Tromey <tom@tromey.com>
3473
3474 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
3475
6108fd18
TT
34762020-09-17 Tom Tromey <tom@tromey.com>
3477
3478 * value.c (preserve_values): Update.
3479 * python/py-type.c (save_objfile_types): Update.
3480 * guile/scm-type.c (save_objfile_types): Update.
3481 * gdbtypes.h (create_copied_types_hash): Return htab_up.
3482 * gdbtypes.c (create_copied_types_hash): Return htab_up.
3483 * compile/compile-object-run.c (compile_object_run): Update.
3484
fa9b1164
TT
34852020-09-17 Tom Tromey <tom@tromey.com>
3486
3487 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
3488 Remove.
3489 <m_table>: Now htab_up.
3490 * typeprint.c (typedef_hash_table::recursively_update)
3491 (typedef_hash_table::add_template_parameters)
3492 (typedef_hash_table::typedef_hash_table): Update.
3493 (typedef_hash_table::~typedef_hash_table): Remove.
3494 (typedef_hash_table::typedef_hash_table)
3495 (typedef_hash_table::find_global_typedef)
3496 (typedef_hash_table::find_typedef): Update.
3497
eb53f105
TT
34982020-09-17 Tom Tromey <tom@tromey.com>
3499
3500 * target-descriptions.c (tdesc_use_registers): Use htab_up.
3501
7a8a5d47
TT
35022020-09-17 Tom Tromey <tom@tromey.com>
3503
3504 * linespec.c (class decode_compound_collector)
3505 <~decode_compound_collector>: Remove.
3506 <m_unique_syms>: Now htab_up.
3507 (decode_compound_collector::operator ()): Update.
3508 (class symtab_collector) <~symtab_collector>: Remove.
3509 <m_symtab_table>: Now htab_up.
3510 (symtab_collector::operator ()): Update.
3511
99032cfc
TT
35122020-09-17 Tom Tromey <tom@tromey.com>
3513
3514 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
3515 (filename_seen_cache::clear): Update.
3516 (~filename_seen_cache): Remove.
3517 (filename_seen_cache::seen): Update.
3518 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
3519 htab_up.
3520 <~filename_seen_cache>: Remove.
3521 <traverse>: Update.
3522
32580f6d
TT
35232020-09-17 Tom Tromey <tom@tromey.com>
3524
3525 * completer.c (completion_tracker::discard_completions)
3526 (completion_tracker::~completion_tracker)
3527 (completion_tracker::maybe_add_completion)
3528 (completion_tracker::remove_completion)
3529 (completion_tracker::recompute_lowest_common_denominator)
3530 (completion_tracker::build_completion_result): Update.
3531 * completer.h (class completion_tracker) <have_completions>:
3532 Update.
3533 <m_entries_hash>: Now htab_up.
3534
c1fb9836
TT
35352020-09-17 Tom Tromey <tom@tromey.com>
3536
3537 * breakpoint.c (ambiguous_names_p): Use htab_up.
3538
88f07206
TT
35392020-09-17 Tom Tromey <tom@tromey.com>
3540
3541 * auto-load.c (struct auto_load_pspace_info)
3542 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
3543 <loaded_script_files, loaded_script_texts>: Change type to
3544 htab_up.
3545 (~auto_load_pspace_info) Remove.
3546 (init_loaded_scripts_info, maybe_add_script_file)
3547 (maybe_add_script_text, auto_load_info_scripts): Update.
3548
9519b2ee
TT
35492020-09-17 Tom Tromey <tromey@adacore.com>
3550
3551 * c-exp.y (name_obstack): Now static.
3552
d2cd4113
CC
35532020-09-17 Chungyi Chi <demonic@csie.io>
3554
3555 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
3556
b650a282
SM
35572020-09-16 Simon Marchi <simon.marchi@efficios.com>
3558
3559 * breakpoint.h (init_catchpoint): Change int parameter to bool.
3560 (add_solib_catchpoint): Likewise.
3561 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
3562 to bool.
3563 (add_solib_catchpoint): Change int parameter/variable to bool.
3564 (catch_load_or_unload): Likewise.
3565 (init_catchpoint): Likewise.
3566 (create_fork_vfork_event_catchpoint): Likewise.
3567 (catch_fork_command_1): Likewise.
3568 (catch_exec_command_1): Likewise.
3569
4d0bcfcf
SM
35702020-09-16 Simon Marchi <simon.marchi@efficios.com>
3571
3572 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
3573 Change instance_flags to m_instance_flags.
3574
fe830662
TT
35752020-09-16 Tom Tromey <tromey@adacore.com>
3576
3577 PR gdb/26598:
3578 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
3579
fe5ddfc3
JB
35802020-09-16 John Baldwin <jhb@FreeBSD.org>
3581
3582 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
3583 PL_FLAG_EXEC.
3584 (fbsd_nat_target::insert_exec_catchpoint)
3585 (fbsd_nat_target::remove_exec_catchpoint): Always define.
3586 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
3587 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
3588
e911c666
JB
35892020-09-16 John Baldwin <jhb@FreeBSD.org>
3590
3591 * configure.ac: Remove check for kinfo_getvmmap().
3592 * configure, config.in: Regenerate.
3593 * fbsd-nat.c (fbsd_read_mapping): Remove
3594 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
3595 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
3596 kinfo_get_vmmap() are always present.
3597
1f17d372
JB
35982020-09-16 John Baldwin <jhb@FreeBSD.org>
3599
3600 * fbsd-nat.c: Always include support for
3601 TARGET_OBJECT_SIGNAL_INFO.
3602
bcb1da7f
JB
36032020-09-16 John Baldwin <jhb@FreeBSD.org>
3604
3605 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
3606 sysctl and remove procfs fallback.
3607
5515f729
JB
36082020-09-16 John Baldwin <jhb@FreeBSD.org>
3609
3610 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
3611 * fbsd-nat.h: Likewise.
3612
da1df1db
TBA
36132020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3614
3615 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
3616 argument.
3617
0e25e767
AB
36182020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3619
3620 * ada-lang.c (ada_language_data): Delete.
3621 (ada_language): Remove references to ada_language_data.
3622 * c-lang.c (c_language_data): Delete.
3623 (c_language): Remove references to c_language_data.
3624 (cplus_language_data): Delete.
3625 (cplus_language): Remove references to cplus_language_data.
3626 (asm_language_data): Delete.
3627 (asm_language): Remove references to asm_language_data.
3628 (minimal_language_data): Delete.
3629 (minimal_language): Remove references to minimal_language_data.
3630 * d-lang.c (d_language_data): Delete.
3631 (d_language): Remove references to d_language_data.
3632 * f-lang.c (f_language_data): Delete.
3633 (f_language): Remove references to f_language_data.
3634 * go-lang.c (go_language_data): Delete.
3635 (go_language): Remove references to go_language_data.
3636 * language.c (unknown_language_data): Delete.
3637 (unknown_language): Remove references to unknown_language_data.
3638 (auto_language_data): Delete.
3639 (auto_language): Remove references to auto_language_data.
3640 * language.h (language_data): Delete struct.
3641 (language_defn): No longer inherit from language_data.
3642 * m2-lang.c (m2_language_data): Delete.
3643 (m2_language): Remove references to m2_language_data.
3644 * objc-lang.c (objc_language_data): Delete.
3645 (objc_language): Remove references to objc_language_data.
3646 * opencl-lang.c (opencl_language_data): Delete.
3647 (opencl_language): Remove references to opencl_language_data.
3648 * p-lang.c (pascal_language_data): Delete.
3649 (pascal_language): Remove references to pascal_language_data.
3650 * rust-lang.c (rust_language_data): Delete.
3651 (rust_language): Remove references to rust_language_data.
3652
b7c6e27d
AB
36532020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3654
3655 * ada-lang.c (ada_language_data): Remove la_op_print_tab
3656 initializer.
3657 (ada_language::opcode_print_table): New member function.
3658 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
3659 (c_language::opcode_print_table): New member function.
3660 (cplus_language_data): Remove la_op_print_tab initializer.
3661 (cplus_language::opcode_print_table): New member function.
3662 (asm_language_data): Remove la_op_print_tab initializer.
3663 (asm_language::opcode_print_table): New member function.
3664 (minimal_language_data): Remove la_op_print_tab initializer.
3665 (minimal_language::opcode_print_table): New member function.
3666 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
3667 (d_language::opcode_print_table): New member function.
3668 * expprint.c (print_subexp_standard): Update call to
3669 opcode_print_table.
3670 (op_string): Likewise.
3671 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
3672 (f_language::opcode_print_table): New member function.
3673 * go-lang.c (go_language_data): Remove la_op_print_tab
3674 initializer.
3675 (go_language::opcode_print_table): New member function.
3676 * language.c (unknown_language_data): Remove la_op_print_tab
3677 initializer.
3678 (unknown_language::opcode_print_table): New member function.
3679 (auto_language_data): Remove la_op_print_tab initializer.
3680 (auto_language::opcode_print_table): New member function.
3681 * language.h (language_data): Remove la_op_print_tab field.
3682 (language_defn::opcode_print_table): Declare new member function.
3683 * m2-lang.c (m2_language_data): Remove la_op_print_tab
3684 initializer.
3685 (m2_language::opcode_print_table): New member function.
3686 * objc-lang.c (objc_language_data): Remove la_op_print_tab
3687 initializer.
3688 (objc_language::opcode_print_table): New member function.
3689 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
3690 initializer.
3691 (opencl_language::opcode_print_table): New member function.
3692 * p-lang.c (pascal_language_data): Remove la_op_print_tab
3693 initializer.
3694 (pascal_language::opcode_print_table): New member function.
3695 * rust-lang.c (rust_language_data): Remove la_op_print_tab
3696 initializer.
3697 (rust_language::opcode_print_table): New member function.
3698
5aba6ebe
AB
36992020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3700
3701 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
3702 (ada_language::expression_ops): New member function.
3703 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
3704 (c_language::expression_ops): New member function.
3705 (cplus_language_data): Remove la_exp_desc initializer.
3706 (cplus_language::expression_ops): New member function.
3707 (asm_language_data): Remove la_exp_desc initializer.
3708 (asm_language::expression_ops): New member function.
3709 (minimal_language_data): Remove la_exp_desc initializer.
3710 (minimal_language::expression_ops): New member function.
3711 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
3712 (d_language::expression_ops): New member function.
3713 * eval.c (evaluate_subexp): Update call to expression_ops.
3714 * expprint.c (print_subexp): Likewise.
3715 (op_name): Likewise.
3716 (dump_subexp_body): Likewise.
3717 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
3718 (f_language::expression_ops): New member function.
3719 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
3720 (go_language::expression_ops): New member function.
3721 * language.c (language_defn::expression_ops): New function.
3722 (unknown_language_data): Remove la_exp_desc initializer.
3723 (auto_language_data): Likewise.
3724 * language.h (language_data): Remove la_exp_desc field.
3725 (language_defn::expression_ops): Declare new member function.
3726 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
3727 (m2_language::expression_ops): New member function.
3728 * objc-lang.c (objc_language_data): Remove la_exp_desc
3729 initializer.
3730 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
3731 initializer.
3732 (opencl_language::expression_ops): New member function.
3733 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
3734 * parse.c (operator_length): Update call to expression_ops.
3735 (exp_iterate): Likewise.
3736 * rust-lang.c (rust_language_data): Remove la_exp_desc
3737 initializer.
3738 (ruse_language::expression_ops): New member function.
3739
b63a3f3f
AB
37402020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3741
3742 * ada-lang.c (ada_language_data): Remove la_varobj_ops
3743 initializer.
3744 (ada_language::varobj_ops): New member function.
3745 * c-lang.c (c_language_data): Remove la_varobj_ops
3746 initializer.
3747 (cplus_language_data): Likewise.
3748 (cplus_language::varobj_ops): New member function.
3749 (asm_language_data): Remove la_varobj_ops initializer.
3750 (minimal_language_data): Likewise.
3751 * d-lang.c (d_language_data): Likewise.
3752 * f-lang.c (f_language_data): Likewise.
3753 * go-lang.c (go_language_data): Likewise.
3754 * language.c (language_defn::varobj_ops): New function.
3755 (unknown_language_data): Remove la_varobj_ops
3756 initializer.
3757 (auto_language_data): Likewise.
3758 * language.h (language_data): Remove la_varobj_ops field.
3759 (language_defn::varobj_ops): Declare new member function.
3760 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
3761 * objc-lang.c (objc_language_data): Likewise.
3762 * opencl-lang.c (opencl_language_data): Likewise.
3763 * p-lang.c (pascal_language_data): Likewise.
3764 * rust-lang.c (rust_language_data): Likewise.
3765 * varobj.c (varobj_create): Update call to varobj_ops.
3766 * varobj.h (default_varobj_ops): Delete define.
3767
1ac14a04
AB
37682020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3769
3770 * ada-lang.c (ada_language_data): Remove la_macro_expansion
3771 initializer.
3772 * c-lang.c (c_language_data): Likewise.
3773 (c_language::macro_expansion): New member function.
3774 (cplus_language_data): Likewise.
3775 (cplus_language::macro_expansion): New member function.
3776 (asm_language_data): Likewise.
3777 (asm_language::macro_expansion): New member function.
3778 (minimal_language_data): Likewise.
3779 (minimal_language::macro_expansion): New member function.
3780 * d-lang.c (d_language_data): Remove la_macro_expansion
3781 initializer.
3782 * f-lang.c (f_language_data): Likewise.
3783 * go-lang.c (go_language_data): Likewise.
3784 * language.c (unknown_language_data): Likewise.
3785 (auto_language_data): Likewise.
3786 * language.h (language_data): Remove la_macro_expansion field.
3787 (language_defn::macro_expansion): New member function.
3788 * m2-lang.c (m2_language_data): Remove la_macro_expansion
3789 initializer.
3790 * objc-lang.c (objc_language_data): Likewise.
3791 (objc_language::macro_expansion): New member function.
3792 * opencl-lang.c (opencl_language_data): Likewise.
3793 (opencl_language::macro_expansion): New member function.
3794 * p-lang.c (pascal_language_data): Remove la_macro_expansion
3795 initializer.
3796 * rust-lang.c (rust_language_data): Likewise.
3797 * symtab.c (default_collect_symbol_completion_matches_break_on):
3798 Update call to macro_expansion.
3799
3a3440fb
AB
38002020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3801
3802 * ada-lang.c (ada_language_data): Remove la_array_ordering
3803 initializer.
3804 * c-lang.c (c_language_data): Likewise.
3805 (cplus_language_data): Likewise.
3806 (asm_language_data): Likewise.
3807 (minimal_language_data): Likewise.
3808 * d-lang.c (d_language_data): Likewise.
3809 * dwarf2/read.c (read_array_order): Update for call to
3810 array_ordering.
3811 * f-lang.c (f_language_data): Remove la_array_ordering
3812 initializer.
3813 (f_language::array_ordering): New member function.
3814 * go-lang.c (go_language_data): Remove la_array_ordering
3815 initializer.
3816 * language.c (unknown_language_data): Likewise.
3817 (auto_language_data): Likewise.
3818 * language.h (language_data): Delete la_array_ordering field.
3819 (language_defn::array_ordering): New member function.
3820 * m2-lang.c (m2_language_data): Remove la_array_ordering
3821 initializer.
3822 * objc-lang.c (objc_language_data): Likewise.
3823 * opencl-lang.c (opencl_language_data): Likewise.
3824 * p-lang.c (pascal_language_data): Likewise.
3825 * rust-lang.c (rust_language_data): Likewise.
3826
0d201fa4
AB
38272020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3828
3829 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
3830 initializer.
3831 * c-lang.c (c_language_data): Likewise.
3832 (cplus_language_data): Likewise.
3833 (asm_language_data): Likewise.
3834 (minimal_language_data): Likewise.
3835 * d-lang.c (d_language_data): Likewise.
3836 * f-lang.c (f_language_data): Likewise.
3837 (f_language::case_sensitivity): New member function.
3838 * go-lang.c (go_language_data): Remove la_case_sensitivity
3839 initializer.
3840 * language.c (enum case_mode): Moved here from language.h.
3841 (case_mode): Make static.
3842 (show_case_command): Update for case_sensitivity being a method.
3843 (set_case_command): Likewise.
3844 (set_range_case): Likewise.
3845 (unknown_language_data): Remove la_case_sensitivity initializer.
3846 (auto_language_data): Likewise.
3847 * language.h (case_mode): Delete, move enum declaration to
3848 language.c.
3849 (language_data): Delete la_case_sensitivity field.
3850 (language_defn::case_sensitivity): New member function.
3851 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
3852 initializer.
3853 * objc-lang.c (objc_language_data): Likewise.
3854 * opencl-lang.c (opencl_language_data): Likewise.
3855 * p-lang.c (pascal_language_data): Likewise.
3856 * rust-lang.c (rust_language_data): Likewise.
3857
efdf6a73
AB
38582020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3859
3860 * ada-lang.c (ada_language_data): Remove la_range_check
3861 initializer.
3862 * c-lang.c (c_language_data): Likewise.
3863 (cplus_language_data): Likewise.
3864 (asm_language_data): Likewise.
3865 (minimal_language_data): Likewise.
3866 * d-lang.c (d_language_data): Likewise.
3867 * f-lang.c (f_language_data): Likewise.
3868 (f_language::range_checking_on_by_default): New member function.
3869 * go-lang.c (go_language_data): Remove la_range_check initializer.
3870 * language.c (enum range_mode): Moved here from language.h.
3871 (range_mode): Made static.
3872 (show_range_command): Update to use
3873 range_checking_on_by_default.
3874 (set_range_command): Likewise.
3875 (set_range_case): Likewise.
3876 (unknown_language_data): Remove la_range_check initializer.
3877 (auto_language_data): Likewise.
3878 * language.h (range_mode): Delete. Enum definition moved to
3879 language.c.
3880 (language_data): Remove la_range_check field.
3881 (language_defn::range_checking_on_by_default): New member
3882 function.
3883 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
3884 (m2_language::range_checking_on_by_default): New member function.
3885 * objc-lang.c (objc_language_data): Remove la_range_check
3886 initializer.
3887 * opencl-lang.c (opencl_language_data): Likewise.
3888 * p-lang.c (pascal_language_data): Likewise.
3889 (pascal_language::range_checking_on_by_default): New member
3890 function.
3891 * rust-lang.c (rust_language_data): Remove la_range_check
3892 initializer.
3893 (rust_language::range_checking_on_by_default): New member
3894 function.
3895
bf92aec5
AB
38962020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3897
3898 * dwarf2/read.c (dwarf2_physname): Remove special case for
3899 language_go.
3900 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
3901 member function.
3902
d3355e4d
AB
39032020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3904
3905 * ada-lang.c (ada_language_data): Remove
3906 la_store_sym_names_in_linkage_form_p initializer.
3907 (ada_language::store_sym_names_in_linkage_form_p): New member
3908 function.
3909 * c-lang.c (c_language_data): Remove
3910 la_store_sym_names_in_linkage_form_p initializer.
3911 (c_language::store_sym_names_in_linkage_form_p): New member
3912 function.
3913 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
3914 initializer.
3915 (asm_language_data): Likewise.
3916 (asm_language::store_sym_names_in_linkage_form_p): New member
3917 function.
3918 (minimal_language_data): Remove
3919 la_store_sym_names_in_linkage_form_p initializer.
3920 (minimal_language::store_sym_names_in_linkage_form_p): New member
3921 function.
3922 * d-lang.c (d_language_data): Remove
3923 la_store_sym_names_in_linkage_form_p initializer.
3924 * dwarf2/read.c (dwarf2_physname): Update call to
3925 store_sym_names_in_linkage_form_p.
3926 * f-lang.c (f_language_data): Remove
3927 la_store_sym_names_in_linkage_form_p initializer.
3928 * go-lang.c (go_language_data): Remove
3929 la_store_sym_names_in_linkage_form_p initializer.
3930 * language.c (unknown_language_data): Remove
3931 la_store_sym_names_in_linkage_form_p initializer.
3932 (unknown_language::store_sym_names_in_linkage_form_p): New member
3933 function.
3934 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
3935 initializer.
3936 (auto_language::store_sym_names_in_linkage_form_p): New member
3937 function.
3938 * language.h (language_data): Remove
3939 la_store_sym_names_in_linkage_form_p member variable.
3940 (language_defn::store_sym_names_in_linkage_form_p): New member
3941 function.
3942 * m2-lang.c (m2_language_data): Remove
3943 la_store_sym_names_in_linkage_form_p initializer.
3944 * objc-lang.c (objc_language_data): Likewise.
3945 * opencl-lang.c (opencl_language_data): Likewise.
3946 * p-lang.c (pascal_language_data): Likewise.
3947 * rust-lang.c (rust_language_data): Likewise.
3948
22c12a6c
AB
39492020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3950
3951 * ada-lang.c (ada_language_data): Remove string_lower_bound
3952 initializer.
3953 * c-lang.c (c_language_data): Likewise.
3954 (cplus_language_data): Likewise.
3955 (asm_language_data): Likewise.
3956 (minimal_language_data): Likewise.
3957 * d-lang.c (d_language_data): Likewise.
3958 * f-lang.c (f_language_data): Likewise.
3959 * go-lang.c (go_language_data): Likewise.
3960 * language.c (unknown_language_data): Likewise.
3961 (auto_language_data): Likewise.
3962 * language.h (language_data): Remove string_lower_bound field.
3963 (language_defn::string_lower_bound): New member function.
3964 * m2-lang.c (m2_language_data): Remove string_lower_bound
3965 initializer.
3966 (m2_language::string_lower_bound): New member function.
3967 * objc-lang.c (objc_language_data): Remove string_lower_bound
3968 initializer.
3969 * opencl-lang.c (opencl_language_data): Likewise.
3970 * p-lang.c (pascal_language_data): Likewise.
3971 * rust-lang.c (rust_language_data): Likewise.
3972 * valops.c (value_cstring): Update call to string_lower_bound.
3973 (value_string): Likewise.
3974 * value.c (allocate_repeated_value): Likewise.
3975
1c236ddd
AB
39762020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3977
3978 * valops.c (value_repeat): Fix incorrect argument name in comment.
3979
67bd3fd5
AB
39802020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3981
3982 * ada-lang.c (ada_language_data): Remove c_style_arrays
3983 initializer.
3984 (ada_language::c_style_arrays_p): New member fuction.
3985 * c-lang.c (c_language_data): Remove c_style_arrays
3986 initializer.
3987 (cplus_language_data): Likewise.
3988 (asm_language_data): Likewise.
3989 (minimal_language_data): Likewise.
3990 * d-lang.c (d_language_data): Likewise.
3991 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
3992 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
3993 (f_language::c_style_arrays_p): New member function.
3994 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
3995 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
3996 * language.c (unknown_language_data): Remove c_style_arrays
3997 initializer.
3998 (auto_language_data): Likewise.
3999 * language.h (language_data): Remove c_style_arrays field.
4000 (language_defn::c_style_arrays_p): New member function.
4001 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
4002 (m2_language::c_style_arrays_p): New member function.
4003 * objc-lang.c (objc_language_data): Remove c_style_arrays
4004 initializer.
4005 * opencl-lang.c (opencl_language_data): Likewise.
4006 * p-lang.c (pascal_language_data): Likewise.
4007 * rust-lang.c (rust_language_data): Likewise.
4008 * valarith.c (value_subscript): Update call to c_style_arrays_p,
4009 and update local variable to a bool.
4010 * valops.c (value_cast): Update call to c_style_arrays_p.
4011 (value_array): Likewise.
4012 * value.c (coerce_array): Likewise.
4013
85967615
AB
40142020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4015
4016 * ada-lang.c (ada_language_data): Remove la_language initializer.
4017 * c-lang.c (c_language_data): Likewise.
4018 (cplus_language_data): Likewise.
4019 (asm_language_data): Likewise.
4020 (minimal_language_data): Likewise.
4021 * d-lang.c (d_language_data): Likewise.
4022 * f-lang.c (f_language_data): Likewise.
4023 * go-lang.c (go_language_data): Likewise.
4024 * language.c (unknown_language_data): Likewise.
4025 (auto_language_data): Likewise.
4026 * language.h (language_data): Remove la_language field.
4027 (language_defn::language_defn): Initialise la_language field.
4028 (language_defn::la_language): New member variable.
4029 * m2-lang.c (m2_language_data): Remove la_language field.
4030 * objc-lang.c (objc_language_data): Likewise.
4031 * opencl-lang.c (opencl_language_data): Likewise.
4032 * p-lang.c (pascal_language_data): Likewise.
4033 * rust-lang.c (rust_language_data): Likewise.
4034
e171d6f1
AB
40352020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4036
4037 * ada-lang.c (ada_extensions): Delete, moved into
4038 ada_language::filename_extensions.
4039 (ada_language_data): Remove la_filename_extensions initializer.
4040 (ada_language::filename_extensions): New member function.
4041 * c-lang.c (c_extensions): Delete, moved into
4042 c_language::filename_extensions.
4043 (c_language_data): Remove la_filename_extensions initializer.
4044 (c_language::filename_extensions): New member function.
4045 (cplus_extensions): Delete, moved into
4046 cplus_language::filename_extensions.
4047 (cplus_language_data): Remove la_filename_extensions initializer.
4048 (cplus_language::filename_extensions): New member function.
4049 (asm_extensions): Delete, moved into
4050 asm_language::filename_extensions.
4051 (asm_language_data): Remove la_filename_extensions initializer.
4052 (asm_language::filename_extensions): New member function.
4053 (minimal_language_data): Remove la_filename_extensions
4054 initializer.
4055 * d-lang.c (d_extensions): Delete, moved into
4056 d_language::filename_extensions.
4057 (d_language_data): Remove la_filename_extensions initializer.
4058 (d_language::filename_extensions): New member function.
4059 * f-lang.c (f_extensions): Delete, moved into
4060 f_language::filename_extensions.
4061 (f_language_data): Remove la_filename_extensions initializer.
4062 (f_language::filename_extensions): New member function.
4063 * go-lang.c (go_language_data): Remove la_filename_extensions
4064 initializer.
4065 * language.c (add_set_language_command): Update now that
4066 filename_extensions returns a vector.
4067 (unknown_language_data): Remove la_filename_extensions
4068 initializer.
4069 (auto_language_data): Likewise.
4070 * language.h (language_data): Remove la_filename_extensions field.
4071 (language_defn::filename_extensions): New member function.
4072 * m2-lang.c (m2_language_data): Remove la_filename_extensions
4073 initializer.
4074 * objc-lang.c (objc_extensions): Delete, moved into
4075 objc_language::filename_extensions.
4076 (objc_language_data): Remove la_filename_extensions initializer.
4077 (objc_language::filename_extensions): New member function.
4078 * opencl-lang.c (opencl_language_data): Remove
4079 la_filename_extensions initializer.
4080 * p-lang.c (pascal_extensions): Delete, moved into
4081 pascal_language::filename_extensions.
4082 (pascal_language_data): Remove la_filename_extensions initializer.
4083 (pascal_language::filename_extensions): New member function.
4084 * rust-lang.c (rust_extensions): Delete, moved into
4085 rust_language::filename_extensions.
4086 (rust_language_data): Remove la_filename_extensions initializer.
4087 (rust_language::filename_extensions): New member function.
4088 * symfile.c (add_filename_language): Add new assert.
4089
6f7664a9
AB
40902020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4091
4092 * ada-lang.c (ada_language_data): Remove la_name and
4093 la_natural_name initializers.
4094 (ada_language::name): New member function.
4095 (ada_language::natural_name): New member function.
4096 * c-lang.c (c_language_data): Remove la_name and
4097 la_natural_name initializers.
4098 (c_language::name): New member function.
4099 (c_language::natural_name): New member function.
4100 (cplus_language_data): Remove la_name and
4101 la_natural_name initializers.
4102 (cplus_language::name): New member function.
4103 (cplus_language::natural_name): New member function.
4104 (asm_language_data): Remove la_name and
4105 la_natural_name initializers.
4106 (asm_language::name): New member function.
4107 (asm_language::natural_name): New member function.
4108 (minimal_language_data): Remove la_name and
4109 la_natural_name initializers.
4110 (minimal_language::name): New member function.
4111 (minimal_language::natural_name): New member function.
4112 * compile/compile.c (compile_to_object): Update call to
4113 lanugage_defn::name.
4114 * d-lang.c (d_language_data): Remove la_name and
4115 la_natural_name initializers.
4116 (d_language::name): New member function.
4117 (d_language::natural_name): New member function.
4118 * expprint.c (print_subexp_standard): Update call to
4119 language_defn::name.
4120 (dump_raw_expression): Likewise
4121 (dump_prefix_expression): Likewise.
4122 * f-lang.c (f_language_data): Remove la_name and
4123 la_natural_name initializers.
4124 (f_language::name): New member function.
4125 (f_language::natural_name): New member function.
4126 * go-lang.c (go_language_data): Remove la_name and
4127 la_natural_name initializers.
4128 (go_language::name): New member function.
4129 (go_language::natural_name): New member function.
4130 * language.c (show_language_command): Update call to
4131 language_defn::name.
4132 (set_language_command): Likewise.
4133 (language_enum): Likewise.
4134 (language_str): Likewise.
4135 (add_set_language_command): Likewise, use
4136 language_defn::natural_name in the doc string.
4137 (unknown_language_data): Remove la_name and
4138 la_natural_name initializers.
4139 (unknown_language::name): New member function.
4140 (unknown_language::natural_name): New member function.
4141 (auto_language_data): Remove la_name and
4142 la_natural_name initializers.
4143 (auto_language::name): New member function.
4144 (auto_language::natural_name): New member function.
4145 (language_lookup_primitive_type_as_symbol): Update call to
4146 language_defn::name.
4147 * language.h (language_data): Remove la_name and la_natural_name
4148 member variables.
4149 (language_defn::name): New member function.
4150 (language_defn::natural_name): New member function.
4151 * m2-lang.c (m2_language_data): Remove la_name and
4152 la_natural_name initializers.
4153 (m2_language::name): New member function.
4154 (m2_language::natural_name): New member function.
4155 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
4156 language_defn::natural_name.
4157 * objc-lang.c (objc_language_data): Remove la_name and
4158 la_natural_name initializers.
4159 (objc_language::name): New member function.
4160 (objc_language::natural_name): New member function.
4161 * opencl-lang.c (opencl_language_data): Remove la_name and
4162 la_natural_name initializers.
4163 (opencl_language::name): New member function.
4164 (opencl_language::natural_name): New member function.
4165 * p-lang.c (pascal_language_data): Remove la_name and
4166 la_natural_name initializers.
4167 (pascal_language::name): New member function.
4168 (pascal_language::natural_name): New member function.
4169 * rust-lang.c (rust_language_data): Remove la_name and
4170 la_natural_name initializers.
4171 (rust_language::name): New member function.
4172 (rust_language::natural_name): New member function.
4173 * symtab.c (lookup_language_this): Update call to
4174 language_defn::name.
4175
5bae7c4e
AB
41762020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4177
4178 * ada-lang.c (ada_language_data): Remove la_name_of_this
4179 initializer.
4180 * ax-gdb.c (gen_expr): Update call to name_of_this.
4181 * c-exp.y (classify_name): Likewise.
4182 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
4183 (cplus_language_data): Likewise.
4184 (cplus_language::name_of_this): New member function.
4185 (asm_language_data): Remove la_name_of_this initializer.
4186 (minimal_language_data): Likewise.
4187 * d-lang.c (d_language_data): Likewise.
4188 (d_language::name_of_this): New member function.
4189 * expprint.c (print_subexp_standard): Update call to name_of_this.
4190 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
4191 * go-lang.c (go_language_data): Likewise.
4192 * language.c (unknown_language_data): Likewise.
4193 (unknown_language::name_of_this): New member function.
4194 (auto_language_data): Remove la_name_of_this initializer.
4195 (auto_language::name_of_this): New member function.
4196 * language.h (language_data): Delete la_name_of_this member
4197 variable.
4198 (language_defn::name_of_this): New member function.
4199 * m2-lang.c (m2_language_data): Remove la_name_of_this
4200 initializer.
4201 * objc-lang.c (objc_language_data): Likewise.
4202 (objc_language::name_of_this): New member function.
4203 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
4204 initializer.
4205 * p-lang.c (pascal_language_data): Likewise.
4206 (pascal_language::name_of_this): New member function.
4207 * rust-lang.c (rust_language_data): Remove la_name_of_this
4208 initializer.
4209 * symtab.c (lookup_language_this): Update call to name_of_this.
4210 (lookup_symbol_aux): Likewise.
4211 * valops.c (value_of_this): Likewise.
4212
22e3f3ed
AB
42132020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4214
4215 * ada-lang.c (ada_language_data): Remove
4216 la_struct_too_deep_ellipsis initializer.
4217 (ada_language::struct_too_deep_ellipsis): New member function.
4218 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
4219 initializer.
4220 (cplus_language_data): Likewise.
4221 (asm_language_data): Likewise.
4222 (minimal_language_data): Likewise.
4223 * cp-valprint.c (cp_print_value): Update call to
4224 struct_too_deep_ellipsis.
4225 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
4226 initializer.
4227 * f-lang.c (f_language_data): Likewise.
4228 (f_language::struct_too_deep_ellipsis): New member function.
4229 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
4230 initializer.
4231 * language.c (unknown_language_data): Likewise.
4232 (auto_language_data): Likewise.
4233 * language.h (language_data): Delete la_struct_too_deep_ellipsis
4234 member variable.
4235 (language_defn::struct_too_deep_ellipsis): New member function.
4236 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
4237 initializer.Q
4238 * objc-lang.c (objc_language_data): Likewise.
4239 * opencl-lang.c (opencl_language_data): Likewise.
4240 * p-lang.c (pascal_language_data): Likewise.
4241 * rust-lang.c (rust_language_data): Likewise.
4242 * valprint.c (val_print_check_max_depth): Update call to
4243 struct_too_deep_ellipsis.
4244
ed29e1c7
FW
42452020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
4246
4247 * MAINTAINERS (Write After Approval): Add myself.
4248
12d8f940
TT
42492020-09-15 Tom Tromey <tom@tromey.com>
4250
4251 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
4252 Remove.
4253
6b5a7bc7
TT
42542020-09-15 Tom Tromey <tom@tromey.com>
4255
4256 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
4257 and TYPE_CODE_METHODPTR cases.
4258 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
4259 (c_value_print_inner): Update.
4260 * valprint.c (generic_value_print_memberptr): New function, from
4261 c_value_print_memberptr.
4262 (generic_value_print): Use it. Call cplus_print_method_ptr.
4263
47f0e2ff
TT
42642020-09-15 Tom Tromey <tromey@adacore.com>
4265
4266 * python/python-internal.h (PyInt_FromLong): Remove define.
4267 * python/py-value.c (convert_value_from_python): Use
4268 gdb_py_object_from_longest.
4269 * python/py-type.c (typy_get_code): Use
4270 gdb_py_object_from_longest.
4271 * python/py-symtab.c (salpy_get_line): Use
4272 gdb_py_object_from_longest.
4273 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
4274 gdb_py_object_from_longest.
4275 * python/py-record.c (recpy_gap_reason_code): Use
4276 gdb_py_object_from_longest.
4277 * python/py-record-btrace.c (recpy_bt_insn_size)
4278 (recpy_bt_func_level, btpy_list_count): Use
4279 gdb_py_object_from_longest.
4280 * python/py-infthread.c (gdbpy_create_ptid_object): Use
4281 gdb_py_object_from_longest. Fix error handling.
4282 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
4283 gdb_py_object_from_longest.
4284 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
4285 gdb_py_object_from_longest.
4286 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
4287 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
4288 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
4289
512116ce
TT
42902020-09-15 Tom Tromey <tromey@adacore.com>
4291
4292 * python/python.c (gdbpy_parameter_value): Use
4293 gdb_py_object_from_ulongest.
4294
4ab1029c
TT
42952020-09-15 Tom Tromey <tromey@adacore.com>
4296
4297 * python/py-infevents.c (create_register_changed_event_object):
4298 Use gdb_py_object_from_longest.
4299 * python/py-exitedevent.c (create_exited_event_object): Use
4300 gdb_py_object_from_longest.
4301
062534d4
TT
43022020-09-15 Tom Tromey <tromey@adacore.com>
4303
4304 * python/python.c (gdbpy_parameter_value): Use
4305 gdb_py_object_from_longest.
4306 * python/py-type.c (convert_field, typy_range): Use
4307 gdb_py_object_from_longest.
4308 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
4309 gdb_py_object_from_longest.
4310 * python/py-lazy-string.c (stpy_get_length): Use
4311 gdb_py_object_from_longest.
4312 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
4313 gdb_py_object_from_longest.
4314 * python/py-infevents.c (create_memory_changed_event_object): Use
4315 gdb_py_object_from_longest.
4316 * python/py-inferior.c (infpy_get_num): Use
4317 gdb_py_object_from_longest.
4318 (infpy_get_pid): Likewise.
4319
d1cab987
TT
43202020-09-15 Tom Tromey <tromey@adacore.com>
4321
4322 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
4323 defines.
4324 * python/py-value.c (valpy_long): Use
4325 gdb_py_object_from_ulongest.
4326 * python/py-symtab.c (salpy_get_pc): Use
4327 gdb_py_object_from_ulongest.
4328 (salpy_get_last): Likewise.
4329 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
4330 gdb_py_object_from_ulongest.
4331 * python/py-lazy-string.c (stpy_get_address): Use
4332 gdb_py_object_from_ulongest.
4333 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
4334 * python/py-arch.c (archpy_disassemble): Use
4335 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
4336 error handling.
4337
4bde49dc
TT
43382020-09-15 Tom Tromey <tromey@adacore.com>
4339
4340 * python/python-internal.h (gdb_py_long_from_longest): Remove
4341 defines.
4342 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
4343 * python/py-type.c (convert_field, typy_get_sizeof): Use
4344 gdb_py_object_from_longest.
4345 * python/py-record-btrace.c (btpy_list_index): Use
4346 gdb_py_object_from_longest.
4347
37431074
TT
43482020-09-15 Tom Tromey <tromey@adacore.com>
4349
4350 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
4351 * python/py-record.c (recpy_element_number): Use
4352 gdb_py_object_from_longest.
4353 (recpy_gap_number): Likewise.
4354
cbe25684
TT
43552020-09-15 Tom Tromey <tromey@adacore.com>
4356
4357 * top.c (ui::ui): Update.
4358 (highest_ui_num): Remove.
4359 * top.h (struct ui) <num>: Remove.
4360
db92ac45
TT
43612020-09-15 Tom Tromey <tromey@adacore.com>
4362
4363 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
4364 * ui-style.c (ansi_regex_text): Now array.
4365 * rust-exp.y (number_regex_text): Now array.
4366 * linespec.c (linespec_quote_characters): Now array.
4367 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
4368 Now arrays.
4369
d2b31b67
SM
43702020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4371
4372 * debuginfod-support.c (debuginfod_client_deleter): New.
4373 (debuginfod_client_up): New.
4374 (debuginfod_init): Return debuginfod_client_up.
4375 (debuginfod_source_query): Adjust.
4376 (debuginfod_debuginfo_query): Adjust.
4377
3246bd8e
SM
43782020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4379
4380 * debuginfod-support.c (debuginfod_source_query): Use
4381 make_unique_xstrdup.
4382
10242f36
SM
43832020-09-14 Simon Marchi <simon.marchi@efficios.com>
4384
4385 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
4386 with `type::instance_flags`.
4387
e1044e6a
MM
43882020-09-14 Michael Mullin <masmullin@gmail.com>
4389
4390 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
4391 Remove baton parameter.
4392
04902b09
PA
43932020-09-14 Pedro Alves <pedro@palves.net>
4394
4395 * Makefile.in (SELFTESTS_SRCS): Add
4396 unittests/enum-flags-selftests.c.
4397 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
4398 btrace_function_flags instead of enum btrace_function_flag.
4399 * compile/compile-c-types.c (convert_qualified): Use
4400 enum_flags::raw.
4401 * compile/compile-cplus-symbols.c (convert_one_symbol)
4402 (convert_symbol_bmsym):
4403 * compile/compile-cplus-types.c (compile_cplus_convert_method)
4404 (compile_cplus_convert_struct_or_union_methods)
4405 (compile_cplus_instance::convert_qualified_base):
4406 * go-exp.y (parse_string_or_char): Add cast to int.
4407 * unittests/enum-flags-selftests.c: New file.
4408 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
4409 type to btrace_thread_flags from btrace_thread_flag.
4410 (record_btrace_cancel_resume, record_btrace_step_thread): Change
4411 local's type to btrace_thread_flags from btrace_thread_flag. Add
4412 cast in DEBUG call.
4413
69896a2c
PA
44142020-09-14 Pedro Alves <pedro@palves.net>
4415
4416 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
4417 * gdbtypes.c (address_space_name_to_int): Rename to ...
4418 (address_space_name_to_type_instance_flags): ... this.
4419 (address_space_int_to_name): Rename to ...
4420 (address_space_type_instance_flags_to_name): ... this.
4421 * gdbtypes.h (address_space_name_to_int): Rename to ...
4422 (address_space_name_to_type_instance_flags): ... this.
4423 (address_space_int_to_name): Rename to ...
4424 (address_space_type_instance_flags_to_name): ... this.
4425 * type-stack.c (type_stack::insert): Adjust to rename.
4426 * type-stack.h (type_stack::insert): Likewise.
4427
314ad88d
PA
44282020-09-14 Pedro Alves <pedro@palves.net>
4429 Andrew Burgess <andrew.burgess@embecosm.com>
4430
4431 * avr-tdep.c (avr_address_class_type_flags): Return
4432 type_instance_flags.
4433 (avr_address_class_type_flags_to_name): Take a
4434 type_instance_flags.
4435 (avr_address_class_name_to_type_flags): Return bool and take a
4436 type_instance_flags.
4437 * d-lang.c (build_d_types): Use type::set_instance_flags.
4438 * ft32-tdep.c (ft32_address_class_type_flags): Return
4439 type_instance_flags.
4440 (ft32_address_class_type_flags_to_name): Take a
4441 type_instance_flags.
4442 (ft32_address_class_name_to_type_flags): Return bool and take a
4443 type_instance_flags.
4444 (ft32_gdbarch_init): Use type::set_instance_flags.
4445 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
4446 * gdbarch.h, gdbarch.c: Regenerate.
4447 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
4448 (address_class_name_to_type_flags): Use type_instance_flags and
4449 bool.
4450 * gdbtypes.c (address_space_name_to_int)
4451 (address_space_int_to_name, make_qualified_type): Use
4452 type_instance_flags.
4453 (make_qualified_type): Use type_instance_flags and
4454 type::set_instance_flags.
4455 (make_type_with_address_space, make_cv_type, make_vector_type)
4456 (check_typedef): Use type_instance_flags.
4457 (recursive_dump_type): Cast type_instance_flags to unsigned for
4458 printing.
4459 (copy_type_recursive): Use type::set_instance_flags.
4460 (gdbtypes_post_init): Use type::set_instance_flags.
4461 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
4462 <m_instance_flags>: ... this.
4463 <instance_flags, set_instance_flags>: New methods.
4464 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
4465 (SET_TYPE_INSTANCE_FLAGS): New.
4466 (address_space_name_to_int, address_space_int_to_name)
4467 (make_type_with_address_space): Pass flags using
4468 type_instance_flags instead of int.
4469 * stabsread.c (cleanup_undefined_types_noname): Use
4470 type::set_instance_flags.
4471 * s390-tdep.c (s390_address_class_type_flags): Return
4472 type_instance_flags.
4473 (s390_address_class_type_flags_to_name): Take a
4474 type_instance_flags.
4475 (s390_address_class_name_to_type_flags): Return bool and take a
4476 type_instance_flags.
4477 * type-stack.c (type_stack::follow_types): Use
4478 type_instance_flags.
4479 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
4480
27087b7f
TT
44812020-09-14 Tom Tromey <tromey@adacore.com>
4482
4483 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
4484 * x86-tdep.c (x86_is_thunk_register_name)
4485 (x86_in_indirect_branch_thunk): Update.
4486 * sparc64-tdep.c (sparc64_fpu_register_names)
4487 (sparc64_cp0_register_names, sparc64_register_names)
4488 (sparc64_pseudo_register_names): Now const.
4489 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
4490 cp0_registers_num>: Now const.
4491 * sparc-tdep.c (sparc_core_register_names)
4492 (sparc32_fpu_register_names, sparc32_cp0_register_names)
4493 (sparc32_pseudo_register_names): Now const.
4494 (validate_tdesc_registers): Update.
4495 * rust-lang.c (rust_extensions): Now const.
4496 * p-lang.c (p_extensions): Now const.
4497 * objc-lang.c (objc_extensions): Now const.
4498 * nto-tdep.c (nto_thread_state_str): Now const.
4499 * moxie-tdep.c (moxie_register_names): Now const.
4500 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
4501 Now const.
4502 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
4503 (mips_linux_reg_names): Now const.
4504 (mips_gdbarch_init): Update.
4505 * microblaze-tdep.c (microblaze_register_names): Now const.
4506 * m68k-tdep.c (m68k_register_names): Now const.
4507 * m32r-tdep.c (m32r_register_names): Now const.
4508 * ia64-tdep.c (ia64_register_names): Now const.
4509 * i386-tdep.h (struct gdbarch_tdep) <register_names,
4510 ymmh_register_names, ymm16h_regnum, mpx_register_names,
4511 k_register_names, zmmh_register_names, xmm_avx512_register_names,
4512 ymm_avx512_register_names, pkeys_register_names>: Now const.
4513 * i386-tdep.c (i386_register_names, i386_zmm_names)
4514 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
4515 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
4516 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
4517 * f-lang.c (f_extensions): Now const.
4518 * d-lang.c (d_extensions): Now const.
4519 * csky-tdep.c (csky_register_names): Now const.
4520 * charset.c (default_charset_names, charset_enum): Now const.
4521 (_initialize_charset): Update.
4522 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
4523 const.
4524 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
4525 (bsd_uthread_solib_loaded): Update.
4526 (bsd_uthread_state): Now const.
4527 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
4528 (amd64_ymm_avx512_names, amd64_ymmh_names)
4529 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
4530 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
4531 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
4532 (amd64_dword_names): Now const.
4533 * agent.c (can_use_agent_enum): Now const.
4534 * ada-tasks.c (task_states, long_task_states): Now const.
4535 * ada-lang.c (known_runtime_file_name_patterns)
4536 (known_auxiliary_function_name_patterns, attribute_names)
4537 (standard_exc, ada_extensions): Now const.
4538
89806626
SM
45392020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4540
4541 * bcache.h (struct bcache) <bcache>: Remove constructor.
4542 <m_hash_function, m_compare_function>: Remove.
4543 <~bcache>: Make virtual.
4544 <compare>: Remove static method, introduce virtual method.
4545 <default_hash>: Remove.
4546 <hash>: New virtual method.
4547 * bcache.c (bcache::expand_hash_table): Update.
4548 (bcache::insert): Update.
4549 (bcache::hash): New.
4550 (bcache::compare): Update comment and parameter names.
4551 * gdbtypes.c (types_deeply_equal): Update.
4552 * psymtab.h (struct psymbol_bcache): New struct.
4553 (class psymtab_storage) <psymtab_storage>: Make default.
4554 <psymbol_cache>: Change type to psymbol_bcache.
4555 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
4556 (psymbol_hash): Change to...
4557 (psymbol_bcache::hash): ... this.
4558 (psymbol_compare): Change to...
4559 (psymbol_bcache::compare): ... this.
4560
677c92fe
SM
45612020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4562
4563 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
4564 checking for initial lwp.
4565
3eba3a01
TT
45662020-09-14 Tom Tromey <tromey@adacore.com>
4567
4568 * m68k-tdep.c (m68k_extract_return_value): Use
4569 pointer_result_regnum.
4570 (m68k_store_return_value): Likewise.
4571 (m68k_reg_struct_return_p): Handle vectors and arrays.
4572 (m68k_return_value): Handle arrays.
4573 (m68k_svr4_return_value): Fix single-element aggregate handling.
4574 Handle long double. Adjust for embedded ABI.
4575 (m68k_svr4_init_abi): Set pointer_result_regnum.
4576 (m68k_embedded_init_abi): New function.
4577 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
4578 (m68k_osabi_sniffer): New function.
4579 (_initialize_m68k_tdep): Register osabi sniffer.
4580 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
4581 member.
4582
33f4dd48
SM
45832020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4584
4585 * xml-support.c (xml_fetch_content_from_file): Replace xfree
4586 with gdb::unique_xmalloc_ptr<char>.
4587
8400a90d
SM
45882020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4589
4590 * xml-support.h (xml_fetch_another): Change type to be a
4591 function_view.
4592 (xml_process_xincludes): Remove baton parameter.
4593 (xml_fetch_content_from_file): Change baton parameter to
4594 dirname.
4595 * xml-support.c (struct xinclude_parsing_data)
4596 <xinclude_parsing_data>: Remove baton parameter.
4597 <fetcher_baton>: Remove.
4598 (xinclude_start_include): Adjust.
4599 (xml_process_xincludes): Adjust.
4600 (xml_fetch_content_from_file): Replace baton parameter with
4601 dirname.
4602 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
4603 (xml_init_syscalls_info): Use a lambda.
4604 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
4605 (file_read_description_xml): Use a lambda.
4606 (fetch_available_features_from_target): Change baton parameter
4607 to target_ops.
4608 (target_read_description_xml): Use a lambda.
4609 (target_fetch_description_xml): Use a lambda.
4610 (string_read_description_xml): Update.
4611
04f5bab2
SM
46122020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4613
4614 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
4615 uses with type::endianity_is_not_default.
4616
db558e34
SM
46172020-09-14 Simon Marchi <simon.marchi@efficios.com>
4618
4619 * gdbtypes.h (struct type) <endianity_is_not_default,
4620 set_endianity_is_not_default>: New methods.
4621 (TYPE_ENDIANITY_NOT_DEFAULT): Use
4622 type::endianity_is_not_default, change all write call sites to
4623 use type::set_endianity_is_not_default.
4624
22c4c60c
SM
46252020-09-14 Simon Marchi <simon.marchi@efficios.com>
4626
4627 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
4628 uses with type::is_fixed_instance.
4629
9cdd0d12
SM
46302020-09-14 Simon Marchi <simon.marchi@efficios.com>
4631
4632 * gdbtypes.h (struct type) <is_fixed_instance,
4633 set_is_fixed_instance>: New methods.
4634 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
4635 write call sites to use type::set_is_fixed_instance.
4636
0becda7a
SM
46372020-09-14 Simon Marchi <simon.marchi@efficios.com>
4638
4639 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
4640 uses with type::is_gnu_ifunc.
4641
03cc7249
SM
46422020-09-14 Simon Marchi <simon.marchi@efficios.com>
4643
4644 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
4645 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
4646 use type::set_is_gnu_ifunc.
4647
3f46044c
SM
46482020-09-14 Simon Marchi <simon.marchi@efficios.com>
4649
4650 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
4651 uses with type::stub_is_supported.
4652
9baccff6
SM
46532020-09-14 Simon Marchi <simon.marchi@efficios.com>
4654
4655 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
4656 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
4657 use type::set_stub_is_supported.
4658
bd63c870
SM
46592020-09-14 Simon Marchi <simon.marchi@efficios.com>
4660
4661 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
4662 uses with type::is_vector.
4663
2062087b
SM
46642020-09-14 Simon Marchi <simon.marchi@efficios.com>
4665
4666 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
4667 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
4668 use type::set_is_vector.
4669
a409645d
SM
46702020-09-14 Simon Marchi <simon.marchi@efficios.com>
4671
4672 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
4673 uses with type::has_varargs.
4674
1d6286ed
SM
46752020-09-14 Simon Marchi <simon.marchi@efficios.com>
4676
4677 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
4678 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
4679 use type::set_has_varargs.
4680
7f9f399b
SM
46812020-09-14 Simon Marchi <simon.marchi@efficios.com>
4682
4683 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4684 uses with type::is_prototyped.
4685
27e69b7a
SM
46862020-09-14 Simon Marchi <simon.marchi@efficios.com>
4687
4688 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
4689 New methods.
4690 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
4691 call sites to use type::set_is_prototyped.
4692
d2183968
SM
46932020-09-14 Simon Marchi <simon.marchi@efficios.com>
4694
4695 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
4696 uses with type::target_is_stub.
4697
8f53807e
SM
46982020-09-14 Simon Marchi <simon.marchi@efficios.com>
4699
4700 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
4701 New methods.
4702 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
4703 sites to use type::set_target_is_stub.
4704
e46d3488
SM
47052020-09-14 Simon Marchi <simon.marchi@efficios.com>
4706
4707 * gdbtypes.h (TYPE_STUB): Remove, replace all
4708 uses with type::is_stub.
4709
b4b73759
SM
47102020-09-14 Simon Marchi <simon.marchi@efficios.com>
4711
4712 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
4713 (TYPE_STUB): Use type::is_stub, change all write call sites to
4714 use type::set_is_stub.
4715
20ce4123
SM
47162020-09-14 Simon Marchi <simon.marchi@efficios.com>
4717
4718 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
4719 type::has_no_signedness.
4720
15152a54
SM
47212020-09-14 Simon Marchi <simon.marchi@efficios.com>
4722
4723 * gdbtypes.h (struct type) <has_no_signedness,
4724 set_has_no_signedness>: New methods.
4725 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
4726 call sites to use type::set_has_no_signedness.
4727
c6d940a9
SM
47282020-09-14 Simon Marchi <simon.marchi@efficios.com>
4729
4730 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
4731 type::is_unsigned.
4732
653223d3
SM
47332020-09-14 Simon Marchi <simon.marchi@efficios.com>
4734
4735 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
4736 methods.
4737 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
4738 sites to use type::set_is_unsigned.
4739
55ea94da 47402020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 4741 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 4742
e851246a
SM
4743 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
4744 pointer and stack frame offset when unwinding.
55ea94da 4745
6791b117
PA
47462020-09-13 Pedro Alves <pedro@palves.net>
4747
4748 * NEWS: Document "-break-insert --qualified".
4749 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
4750
77f2120b
PA
47512020-09-13 Pedro Alves <pedro@palves.net>
4752
4753 * linespec.c (classify_mtype, compare_msyms): Delete.
4754 (search_minsyms_for_name): Remove classification logic. Instead
4755 filter out trampoline symbols if we also found an external
4756 function of the same name.
4757
ed6a896c
JB
47582020-09-13 Joel Brobecker <brobecker@adacore.com>
4759
4760 * NEWS: Create a new section for the next release branch.
4761 Rename the section of the current branch, now that it has
4762 been cut.
4763
32aea73e
JB
47642020-09-13 Joel Brobecker <brobecker@adacore.com>
4765
4766 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
4767 * version.in: Bump version to 11.0.50.DATE-git.
4768
8087c3fa
JB
47692020-09-12 Joel Brobecker <brobecker@adacore.com>
4770
4771 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
4772
2a67f09d
FW
47732020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
4774 Felix Willgerodt <Felix.Willgerodt@intel.com>
4775
4776 * gdbarch.sh: Added bfloat16 type.
4777 * gdbarch.c: Regenerated.
4778 * gdbarch.h: Regenerated.
4779 * gdbtypes.c (floatformats_bfloat16): New struct.
4780 (gdbtypes_post_init): Add builtin_bfloat16.
4781 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
4782 (floatformats_bfloat16): New struct.
4783 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
4784 (i386_ymm_type): Add field "v16_bfloat16"
4785 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
4786 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
4787 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
4788 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
4789 * features/i386/64bit-avx512.xml: Add bfloat16 type.
4790 * features/i386/64bit-avx512.c: Regenerated.
4791 * features/i386/64bit-sse.xml: Add bfloat16 type.
4792 * features/i386/64bit-sse.c: Regenerated.
4793
1347d111
FW
47942020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
4795
4796 * i386-tdep.c (i386_zmm_type): Fix field names.
4797 (i386_ymm_type): Fix field names.
4798
7a4e8e7d
TBA
47992020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4800
4801 * breakpoint.c: Fix typo in the help message of the
4802 "set breakpoint condition-evaluation" command.
4803
cf4ac4be
KR
48042020-09-10 Kamil Rytarowski <n54@gmx.com>
4805
4806 * nbsd-nat.c: Include "nat/netbsd-nat.h".
4807 * (nbsd_nat_target::pid_to_exec_file)
4808 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
4809 (nbsd_nat_target::post_startup_inferior)
4810 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
4811 (nbsd_add_threads): Switch local code to common gdb/nat functions.
4812 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
4813 * (nbsd_thread_lister): Remove.
4814
f404573e
KR
48152020-09-10 Kamil Rytarowski <n54@gmx.com>
4816
4817 * fork-inferior.c (startup_inferior): Avoid double free.
4818
1ccb2c17
KR
48192020-09-10 Kamil Rytarowski <n54@gmx.com>
4820
4821 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
4822 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
4823
feedfcc7
KR
48242020-09-10 Kamil Rytarowski <n54@gmx.com>
4825
4826 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
4827 * netbsd-nat.c: Include <sys/ptrace.h>.
4828 * (netbsd_nat::enable_proc_events): Add.
4829
c489f8c6
KR
48302020-09-10 Kamil Rytarowski <n54@gmx.com>
4831
4832 * netbsd-nat.h: Include "gdbsupport/function-view.h".
4833 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4834 (netbsd_nat::for_each_thread): Add.
4835 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
4836 "gdbsupport/common-debug.h".
4837 * (netbsd_nat::netbsd_thread_lister)
4838 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4839 (netbsd_nat::for_each_thread): Add.
4840
330662f6
KR
48412020-09-10 Kamil Rytarowski <n54@gmx.com>
4842
4843 * netbsd-nat.h: Include <unistd.h>.
4844 * (netbsd_nat::pid_to_exec_file): Add.
4845 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
4846 * (netbsd_nat::pid_to_exec_file) Add.
4847
70b67307
KR
48482020-09-10 Kamil Rytarowski <n54@gmx.com>
4849
4850 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
4851
99cf6da6
KR
48522020-09-10 Kamil Rytarowski <n54@gmx.com>
4853
4854 * netbsd-nat.h: New file.
4855 * netbsd-nat.c: Likewise.
4856
1b788fb6
TT
48572020-09-09 Tom Tromey <tromey@adacore.com>
4858
4859 * ada-lang.c (remove_extra_symbols): Do not increment when
4860 removing an element
4861
03b0a45f
TT
48622020-09-08 Tom Tromey <tromey@adacore.com>
4863
4864 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
4865
3cae4447
TT
48662020-09-08 Tom Tromey <tromey@adacore.com>
4867
4868 PR win32/25302:
4869 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
4870 (gdb_bfd_init_data): New function.
4871 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
4872
7f08fd51
TBA
48732020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4874
4875 * infrun.c (fetch_inferior_event): Use
4876 `switch_to_target_no_thread` to switch the target.
4877
3e6ff933
TT
48782020-09-06 Tom Tromey <tom@tromey.com>
4879
4880 * symfile.h (dwarf2_free_objfile): Don't declare.
4881
e56798df
AKS
48822020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4883
4884 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
4885 to match 16 byte real/complex type generated by Flang compiler.
4886
8f5c6526
TV
48872020-09-03 Tom de Vries <tdevries@suse.de>
4888
4889 PR breakpoint/26546
4890 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
4891 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
4892
c5065df0
SM
48932020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
4894
4895 * maint.c (index_digits): New function.
4896 (struct maint_print_section_data): Remove.
4897 (print_bfd_section_info): Remove print_data parameter, add arg
4898 and index_digits.
4899 (print_objfile_section_info): Likewise.
4900 (print_bfd_section_info_maybe_relocated): Likewise (plus
4901 objfile).
4902 (maintenance_info_sections): Adjust calls.
4903
02c6f3f1
TT
49042020-09-02 Tom Tromey <tromey@adacore.com>
4905
4906 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
4907 for null pointers.
4908 (ada_varobj_adjust_for_child_access): Special-case null pointers.
4909
ef5e5b0b
SM
49102020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
4911
4912 * bcache.h (struct bcache) <insert>: Change type of `added` to
4913 pointer to bool.
4914 * bcache.c (bcache::insert): Likewise.
4915 * gdbtypes.c (check_types_worklist): Adjust.
4916 * psymtab.c (add_psymbol_to_bcache): Adjust.
4917
973695d6
KB
49182020-08-31 Kevin Buettner <kevinb@redhat.com>
4919
4920 * corelow.c (unordered_set): Include.
4921 (class core_target): Add field 'm_core_unavailable_mappings'.
4922 (core_target::build_file_mappings): Print only one warning
4923 per inaccessible file. Add unavailable/broken mappings
4924 to m_core_unavailable_mappings.
4925 (core_target::xfer_partial): Call...
4926 (core_target::xfer_memory_via_mappings): New method.
4927
264fc0e2
SM
49282020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4929
4930 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
4931 type to bool.
4932
2de01bdb
SM
49332020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4934
4935 * dwarf2/read.c (struct field_info): Fix indentation.
4936
f3bd50f1
SM
49372020-08-31 Simon Marchi <simon.marchi@efficios.com>
4938
4939 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
4940 ordering in comment.
4941 * frame.c (frame_id_eq): Fix indentation.
4942
22b9b4b0
SL
49432020-08-31 Scott Linder <scott@scottlinder.com>
4944 Simon Marchi <simon.marchi@efficios.com>
4945
4946 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
4947 inline frame ids in outer frame.
4948
84154d16
SM
49492020-08-31 Simon Marchi <simon.marchi@efficios.com>
4950
4951 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
4952 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
4953 (outer_frame_id): Use FID_STACK_OUTER instead of
4954 FID_STACK_INVALID.
4955 (frame_id_p): Don't check for outer_frame_id.
4956
8efaf6b3
SM
49572020-08-31 Simon Marchi <simon.marchi@efficios.com>
4958
4959 * frame-unwind.c (frame_unwind_got_optimized): Don't set
4960 regnum/frame in value. Call allocate_value_lazy.
4961 * frame.c (frame_unwind_register_value): Use
4962 val_print_not_saved.
4963
fe1fe7ea
SM
49642020-08-31 Simon Marchi <simon.marchi@efficios.com>
4965
4966 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
4967
f7c7700d
PA
49682020-08-29 Pedro Alves <pedro@palves.net>
4969
4970 * progspace.c (print_program_space): Use all_inferiors. Switch to
4971 the inferior before calling target_pid_to_str.
4972
e0814aae
TT
49732020-08-28 Tom Tromey <tom@tromey.com>
4974
4975 * xcoffread.c (xcoff_end_psymtab): Update comment.
4976 * dbxread.c (dbx_end_psymtab): Update comment.
4977
626d2320
TV
49782020-08-28 Tom de Vries <tdevries@suse.de>
4979
4980 PR breakpoint/26544
4981 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
4982 event_location.
4983 (create_breakpoint): Same.
4984 (base_breakpoint_decode_location): Same.
4985 (bkpt_create_sals_from_location): Same.
4986 (bkpt_decode_location): Same.
4987 (bkpt_probe_create_sals_from_location): Same.
4988 (bkpt_probe_decode_location): Same.
4989 (tracepoint_create_sals_from_location): Same.
4990 (tracepoint_decode_location): Same.
4991 (tracepoint_probe_decode_location): Same.
4992 (strace_marker_create_sals_from_location): Same.
4993 (strace_marker_decode_location): Same.
4994 (create_sals_from_location_default): Same.
4995 (decode_location_default): Same.
4996 * breakpoint.h (struct breakpoint_ops): Same.
4997 (create_breakpoint): Same.
4998 * linespec.h (decode_line_full): Same.
4999 * linespec.c (decode_line_full): Same. Throw error if
5000 result.size () == 0.
5001
df631783
PA
50022020-08-27 Pedro Alves <pedro@palves.net>
5003
5004 PR gdb/26524
5005 * breakpoint.c (until_break_fsm) <location_breakpoint,
5006 caller_breakpoint>: Delete fields.
5007 <breakpoints>: New field.
5008 <until_break_fsm>: Adjust to save a breakpoint vector instead of
5009 two individual breakpoints.
5010 (until_break_fsm::should_stop): Loop over breakpoints in the
5011 breakpoint vector.
5012 (until_break_fsm::clean_up): Adjust to clear the breakpoints
5013 vector.
5014 (until_break_command): Handle location expanding into multiple
5015 sals.
5016
b2b38aa4
PA
50172020-08-27 Pedro Alves <pedro@palves.net>
5018
5019 PR gdb/26523
5020 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
5021 bp_until breakpoints user-specified locations. Update intro
5022 comment.
5023
b886559f
SM
50242020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
5025
5026 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
5027 gdb_bfd_sections): New.
5028 * maint.c (print_bfd_section_info): Change param type to
5029 maint_print_section_data.
5030 (print_objfile_section_info): Likewise.
5031 (print_bfd_section_info_maybe_relocated): Likewise.
5032 (maintenance_info_sections): Use gdb_bfd_sections.
5033
4c6e63bf
SV
50342020-08-25 Shahab Vahedi <shahab@synopsys.com>
5035
5036 * MAINTAINERS: Add ARC target and maintainer.
5037
8d7f0635
AK
50382020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
5039
5040 * configure.tgt: ARC support for GNU/Linux.
5041 * Makefile.in (ALL_TARGET_OBJS): Likewise.
5042 * arc-linux-tdep.c: New file.
5043 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
5044 * arc-tdep.c (arc_write_pc): Use it.
5045
fdd8731b
SV
50462020-08-25 Shahab Vahedi <shahab@synopsys.com>
5047
5048 * arc-tdep.c (arc_check_for_hardware_loop): New.
5049 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
5050
22459524
SV
50512020-08-25 Shahab Vahedi <shahab@synopsys.com>
5052
5053 * arc-tdep.h: Include "gdbarch.h".
5054
995d3a19
SV
50552020-08-25 Shahab Vahedi <shahab@synopsys.com>
5056
5057 * arch/arc.h
5058 (arc_gdbarch_features): New class to stir the selection of target XML.
5059 (arc_create_target_description): Use FEATURES to choose XML target.
5060 (arc_lookup_target_description): Use arc_create_target_description
5061 to create _new_ target descriptions or return the already created
5062 ones if the FEATURES is the same.
5063 * arch/arc.c: Implementation of prototypes described above.
5064 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
5065 (arc_gdbarch_features_init): Initialize the FEATURES struct.
5066 * arc-tdep.c (*_feature_name): Make feature names consistent.
5067 (arc_register_feature): A new struct to hold information about
5068 registers of a particular target/feature.
5069 (arc_check_tdesc_feature): Check if XML provides registers in
5070 compliance with ARC_REGISTER_FEATURE structs.
5071 (arc_update_acc_reg_names): Add aliases for r58 and r59.
5072 (determine_*_reg_feature_set): Which feature name to look for.
5073 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
5074 (mach_type_to_arc_isa): Convert from a set of binutils machine types
5075 to expected ISA enums to be used in arc_gdbarch_features structs.
5076 * features/Makefile (FEATURE_XMLFILES): Add new files.
5077 * gdb/features/arc/v1-aux.c: New file.
5078 * gdb/features/arc/v1-aux.xml: Likewise.
5079 * gdb/features/arc/v1-core.c: Likewise.
5080 * gdb/features/arc/v1-core.xml: Likewise.
5081 * gdb/features/arc/v2-aux.c: Likewise.
5082 * gdb/features/arc/v2-aux.xml: Likewise.
5083 * gdb/features/arc/v2-core.c: Likewise.
5084 * gdb/features/arc/v2-core.xml: Likewise.
5085 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
5086
3945d2d7
GM
50872020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
5088 Andrew Burgess <andrew.burgess@embecosm.com>
5089
5090 PR m2/26372
fc5d6901 5091 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
5092 an assert. Remove single element array indexing pattern as the
5093 MULTI_SUBSCRIPT support will handle this case too.
5094
2677f2d3
SM
50952020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
5096
5097 * value.h (valprint_check_validity): Move declaration from
5098 here...
5099 * valprint.h (valprint_check_validity): ... to here.
5100
c426fddb
SM
51012020-08-24 Simon Marchi <simon.marchi@efficios.com>
5102
5103 * debug.h: New file.
5104 * debug.c (debug_prefixed_vprintf): New function.
5105 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
5106 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
5107
1eb8556f
SM
51082020-08-24 Simon Marchi <simon.marchi@efficios.com>
5109
5110 * infrun.h (infrun_debug_printf_1): New function declaration.
5111 (infrun_debug_printf): New macro.
5112 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
5113 throughout.
5114 (infrun_debug_printf): New function.
5115 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
5116 (handle_jit_event): Likewise.
5117
b8fff44e
MW
51182020-08-21 Mark Wielaard <mark@klomp.org>
5119
5120 * ada-lex.l: Extend register warnings diagnostics comment for g++.
5121
d19c3068
SM
51222020-08-22 Simon Marchi <simon.marchi@efficios.com>
5123
5124 * frame.c (enum class frame_id_status): New.
5125 (struct frame_info) <this_id::p>: Change type to frame_id_status.
5126 (fprintf_frame): Update.
5127 (compute_frame_id): Set frame id status to "computing" on entry.
5128 Set it back to "not_computed" on failure and to "computed" on
5129 success.
5130 (get_frame_id): Assert the frame id is not being computed.
5131 (create_sentinel_frame): Use frame_id_status::COMPUTED.
5132 (create_new_frame): Likewise.
5133 (frame_cleanup_after_sniffer): Update assert.
5134
b70e516e
SM
51352020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5136
5137 * regcache.c (pid_ptid_regcache_map): New type.
5138 (target_ptid_regcache_map): Remove.
5139 (target_pid_ptid_regcache_map): New type.
5140 (regcaches): Change type to target_pid_ptid_regcache_map.
5141 (get_thread_arch_aspace_regcache): Update.
5142 (regcache_thread_ptid_changed): Update, handle pid-like ptid
5143 case.
5144 (regcaches_size): Update.
5145 (regcache_count): Update.
5146 (registers_changed_ptid_target_pid_test): New.
5147 (_initialize_regcache): Register new test.
5148
cdd9148a
SM
51492020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5150
5151 * regcache.c (regcache_count): New.
5152 (struct regcache_test_data): New.
5153 (regcache_test_data_up): New.
5154 (populate_regcaches_for_test): New.
5155 (regcaches_test): Remove.
5156 (get_thread_arch_aspace_regcache_test): New.
5157 (registers_changed_ptid_all_test): New.
5158 (registers_changed_ptid_target_test): New.
5159 (registers_changed_ptid_target_ptid_test): New.
5160 (regcache_thread_ptid_changed): Remove regcache_count lambda.
5161 (_initialize_regcache): Register new tests.
5162
dd125343
SM
51632020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5164
5165 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
5166 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
5167 gdbarch and aspace parameter. Use current inferior's aspace.
5168 Validate regcache's arch value.
5169 (regcaches_test): Update.
5170
3ee93972
SM
51712020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5172
5173 * regcache.c (regcaches_test): Call registers_changed.
5174
33bf4c5c
TBA
51752020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5176
5177 * infrun.c (process_event_stop_test): Fix typo "breapoint".
5178
c2fd7fae
AKS
51792020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5180
5181 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
5182 to find the end of prologue for flang compiled binaries.
5183 * arm-tdep.c (arm_skip_prologue): Likewise.
5184 * i386-tdep.c (i386_skip_prologue): Likewise.
5185 * producer.c (producer_is_llvm): New function.
5186 (producer_parsing_tests): Added new tests for clang/flang.
5187 * producer.h (producer_is_llvm): New declaration.
5188
9327494e
SM
51892020-08-18 Simon Marchi <simon.marchi@efficios.com>
5190
5191 * linux-nat.c (linux_nat_debug_printf): New function.
5192 (linux_nat_debug_printf_1): New macro. Use throughout the file.
5193
d138725a
AM
51942020-08-18 Aaron Merey <amerey@redhat.com>
5195
5196 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
5197 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
5198 (CLIBS): Add DEBUGINFOD_LIBS.
5199
f9b11e6b
ST
52002020-08-17 Sergei Trofimovich <siarheit@google.com>
5201
5202 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
5203 'gdbarch_num_regs'.
5204
3ae7ab99
TT
52052020-08-17 Tom Tromey <tromey@adacore.com>
5206
5207 * ada-varobj.c (ada_varobj_decode_var): Handle case where
5208 ada_get_decoded_value returns NULL.
5209
b017825f
TT
52102020-08-17 Tom Tromey <tromey@adacore.com>
5211
5212 * python/py-inferior.c (infpy_search_memory): Use
5213 gdb_py_object_from_ulongest.
5214 * python/py-infevents.c (create_inferior_call_event_object)
5215 (create_memory_changed_event_object): Use
5216 gdb_py_object_from_ulongest.
5217 * python/py-linetable.c (ltpy_entry_get_pc): Use
5218 gdb_py_object_from_ulongest.
5219
7635cf79
SM
52202020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5221
5222 * loc.c (class symbol_needs_eval_context): Fix indentation.
5223
f54be24b
SM
52242020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5225
5226 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
5227 bool.
5228
53d5a2a5
TV
52292020-08-17 Tom de Vries <tdevries@suse.de>
5230
5231 PR gdb/26393
5232 * gdbtypes.c (dump_dynamic_prop): New function.
5233 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
5234
547ce8f0
TV
52352020-08-15 Tom de Vries <tdevries@suse.de>
5236
5237 PR backtrace/26390
5238 * stack.c (print_frame_args): Temporarily set the selected
5239 frame to FRAME while printing the frame's arguments.
5240
6ea815e7
PFC
52412020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5242
5243 PR breakpoints/26385
5244 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
5245 Always clear watchpoint with PTRACE_SET_DEBUGREG.
5246
6e562fa3
PFC
52472020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5248
5249 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
5250 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
5251 and >= to check return value instead of == -1 and != -1.
5252
d369b608
SM
52532020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
5254
5255 * utils.h (class gdb_argv) <as_array_view>: New method.
5256 * utils.c (gdb_argv_as_array_view_test): New.
5257 (_initialize_utils): Register selftest.
5258 * maint.c (maintenance_selftest): Use the new method.
5259
b31488a3
KR
52602020-08-13 Kamil Rytarowski <n54@gmx.com>
5261
5262 * target.h (supports_dumpcore, dumpcore): New
5263 function declarations.
5264 * target.c (supports_dumpcore, dumpcore): New
5265 functions.
5266 * target-delegates.c: Rebuild.
5267 * gcore.c (gcore_command): Use target_supports_dumpcore ()
5268 and target_dumpcore ().
5269
002a3166
AM
52702020-08-13 Aaron Merey <amerey@redhat.com>
5271
5272 * debuginfod-support.c: Replace global variables with user_data.
5273
ece5bc8a
SM
52742020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
5275
5276 * maint.c (maintenance_selftest): Split args and pass array_view
5277 to run_tests.
5278
6d8a0a5e
LM
52792020-08-12 Luis Machado <luis.machado@linaro.org>
5280
5281 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
5282 type's length.
5283 Use %s and pulongest to print the length.
5284
7cf663a9
PA
52852020-08-12 Pedro Alves <palves@redhat.com>
5286
5287 * NEWS: Move "Multi-target debugging support" item to the
5288 "Changes since GDB 9" section.
5289
27c7b875
PA
52902020-08-12 Pedro Alves <palves@redhat.com>
5291
5292 PR gdb/26336
5293 * progspace.c (program_space::remove_objfile): Invalidate the
5294 frame cache.
5295
1796a2a1
TV
52962020-08-11 Tom de Vries <tdevries@suse.de>
5297
5298 * MAINTAINERS: Mark ms1 as deleted.
5299
f8e3fe0d
LM
53002020-08-10 Luis Machado <luis.machado@linaro.org>
5301
5302 PR gdb/26310
5303
5304 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
5305 act accordingly.
5306 (aarch64_analyze_prologue_test): Add more unit tests to exercise
5307 movz/str/stur/stp skipping behavior.
5308
cc308722
LM
53092020-08-10 Luis Machado <luis.machado@linaro.org>
5310
5311 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
5312 struct user_sve_header instead of struct sve_context.
5313
041d9819
SM
53142020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
5315
5316 * read.h (dwarf2_fetch_die_loc_sect_off,
5317 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
5318 `void *` parameter with function_view.
5319 * read.c (dwarf2_fetch_die_loc_sect_off,
5320 dwarf2_fetch_die_loc_cu_off): Likewise.
5321 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
5322 (per_cu_dwarf_call): Adjust.
5323 (get_frame_address_in_block_wrapper): Remove.
5324 (indirect_synthetic_pointer): Adjust.
5325 (get_ax_pc): Remove.
5326 (dwarf2_compile_expr_to_ax): Adjust.
5327
38f8aa06
TV
53282020-08-08 Tom de Vries <tdevries@suse.de>
5329
5330 PR build/26344
5331 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
5332 constructor.
5333 * regcache.c (get_thread_arch_aspace_regcache): Same.
5334
a52b3ae2
TT
53352020-08-07 Tom Tromey <tromey@adacore.com>
5336
5337 * ravenscar-thread.c
5338 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
5339 New method.
5340 (ravenscar_thread_target::wait): Check
5341 runtime_initialized.
5342 (ravenscar_thread_target::prepare_to_store)
5343 (ravenscar_thread_target::stopped_by_sw_breakpoint)
5344 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5345 (ravenscar_thread_target::stopped_by_watchpoint)
5346 (ravenscar_thread_target::stopped_data_address)
5347 (ravenscar_thread_target::core_of_thread): Use
5348 scoped_restore_current_thread and
5349 set_base_thread_from_ravenscar_task.
5350
0e29517d
TT
53512020-08-07 Tom Tromey <tromey@adacore.com>
5352
5353 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
5354
592f9bd7
TT
53552020-08-07 Tom Tromey <tromey@adacore.com>
5356
5357 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
5358 update_inferior_ptid before update_thread_list.
5359 (temporarily_change_regcache_ptid): New class.
5360 (ravenscar_thread_target::fetch_registers)
5361 (ravenscar_thread_target::store_registers)
5362 (ravenscar_thread_target::prepare_to_store): Use base thread when
5363 forwarding operation.
5364
39e2018a
TT
53652020-08-07 Tom Tromey <tromey@adacore.com>
5366
5367 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
5368 "is_pid" case.
5369
2080266b
TT
53702020-08-07 Tom Tromey <tromey@adacore.com>
5371
5372 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
5373 New methods.
5374 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
5375 first.
5376 (ravenscar_thread_target::add_thread): Rename from
5377 ravenscar_add_thread.
5378 (ravenscar_thread_target::update_thread_list): Use a lambda.
5379 (ravenscar_thread_target::xfer_partial): New method.
5380
78c02f21
TT
53812020-08-07 Tom Tromey <tromey@adacore.com>
5382
5383 * ada-lang.h (ada_task_list_iterator_ftype): Now a
5384 gdb::function_view.
5385 (iterate_over_live_ada_tasks): Change type of argument.
5386 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
5387 of argument.
5388
d5d833af
TT
53892020-08-07 Tom Tromey <tromey@adacore.com>
5390
5391 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
5392 Remove.
5393 (ravenscar_thread_target::extra_thread_info): Remove.
5394 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
5395 defer to target beneath for non-Ravenscar threads.
5396
a8ac85bb
TT
53972020-08-07 Tom Tromey <tromey@adacore.com>
5398
5399 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
5400 get_base_thread_from_ravenscar_task>: Now methods.
5401 <m_cpu_map>: New member.
5402 (ravenscar_thread_target::get_thread_base_cpu): Rename from
5403 ravenscar_get_thread_base_cpu. Check m_cpu_map.
5404 (ravenscar_thread_target::task_is_currently_active): Update.
5405 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
5406 Now a method.
5407 (ravenscar_thread_target::add_active_thread): Put initial thread
5408 into the m_cpu_map.
5409
550ab58d
TT
54102020-08-07 Tom Tromey <tromey@adacore.com>
5411
5412 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
5413 event_ptid.
5414
e9546579
TT
54152020-08-07 Tom Tromey <tromey@adacore.com>
5416
5417 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
5418 runtime_initialized.
5419
3d4470e5
TT
54202020-08-07 Tom Tromey <tromey@adacore.com>
5421
5422 * ravenscar-thread.c (ravenscar_thread_target): Don't call
5423 add_active_thread.
5424 (ravenscar_thread_target::add_active_thread): Now public.
5425 (ravenscar_inferior_created): Call add_active_thread after pushing
5426 the target.
5427
888bdb2b
SM
54282020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
5429
5430 * regcache.c (ptid_regcache_map): New type.
5431 (target_ptid_regcache_map): New type.
5432 (regcaches): Change type to target_ptid_regcache_map.
5433 (get_thread_arch_aspace_regcache): Update to regcaches' new
5434 type.
5435 (regcache_thread_ptid_changed): Likewise.
5436 (registers_changed_ptid): Likewise.
5437 (regcaches_size): Likewise.
5438 (regcaches_test): Update.
5439 (regcache_thread_ptid_changed): Update.
5440 * regcache.h (regcache_up): New type.
5441 * gdbsupport/ptid.h (hash_ptid): New struct.
5442
b161a60d
SM
54432020-08-07 Simon Marchi <simon.marchi@efficios.com>
5444
5445 * observable.h (thread_ptid_changed): Add parameter
5446 `process_stratum_target *`.
5447 * infrun.c (infrun_thread_ptid_changed): Add parameter
5448 `process_stratum_target *` and use it.
5449 (selftests): New namespace.
5450 (infrun_thread_ptid_changed): New function.
5451 (_initialize_infrun): Register selftest.
5452 * regcache.c (regcache_thread_ptid_changed): Add parameter
5453 `process_stratum_target *` and use it.
5454 (regcache_thread_ptid_changed): New function.
5455 (_initialize_regcache): Register selftest.
5456 * thread.c (thread_change_ptid): Pass target to
5457 thread_ptid_changed observable.
5458
d2854d8d
CT
54592020-08-06 Caroline Tice <cmtice@google.com>
5460
fe4c3d43
SM
5461 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
5462 (struct dwp_sections): Update field comments. Add loclists and
5463 rnglists fields.
5464 (struct virtual_v2_dwo_sections): Rename struct to
5465 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
5466 size & offset fields for loclists and rnglists.
5467 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
5468 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
5469 skipping dummy type units.
5470 (create_dwp_hash_table): Update the large comment above the function to
5471 discuss Version 5 DWP files as well, with references. Update all the
5472 version checks in the function to check for version 5 as well. Add new
5473 section at the end to create dwp hash table for version 5.
5474 (create_dwp_v2_section): Rename function to
5475 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
5476 Add V5 to error message text.
5477 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
5478 into calls to create_dwp_v2_or_v5_section.
5479 (create_dwo_unit_in_dwp_v5): New function.
5480 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
5481 check for version2; add else clause to handle version 5.
5482 (open_and_init_dwo_file): Add code to check dwarf version & only call
5483 create_debug_types_hash_table (with sections.types) if version is not 5;
5484 else call create_debug_type_hash_table, with sections.info.
5485 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
5486 version 5.
5487 (dwarf2_locate_v5_dwp_sections): New function.
5488 (open_and_init_dwp_file): Add else-if clause for version 5 to call
5489 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 5490
159ed7d9
SM
54912020-08-06 Simon Marchi <simon.marchi@efficios.com>
5492
5493 * regcache.h (class regcache): Remove friend
5494 registers_changed_ptid.
5495 <regcache_thread_ptid_changed>: Remove.
5496 <regcaches>: Remove.
5497 * regcache.c (regcache::regcaches): Rename to...
5498 (regcaches): ... this. Make static.
5499 (get_thread_arch_aspace_regcache): Update.
5500 (regcache::regcache_thread_ptid_changed): Rename to...
5501 (regcache_thread_ptid_changed): ... this. Update.
5502 (class regcache_access): Remove.
5503 (regcaches_test): Update.
5504 (_initialize_regcache): Update.
5505 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
5506 <forward_list>.
5507
174981ae
SM
55082020-08-06 Simon Marchi <simon.marchi@efficios.com>
5509
5510 * regcache.h (class regcache) <current_regcache>: Rename to...
5511 <regcaches>: ... this. Move doc here.
5512 * regcache.c (regcache::current_regcache) Rename to...
5513 (regcache::regcaches): ... this. Move doc to header.
5514 (get_thread_arch_aspace_regcache): Update.
5515 (regcache::regcache_thread_ptid_changed): Update.
5516 (registers_changed_ptid): Update.
5517 (class regcache_access) <current_regcache_size>: Rename to...
5518 <regcaches_size>: ... this.
5519 (current_regcache_test): Rename to...
5520 (regcaches_test): ... this.
5521 (_initialize_regcache): Update.
5522
ed908db6
VC
55232020-08-06 Victor Collod <vcollod@nvidia.com>
5524
5525 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
5526
b5582ab7
KB
55272020-08-05 Kevin Buettner <kevinb@redhat.com>
5528
5529 * corelow.c (core_target::build_file_mappings): Don't output
5530 null pathname in warning.
5531
ea946b86
SM
55322020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
5533
5534 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
5535 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
5536 gdb.dwarf2/dw2-single-line-discriminators.exp,
5537 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
5538
57d02173
TT
55392020-08-05 Tom Tromey <tromey@adacore.com>
5540
5541 PR rust/26197:
5542 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
5543 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
5544 Fix off-by-one and type size errors in ordinary case.
5545
5555c86d
TV
55462020-08-05 Tom de Vries <tdevries@suse.de>
5547
5548 * gdbtypes.c (type_not_allocated, type_not_associated): Use
5549 "prop->const_val () == 0" instead of "prop->const_val () != 0".
5550
97916bfe
SM
55512020-08-04 Simon Marchi <simon.marchi@efficios.com>
5552
5553 * frame.h (frame_id_p): Return bool.
5554 (frame_id_artificial_p): Return bool.
5555 (frame_id_eq): Return bool.
5556 (has_stack_frames): Return bool.
5557 (get_selected_frame): Fix typo in comment.
5558 (get_frame_pc_if_available): Return bool.
5559 (get_frame_address_in_block_if_available): Return bool.
5560 (get_frame_func_if_available): Return bool.
5561 (read_frame_register_unsigned): Return bool.
5562 (get_frame_register_bytes): Return bool.
5563 (safe_frame_unwind_memory): Return bool.
5564 (deprecated_frame_register_read): Return bool.
5565 (frame_unwinder_is): Return bool.
5566 * frame.c (struct frame_info) <prev_arch::p>: Change type to
5567 bool.
5568 <this_id::p>: Likewise.
5569 <prev_p>: Likewise.
5570 (frame_stash_add): Return bool.
5571 (get_frame_id): Use bool.
5572 (frame_id_build_special) Use bool.
5573 (frame_id_build_unavailable_stack): Use bool.
5574 (frame_id_build): Use bool.
5575 (frame_id_p): Return bool, use true/false instead of 1/0.
5576 (frame_id_artificial_p): Likewise.
5577 (frame_id_eq): Likewise.
5578 (frame_id_inner): Likewise.
5579 (get_frame_func_if_available): Likewise.
5580 (read_frame_register_unsigned): Likewise.
5581 (deprecated_frame_register_read): Likewise.
5582 (get_frame_register_bytes): Likewise.
5583 (has_stack_frames): Likewise.
5584 (inside_main_func): Likewise.
5585 (inside_entry_func): Likewise.
5586 (get_frame_pc_if_available): Likewise.
5587 (get_frame_address_in_block_if_available): Likewise.
5588 (frame_unwinder_is): Likewise.
5589 (safe_frame_unwind_memory): Likewise.
5590 (frame_unwind_arch): Likewise.
5591
fedfee88
SM
55922020-08-04 Simon Marchi <simon.marchi@efficios.com>
5593
5594 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
5595 type to cached_copy_status.
5596 (fprintf_frame): Adjust.
5597 (get_frame_func_if_available): Adjust.
5598 (frame_cleanup_after_sniffer): Adjust.
5599
6cfa9b59
MW
56002020-08-04 Mark Wielaard <mark@klomp.org>
5601
5602 * MAINTAINERS (Write After Approval): Update email address.
5603
66d6346b
SM
56042020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5605
5606 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
5607 dynamic_prop::const_val.
5608
8a6d5e35
SM
56092020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5610
5611 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
5612 dynamic_prop::kind.
5613
51d6067d
SM
56142020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5615
5616 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
5617
b26e2ae7
JM
56182020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
5619
5620 * configure.tgt: Set gdb_sim for bpf-*-* targets.
5621
39791af2
JM
56222020-08-04 Weimin Pan <weimin.pan@oracle.com>
5623 Jose E. Marchesi <jose.marchesi@oracle.com>
5624
5625 * configure.tgt: Add entry for bpf-*-*.
5626 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
5627 (ALLDEPFILES): Add bpf-tdep.c.
5628 * bpf-tdep.c: New file.
5629 * MAINTAINERS: Add bpf target and maintainer.
5630 * NEWS: Mention the support for the new target.
5631
521894aa
TV
56322020-08-04 Tom de Vries <tdevries@suse.de>
5633
5634 PR symtab/23270
5635 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
5636 Error.
5637
5d6356e9
JB
56382020-08-03 John Baldwin <jhb@FreeBSD.org>
5639
5640 * syscalls/freebsd.xml: Regenerate.
5641
0cf82b81
JB
56422020-08-03 John Baldwin <jhb@FreeBSD.org>
5643
5644 * syscalls/update-freebsd.sh: Fix usage and year range.
5645
8f34b746
TV
56462020-08-03 Tom de Vries <tdevries@suse.de>
5647
5648 PR symtab/26333
5649 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
5650 DW_LNE_lo_user/DW_LNE_hi_user range.
5651
5e500d33
SM
56522020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
5653
5654 PR ada/26318
5655 * ada-lang.c (ada_modulus): Return 0 if property is not of const
5656 kind.
5657
78319c15
TBA
56582020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5659
5660 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
5661
4c55e970
TBA
56622020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5663
5664 * breakpoint.c (set_breakpoint_condition): Update the condition
5665 expressions after checking that the input condition string parses
5666 successfully and does not contain junk at the end.
5667
1e620590
TBA
56682020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5669
5670 * breakpoint.c (set_breakpoint_condition): Update the
5671 condition string after parsing the new condition successfully.
5672
c8693053
RO
56732020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5674
5675 * proc-api.c (_STRUCTURED_PROC): Don't define.
5676 * proc-events.c: Likewise.
5677 * proc-flags.c: Likewise.
5678 * proc-why.c: Likewise.
5679 * procfs.c: Likewise.
5680
5681 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
5682 * configure, config.in: Regenerate.
5683
5a99adb8
TV
56842020-07-30 Tom de Vries <tdevries@suse.de>
5685
5686 PR build/26320
5687 * ui-style.h (struct ui_file_style::color): Wrap m_value and
5688 m_red/m_green/m_blue in a union.
5689
8ba83e91
TV
56902020-07-29 Tom de Vries <tdevries@suse.de>
5691
5692 PR tdep/26280
5693 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
5694
f75a0693
AB
56952020-07-28 Tom Tromey <tromey@adacore.com>
5696
5697 PR symtab/26270:
5698 * symtab.h (find_pc_partial_function_sym): Declare.
5699 * cli/cli-cmds.c (disassemble_command): Use
5700 find_pc_partial_function_sym. Check asm_demangle.
5701 * blockframe.c (cache_pc_function_sym): New global.
5702 (cache_pc_function_name): Remove.
5703 (clear_pc_function_cache): Update.
5704 (find_pc_partial_function_sym): New function, from
5705 find_pc_partial_function.
5706 (find_pc_partial_function): Rewrite using
5707 find_pc_partial_function_sym.
5708
16f3242c
TT
57092020-07-28 Tom Tromey <tromey@adacore.com>
5710
5711 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
5712 help. Add usage.
5713
4888741a
TT
57142020-07-28 Tom Tromey <tromey@adacore.com>
5715
5716 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
5717 <DW_OP_GNU_variable_value>: Cast to address type.
5718
4d46f402
KR
57192020-07-28 Kamil Rytarowski <n54@gmx.com>
5720
5721 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
5722 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
5723 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
5724 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
5725 (nbsd_get_siginfo_type): New.
5726 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5727 (_initialize_nbsd_tdep): New.
5728
d70f978b
L
57292020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5730
5731 PR binutils/26301
5732 * configure: Regenerated.
5733
377170fa
L
57342020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5735
5736 PR binutils/26301
5737 * configure: Regenerated.
5738
43d5901d
AB
57392020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5740
5741 * python/py-frame.c: Remove 'user-regs.h' include.
5742 (frapy_read_register): Rewrite to make use of
5743 gdbpy_parse_register_id.
5744 * python/py-registers.c (gdbpy_parse_register_id): New function,
5745 moved here from python/py-unwind.c. Updated the return type, and
5746 also accepts register descriptor objects.
5747 * python/py-unwind.c: Remove 'user-regs.h' include.
5748 (pyuw_parse_register_id): Moved to python/py-registers.c.
5749 (unwind_infopy_add_saved_register): Update to use
5750 gdbpy_parse_register_id.
5751 (pending_framepy_read_register): Likewise.
5752 * python/python-internal.h (gdbpy_parse_register_id): Declare.
5753
14fa8fb3
AB
57542020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5755
5756 * python/py-registers.c: Add 'user-regs.h' include.
5757 (register_descriptor_iter_find): New function.
5758 (register_descriptor_iterator_object_methods): New static global
5759 methods array.
5760 (register_descriptor_iterator_object_type): Add pointer to methods
5761 array.
5762
ddce1758
JB
57632020-07-27 John Baldwin <jhb@FreeBSD.org>
5764
5765 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
5766 for all architectures on FreeBSD 11.3 and later.
5767
a4089f52
TT
57682020-07-27 Tom Tromey <tromey@adacore.com>
5769
5770 * gcore.h (load_corefile): Don't declare.
5771
95420d30
TV
57722020-07-27 Tom de Vries <tdevries@suse.de>
5773
5774 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
5775 * config.in: Regenerate.
5776 * configure: Regenerate.
5777
05a6b8c2
EZ
57782020-07-26 Eli Zaretskii <eliz@gnu.org>
5779
5780 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
5781 ws2tcpip.h. When checking whether socklen_t type is defined, use
5782 ws2tcpip.h if it is available and sys/socket.h isn't.
5783 * configure: Regenerate.
5784 * config.in: Regenerate.
5785
e79eb02f
AB
57862020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
5787
5788 PR fortran/23051
5789 PR fortran/26139
5790 * valops.c (value_ind): Pass address to
5791 readjust_indirect_value_type.
5792 * value.c (readjust_indirect_value_type): Make parameter
5793 non-const, and add extra address parameter. Resolve original type
5794 before using it.
5795 * value.h (readjust_indirect_value_type): Update function
5796 signature and comment.
5797
876518dd
TV
57982020-07-25 Tom de Vries <tdevries@suse.de>
5799
5800 PR symtab/26243
5801 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
5802 entries.
5803
f6720b1c
AM
58042020-07-24 Aaron Merey <amerey@redhat.com>
5805
5806 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
5807 * configure: Rebuild.
5808
513487e1
KB
58092020-07-23 Kevin Buettner <kevinb@redhat.com>
5810
5811 PR corefiles/26294
5812 * corelow.c (_initialize_corelow): Add period to help text
5813 for "maintenance print core-file-backed-mappings".
5814
e7bc9db8
PA
58152020-07-23 Pedro Alves <pedro@palves.net>
5816
5817 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
5818 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
5819 meanwhile.
5820 * frame.c (frame_cache_generation, get_frame_cache_generation):
5821 New.
5822 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
5823 (get_prev_frame_if_no_cycle): On exception, don't touch
5824 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
5825 * frame.h (get_frame_cache_generation): Declare.
5826
90fcc466
TV
58272020-07-23 Tom de Vries <tdevries@suse.de>
5828
5829 PR tui/26282
5830 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
5831 New default constructor.
5832
78344df7
AB
58332020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
5834
5835 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
5836 exclude non-statement entries.
5837
b089853a
KB
58382020-07-22 Kevin Buettner <kevinb@redhat.com>
5839
5840 * NEWS (New commands): Mention new command
5841 "maintenance print core-file-backed-mappings".
5842
09c2f5d4
KB
58432020-07-22 Kevin Buettner <kevinb@redhat.com>
5844
5845 * corelow.c (gdbcmd.h): Include.
5846 (core_target::info_proc_mappings): New method.
5847 (get_current_core_target): New function.
5848 (maintenance_print_core_file_backed_mappings): New function.
5849 (_initialize_corelow): Add core-file-backed-mappings to
5850 "maint print" commands.
5851
9c5ec5c2 58522020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 5853
9c5ec5c2
KB
5854 * linux-tdep.c (dump_note_entry_p): New function.
5855 (linux_dump_mapping_p_ftype): New typedef.
5856 (linux_find_memory_regions_full): Add new parameter,
5857 should_dump_mapping_p.
5858 (linux_find_memory_regions): Adjust call to
5859 linux_find_memory_regions_full.
5860 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
5861 call to linux_find_memory_regions_full.
5862
db082f59
KB
58632020-07-22 Kevin Buettner <kevinb@redhat.com>
5864
5865 * corelow.c (solist.h, unordered_map): Include.
5866 (class core_target): Add field m_core_file_mappings and
5867 method build_file_mappings.
5868 (core_target::core_target): Call build_file_mappings.
5869 (core_target::~core_target): Free memory associated with
5870 m_core_file_mappings.
5871 (core_target::build_file_mappings): New method.
5872 (core_target::xfer_partial): Use m_core_file_mappings
5873 for memory transfers.
5874 * linux-tdep.c (linux_read_core_file_mappings): New
5875 function.
5876 (linux_core_info_proc_mappings): Rewrite to use
5877 linux_read_core_file_mappings.
5878 (linux_init_abi): Register linux_read_core_file_mappings.
5879
7e183d27
KB
58802020-07-22 Kevin Buettner <kevinb@redhat.com>
5881
5882 * arch-utils.c (default_read_core_file_mappings): New function.
5883 * arch-utils.c (default_read_core_file_mappings): Declare.
5884 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
5885 * gdbarch.h, gdbarch.c: Regenerate.
5886
2735d421
KB
58872020-07-22 Kevin Buettner <kevinb@redhat.com>
5888
5889 PR corefiles/25631
5890 * corelow.c (core_target:xfer_partial): Revise
5891 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
5892 case after first checking the stratum beneath the core
5893 target.
5894 (has_all_memory): Return true.
5895 * target.c (raw_memory_xfer_partial): Revise comment
5896 regarding use of has_all_memory.
5897
e56cb451
KB
58982020-07-22 Kevin Buettner <kevinb@redhat.com>
5899
5900 * exec.h (section_table_xfer_memory): Revise declaration,
5901 replacing section name parameter with an optional callback
5902 predicate.
5903 * exec.c (section_table_xfer_memory): Likewise.
5904 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
5905 of section_table_xfer_memory.
5906
32fa152e
TT
59072020-07-22 Tom Tromey <tromey@adacore.com>
5908
5909 * mi/mi-cmd-stack.c (list_args_or_locals): Use
5910 lookup_symbol_search_name.
5911
a67a1c41
AB
59122020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5913
5914 * python/py-registers.c (gdbpy_register_object_data_init): Remove
5915 redundant local variable.
5916 (gdbpy_get_register_descriptor): Extract descriptor vector as a
5917 reference, not pointer, update code accordingly.
5918
a7b4ff4f
SM
59192020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5920 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5921
5922 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
5923 * jit.c (jit_breakpoint_re_set_internal): Use the
5924 `skip_jit_symbol_lookup` field.
5925
2340e834
SM
59262020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5927 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5928
5929 * jit.c (jit_read_descriptor): Define the descriptor address once,
5930 use twice.
5931 (jit_breakpoint_deleted): Move the declaration of the loop variable
5932 `iter` into the loop header.
5933 (jit_breakpoint_re_set_internal): Move the declaration of the local
5934 variable `objf_data` to the first point of definition.
5935 (jit_event_handler): Move the declaration of local variables
5936 `code_entry`, `entry_addr`, and `objf` to their first point of use.
5937 Rename `objf` to `jited`.
5938
c1072906
SM
59392020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5940
5941 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
5942 Remove.
5943 * jit.c (get_jiter_objfile_data): Update.
5944
c8474dc3
TBA
59452020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5946 Simon Marchi <simon.marchi@polymtl.ca>
5947
5948 * jit.c (struct jit_program_space_data): Remove.
5949 (jit_program_space_key): Remove.
5950 (jiter_objfile_data::~jiter_objfile_data): Remove program space
5951 stuff.
5952 (get_jit_program_space_data): Remove.
5953 (jit_breakpoint_deleted): Iterate on all of the program space's
5954 objfiles.
5955 (jit_inferior_init): Likewise.
5956 (jit_breakpoint_re_set_internal): Likewise. Also change return
5957 type to void.
5958 (jit_breakpoint_re_set): Pass current_program_space to
5959 jit_breakpoint_re_set_internal.
5960
77208eb7
SM
59612020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5962
5963 * jit.h (struct jiter_objfile_data) <cached_code_address,
5964 jit_breakpoint>: Move to here from ...
5965 * jit.c (jit_program_space_data): ... here.
5966 (jiter_objfile_data::~jiter_objfile_data): Update.
5967 (jit_breakpoint_deleted): Update.
5968 (jit_breakpoint_re_set_internal): Update.
5969
8c1c720f
SM
59702020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5971
5972 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
5973 checks.
5974 (jit_read_descriptor): Remove NULL check.
5975 (jit_event_handler): Add an assertion.
5976
0e74a041
SM
59772020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5978
5979 * jit.h (struct jit_objfile_data): Split into...
5980 (struct jiter_objfile_data): ... this ...
5981 (struct jited_objfile_data): ... and this.
5982 * objfiles.h (struct objfile) <jit_data>: Remove.
5983 <jiter_data, jited_data>: New fields.
5984 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
5985 (jiter_objfile_data::~jiter_objfile_data): ... this.
5986 (get_jit_objfile_data): Rename to ...
5987 (get_jiter_objfile_data): ... this.
5988 (add_objfile_entry): Update.
5989 (jit_read_descriptor): Use get_jiter_objfile_data.
5990 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
5991 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
5992 (jit_inferior_exit_hook): Use objfile's jited_data field.
5993
238b5c9f
SM
59942020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5995
5996 * jit.h: Forward-declare `struct minimal_symbol`.
5997 (struct jit_objfile_data): Migrate to here from jit.c; also add a
5998 constructor, destructor, and an objfile* field.
5999 * jit.c (jit_objfile_data): Remove.
6000 (struct jit_objfile_data): Migrate from here to jit.h.
6001 (jit_objfile_data::~jit_objfile_data): New destructor
6002 implementation with code moved from free_objfile_data.
6003 (free_objfile_data): Delete.
6004 (get_jit_objfile_data): Update to use the jit_data field of objfile.
6005 (jit_find_objf_with_entry_addr): Ditto.
6006 (jit_inferior_exit_hook): Ditto.
6007 (_initialize_jit): Remove the call to
6008 register_objfile_data_with_cleanup.
6009 * objfiles.h (struct objfile) <jit_data>: New field.
6010
fe053b9e
TBA
60112020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6012
6013 * jit.h: Forward-declare `struct objfile`.
6014 (jit_event_handler): Add a second parameter, the JITer objfile.
6015 * jit.c (jit_read_descriptor): Change the signature to take the
6016 JITer objfile as an argument instead of the jit_program_space_data.
6017 (jit_inferior_init): Update the call to jit_read_descriptor.
6018 (jit_event_handler): Use the new JITer objfile argument when calling
6019 jit_read_descriptor.
6020 * breakpoint.c (handle_jit_event): Update the call to
6021 jit_event_handler to pass the JITer objfile.
6022
4cec0c66
JB
60232020-07-21 John Baldwin <jhb@FreeBSD.org>
6024
6025 * gdbarch.c: Regenerate.
6026 * gdbarch.h: Regenerate.
6027 * gdbarch.sh (handle_segmentation_fault): Remove method.
6028 * infrun.c (handle_segmentation_fault): Remove.
6029 (print_signal_received_reason): Remove call to
6030 handle_segmentation_fault.
6031
0e42f66a
JB
60322020-07-21 John Baldwin <jhb@FreeBSD.org>
6033
6034 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6035 Rename to sparc64_linux_report_signal_info and add siggnal
6036 argument.
6037 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
6038 instead of sparc64_linux_handle_segmentation_fault.
6039
77bdfeb2
JB
60402020-07-21 John Baldwin <jhb@FreeBSD.org>
6041
6042 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
6043 i386_linux_report_signal_info instead of
6044 i386_linux_handle_segmentation_fault.
6045 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
6046 to i386_linux_report_signal_info and add siggnal argument.
6047 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
6048 of i386_linux_handle_segmentation_fault.
6049 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
6050 to i386_linux_report_signal_info and add siggnal argument.
6051
ad97bfc5
JB
60522020-07-21 John Baldwin <jhb@FreeBSD.org>
6053
6054 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
6055 hook if present.
6056
272bb05c
JB
60572020-07-21 John Baldwin <jhb@FreeBSD.org>
6058
6059 * gdbarch.c: Regenerate.
6060 * gdbarch.h: Regenerate.
6061 * gdbarch.sh (report_signal_info): New method.
6062 * infrun.c (print_signal_received_reason): Invoke gdbarch
6063 report_signal_info hook if present.
6064
baf8791e
AB
60652020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6066
6067 * python/py-registers.c : Add 'unordered_map' include.
6068 (gdbpy_new_reggroup): Renamed to...
6069 (gdbpy_get_reggroup): ...this. Update to only create register
6070 group descriptors when needed.
6071 (gdbpy_reggroup_iter_next): Update.
6072
f7306dac
AB
60732020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6074
6075 * python/py-registers.c (gdbpy_register_object_data): New static
6076 global.
6077 (gdbpy_register_object_data_init): New function.
6078 (gdbpy_new_register_descriptor): Renamed to...
6079 (gdbpy_get_register_descriptor): ...this, and update to reuse
6080 existing register descriptors where possible.
6081 (gdbpy_register_descriptor_iter_next): Update.
6082 (gdbpy_initialize_registers): Register new gdbarch data.
6083
05c309a8
SM
60842020-07-21 Simon Marchi <simon.marchi@efficios.com>
6085
6086 * linux-nat.c (stopped_pids): Make static.
6087
d1fd641e
SM
60882020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
6089
6090 PR ada/26235
6091 * gdbtypes.c (ada_discrete_type_low_bound,
6092 ada_discrete_type_high_bound): Handle undefined bounds.
6093
1de14d77
KR
60942020-07-21 Kamil Rytarowski <n54@gmx.com>
6095
6096 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
6097 declaration.
6098 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
6099 function.
6100
ed810cc7
JB
61012020-07-20 John Baldwin <jhb@FreeBSD.org>
6102
6103 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
6104 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
6105 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
6106 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
6107 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
6108 method.
6109
ae5369e7
LC
61102020-07-20 Ludovic Courtès <ludo@gnu.org>
6111
6112 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
6113 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
6114 which are deprecated in Guile 3.0.
6115 * configure.ac (try_guile_versions): Add "guile-3.0".
6116 * configure (try_guile_versions): Regenerate.
6117 * NEWS: Update entry.
6118
68cf161c
LC
61192020-07-20 Ludovic Courtès <ludo@gnu.org>
6120 Doug Evans <dje@google.com>
6121
6122 PR gdb/21104
6123 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
6124 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
6125 USING_GUILE_BEFORE_2_2.
6126 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
6127 Change type to 'scm_t_port_type *'.
6128 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
6129 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
6130 parameter and honor it. Update callers.
6131 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
6132 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
6133 functions.
6134 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
6135 USING_GUILE_BEFORE_2_2.
6136 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
6137 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
6138 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
6139 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
6140 and 'SCM_PORT_TYPE'.
6141 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
6142 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
6143 (gdbscm_memory_port_read, gdbscm_memory_port_write)
6144 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
6145 [!USING_GUILE_BEFORE_2_2]: New functions.
6146 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
6147 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
6148 'gdbscm_memory_port_read'.
6149 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
6150 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
6151 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
6152 function.
6153 (ioscm_init_memory_port): Remove.
6154 (ioscm_init_memory_port_stream): New function
6155 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
6156 function.
6157 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6158 Return scm_from_uint (0).
6159 (gdbscm_set_memory_port_read_buffer_size_x)
6160 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6161 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6162 Return scm_from_uint (0).
6163 (gdbscm_set_memory_port_write_buffer_size_x)
6164 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6165 * configure.ac (try_guile_versions): Add "guile-2.2".
6166 * configure: Regenerate.
6167 * NEWS: Add entry.
6168
aee91db3
TT
61692020-07-18 Tom Tromey <tom@tromey.com>
6170
6171 * linux-nat.c (linux_multi_process): Remove.
6172 (linux_nat_target::supports_multi_process): Return true.
6173
0e267416
AB
61742020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6175
6176 * arch/riscv.c (riscv_tdesc_cache): Change map type.
6177 (riscv_lookup_target_description): Return pointer out of
6178 unique_ptr.
6179 * target-descriptions.c (allocate_target_description): Add
6180 comment.
6181 (target_desc_deleter::operator()): Likewise.
6182 * target-descriptions.h (struct target_desc_deleter): Moved to
6183 gdbsupport/tdesc.h.
6184 (target_desc_up): Likewise.
6185
f80c8ec4
TT
61862020-07-17 Tom Tromey <tromey@adacore.com>
6187
6188 * linux-nat.c (linux_nat_target::supports_non_stop)
6189 (linux_nat_target::always_non_stop_p): Use "true".
6190 (linux_nat_target::supports_disable_randomization): Use "true" and
6191 "false".
6192
d0ce17d8
CT
61932020-07-16 Caroline Tice <cmtice@google.com>
6194
6195 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
6196 (RNGLIST_HEADER_SIZE64): New constant definition.
6197 (struct dwop_section_names): Add rnglists_dwo.
6198 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
6199 (struct loclist_header): Rename to 'loclists_rnglists_header'.
6200 (struct dwo_sections): Add rnglists field.
6201 (read_attribut_reprocess): Add tag parameter.
6202 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
6203 (cu_debug_rnglists_section): New function (decl & definition).
6204 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
6205 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
6206 die whose range is being checked; get rnglist section from
6207 cu_debug_rnglists_section, to get from either objfile or dwo file as
6208 appropriate. Add cases for DW_RLE_base_addressx,
6209 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
6210 the base address to DW_RLE_offset_pairs (not to all ranges), moving
6211 test inside if-condition and updating complaint message.
6212 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
6213 dwarf2_rnglists_process.
6214 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
6215 dwarf2_ranges_process.
6216 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
6217 need_ranges_base and update comment appropriately. Also pass die tag
6218 to dwarf2_ranges_read.
6219 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
6220 need_ranges_base and update comment appropriately. Also pass die tag
6221 to dwarf2_ranges_process.
6222 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
6223 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
6224 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
6225 need_ranges_base and update comment appropriately. Also pass die tag
6226 to read_attribute_reprocess and dwarf2_ranges_read.
6227 (read_loclist_header): Rename function to read_loclists_rnglists_header,
6228 and update function comment appropriately.
6229 (read_loclist_index): Call read_loclists_rnglists_header instead of
6230 read_loclist_header.
6231 (read_rnglist_index): New function.
6232 (read_attribute_reprocess): Add tag parameter. Add code for
6233 DW_FORM_rnglistx, passing tag to read_rnglist_index.
6234 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
6235
3dcc261c
AB
62362020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
6237
6238 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
6239 being resolved.
6240
ccb9eba6
AB
62412020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
6242
6243 * arch-utils.c (show_architecture): Update formatting of messages.
6244
cf88be68
SM
62452020-07-12 Simon Marchi <simon.marchi@efficios.com>
6246
6247 * gdbtypes.h (struct type) <bounds>: Handle array and string
6248 types.
6249 * ada-lang.c (assign_aggregate): Use type::bounds on
6250 array/string type.
6251 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
6252 * c-varobj.c (c_number_of_children): Likewise.
6253 (c_describe_child): Likewise.
6254 * eval.c (evaluate_subexp_for_sizeof): Likewise.
6255 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
6256 (f_type_print_base): Likewise.
6257 * f-valprint.c (f77_array_offset_tbl): Likewise.
6258 (f77_get_upperbound): Likewise.
6259 (f77_print_array_1): Likewise.
6260 * guile/scm-type.c (gdbscm_type_range): Likewise.
6261 * m2-typeprint.c (m2_array): Likewise.
6262 (m2_is_long_set_of_type): Likewise.
6263 * m2-valprint.c (get_long_set_bounds): Likewise.
6264 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
6265 * python/py-type.c (typy_range): Likewise.
6266 * rust-lang.c (rust_internal_print_type): Likewise.
6267 * type-stack.c (type_stack::follow_types): Likewise.
6268 * valarith.c (value_subscripted_rvalue): Likewise.
6269 * valops.c (value_cast): Likewise.
6270
509971ae
SM
62712020-07-12 Simon Marchi <simon.marchi@efficios.com>
6272
6273 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
6274 callers to use the equivalent accessor methods.
6275
107406b7
SM
62762020-07-12 Simon Marchi <simon.marchi@efficios.com>
6277
6278 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
6279 (struct type) <bit_stride>: New method.
6280 (TYPE_BIT_STRIDE): Remove.
6281 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
6282
bb789949
SM
62832020-07-12 Simon Marchi <simon.marchi@efficios.com>
6284
6285 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
6286 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
6287 callers to use the equivalent accessor methods instead.
6288
39498edb
SM
62892020-07-12 Simon Marchi <simon.marchi@efficios.com>
6290
6291 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
6292 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
6293 callers to use the equivalent accessor methods instead.
6294
3b606f38
SM
62952020-07-12 Simon Marchi <simon.marchi@efficios.com>
6296
6297 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
6298 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
6299 to use dynamic_prop::kind.
6300
064d9cb9
SM
63012020-07-12 Simon Marchi <simon.marchi@efficios.com>
6302
6303 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
6304 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
6305 to get the bound property's kind and check against
6306 PROP_UNDEFINED.
6307
5537ddd0
SM
63082020-07-12 Simon Marchi <simon.marchi@efficios.com>
6309
6310 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
6311 all callers to use type::range_bounds followed by
6312 dynamic_prop::{low,high}.
6313
8c2e4e06
SM
63142020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6315
6316 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
6317 const_val, set_const_val, baton, set_locexpr, set_loclist,
6318 set_addr_offset, variant_parts, set_variant_parts,
6319 original_type, set_original_type>: New methods.
6320 <kind>: Rename to...
6321 <m_kind>: ... this. Update all users to use the new methods
6322 instead.
6323 <data>: Rename to...
6324 <m_data>: ... this. Update all users to use the new methods
6325 instead.
6326
7c6f2712
SM
63272020-07-12 Simon Marchi <simon.marchi@efficios.com>
6328
6329 * gdbtypes.c (get_discrete_bounds): Return failure if
6330 the range type's bounds are not both defined and constant
6331 values.
6332 (get_array_bounds): Update comment. Remove undefined bound check.
6333
599088e3
SM
63342020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6335
6336 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
6337 the type::bounds method directly.
6338
c4dfcb36
SM
63392020-07-12 Simon Marchi <simon.marchi@efficios.com>
6340
6341 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
6342 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
6343 are used to set the range type's bounds to use set_bounds.
6344
0a278aa7
PW
63452020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6346
6347 * exec.c (_initialize_exec): Update exec-file-mismatch help.
6348
cce20f10
PA
63492020-07-10 Pedro Alves <pedro@palves.net>
6350
6351 * gdbthread.h (inferior_ref): Define.
6352 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
6353 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
6354 * thread.c
6355 (scoped_restore_current_thread::restore):
6356 Adjust to gdb::ref_ptr.
6357 (scoped_restore_current_thread::~scoped_restore_current_thread):
6358 Remove manual decref handling.
6359 (scoped_restore_current_thread::scoped_restore_current_thread):
6360 Adjust to use
6361 inferior_ref::new_reference/thread_info_ref::new_reference.
6362 Incref the thread before calling get_frame_id instead of after.
6363 Let TARGET_CLOSE_ERROR propagate.
6364
6d7aa592
PA
63652020-07-10 Pedro Alves <pedro@palves.net>
6366
6367 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
6368 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
6369 NOT_AVAILABLE_ERROR.
6370 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
6371 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
6372
b3e3a4c1
SM
63732020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6374 Pedro Alves <pedro@palves.net>
6375
6376 PR gdb/26199
6377 * infrun.c (threads_are_resumed_pending_p): Delete.
6378 (do_target_wait): Remove threads_are_executing and
6379 threads_are_resumed_pending_p checks from the inferior_matches
6380 lambda. Update comments.
6381
d6cc5d98
PA
63822020-07-10 Pedro Alves <pedro@palves.net>
6383
6384 PR gdb/26199
6385 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
6386 executing threads.
6387
7d3badc6
PA
63882020-07-10 Pedro Alves <pedro@palves.net>
6389
6390 PR gdb/26199
6391 * infrun.c (handle_no_resumed): Handle multiple targets.
6392
42bd97a6
PA
63932020-07-10 Pedro Alves <pedro@palves.net>
6394
6395 PR gdb/26199
6396 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
6397 target_is_async_p.
6398
43667cc6
PA
63992020-07-10 Pedro Alves <pedro@palves.net>
6400
6401 PR gdb/26199
6402 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
6403 threads, not all threads.
6404
96118d11
PA
64052020-07-10 Pedro Alves <pedro@palves.net>
6406
6407 PR gdb/26199
6408 * remote.c (remote_target::open_1): Pass remote target pointer as
6409 data to create_async_event_handler.
6410 (remote_async_inferior_event_handler): Mark async event handler
6411 before returning if the remote target still has either pending
6412 events or unacknowledged notifications.
6413
54904d81
JB
64142020-07-10 John Baldwin <jhb@FreeBSD.org>
6415
6416 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
6417 declaration.
6418 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
6419 function.
6420
f37e5866
JB
64212020-07-09 John Baldwin <jhb@FreeBSD.org>
6422
6423 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
6424 inferior_ptid.
6425
fc238d4a
JB
64262020-07-09 John Baldwin <jhb@FreeBSD.org>
6427
6428 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
6429 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
6430 AT_FREEBSD_PS_STRINGS.
6431
6e2469ff
HD
64322020-07-08 Hannes Domani <ssbssa@yahoo.de>
6433
6434 * auto-load.c (auto_load_objfile_script_1): Convert drive part
6435 of debugfile path on Windows.
6436
d1076c41
JB
64372020-07-08 John Baldwin <jhb@FreeBSD.org>
6438
6439 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
6440 argument to 'data'.
6441
15f3b077
TT
64422020-07-08 Tom Tromey <tromey@adacore.com>
6443
6444 * ada-lang.c (ada_exception_message_1): Use read_memory.
6445
9fc501fd
AB
64462020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6447
6448 PR python/22748
6449 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
6450 special handling for inline frames.
6451 * findvar.c (value_of_register_lazy): Skip inline frames when
6452 creating lazy register values.
6453 * frame.c (frame_id_computed_p): Delete definition.
6454 * frame.h (frame_id_computed_p): Delete declaration.
6455
64cb3757
AB
64562020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6457
6458 * NEWS: Mention additions to Python API.
6459 * python/py-arch.c (archpy_register_groups): New function.
6460 (arch_object_methods): Add 'register_groups' method.
6461 * python/py-registers.c (reggroup_iterator_object): New struct.
6462 (reggroup_object): New struct.
6463 (gdbpy_new_reggroup): New function.
6464 (gdbpy_reggroup_to_string): New function.
6465 (gdbpy_reggroup_name): New function.
6466 (gdbpy_reggroup_iter): New function.
6467 (gdbpy_reggroup_iter_next): New function.
6468 (gdbpy_new_reggroup_iterator): New function
6469 (gdbpy_initialize_registers): Register new types.
6470 (reggroup_iterator_object_type): Define new Python type.
6471 (gdbpy_reggroup_getset): New static global.
6472 (reggroup_object_type): Define new Python type.
6473 * python/python-internal.h
6474
0f767f94
AB
64752020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6476
6477 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
6478 * python/py-arch.c (archpy_registers): New function.
6479 (arch_object_methods): Add 'registers' method.
6480 * python/py-registers.c: New file.
6481 * python/python-internal.h
6482 (gdbpy_new_register_descriptor_iterator): Declare.
6483 (gdbpy_initialize_registers): Declare.
6484 * python/python.c (do_start_initialization): Call
6485 gdbpy_initialize_registers.
6486 * NEWS: Mention additions to the Python API.
6487
87dbc774
AB
64882020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6489
6490 * NEWS: Mention new Python API method.
6491 * python/py-unwind.c (pending_framepy_architecture): New function.
6492 (pending_frame_object_methods): Add architecture method.
6493
3bc98c0c
AB
64942020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6495
6496 * gdbarch.c: Regenerate.
6497 * gdbarch.h: Regenerate.
6498 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
6499 (gdbarch_data): Use internal_error for the case where
6500 deprecated_set_gdbarch_data was originally needed.
6501 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
6502 and use passed in obstack.
6503 (libunwind_frame_set_descr): Should no longer get back NULL from
6504 gdbarch_data.
6505 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
6506 type.
6507 * user-regs.c (user_regs_init): Update parameters, and use passed
6508 in obstack.
6509 (user_reg_add): Should no longer get back NULL from gdbarch_data.
6510 (_initialize_user_regs): Register as a pre-init gdbarch data type.
6511
d8cc8af6
TV
65122020-07-06 Tom de Vries <tdevries@suse.de>
6513
6514 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
6515 End-Of-Sequence in lte_is_less_than.
6516 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
6517 "gdb: Don't reorder line table entries too much when sorting".
6518
947f7597
TV
65192020-07-06 Tom de Vries <tdevries@suse.de>
6520
6521 PR tui/26205
6522 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
6523
1e7c1b22
TV
65242020-07-05 Tom de Vries <tdevries@suse.de>
6525
6526 PR build/26187
6527 * inferior.h (struct infcall_suspend_state_deleter): If available, use
6528 std::uncaught_exceptions instead of deprecated
6529 std::uncaught_exception.
6530
a36158ec
SM
65312020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6532
6533 * macroexp.h (macro_stringify): Return
6534 gdb::unique_xmalloc_ptr<char>.
6535 * macroexp.c (macro_stringify): Likewise.
6536 * macrotab.c (fixup_definition): Update.
6537
14d960c8
SM
65382020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6539
6540 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
6541 (lex_one_token): Update.
6542 * macroexp.c (struct macro_buffer) <release>: Return
6543 gdb::unique_xmalloc_ptr<char>.
6544 (macro_stringify): Update.
6545 (macro_expand): Update.
6546 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
6547 * macroexp.h (macro_expand_next): Likewise.
6548
211d5b1c
SM
65492020-07-02 Simon Marchi <simon.marchi@efficios.com>
6550
6551 * macroexp.h (macro_lookup_ftype): Remove.
6552 (macro_expand, macro_expand_once, macro_expand_next): Remove
6553 lookup function parameters, add scope parameter.
6554 * macroexp.c (scan, substitute_args, expand, maybe_expand,
6555 macro_expand, macro_expand_once, macro_expand_next): Likewise.
6556 * macroscope.h (standard_macro_lookup): Change parameter type
6557 to macro_scope.
6558 * macroscope.c (standard_macro_lookup): Likewise.
6559 * c-exp.y (lex_one_token): Update.
6560 * macrocmd.c (macro_expand_command): Likewise.
6561 (macro_expand_once_command): Likewise.
6562
b1a35af2
SM
65632020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6564
6565 * inf-loop.c (inferior_event_handler): Remove client_data param.
6566 * inf-loop.h (inferior_event_handler): Likewise.
6567 * infcmd.c (step_1): Adjust.
6568 * infrun.c (proceed): Adjust.
6569 (fetch_inferior_event): Remove client_data param.
6570 (infrun_async_inferior_event_handler): Adjust.
6571 * infrun.h (fetch_inferior_event): Remove `void *` param.
6572 * linux-nat.c (handle_target_event): Adjust.
6573 * record-btrace.c (record_btrace_handle_async_inferior_event):
6574 Adjust.
6575 * record-full.c (record_full_async_inferior_event_handler):
6576 Adjust.
6577 * remote.c (remote_async_inferior_event_handler): Adjust.
6578
1cdf9e33
TT
65792020-07-01 Tom Tromey <tom@tromey.com>
6580
6581 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
6582 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
6583
32c1e210
TT
65842020-07-01 Tom Tromey <tom@tromey.com>
6585
6586 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
6587 tui_gen_win_info.
6588 (tui_win_info::make_window): Merge with
6589 tui_gen_win_info::make_window.
6590 (tui_win_info::make_visible): Move from tui_gen_win_info.
6591 * tui/tui-win.c (tui_win_info::max_width): Move from
6592 tui_gen_win_info.
6593 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
6594 type.
6595 <window_factory>: Likewise.
6596 * tui/tui-layout.c (tui_win_info::resize): Move from
6597 tui_gen_win_info.
6598 (make_standard_window): Change return type.
6599 (get_locator_window, tui_get_window_by_name): Likewise.
6600 (tui_layout_window::apply): Remove a cast.
6601 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
6602 (struct tui_win_info): Merge with tui_gen_win_info.
6603 (struct tui_gen_win_info): Remove.
6604
a30cb6da
TT
66052020-07-01 Tom Tromey <tom@tromey.com>
6606
6607 * tui/tui-stack.h (struct tui_locator_window): Derive from
6608 tui_win_info.
6609 <do_scroll_horizontal, do_scroll_vertical>: New methods.
6610 <can_box>: New method.
6611
1eb2161f
TT
66122020-07-01 Tom Tromey <tom@tromey.com>
6613
6614 * tui/tui-stack.h (struct tui_locator_window): Remove body.
6615
7134f2eb
TT
66162020-07-01 Tom Tromey <tom@tromey.com>
6617
6618 * tui/tui-regs.c (tui_data_window::display_registers_from)
6619 (tui_data_window::display_registers_from)
6620 (tui_data_window::first_data_item_displayed)
6621 (tui_data_window::delete_data_content_windows): Update.
6622 (tui_data_window::refresh_window, tui_data_window::no_refresh):
6623 Remove.
6624 (tui_data_window::check_register_values): Update.
6625 (tui_data_item_window::rerender): Add parameters. Update.
6626 (tui_data_item_window::refresh_window): Remove.
6627 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
6628 virtual.
6629 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
6630 tui_gen_win_info.
6631 <refresh_window, max_height, min_height>: Remove.
6632 <rerender>: Add parameters.
6633 <x, y, visible>: New members.
6634 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
6635 <m_item_width>: New member.
6636
22b7b041
TT
66372020-07-01 Tom Tromey <tom@tromey.com>
6638
6639 * tui/tui-regs.c (tui_data_window::show_register_group)
6640 (tui_data_window::check_register_values): Update.
6641 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
6642 from item_no.
6643
c9753adb
TT
66442020-07-01 Tom Tromey <tom@tromey.com>
6645
6646 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
6647 useless "if".
6648
9ab26b4a
TT
66492020-07-01 Tom Tromey <tom@tromey.com>
6650
6651 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
6652 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
6653
e555083f
TT
66542020-07-01 Tom Tromey <tom@tromey.com>
6655
6656 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
6657 * tui/tui-winsource.h (enum tui_line_or_address_kind)
6658 (struct tui_line_or_address): Move from tui-data.h.
6659 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
6660 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
6661 (tui_cmd_window, tui_source_window_base, tui_source_window)
6662 (tui_disasm_window): Don't declare.
6663 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
6664 to tui-winsource.h.
6665 (SINGLE_KEY): Move to tui-stack.c.
6666
7a02bab7
TT
66672020-07-01 Tom Tromey <tom@tromey.com>
6668
6669 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
6670 std::string.
6671 * tui/tui-regs.c (class tab_expansion_file): New.
6672 (tab_expansion_file::write): New method.
6673 (tui_register_format): Change return type. Use
6674 tab_expansion_file.
6675 (tui_get_register, tui_data_window::display_registers_from)
6676 (tui_data_item_window::rerender): Update.
6677 * tui/tui-io.h (tui_expand_tabs): Don't declare.
6678 * tui/tui-io.c (tui_expand_tabs): Remove.
6679
ea68593b
TT
66802020-07-01 Tom Tromey <tom@tromey.com>
6681
6682 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
6683
a8caed5d
FS
66842020-07-01 Fangrui Song <maskray@google.com>
6685
6686 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
6687
9cdf9820
AKS
66882020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6689
6690 * dwarf2/read.c (set_die_type): Removed conditions to restrict
6691 forms for DW_AT_associated and DW_AT_allocated attributes,
6692 which is already checked in function attr_to_dynamic_prop.
6693
a1520ad8
TT
66942020-06-30 Tom Tromey <tromey@adacore.com>
6695
6696 * dwarf2/read.c (quirk_rust_enum): Correctly call
6697 alloc_rust_variant for default-less enum.
6698
5ac58899
TT
66992020-06-30 Tom Tromey <tromey@adacore.com>
6700
6701 PR build/26183:
6702 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
6703 gdb::to_string.
6704
19b187a9
SM
67052020-06-29 Simon Marchi <simon.marchi@efficios.com>
6706
6707 * gdbarch.sh (displaced_step_copy_insn): Update doc.
6708 * gdbarch.h: Re-generate.
6709
cd4c4c07
TT
67102020-06-28 Tom Tromey <tom@tromey.com>
6711
6712 * command.h (cmd_types): Remove.
6713 (cmd_type): Don't declare.
6714 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
6715 typedef.
6716 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
6717 * cli/cli-decode.c (cmd_type): Remove.
6718
05779d57
PA
67192020-06-27 Pedro Alves <palves@redhat.com>
6720
6721 * fork-child.c (prefork_hook): Adjust.
6722 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
6723 Delete.
6724 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
6725 * inferior.c (inferior::set_tty, inferior::tty): New methods.
6726 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
6727 Remove declarations.
6728 (struct inferior) <set_tty, tty>: New methods.
6729 (struct inferior) <terminal>: Rename to ...
6730 (struct inferior) <m_terminal>: ... this and make private.
6731 * main.c (captured_main_1): Adjust.
6732 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
6733 (mi_cmd_inferior_tty_show): Adjust.
6734 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
6735 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
6736
1776e3e5
NA
67372020-06-26 Nick Alcock <nick.alcock@oracle.com>
6738
6739 * configure.ac: Add --enable-libctf: handle --disable-static
6740 properly.
6741 * acinclude.m4: sinclude ../config/enable.m4.
6742 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
6743 (LIBCTF): Substitute in.
6744 (CTF_DEPS): New, likewise.
6745 (CLIBS): libctf needs symbols from libbfd: move earlier.
6746 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
6747 flags.
6748 * ctfread.c: Surround in ENABLE_LIBCTF.
6749 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
6750 * configure: Regenerate.
6751 * config.in: Likewise.
6752
58373b80
SM
67532020-06-25 Simon Marchi <simon.marchi@efficios.com>
6754
6755 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
6756
277474ee
SM
67572020-06-25 Simon Marchi <simon.marchi@efficios.com>
6758
6759 * inferior.h (struct inferior) <terminal>: Change type to
6760 gdb::unique_xmalloc_ptr<char>.
6761 * inferior.c (inferior::~inferior): Don't free inf->terminal.
6762 * infcmd.c (set_inferior_io_terminal): Don't free terminal
6763 field, adjust to unique pointer.
6764 (get_inferior_io_terminal): Adjust to unique pointer.
6765
6d74da72
AB
67662020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6767
6768 * riscv-tdep.c (riscv_print_registers_info): Loop over all
6769 registers, not just the known core set of registers.
6770
2e52d038
AB
67712020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6772
6773 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
6774 fflags, frm, and fcsr registers.
6775 (riscv_register_reggroup_p): Remove unknown CSRs from save and
6776 restore groups.
6777 (riscv_tdesc_unknown_reg): New function.
6778 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
6779 tdesc_use_registers.
6780 * riscv-tdep.h (struct gdbarch_tdep): Add
6781 unknown_csrs_first_regnum, unknown_csrs_count,
6782 duplicate_fflags_regnum, duplicate_frm_regnum, and
6783 duplicate_fcsr_regnum fields.
6784
be64fd07
AB
67852020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6786
6787 * target-descriptions.c (tdesc_use_registers): Add new parameter a
6788 callback, use the callback (when not null) to help number unknown
6789 registers.
6790 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
6791 (tdesc_use_registers): Add extra parameter to declaration.
6792
3b9fce96
AB
67932020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6794
6795 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
6796 in the file.
6797 (class riscv_pending_register_alias): Likewise.
6798 (riscv_register_feature::register_info): Change 'required_p' field
6799 to 'required', and change its type. Add 'check' member function.
6800 (riscv_register_feature::register_info::check): Define new member
6801 function.
6802 (riscv_xreg_feature): Change initialisation of 'required' field.
6803 (riscv_freg_feature): Likewise.
6804 (riscv_virtual_feature): Likewise.
6805 (riscv_csr_feature): Likewise.
6806 (riscv_check_tdesc_feature): Take extra parameter, the csr
6807 tdesc_feature, rewrite the function to use the new
6808 riscv_register_feature::register_info::check function.
6809 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
6810
865bad26
AB
68112020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6812
6813 * features/Makefile: Remove all references to the deleted files
6814 below.
6815 * features/riscv/32bit-csr.c: Deleted.
6816 * features/riscv/32bit-csr.xml: Deleted.
6817 * features/riscv/64bit-csr.c: Deleted.
6818 * features/riscv/64bit-csr.xml: Deleted.
6819 * features/riscv/rebuild-csr-xml.sh: Deleted.
6820
ed69cbc8
AB
68212020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6822
6823 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
6824 whitespace error for declaration of names member variable.
6825 (struct riscv_register_feature): Add new prefer_first_name member
6826 variable, and fix whitespace error in declaration of registers.
6827 (riscv_xreg_feature): Initialize prefer_first_name field.
6828 (riscv_freg_feature): Likewise.
6829 (riscv_virtual_feature): Likewise.
6830 (riscv_csr_feature): Likewise.
6831 (riscv_register_name): Expand on comments. Remove register name
6832 modifications for CSR and virtual registers.
6833
4445e8f5
AB
68342020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6835
6836 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
6837 errors.
6838
767a879e
AB
68392020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6840
6841 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
6842 riscv-opc.h.
6843 (class riscv_pending_register_alias): New class.
6844 (riscv_check_tdesc_feature): Take vector of pending aliases and
6845 populate it as appropriate.
6846 (riscv_setup_register_aliases): Delete.
6847 (riscv_gdbarch_init): Create vector of pending aliases and pass it
6848 to riscv_check_tdesc_feature in all cases. Use the vector to
6849 create the register aliases.
6850
bb6e55f3
RO
68512020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6852
6853 * sol2-tdep.c (sol2_static_transform_name): Remove.
6854 (sol2_init_abi): Don't register it.
6855 * gdbarch.sh (static_transform_name): Remove.
6856 * gdbarch.c, gdbarch.h: Regenerate.
6857
6858 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
6859 gdbarch_static_transform_name.
6860 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
6861 * stabsread.c (define_symbol) <'X'>: Remove.
6862 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
6863 handling.
6864 <'V'>: Likewise.
6865 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
6866 <'S'>: Remove call to gdbarch_static_transform_name.
6867
c6d36836
RO
68682020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6869
6870 * procfs.c (procfs_pre_trace): New function.
6871 (procfs_target::create_inferior): Pass it to fork_inferior.
6872
a7e6196b
RO
68732020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6874
6875 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
6876 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
6877 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
6878 sol2-tdep.o, sparc-sol2-tdep.o.
6879 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
6880 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
6881 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
6882 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
6883
d412e696
RO
68842020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6885
6886 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
6887 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
6888 Call sol2_init_abi.
6889 Remove calls to set_gdbarch_skip_solib_resolver,
6890 set_gdbarch_core_pid_to_str.
6891 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
6892 (i386_sol2_static_transform_name): Remove.
6893 (i386_sol2_init_abi): Call sol2_init_abi.
6894 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6895 set_gdbarch_static_transform_name,
6896 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6897 Use sol2_sigtramp_p.
6898 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
6899 (sol2_sigtramp_p): New function.
6900 (sol2_static_transform_name): New function.
6901 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
6902 (sol2_init_abi): New function.
6903 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
6904 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
6905 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
6906 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
6907 (sparc_sol2_static_transform_name): Remove.
6908 (sparc32_sol2_init_abi): Call sol2_init_abi.
6909 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6910 set_gdbarch_static_transform_name,
6911 set_gdbarch_skip_solib_resolver,
6912 set_gdbarch_core_pid_to_str.
6913 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
6914 (sparc_sol2_static_transform_name): Remove
6915 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
6916 call sol2_sigtramp_p.
6917 (sparc64_sol2_init_abi): Call sol2_init_abi.
6918 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6919 set_gdbarch_static_transform_name,
6920 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6921
a8654e7d
PW
69222020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6923
6924 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
6925 * exec.c (validate_exec_file): If from_tty, set both
6926 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
6927 * symfile.c (symbol_file_add_with_addrs): if always_confirm
6928 and from_tty, unconditionally ask a confirmation.
6929
caa7fd04
AB
69302020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6931
6932 * target-descriptions.c (tdesc_architecture_name): Protect against
6933 NULL pointer dereference.
6934 (maint_print_xml_tdesc_cmd): New function.
6935 (_initialize_target_descriptions): Register new 'maint print
6936 xml-tdesc' command and give it the filename completer.
6937 * NEWS: Mention new 'maint print xml-tdesc' command.
6938
fbf42f4e
AB
69392020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6940
6941 * target-descriptions.c (class tdesc_compatible_info): New class.
6942 (struct target_desc): Change type of compatible vector.
6943 (tdesc_compatible_p): Update for change in type of
6944 target_desc::compatible.
6945 (tdesc_compatible_info_list): New function.
6946 (tdesc_compatible_info_arch_name): New function.
6947 (tdesc_add_compatible): Update for change in type of
6948 target_desc::compatible.
6949 (print_c_tdesc::visit_pre): Likewise.
6950
20821f4e
AB
69512020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6952
6953 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
6954 whitespace to underscore.
6955 (maint_print_c_tdesc_cmd): Use fake filename for target
6956 descriptions that came from the target.
6957 (_initialize_target_descriptions): Add filename command completion
6958 for 'maint print c-tdesc'.
6959
1fb5ee62
SM
69602020-06-23 Simon Marchi <simon.marchi@efficios.com>
6961
6962 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
6963 lines.
6964
fc3ecb3e
SM
69652020-06-23 Simon Marchi <simon.marchi@efficios.com>
6966
6967 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
6968 lines.
6969 (dwarf2_find_location_expression): Likewise.
6970 (call_site_parameter_matches): Likewise.
6971 (dwarf2_compile_expr_to_ax): Likewise.
6972 (disassemble_dwarf_expression): Likewise.
6973 (loclist_describe_location): Likewise.
6974
236ef034
PA
69752020-06-23 Pedro Alves <palves@redhat.com>
6976
6977 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
6978 progspace-and-thread.h. Include scoped-mock-context.h instead.
6979 (register_to_value_test): Use scoped_mock_context.
6980 * regcache.c: Include "scoped-mock-context.h".
6981 (cooked_read_test): Don't error out if a target is already pushed.
6982 Use scoped_mock_context. Adjust.
6983 * scoped-mock-context.h: New file.
6984
39e7ecca
AB
69852020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6986
6987 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
6988 initializer.
6989 (ada_language::is_string_type_p): New member function.
6990 * c-lang.c (c_language_data): Delete la_is_string_type_p
6991 initializer.
6992 (cplus_language_data): Likewise.
6993 (asm_language_data): Likewise.
6994 (minimal_language_data): Likewise.
6995 * d-lang.c (d_language_data): Likewise.
6996 * f-lang.c (f_is_string_type_p): Delete function, implementation
6997 moved to f_language::is_string_type_p.
6998 (f_language_data): Delete la_is_string_type_p initializer.
6999 (f_language::is_string_type_p): New member function,
7000 implementation from f_is_string_type_p.
7001 * go-lang.c (go_is_string_type_p): Delete function, implementation
7002 moved to go_language::is_string_type_p.
7003 (go_language_data): Delete la_is_string_type_p initializer.
7004 (go_language::is_string_type_p): New member function,
7005 implementation from go_is_string_type_p.
7006 * language.c (language_defn::is_string_type_p): Define new member
7007 function.
7008 (default_is_string_type_p): Make static, add comment copied from
7009 header file.
7010 (unknown_language_data): Delete la_is_string_type_p initializer.
7011 (unknown_language::is_string_type_p): New member function.
7012 (auto_language_data): Delete la_is_string_type_p initializer.
7013 (auto_language::is_string_type_p): New member function.
7014 * language.h (language_data): Delete la_is_string_type_p field.
7015 (language_defn::is_string_type_p): Declare new function.
7016 (default_is_string_type_p): Delete desclaration, move comment to
7017 definition.
7018 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
7019 moved to m2_language::is_string_type_p.
7020 (m2_language_data): Delete la_is_string_type_p initializer.
7021 (m2_language::is_string_type_p): New member function,
7022 implementation from m2_is_string_type_p.
7023 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
7024 initializer.
7025 * opencl-lang.c (opencl_language_data): Likewise.
7026 * p-lang.c (pascal_is_string_type_p): Delete function,
7027 implementation moved to pascal_language::is_string_type_p.
7028 (pascal_language_data): Delete la_is_string_type_p initializer.
7029 (pascal_language::is_string_type_p): New member function,
7030 implementation from pascal_is_string_type_p.
7031 * rust-lang.c (rust_is_string_type_p): Delete function,
7032 implementation moved to rust_language::is_string_type_p.
7033 (rust_language_data): Delete la_is_string_type_p initializer.
7034 (rust_language::is_string_type_p): New member function,
7035 implementation from rust_is_string_type_p.
7036 * valprint.c (val_print_scalar_or_string_type_p): Update call to
7037 is_string_type_p.
7038
4ffc13fb
AB
70392020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7040
7041 * ada-lang.c (ada_language_data): Delete la_print_typedef
7042 initializer.
7043 (ada_language::print_typedef): New member function.
7044 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
7045 (cplus_language_data): Likewise.
7046 (asm_language_data): Likewise.
7047 (minimal_language_data): Likewise.
7048 * d-lang.c (d_language_data): Likewise.
7049 * f-lang.c (f_language_data): Likewise.
7050 (f_language::print_typedef): New member function.
7051 * go-lang.c (go_language_data): Delete la_print_typedef
7052 initializer.
7053 * language.c (language_defn::print_typedef): Define member
7054 function.
7055 (unknown_language_data): Delete la_print_typedef initializer.
7056 (unknown_language::print_typedef): New member function.
7057 (auto_language_data): Delete la_print_typedef initializer.
7058 (auto_language::print_typedef): New member function.
7059 * language.h (language_data): Delete la_print_typedef field.
7060 (language_defn::print_typedef): Declare new member function.
7061 (LA_PRINT_TYPEDEF): Update call to print_typedef.
7062 (default_print_typedef): Delete declaration.
7063 * m2-lang.c (m2_language_data): Delete la_print_typedef
7064 initializer.
7065 (m2_language::print_typedef): New member function.
7066 * objc-lang.c (objc_language_data): Delete la_print_typedef
7067 initializer.
7068 * opencl-lang.c (opencl_language_data): Likewise.
7069 * p-lang.c (pascal_language_data): Likewise.
7070 (pascal_language::print_typedef): New member function.
7071 * rust-lang.c (rust_print_typedef): Delete function,
7072 implementation moved to rust_language::print_typedef.
7073 (rust_language): Delete la_print_typedef initializer.
7074 (rust_language::print_typedef): New member function,
7075 implementation from rust_print_typedef.
7076 * typeprint.c (default_print_typedef): Delete.
7077
d711ee67
AB
70782020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7079
7080 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
7081 (ada_language::printstr): New member function.
7082 * c-lang.c (c_language_data): Delete la_printstr initializer.
7083 (cplus_language_data): Likewise.
7084 (asm_language_data): Likewise.
7085 (minimal_language_data): Likewise.
7086 * d-lang.c (d_language_data): Likewise.
7087 * f-lang.c (f_printstr): Rename to f_language::printstr.
7088 (f_language_data): Delete la_printstr initializer.
7089 (f_language::printstr): New member function, implementation from
7090 f_printstr.
7091 * go-lang.c (go_language_data): Delete la_printstr initializer.
7092 * language.c (language_defn::printstr): Define new member
7093 function.
7094 (unk_lang_printstr): Delete.
7095 (unknown_language_data): Delete la_printstr initializer.
7096 (unknown_language::printstr): New member function.
7097 (auto_language_data): Delete la_printstr initializer.
7098 (auto_language::printstr): New member function.
7099 * language.h (language_data): Delete la_printstr field.
7100 (language_defn::printstr): Declare new member function.
7101 (LA_PRINT_STRING): Update call to printstr.
7102 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
7103 (m2_language_data): Delete la_printstr initializer.
7104 (m2_language::printstr): New member function, implementation from
7105 m2_printstr.
7106 * objc-lang.c (objc_language_data): Delete la_printstr
7107 initializer.
7108 * opencl-lang.c (opencl_language_data): Likewise.
7109 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
7110 (pascal_language_data): Delete la_printstr initializer.
7111 (pascal_language::printstr): New member function, implementation
7112 from pascal_printstr.
7113 * p-lang.h (pascal_printstr): Delete declaration.
7114 * rust-lang.c (rust_printstr): Update header comment.
7115 (rust_language_data): Delete la_printstr initializer.
7116 (rust_language::printstr): New member function.
7117
52b50f2c
AB
71182020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7119
7120 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
7121 (ada_language::printchar): New member function.
7122 * c-lang.c (c_language_data): Delete la_printchar initializer.
7123 (cplus_language_data): Likewise.
7124 (asm_language_data): Likewise.
7125 (minimal_language_data): Likewise.
7126 * d-lang.c (d_language_data): Likewise.
7127 * f-lang.c (f_printchar): Rename to f_language::printchar.
7128 (f_language_data): Delete la_printchar initializer.
7129 (f_language::printchar): New member function, implementation from
7130 f_printchar.
7131 * go-lang.c (go_language_data): Delete la_printchar initializer.
7132 * language.c (unk_lang_printchar): Delete.
7133 (language_defn::printchar): Define new member function.
7134 (unknown_language_data): Delete la_printchar initializer.
7135 (unknown_language::printchar): New member function.
7136 (auto_language_data): Delete la_printchar initializer.
7137 (auto_language::printchar): New member function.
7138 * language.h (language_data): Delete la_printchar field.
7139 (language_defn::printchar): Declare new member function.
7140 (LA_PRINT_CHAR): Update call to printchar.
7141 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
7142 (m2_language::printchar): New member function.
7143 * objc-lang.c (objc_language_data): Delete la_printchar
7144 initializer.
7145 * opencl-lang.c (opencl_language_data): Likewise.
7146 * p-lang.c (pascal_language_data): Delete la_printchar
7147 initializer.
7148 (pascal_language::printchar): New member function.
7149 * rust-lang.c (rust_printchar): Rename to
7150 rust_language::printchar.
7151 (rust_language_data): Delete la_printchar initializer.
7152 (rust_language::printchar): New member function, implementation
7153 from rust_printchar.
7154
ec8cec5b
AB
71552020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7156
7157 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
7158 (ada_language_data): Delete la_emitchar initializer.
7159 (ada_language::emitchar): New member function, implementation from
7160 emit_char.
7161 * c-lang.c (c_language_data): Delete la_emitchar initializer.
7162 (cplus_language_data): Likewise.
7163 (asm_language_data): Likewise.
7164 (minimal_language_data): Likewise.
7165 * d-lang.c (d_language_data): Likewise.
7166 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
7167 (f_language_data): Delete la_emitchar initializer.
7168 (f_language::emitchar): New member function, implementation from
7169 f_emit_char.
7170 * go-lang.c (go_language_data): Delete la_emitchar initializer.
7171 * language.c (unk_lang_emit_char): Delete.
7172 (language_defn::emitchar): New member function definition.
7173 (unknown_language_data): Delete la_emitchar initializer.
7174 (unknown_language::emitchar): New member function.
7175 (auto_language_data): Delete la_emitchar initializer.
7176 (auto_language::emitchar): New member function.
7177 * language.h (language_data): Delete la_emitchar field.
7178 (language_defn::emitchar): New member field declaration.
7179 (LA_EMIT_CHAR): Update call to emitchar.
7180 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
7181 (m2_language_data): Delete la_emitchar initializer.
7182 (m2_language::emitchar): New member function, implementation from
7183 m2_emit_char.
7184 * objc-lang.c (objc_language_data): Delete la_emitchar
7185 initializer.
7186 * opencl-lang.c (opencl_language_data): Likewise.
7187 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
7188 (pascal_language_data): Delete la_emitchar initializer.
7189 (pascal_language::emitchar): New member function, implementation
7190 from pascal_emit_char.
7191 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
7192 (rust_language_data): Delete la_emitchar initializer.
7193 (rust_language::emitchar): New member function, implementation
7194 from rust_emitchar.
7195
1bf9c363
AB
71962020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7197
7198 * ada-lang.c (resolve): Rename to ada_language::post_parser.
7199 (ada_language_data): Delete la_post_parser initializer.
7200 (ada_language::post_parser): New member function.
7201 * c-lang.c (c_language_data): Delete la_post_parser initializer.
7202 (cplus_language_data): Likewise.
7203 (asm_language_data): Likewise.
7204 (minimal_language_data): Likewise.
7205 * d-lang.c (d_language_data): Likewise.
7206 * f-lang.c (f_language_data): Likewise.
7207 * go-lang.c (go_language_data): Likewise.
7208 * language.c (unknown_language_data): Likewise.
7209 (auto_language_data): Likewise.
7210 * language.h (language_data): Delete la_post_parser field.
7211 (language_defn::post_parser): New member function.
7212 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
7213 * objc-lang.c (objc_language_data): Likewise.
7214 * opencl-lang.c (opencl_language_data): Likewise.
7215 * p-lang.c (pascal_language_data): Likewise.
7216 * parse.c (parse_exp_in_context): Update call to post_parser.
7217 (null_post_parser): Delete definition.
7218 * parser-defs.h (null_post_parser): Delete declaration.
7219 * rust-lang.c (rust_language_data): Delete la_post_parser
7220 initializer.
7221
87afa652
AB
72222020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7223
7224 * ada-lang.c (parse): Rename to ada_language::parser.
7225 (ada_language_data): Delete la_parser initializer.
7226 (ada_language::parser): New member function, implementation from
7227 parse.
7228 * c-lang.c (c_language_data): Delete la_parser initializer.
7229 (cplus_language_data): Likewise.
7230 (asm_language_data): Likewise.
7231 (minimal_language_data): Likewise.
7232 * d-lang.c (d_language_data): Likewise.
7233 (d_language::parser): New member function.
7234 * f-lang.c (f_language_data): Delete la_parser initializer.
7235 (f_language::parser): New member function.
7236 * go-lang.c (go_language_data): Delete la_parser initializer.
7237 (go_language::parser): New member function.
7238 * language.c (unk_lang_parser): Delete.
7239 (language_defn::parser): Define new member function.
7240 (unknown_language_data): Delete la_parser initializer.
7241 (unknown_language::parser): New member function.
7242 (auto_language_data): Delete la_parser initializer.
7243 (auto_language::parser): New member function.
7244 * language.h (language_data): Delete la_parser field.
7245 (language_defn::parser): Declare new member function.
7246 * m2-lang.c (m2_language_data): Delete la_parser initializer.
7247 (m2_language::parser): New member function.
7248 * objc-lang.c (objc_language_data): Delete la_parser initializer.
7249 * opencl-lang.c (opencl_language_data): Likewise.
7250 * p-lang.c (pascal_language_data): Likewise.
7251 (pascal_language::parser): New member function.
7252 * parse.c (parse_exp_in_context): Update call to parser.
7253 * rust-lang.c (rust_language_data): Delete la_parser initializer.
7254 (rust_language::parser): New member function.
7255
37825800
AB
72562020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7257
7258 * top.c (print_gdb_configuration): Print --with-python-libdir
7259 configuration value.
7260
5b860c93
PW
72612020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7262
7263 * NEWS: Mention change to the alias command.
7264
cf00cd6f
PW
72652020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7266
7267 * cli/cli-cmds.c (lookup_cmd_for_default_args)
7268 (alias_command_completer)
7269 (make_alias_options_def_group): New functions.
7270 (alias_opts, alias_option_defs): New struct and array.
7271 (alias_usage_error): Update usage.
7272 (alias_command): Handles optional DEFAULT-ARGS... arguments.
7273 Use option framework.
7274 (_initialize_cli_cmds): Update alias command help.
7275 Update aliases command help.
7276 (show_user):
7277 Add NULL for new default_args lookup_cmd argument.
7278 (valid_command_p): Rename to validate_aliased_command.
7279 Add NULL for new default_args lookup_cmd argument. Verify that the
7280 aliased_command has no default args.
7281 * cli/cli-decode.c (help_cmd): Show aliases definitions.
7282 (lookup_cmd_1, lookup_cmd): New argument default_args.
7283 (add_alias_cmd):
7284 Add NULL for new default_args lookup_cmd argument.
7285 (print_help_for_command): Show default args under the layout
7286 alias some_alias = some_aliased_cmd some_alias_default_arg.
7287 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
7288 xfree default_args in destructor.
7289 * cli/cli-script.c (process_next_line, do_define_command):
7290 Add NULL for new default_args lookup_cmd argument.
7291 * command.h: Declare new default_args argument in lookup_cmd
7292 and lookup_cmd_1.
7293 * completer.c (complete_line_internal_1):
7294 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7295 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
7296 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
7297 Likewise.
7298 * infcmd.c (_initialize_infcmd): Likewise.
7299 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
7300 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
7301 * python/py-param.c (add_setshow_generic): Likewise.
7302 * remote.c (_initialize_remote): Likewise.
7303 * top.c (execute_command): Prepend default_args if command has some.
7304 (set_verbose):
7305 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7306 * tracepoint.c (validate_actionline, encode_actions_1):
7307 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7308
bd920864
TBA
73092020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7310
7311 * jit.c (jit_read_descriptor): Use bool as the return type.
7312 (jit_breakpoint_re_set_internal): Use bool as the return type.
7313 Invert the return value logic; return true if the jit breakpoint
7314 has been successfully initialized.
7315 (jit_inferior_init): Update the call to
7316 jit_breakpoint_re_set_internal.
7317
f8098322
PA
73182020-06-22 Pedro Alves <palves@redhat.com>
7319
7320 PR gdb/25939
7321 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
7322 Use the current inferior instead. Don't return
7323 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
7324 wait again.
7325 * sol-thread.c (sol_thread_target::wait): Don't reference
7326 inferior_ptid.
7327 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
7328 (sol_update_thread_list_callback): Use the current inferior's pid
7329 instead of inferior_ptid.
7330
196535a6
RO
73312020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7332
7333 * procfs.c: Cleanup many comments.
7334
7335 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
7336 (AFTER_WATCHFLAG): Replace by value.
7337
7338 (MAIN_PROC_NAME_FORMAT): Inline ...
7339 (create_procinfo): ... here.
7340
7341 (procfs_debug_inferior): Remove SYS_exec handling.
7342 (syscall_is_exec): Likewise.
7343 (procfs_set_exec_trap): Likewise.
7344
7345 (syscall_is_lwp_exit): Inline in callers.
7346 (syscall_is_exit): Likewise.
7347 (syscall_is_exec): Likewise.
7348 (syscall_is_lwp_create): Likewise.
7349
7350 (invalidate_cache): Remove #if 0 code.
7351
7352 (make_signal_thread_runnable): Remove.
7353 (procfs_target::resume): Remove #if 0 code.
7354
cf6f3e86
RO
73552020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7356
7357 PR gdb/25939
7358 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
7359 call ...
7360 (procfs_target::create_inferior): ... here.
7361
48e9cc84
PW
73622020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7363
7364 * exec.c (validate_exec_file): Ensure the build-id is up to
7365 date by calling reopen_exec_file (that checks file timestamp
7366 to decide to re-read the file).
7367
3922b302
PA
73682020-06-18 Pedro Alves <palves@redhat.com>
7369
7370 PR gdb/25412
7371 * gdbthread.h (delete_thread, delete_thread_silent)
7372 (find_thread_ptid): Update comments.
7373 * thread.c (current_thread_): New global.
7374 (is_current_thread): Move higher, and reimplement.
7375 (inferior_thread): Reimplement.
7376 (set_thread_exited): Use bool. Add assertions.
7377 (add_thread_silent): Simplify thread-reuse handling by always
7378 calling delete_thread.
7379 (delete_thread): Remove intro comment.
7380 (find_thread_ptid): Skip exited threads.
7381 (switch_to_thread_no_regs): Write to current_thread_.
7382 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
7383 INFERIOR_PTID. Clear current_thread_.
7384
6dbdab44
PA
73852020-06-18 Pedro Alves <palves@redhat.com>
7386
7387 * aix-thread.c (pd_update): Use switch_to_thread.
7388
2da4b788
PA
73892020-06-18 Pedro Alves <palves@redhat.com>
7390
7391 * ravenscar-thread.c (ravenscar_thread_target): Update.
7392 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
7393 (ravenscar_thread_target::add_active_thread): ... this. Don't
7394 set m_base_ptid here. Update to avoid referencing inferior_ptid.
7395 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
7396
50838d1b
PA
73972020-06-18 Pedro Alves <palves@redhat.com>
7398
7399 * nat/windows-nat.c (current_windows_thread): Remove.
7400 * nat/windows-nat.h (current_windows_thread): Remove.
7401 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
7402 Adjust.
7403 (display_selectors): Adjust to fetch the current
7404 windows_thread_info based on inferior_ptid.
7405 (fake_create_process): No longer write to current_windows_thread.
7406 (windows_nat_target::get_windows_debug_event):
7407 Don't set inferior_ptid or current_windows_thread.
7408 (windows_nat_target::wait): Adjust to not rely on
7409 current_windows_thread.
7410 (do_initial_windows_stuff): Now a method of windows_nat_target.
7411 Switch to the last_ptid thread.
7412 (windows_nat_target::attach): Adjust.
7413 (windows_nat_target::detach): Use switch_to_no_thread instead of
7414 writing to inferior_ptid directly.
7415 (windows_nat_target::create_inferior): Adjust.
7416
31ce04e9
PA
74172020-06-18 Pedro Alves <palves@redhat.com>
7418
7419 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
7420
1ee1a363
PA
74212020-06-18 Pedro Alves <palves@redhat.com>
7422
7423 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
7424 after creating it, instead of writing to inferior_ptid. Don't
7425 write to inferior_ptid.
7426
6d350754
PA
74272020-06-18 Pedro Alves <palves@redhat.com>
7428
7429 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
7430
5d971d48
PA
74312020-06-18 Pedro Alves <palves@redhat.com>
7432
7433 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
7434 it, instead of writing to inferior_ptid.
7435
86e57d1b
PA
74362020-06-18 Pedro Alves <palves@redhat.com>
7437
7438 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
7439 to inferior_ptid.
7440
f2e1c129
PA
74412020-06-18 Pedro Alves <palves@redhat.com>
7442
7443 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
7444 instead of writing to inferior_ptid directly.
7445
60db1b85
PA
74462020-06-18 Pedro Alves <palves@redhat.com>
7447
7448 * corelow.c (core_target::close): Use switch_to_no_thread instead
7449 of writing to inferior_ptid directly.
7450 (add_to_thread_list, core_target_open): Use switch_to_thread
7451 instead of writing to inferior_ptid directly.
7452
fe7d6a8d
PA
74532020-06-18 Pedro Alves <palves@redhat.com>
7454
7455 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
7456 inferior_ptid.
7457 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
7458 inferior_ptid.
7459 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
7460 inferior_ptid directly.
7461 (darwin_nat_target::init_thread_list): Switch to thread, instead
7462 of writing to inferior_ptid.
7463 (darwin_nat_target::attach): Don't write to inferior_ptid.
7464 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
7465
975f8708
PA
74662020-06-18 Pedro Alves <palves@redhat.com>
7467
7468 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
7469 thread.
7470 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
7471 Instead use switch_to_thread.
7472 (gnu_nat_target::detach): Use switch_to_no_thread
7473 instead of writing to inferior_ptid directly. Used passed-in
7474 inferior instead of looking up the inferior by pid.
7475
1a204730
PA
74762020-06-18 Pedro Alves <palves@redhat.com>
7477
7478 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
7479 inferior_ptid.
7480
ebe84f23
PA
74812020-06-18 Pedro Alves <palves@redhat.com>
7482
7483 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
7484 inferior_ptid.
7485 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
7486 thread.
7487 (nto_procfs_target::detach): Avoid referencing
7488 inferior_ptid. Use switch_to_no_thread instead of writing to
7489 inferior_ptid directly.
7490 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
7491 instead of writing to inferior_ptid directly.
7492 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
7493 to thread.
7494
191f02e5
PA
74952020-06-18 Pedro Alves <palves@redhat.com>
7496
7497 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
7498 after creating it, instead of writing to inferior_ptid.
7499 (gdbsim_target_open): Use switch_to_no_thread instead of writing
7500 to inferior_ptid directly.
7501 (gdbsim_target::wait): Don't write to inferior_ptid.
7502
0ac55310
PA
75032020-06-18 Pedro Alves <palves@redhat.com>
7504
7505 * remote.c (remote_target::remote_notice_new_inferior): Use
7506 switch_to_thread instead of writing to inferior_ptid directly.
7507 (remote_target::add_current_inferior_and_thread): Use
7508 switch_to_no_thread instead of writing to inferior_ptid directly.
7509 (extended_remote_target::attach): Use switch_to_inferior_no_thread
7510 and switch_to_thread instead of using set_current_inferior or
7511 writing to inferior_ptid directly.
7512
5233f39b
PA
75132020-06-18 Pedro Alves <palves@redhat.com>
7514
7515 * tracectf.c (ctf_target_open): Switch to added thread instead of
7516 writing to inferior_ptid directly.
7517 (ctf_target::close): Use switch_to_no_thread instead of writing to
7518 inferior_ptid directly.
7519
087e161b
PA
75202020-06-18 Pedro Alves <palves@redhat.com>
7521
7522 * tracefile-tfile.c (tfile_target_open): Don't write to
7523 inferior_ptid directly, instead switch to added thread.
7524 (tfile_target::close): Use switch_to_no_thread instead of writing
7525 to inferior_ptid directly.
7526
7fb43e53
PA
75272020-06-18 Pedro Alves <palves@redhat.com>
7528
7529 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
7530 (procfs_target::detach): Use switch_to_no_thread
7531 instead of writing to inferior_ptid directly.
7532 (do_attach): Change return type to void. Switch to the added
7533 thread.
7534 (procfs_target::create_inferior): Switch to the added thread.
7535 (procfs_do_thread_registers): Don't write to inferior_ptid.
7536
18493a00
PA
75372020-06-18 Pedro Alves <palves@redhat.com>
7538
7539 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
7540 of writing to inferior_ptid.
7541 (scoped_restore_exited_inferior): Delete.
7542 (handle_vfork_child_exec_or_exit): Simplify using
7543 scoped_restore_current_pspace_and_thread. Use switch_to_thread
7544 instead of writing to inferior_ptid.
7545 (THREAD_STOPPED_BY): Delete.
7546 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
7547 (thread_stopped_by_hw_breakpoint): Delete.
7548 (save_waitstatus): Use
7549 scoped_restore_current_thread+switch_to_thread, and call
7550 target_stopped_by_watchpoint instead of
7551 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
7552 instead of thread_stopped_by_sw_breakpoint, and
7553 target_stopped_by_hw_breakpoint instead of
7554 thread_stopped_by_hw_breakpoint.
7555 (handle_inferior_event)
7556 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
7557 inferior_ptid directly, nor
7558 set_current_inferior/set_current_program_space. Use
7559 switch_to_thread / switch_to_inferior_no_thread instead.
7560
a0776b13
PA
75612020-06-18 Pedro Alves <palves@redhat.com>
7562
7563 * target.c (generic_mourn_inferior): Use switch_to_no_thread
7564 instead of writing to inferior_ptid.
7565
6155c136
PA
75662020-06-18 Pedro Alves <palves@redhat.com>
7567
7568 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
7569 added thread.
7570 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
7571 to the added thread.
7572 (inf_ptrace_target::detach_success): Use switch_to_no_thread
7573 instead of writing to inferior_ptid.
7574
c5316fc6
PA
75752020-06-18 Pedro Alves <palves@redhat.com>
7576
7577 * gdbarch-selftests.c: Include "progspace-and-thread.h".
7578 (register_to_value_test): Mock a program_space too. Heap-allocate
7579 the address space. Don't write to inferior_ptid. Use
7580 switch_to_thread instead.
7581
8df01799
PA
75822020-06-18 Pedro Alves <palves@redhat.com>
7583
7584 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
7585 Delete.
7586 (find_signalled_thread()): New, factored out from
7587 linux_make_corefile_notes and adjusted to handle exited threads.
7588 (linux_make_corefile_notes): Adjust to use the new
7589 find_signalled_thread.
7590
41792d68
PA
75912020-06-18 Pedro Alves <palves@redhat.com>
7592
7593 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
7594 of saving/restoring inferior_ptid.
7595
612f258a
TT
75962020-06-17 Tom Tromey <tom@tromey.com>
7597
7598 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
7599 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
7600 declare.
7601 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
7602
efb763a5
SM
76032020-06-15 Simon Marchi <simon.marchi@efficios.com>
7604
7605 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
7606 of partial symtabs.
7607
2951f6c0
SM
76082020-06-17 Simon Marchi <simon.marchi@efficios.com>
7609
7610 * regformats/reg-arm.dat: Remove.
7611 * regformats/reg-bfin.dat: Remove.
7612 * regformats/reg-cris.dat: Remove.
7613 * regformats/reg-crisv32.dat: Remove.
7614 * regformats/reg-m32r.dat: Remove.
7615 * regformats/reg-tilegx.dat: Remove.
7616 * regformats/reg-tilegx32.dat: Remove.
7617
7d458ea5
SM
76182020-06-17 Simon Marchi <simon.marchi@efficios.com>
7619
7620 * features/Makefile (WHICH): Remove arm files.
7621 * regformats/arm/arm-with-iwmmxt.dat: Remove.
7622 * regformats/arm/arm-with-neon.dat: Remove.
7623 * regformats/arm/arm-with-vfpv2.dat: Remove.
7624 * regformats/arm/arm-with-vfpv3.dat: Remove.
7625
3af96c0d
SM
76262020-06-17 Simon Marchi <simon.marchi@efficios.com>
7627
7628 * features/Makefile (XMLTOC): Remove rx.xml.
7629
b25e22fd
PA
76302020-06-17 Pedro Alves <palves@redhat.com>
7631
7632 * gdbthread.h (thread_control_state) <trap_expected> Update
7633 comments.
7634
a78a19b1
AB
76352020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7636
7637 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
7638 ada_language::lookup_symbol_nonlocal.
7639 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
7640 (ada_language::lookup_symbol_nonlocal): New member function,
7641 implementation from ada_lookup_symbol_nonlocal.
7642 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
7643 initializer.
7644 (cplus_language_data): Delete la_lookup_symbol_nonlocal
7645 initializer.
7646 (cplus_language::lookup_symbol_nonlocal): New member function.
7647 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
7648 (minimal_language_data) Likewise.
7649 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
7650 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
7651 initializer.
7652 (d_language::lookup_symbol_nonlocal): New member function.
7653 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
7654 initializer.
7655 (f_language::lookup_symbol_nonlocal): New member function.
7656 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
7657 initializer.
7658 * language.c (unknown_language_data): Likewise.
7659 (auto_language_data): Likewise.
7660 * language.h (language_data): Delete la_lookup_symbol_nonlocal
7661 field.
7662 (language_defn::lookup_symbol_nonlocal): New member function.
7663 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
7664 initializer.
7665 * objc-lang.c (objc_language_data): Likewise.
7666 * opencl-lang.c (opencl_language_data): Likewise.
7667 * p-lang.c (pascal_language_data): Likewise.
7668 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
7669 rust_language::lookup_symbol_nonlocal.
7670 (rust_language_data): Delete la_lookup_symbol_nonlocal
7671 initializer.
7672 (rust_language::lookup_symbol_nonlocal): New member function,
7673 implementation from rust_lookup_symbol_nonlocal.
7674 * symtab.c (lookup_symbol_aux): Update call to
7675 lookup_symbol_nonlocal.
7676 (basic_lookup_symbol_nonlocal): Rename to...
7677 (language_defn::lookup_symbol_nonlocal): ...this, and update
7678 header comment. Remove language_defn parameter, and replace with
7679 uses of `this'.
7680 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
7681
ebe2334e
AB
76822020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7683
7684 * ada-lang.c (ada_language_data): Delete la_value_print_inner
7685 initializer.
7686 (ada_language::value_print_inner): New member function.
7687 * c-lang.c (c_language_data): Delete la_value_print_inner
7688 initializer.
7689 (cplus_language_data): Likewise.
7690 (asm_language_data): Likewise.
7691 (minimal_language_data): Likewise.
7692 * d-lang.c (d_language_data): Likewise.
7693 (d_language::value_print_inner): New member function.
7694 * f-lang.c (f_language_data): Delete la_value_print_inner
7695 initializer.
7696 (f_language::value_print_inner): New member function.
7697 * f-lang.h (f_value_print_innner): Rename to...
7698 (f_value_print_inner): ...this (note spelling of 'inner').
7699 * f-valprint.c (f_value_print_innner): Rename to...
7700 (f_value_print_inner): ...this (note spelling of 'inner').
7701 * go-lang.c (go_language_data): Delete la_value_print_inner
7702 initializer.
7703 (go_language::value_print_inner): New member function.
7704 * language.c (language_defn::value_print_inner): Define new member
7705 function.
7706 (unk_lang_value_print_inner): Delete.
7707 (unknown_language_data): Delete la_value_print_inner initializer.
7708 (unknown_language::value_print_inner): New member function.
7709 (auto_language_data): Delete la_value_print_inner initializer.
7710 (auto_language::value_print_inner): New member function.
7711 * language.h (language_data): Delete la_value_print_inner field.
7712 (language_defn::value_print_inner): Delcare new member function.
7713 * m2-lang.c (m2_language_data): Delete la_value_print_inner
7714 initializer.
7715 (m2_language::value_print_inner): New member function.
7716 * objc-lang.c (objc_language_data): Delete la_value_print_inner
7717 initializer.
7718 * opencl-lang.c (opencl_language_data): Likewise.
7719 * p-lang.c (pascal_language_data): Likewise.
7720 (pascal_language::value_print_inner): New member function.
7721 * rust-lang.c (rust_language_data): Delete la_value_print_inner
7722 initializer.
7723 (rust_language::value_print_inner): New member function.
7724 * valprint.c (do_val_print): Update call to value_print_inner.
7725
a1d1fa3e
AB
77262020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7727
7728 * ada-lang.c (ada_language_data): Delete la_value_print
7729 initializer.
7730 (ada_language::value_print): New member function.
7731 * c-lang.c (c_language_data): Delete la_value_print initializer.
7732 (cplus_language_data): Likewise.
7733 (asm_language_data): Likewise.
7734 (minimal_language_data): Likewise.
7735 * d-lang.c (d_language_data): Likewise.
7736 * f-lang.c (f_language_data): Likewise.
7737 * go-lang.c (go_language_data): Likewise.
7738 * language.c (unk_lang_value_print): Delete.
7739 (language_defn::value_print): Define new member function.
7740 (unknown_language_data): Delete la_value_print initializer.
7741 (unknown_language::value_print): New member function.
7742 (auto_language_data): Delete la_value_print initializer.
7743 (auto_language::value_print): New member function.
7744 * language.h (language_data): Delete la_value_print field.
7745 (language_defn::value_print): Declare new member function.
7746 (LA_VALUE_PRINT): Update call to value_print.
7747 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
7748 * objc-lang.c (objc_language_data): Likewise.
7749 * opencl-lang.c (opencl_language_data): Likewise.
7750 * p-lang.c (pascal_language_data): Likewise.
7751 (pascal_language::value_print): New member function.
7752 * rust-lang.c (rust_language_data): Delete la_value_print
7753 initializer.
7754
f16a9f57
AB
77552020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7756
7757 * ada-lang.c (ada_watch_location_expression): Rename to
7758 ada_language::watch_location_expression.
7759 (ada_language_data): Delete la_watch_location_expression
7760 initializer.
7761 (ada_language::watch_location_expression): New member function,
7762 implementation from ada_watch_location_expression.
7763 * breakpoint.c (watch_command_1): Update call to
7764 watch_location_expression.
7765 * c-lang.c (c_watch_location_expression): Rename to
7766 language_defn::watch_location_expression.
7767 (c_language_data): Delete la_watch_location_expression
7768 initializer.
7769 (cplus_language_data): Likewise.
7770 (asm_language_data): Likewise.
7771 (minimal_language_data): Likewise.
7772 * c-lang.h (c_watch_location_expression): Delete declaration.
7773 * d-lang.c (d_language_data): Delete la_watch_location_expression
7774 initializer.
7775 * f-lang.c (f_language_data): Likewise.
7776 * go-lang.c (go_language_data): Likewise.
7777 * language.c (language_defn::watch_location_expression): Member
7778 function implementation from c_watch_location_expression.
7779 (unknown_language_data): Delete la_watch_location_expression
7780 initializer.
7781 (auto_language_data): Likewise.
7782 * language.h (language_data): Delete la_watch_location_expression
7783 field.
7784 (language_defn::watch_location_expression): Declare new member
7785 function.
7786 * m2-lang.c (m2_language_data): Delete
7787 la_watch_location_expression initializer.
7788 * objc-lang.c (objc_language_data): Likewise.
7789 * opencl-lang.c (opencl_language_data): Likewise.
7790 * p-lang.c (pascal_language_data): Likewise.
7791 * rust-lang.c (rust_watch_location_expression): Rename to
7792 rust_language::watch_location_expression.
7793 (rust_language_data): Delete la_watch_location_expression
7794 initializer.
7795 (rust_language::watch_location_expression): New member function,
7796 implementation from rust_watch_location_expression.
7797
7e56227d
AB
77982020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7799
7800 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
7801 ada_language::collect_symbol_completion_matches.
7802 (ada_language_data): Delete la_collect_symbol_completion_matches
7803 initializer.
7804 (ada_language::collect_symbol_completion_matches): New member
7805 function, implementation from
7806 ada_collect_symbol_completion_matches.
7807 * c-lang.c (c_language_data): Delete
7808 la_collect_symbol_completion_matches initializer.
7809 (cplus_language_data): Likewise.
7810 (asm_language_data): Likewise.
7811 (minimal_language_data): Likewise.
7812 * d-lang.c (d_language_data): Likewise.
7813 * f-lang.c (f_collect_symbol_completion_matches): Rename to
7814 f_language::collect_symbol_completion_matches.
7815 (f_language_data): Delete la_collect_symbol_completion_matches
7816 initializer.
7817 (f_language::collect_symbol_completion_matches) New member
7818 function, implementation from f_collect_symbol_completion_matches.
7819 * go-lang.c (go_language_data): Delete
7820 la_collect_symbol_completion_matches initializer.
7821 * language.c (unknown_language_data): Likewise.
7822 (auto_language_data): Likewise.
7823 * language.h (language_data): Delete
7824 la_collect_symbol_completion_matches field.
7825 (language_defn::collect_symbol_completion_matches): New member
7826 function.
7827 * m2-lang.c (m2_language_data): Delete
7828 la_collect_symbol_completion_matches initializer.
7829 * objc-lang.c (objc_language_data): Likewise.
7830 * opencl-lang.c (opencl_language_data): Likewise.
7831 * p-lang.c (pascal_language_data): Likewise.
7832 * rust-lang.c (rust_language_data): Likewise.
7833 * symtab.c (default_collect_symbol_completion_matches): Delete.
7834 (collect_symbol_completion_matches): Update call to
7835 collect_symbol_completion_matches.
7836 (collect_symbol_completion_matches_type): Likewise.
7837 * symtab.h (default_collect_symbol_completion_matches): Delete
7838 declaration.
7839
53fc67f8
AB
78402020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7841
7842 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
7843 (ada_language_data): Delete la_word_break_characters initializer.
7844 (ada_language::word_break_characters): New member function.
7845 * c-lang.c (c_language_data): Delete la_word_break_characters
7846 initializer.
7847 (cplus_language_data): Likewise.
7848 (asm_language_data): Likewise.
7849 (minimal_language_data): Likewise.
7850 * completer.c: Update global comment.
7851 (advance_to_expression_complete_word_point): Update call to
7852 word_break_characters.
7853 (complete_files_symbols): Likewise.
7854 (complete_line_internal_1): Likewise.
7855 (default_completer_handle_brkchars): Likewise.
7856 (skip_quoted_chars): Likewise.
7857 * d-lang.c (d_language_data): Delete la_word_break_characters
7858 initializer.
7859 * f-lang.c (f_word_break_characters): Delete.
7860 (f_language_data): Delete la_word_break_characters initializer.
7861 (f_language::word_break_characters): New member function.
7862 * go-lang.c (go_language_data): Delete la_word_break_characters
7863 initializer.
7864 * language.c (unknown_language_data): Likewise.
7865 (auto_language_data): Likewise.
7866 * language.h (default_word_break_characters): Move declaration to
7867 earlier in the file.
7868 (language_data): Delete la_word_break_characters field.
7869 (language_defn::word_break_characters): New member function.
7870 * m2-lang.c (m2_language_data): Delete la_word_break_characters
7871 initializer.
7872 * objc-lang.c (objc_language_data): Likewise.
7873 * opencl-lang.c (opencl_language_data): Likewise.
7874 * p-lang.c (pascal_language_data): Likewise.
7875 * rust-lang.c (rust_language_data): Likewise.
7876
c9debfb9
AB
78772020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7878
7879 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
7880 (ada_language_data): Delete la_get_symbol_name_matcher
7881 initializer.
7882 (language_defn::get_symbol_name_matcher_inner): New member
7883 function.
7884 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
7885 initializer.
7886 (cplus_language_data): Likewise.
7887 (cplus_language::get_symbol_name_matcher_inner): New member
7888 function.
7889 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
7890 (minimal_language_data): Likewise.
7891 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
7892 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
7893 initializer.
7894 * dictionary.c (iter_match_first_hashed): Update call to
7895 get_symbol_name_matcher.
7896 (iter_match_next_hashed): Likewise.
7897 (iter_match_next_linear): Likewise.
7898 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
7899 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
7900 initializer.
7901 (f_language::get_symbol_name_matcher_inner): New member function.
7902 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
7903 initializer.
7904 * language.c (default_symbol_name_matcher): Update header comment,
7905 make static.
7906 (language_defn::get_symbol_name_matcher): New definition.
7907 (language_defn::get_symbol_name_matcher_inner): Likewise.
7908 (get_symbol_name_matcher): Delete.
7909 (unknown_language_data): Delete la_get_symbol_name_matcher
7910 initializer.
7911 (auto_language_data): Likewise.
7912 * language.h (language_data): Delete la_get_symbol_name_matcher
7913 field.
7914 (language_defn::get_symbol_name_matcher): New member function.
7915 (language_defn::get_symbol_name_matcher_inner): Likewise.
7916 (default_symbol_name_matcher): Delete declaration.
7917 * linespec.c (find_methods): Update call to
7918 get_symbol_name_matcher.
7919 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
7920 initializer.
7921 * minsyms.c (lookup_minimal_symbol): Update call to
7922 get_symbol_name_matcher.
7923 (iterate_over_minimal_symbols): Likewise.
7924 * objc-lang.c (objc_language_data): Delete
7925 la_get_symbol_name_matcher initializer.
7926 * opencl-lang.c (opencl_language_data): Likewise.
7927 * p-lang.c (pascal_language_data): Likewise.
7928 * psymtab.c (psymbol_name_matches): Update call to
7929 get_symbol_name_matcher.
7930 * rust-lang.c (rust_language_data): Delete
7931 la_get_symbol_name_matcher initializer.
7932 * symtab.c (symbol_matches_search_name): Update call to
7933 get_symbol_name_matcher.
7934 (compare_symbol_name): Likewise.
7935
9a49ad8c
AB
79362020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7937
7938 * ada-lang.c (ada_language_data): Delete la_compute_program
7939 initializer.
7940 * c-lang.c (c_language_data): Likewise.
7941 (c_language::compute_program): New member function.
7942 (cplus_language_data): Delete la_compute_program initializer.
7943 (cplus_language::compute_program): New member function.
7944 (asm_language_data): Delete la_compute_program initializer.
7945 (minimal_language_data): Likewise.
7946 * c-lang.h (c_compute_program): Update comment.
7947 (cplus_compute_program): Likewise.
7948 * compile/compile-c-support.c (c_compute_program): Likewise.
7949 (cplus_compute_program): Likewise.
7950 * compile/compile.c (compile_to_object): Update call to
7951 la_compute_program.
7952 * d-lang.c (d_language_data): Delete la_compute_program
7953 initializer.
7954 * f-lang.c (f_language_data): Likewise.
7955 * go-lang.c (go_language_data): Likewise.
7956 * language.c (unknown_language_data): Likewise.
7957 (auto_language_data): Likewise.
7958 * language.h (language_data): Delete la_compute_program field.
7959 (language_defn::compute_program): New member function.
7960 * m2-lang.c (m2_language_data): Delete la_compute_program
7961 initializer.
7962 * objc-lang.c (objc_language_data): Likewise.
7963 * opencl-lang.c (opencl_language_data): Likewise.
7964 * p-lang.c (pascal_language_data): Likewise.
7965 * rust-lang.c (rust_language_data): Likewise.
7966
eff93b4d
AB
79672020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7968
7969 * ada-lang.c (ada_language_data) Delete
7970 la_class_name_from_physname initializer.
7971 * c-lang.c (c_language_data): Likewise.
7972 (cplus_language_data): Likewise.
7973 (cplus_language::class_name_from_physname): New member function.
7974 (asm_language_data): Delete la_class_name_from_physname
7975 initializer.
7976 (minimal_language_data): Likewise.
7977 * d-lang.c (d_language_data): Likewise.
7978 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
7979 method on language_defn class.
7980 (guess_full_die_structure_name): Likewise.
7981 * f-lang.c (f_language_data): Delete la_class_name_from_physname
7982 initializer.
7983 * go-lang.c (go_language_data): Likewise.
7984 * language.c (language_class_name_from_physname): Delete.
7985 (unk_lang_class_name): Delete.
7986 (unknown_language_data): Delete la_class_name_from_physname
7987 initializer.
7988 (auto_language_data): Likewise.
7989 * language.h (language_data): Delete la_class_name_from_physname
7990 field.
7991 (language_defn::class_name_from_physname): New function.
7992 (language_class_name_from_physname): Delete declaration.
7993 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
7994 initializer.
7995 * objc-lang.c (objc_language_data): Likewise.
7996 * opencl-lang.c (opencl_language_data): Likewise.
7997 * p-lang.c (pascal_language_data): Likewise.
7998 * rust-lang.c (rust_language_data): Likewise.
7999
de543742
TT
80002020-06-16 Tom Tromey <tom@tromey.com>
8001
8002 * tui/tui-data.h (STATUS_NAME): New macro.
8003 * tui/tui-layout.c (tui_remove_some_windows)
8004 (initialize_known_windows, tui_register_window)
8005 (tui_layout_split::remove_windows, initialize_layouts)
8006 (tui_new_layout_command): Don't use hard-coded window names.
8007
a350efd4
TT
80082020-06-16 Tom Tromey <tom@tromey.com>
8009
8010 PR tui/25348:
8011 * tui/tui.c (tui_ensure_readline_initialized): Rename from
8012 tui_initialize_readline. Only run once. Call rl_initialize.
8013 * tui/tui.h (tui_ensure_readline_initialized): Rename from
8014 tui_initialize_readline.
8015 * tui/tui-io.c (tui_setup_io): Call
8016 tui_ensure_readline_initialized.
8017 * tui/tui-interp.c (tui_interp::init): Update.
8018
39ec0490
TT
80192020-06-16 Tom Tromey <tom@tromey.com>
8020
8021 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
8022 Also preserve the status window.
8023
d2d1ea20
TT
80242020-06-16 Tom Tromey <tom@tromey.com>
8025
8026 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
8027 where m_window==nullptr.
8028
66920317
TT
80292020-06-15 Tom Tromey <tromey@adacore.com>
8030
8031 * windows-nat.c (windows_nat::handle_output_debug_string):
8032 Update.
8033 (windows_nat::handle_ms_vc_exception): Update.
8034 * target.h (target_read_string): Change API.
8035 * target.c (target_read_string): Change API.
8036 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
8037 Update.
8038 * solib-frv.c (frv_current_sos): Update.
8039 * solib-dsbt.c (dsbt_current_sos): Update.
8040 * solib-darwin.c (darwin_current_sos): Update.
8041 * linux-thread-db.c (inferior_has_bug): Update.
8042 * expprint.c (print_subexp_standard): Update.
8043 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
8044 (ada_exception_message_1): Update.
8045
a5d871dd
TT
80462020-06-15 Tom Tromey <tromey@adacore.com>
8047
8048 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
8049
670e35fa
TT
80502020-06-15 Tom Tromey <tromey@adacore.com>
8051
8052 * valprint.c (read_string): Update comment.
8053 * target.c (MIN): Remove.
8054 (target_read_string): Rewrite.
8055
f5272a3b
TT
80562020-06-15 Tom Tromey <tromey@adacore.com>
8057
8058 * corefile.c (read_memory_string): Remove.
8059 * ada-valprint.c (ada_value_print_ptr): Update.
8060 * ada-lang.h (ada_tag_name): Change return type.
8061 * ada-lang.c (type_from_tag): Update.
8062 (ada_tag_name_from_tsd): Change return type. Use
8063 target_read_string.
8064 (ada_tag_name): Likewise.
8065 * gdbcore.h (read_memory_string): Don't declare.
8066
2c074f49
HD
80672020-06-14 Hannes Domani <ssbssa@yahoo.de>
8068
8069 * symtab.c (rbreak_command): Ignore Windows drive colon.
8070
6a17d503
SM
80712020-06-12 Simon Marchi <simon.marchi@efficios.com>
8072
8073 * NEWS: Mention removed GDBserver host support.
8074
453c733f
NC
80752020-06-12 Nelson Chu <nelson.chu@sifive.com>
8076
8077 * features/riscv/rebuild-csr-xml.sh: Updated.
8078
2b4e6a3f
TT
80792020-06-11 Tom Tromey <tom@tromey.com>
8080
8081 PR gdb/18318:
8082 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
8083
4412332f
JG
80842020-06-09 Jonny Grant <jg@jguk.org>
80852020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
8086
8087 * main.c (captured_main_1): Don't print new line after help.
8088 (print_gdb_help): add mailing list and IRC channel information
8089 to --help. Add new lines between items in the footer. Remove
8090 quotes around bug url.
8091
2f33032a
KS
80922020-06-11 Keith Seitz <keiths@redhat.com>
8093
8094 PR gdb/21356
8095 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
8096 Resolve typedefs for type length calculations.
8097
7ab96794
TV
80982020-06-10 Tom de Vries <tdevries@suse.de>
8099
8100 PR ada/24713
8101 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
8102 (write_psymbols): Enable .gdb_index for ada.
8103 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
8104 ada.
8105
e5f3ece2
TV
81062020-06-10 Tom de Vries <tdevries@suse.de>
8107
8108 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
8109 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
8110 namei" instead of "const char *name" argument.
8111 (dw2_map_matching_symbols): Use "offset_type namei" variant of
8112 dw2_symtab_iter_init.
8113
940da03e
SM
81142020-06-08 Simon Marchi <simon.marchi@efficios.com>
8115
8116 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
8117 to use type::field and field::type instead.
8118
b6cdac4b
SM
81192020-06-08 Simon Marchi <simon.marchi@efficios.com>
8120
8121 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
8122 to use field::type instead.
8123
5d14b6e5
SM
81242020-06-08 Simon Marchi <simon.marchi@efficios.com>
8125
8126 * gdbtypes.h (struct field) <type, set_type>: New methods.
8127 Rename `type` field to...
8128 <m_type>: ... this. Change references throughout to use type or
8129 set_type methods.
8130 (FIELD_TYPE): Use field::type. Change call sites that modify
8131 the field's type to use field::set_type instead.
8132
3d967001
SM
81332020-06-08 Simon Marchi <simon.marchi@efficios.com>
8134
8135 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
8136 to use type::index_type instead.
8137
262abc0d
SM
81382020-06-08 Simon Marchi <simon.marchi@efficios.com>
8139
8140 * gdbtypes.h (struct type) <index_type, set_index_type>: New
8141 methods.
8142 (TYPE_INDEX_TYPE): Use type::index_type.
8143 * gdbtypes.c (create_array_type_with_stride): Likewise.
8144
82836c92
TT
81452020-06-07 Tom Tromey <tom@tromey.com>
8146
8147 * valprint.c (generic_val_print_float): Remove "embedded_offset"
8148 parameter.
8149 (generic_value_print): Update.
8150
940dace9
AB
81512020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8152
8153 Revert commit 982a38f60b0.
8154 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
8155
982a38f6
AB
81562020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8157
8158 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
8159 avoid use after free.
8160
82f06518
TV
81612020-06-05 Tom de Vries <tdevries@suse.de>
8162
8163 * NEWS: Fix typos.
8164
f8c41851
SM
81652020-06-04 Simon Marchi <simon.marchi@efficios.com>
8166
8167 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
8168 the per_bfd object.
8169 (dwarf2_read_debug_names): Likewise.
8170 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
8171 object when re-using a per_bfd object with an index.
8172
f9b5d5ea
TV
81732020-06-03 Tom de Vries <tdevries@suse.de>
8174
8175 PR symtab/26046
8176 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
8177 children for C++.
8178 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
8179 DW_TAG_subprogram.
8180
f6eee2d0
AB
81812020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8182
8183 * ada-lang.c (ada_language_data): Delete skip_trampoline
8184 initializer.
8185 * c-lang.c (c_language_data): Likewise.
8186 (cplus_language_data): Likewise.
8187 (cplus_language::skip_trampoline): New member function.
8188 (asm_language_data): Delete skip_trampoline initializer.
8189 (minimal_language_data): Likewise.
8190 * d-lang.c (d_language_data): Likewise.
8191 * f-lang.c (f_language_data): Likewise.
8192 * go-lang.c (go_language_data): Likewise.
8193 * language.c (unk_lang_trampoline): Delete function.
8194 (skip_language_trampoline): Update.
8195 (unknown_language_data): Delete skip_trampoline initializer.
8196 (auto_language_data): Likewise.
8197 * language.h (language_data): Delete skip_trampoline field.
8198 (language_defn::skip_trampoline): New function.
8199 * m2-lang.c (m2_language_data): Delete skip_trampoline
8200 initializer.
8201 * objc-lang.c (objc_skip_trampoline): Delete function, move
8202 implementation to objc_language::skip_trampoline.
8203 (objc_language_data): Delete skip_trampoline initializer.
8204 (objc_language::skip_trampoline): New member function with
8205 implementation from objc_skip_trampoline.
8206 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
8207 initializer.
8208 * p-lang.c (pascal_language_data): Likewise.
8209 * rust-lang.c (rust_language_data): Likewise.
8210
0a50df5d
AB
82112020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8212
8213 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
8214 (ada_language::demangle): New member function.
8215 * c-lang.c (c_language_data): Delete la_demangle initializer.
8216 (cplus_language_data): Delete la_demangle initializer.
8217 (cplus_language::demangle): New member function.
8218 (asm_language_data): Delete la_demangle initializer.
8219 (minimal_language_data): Delete la_demangle initializer.
8220 * d-lang.c (d_language_data): Delete la_demangle initializer.
8221 (d_language::demangle): New member function.
8222 * f-lang.c (f_language_data): Delete la_demangle initializer.
8223 (f_language::demangle): New member function.
8224 * go-lang.c (go_language_data): Delete la_demangle initializer.
8225 (go_language::demangle): New member function.
8226 * language.c (language_demangle): Update.
8227 (unk_lang_demangle): Delete.
8228 (unknown_language_data): Delete la_demangle initializer.
8229 (unknown_language::demangle): New member function.
8230 (auto_language_data): Delete la_demangle initializer.
8231 (auto_language::demangle): New member function.
8232 * language.h (language_data): Delete la_demangle field.
8233 (language_defn::demangle): New function.
8234 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
8235 * objc-lang.c (objc_language_data): Delete la_demangle
8236 initializer.
8237 (objc_language::demangle): New member function.
8238 * opencl-lang.c (opencl_language_data): Delete la_demangle
8239 initializer.
8240 * p-lang.c (pascal_language_data): Likewise.
8241 * rust-lang.c (rust_language_data): Likewise.
8242 (rust_language::demangle): New member function.
8243
fbfb0a46
AB
82442020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8245
8246 * ada-lang.c (ada_language_data): Delete la_print_type
8247 initializer.
8248 (ada_language::print_type): New member function.
8249 * c-lang.c (c_language_data): Delete la_print_type initializer.
8250 (c_language::print_type): New member function.
8251 (cplus_language_data): Delete la_print_type initializer.
8252 (cplus_language::print_type): New member function.
8253 (asm_language_data): Delete la_print_type initializer.
8254 (asm_language::print_type): New member function.
8255 (minimal_language_data): Delete la_print_type initializer.
8256 (minimal_language::print_type): New member function.
8257 * d-lang.c (d_language_data): Delete la_print_type initializer.
8258 (d_language::print_type): New member function.
8259 * f-lang.c (f_language_data): Delete la_print_type initializer.
8260 (f_language::print_type): New member function.
8261 * go-lang.c (go_language_data): Delete la_print_type initializer.
8262 (go_language::print_type): New member function.
8263 * language.c (unk_lang_print_type): Delete.
8264 (unknown_language_data): Delete la_print_type initializer.
8265 (unknown_language::print_type): New member function.
8266 (auto_language_data): Delete la_print_type initializer.
8267 (auto_language::print_type): New member function.
8268 * language.h (language_data): Delete la_print_type field.
8269 (language_defn::print_type): New function.
8270 (LA_PRINT_TYPE): Update.
8271 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
8272 (m2_language::print_type): New member function.
8273 * objc-lang.c (objc_language_data): Delete la_print_type
8274 initializer.
8275 (objc_language::print_type): New member function.
8276 * opencl-lang.c (opencl_print_type): Delete, implementation moved
8277 to opencl_language::print_type.
8278 (opencl_language_data): Delete la_print_type initializer.
8279 (opencl_language::print_type): New member function, implementation
8280 from opencl_print_type.
8281 * p-lang.c (pascal_language_data): Delete la_print_type
8282 initializer.
8283 (pascal_language::print_type): New member function.
8284 * rust-lang.c (rust_print_type): Delete, implementation moved to
8285 rust_language::print_type.
8286 (rust_language_data): Delete la_print_type initializer.
8287 (rust_language::print_type): New member function, implementation
8288 from rust_print_type.
8289
6f827019
AB
82902020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8291
8292 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
8293 implementation moves to...
8294 (ada_language::sniff_from_mangled_name): ...here. Update return
8295 type.
8296 (ada_language_data): Delete la_sniff_from_mangled_name
8297 initializer.
8298 * c-lang.c (c_language_data): Likewise.
8299 (cplus_language_data): Likewise.
8300 (cplus_language::sniff_from_mangled_name): New member function,
8301 implementation taken from gdb_sniff_from_mangled_name.
8302 (asm_language_data): Delete la_sniff_from_mangled_name
8303 initializer.
8304 (minimal_language_data): Likewise.
8305 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
8306 implementation moves to cplus_language::sniff_from_mangled_name.
8307 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
8308 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
8309 moves to...
8310 (d_language::sniff_from_mangled_name): ...here.
8311 (d_language_data): Delete la_sniff_from_mangled_name initializer.
8312 * f-lang.c (f_language_data): Likewise.
8313 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
8314 moves to...
8315 (go_language::sniff_from_mangled_name): ...here.
8316 (go_language_data): Delete la_sniff_from_mangled_name initializer.
8317 * language.c (language_sniff_from_mangled_name): Delete.
8318 (unknown_language_data): Delete la_sniff_from_mangled_name
8319 initializer.
8320 (auto_language_data): Likewise.
8321 * language.h (language_data): Delete la_sniff_from_mangled_name
8322 field.
8323 (language_defn::sniff_from_mangled_name): New function.
8324 (language_sniff_from_mangled_name): Delete declaration.
8325 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
8326 field.
8327 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
8328 implementation moves to...
8329 (objc_language::sniff_from_mangled_name): ...here.
8330 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
8331 * opencl-lang.c (opencl_language_data): Likewise.
8332 * p-lang.c (pascal_language_data): Likewise.
8333 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
8334 implementation moves to...
8335 (rust_language::sniff_from_mangled_name): ...here.
8336 (rust_language_data): Delete la_sniff_from_mangled_name
8337 initializer.
8338 * symtab.c (symbol_find_demangled_name): Call
8339 sniff_from_mangled_name member function.
8340
fb8006fd
AB
83412020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8342
8343 * ada-lang.c (ada_language_data): Delete la_search_name_hash
8344 initializer.
8345 * c-lang.c (c_language_data): Likewise.
8346 (cplus_language_data): Likewise.
8347 (cplus_language::search_name_hash): New member function.
8348 (asm_language_data): Delete la_search_name_hash initializer.
8349 (minimal_language_data): Likewise.
8350 * d-lang.c (d_language_data): Likewise.
8351 * dictionary.c (default_search_name_hash): Rename to...
8352 (language_defn::search_name_hash): ...this.
8353 * f-lang.c (f_language_data): Likewise.
8354 (f_language::search_name_hash): New member function.
8355 * go-lang.c (go_language_data): Delete la_search_name_hash
8356 initializer.
8357 * language.c (unknown_language_data): Likewise.
8358 (auto_language_data): Likewise.
8359 * language.h (struct language_data): Delete la_search_name_hash
8360 field.
8361 (language_defn::search_name_hash): Declare new member function.
8362 (default_search_name_hash): Delete declaration.
8363 * m2-lang.c (m2_language_data): Delete la_search_name_hash
8364 initializer.
8365 * objc-lang.c (objc_language_data): Likewise.
8366 * opencl-lang.c (opencl_language_data): Likewise.
8367 * p-lang.c (pascal_language_data): Likewise.
8368 * rust-lang.c (rust_language_data): Likewise.
8369 * symtab.c (search_name_hash): Update call.
8370
8e25bafe
AB
83712020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8372
8373 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
8374 initializer.
8375 * c-lang.c (class compile_instance): Declare.
8376 (c_language_data): Delete la_get_compile_instance initializer.
8377 (c_language::get_compile_instance): New member function.
8378 (cplus_language_data): Delete la_get_compile_instance initializer.
8379 (cplus_language::get_compile_instance): New member function.
8380 (asm_language_data): Delete la_get_compile_instance initializer.
8381 (minimal_language_data): Likewise.
8382 * c-lang.h (c_get_compile_context): Update comment.
8383 (cplus_get_compile_context): Update comment.
8384 * compile/compile.c (compile_to_object): Update calls, don't rely
8385 on function pointer being NULL.
8386 * d-lang.c (d_language_data): Delete la_get_compile_instance
8387 initializer.
8388 * f-lang.c (f_language_data): Likewise.
8389 * go-lang.c (go_language_data): Likewise.
8390 * language.c (unknown_language_data): Likewise.
8391 (auto_language_data): Likewise.
8392 * language.h (language_data): Delete la_get_compile_instance field.
8393 (language_defn::get_compile_instance): New member function.
8394 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
8395 initializer.
8396 * objc-lang.c (objc_language_data): Likewise.
8397 * opencl-lang.c (opencl_language_data): Likewise.
8398 * p-lang.c (pascal_language_data): Likewise.
8399 * rust-lang.c (rust_language_data): Likewise.
8400
4009ee92
AB
84012020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8402
8403 * ada-lang.c (ada_add_all_symbols): Update comment.
8404 (ada_iterate_over_symbols): Delete, move implementation to...
8405 (ada_language::iterate_over_symbols): ...here, a new member
8406 function, rewrite to use range based for loop.
8407 (ada_language_data): Delete la_iterate_over_symbols initializer.
8408 * c-lang.c (c_language_data): Likewise.
8409 (cplus_language_data): Likewise.
8410 (asm_language_data): Likewise.
8411 (minimal_language_data): Likewise.
8412 * d-lang.c (d_language_data): Likewise.
8413 * f-lang.c (f_language_data): Likewise.
8414 * go-lang.c (go_language_data): Likewise.
8415 * language.c (unknown_language_data): Likewise.
8416 (auto_language_data): Likewise.
8417 * language.h (language_data): Delete la_iterate_over_symbols field.
8418 (language_defn::iterate_over_symbols): New member function.
8419 (LA_ITERATE_OVER_SYMBOLS): Update.
8420 * linespec.c (iterate_over_all_matching_symtabs): Update.
8421 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
8422 initializer.
8423 * objc-lang.c (objc_language_data): Likewise.
8424 * opencl-lang.c (opencl_language_data): Likewise.
8425 * p-lang.c (pascal_language_data): Likewise.
8426 * rust-lang.c (rust_language_data): Likewise.
8427
54f4ca46
AB
84282020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8429
8430 * ada-lang.c (ada_language_data): Delete
8431 la_lookup_transparent_type initializer.
8432 * c-lang.c (c_language_data): Likewise.
8433 (cplus_language_data): Likewise.
8434 (cplus_language::lookup_transparent_type): New member function.
8435 (asm_language_data): Delete la_lookup_transparent_type
8436 initializer.
8437 (minimal_language_data): Likewise.
8438 * d-lang.c (d_language_data): Likewise.
8439 * f-lang.c (f_language_data): Likewise.
8440 * go-lang.c (go_language_data): Likewise.
8441 * language.c (unknown_language_data): Likewise.
8442 (auto_language_data): Likewise.
8443 * language.h (struct language_data): Delete
8444 la_lookup_transparent_type field.
8445 (language_defn::lookup_transparent_type): New member function.
8446 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
8447 initializer.
8448 * objc-lang.c (objc_language_data): Likewise.
8449 * opencl-lang.c (opencl_language_data): Likewise.
8450 * p-lang.c (pascal_language_data): Likewise.
8451 * rust-lang.c (rust_language_data): Likewise.
8452 * symtab.c (symbol_matches_domain): Update call.
8453
1fb314aa
AB
84542020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8455
8456 * ada-lang.c (ada_language_arch_info): Delete function, move
8457 implementation to...
8458 (ada_language::language_arch_info): ...here, a new member
8459 function.
8460 (ada_language_data): Delete la_language_arch_info.
8461 * c-lang.c (c_language_data): Likewise.
8462 (c_language::language_arch_info): New member function.
8463 (cplus_language_arch_info): Delete function, move
8464 implementation to...
8465 (cplus_language::language_arch_info): ...here, a new member
8466 function.
8467 (cplus_language_data): Delete la_language_arch_info.
8468 (asm_language_data): Likewise.
8469 (asm_language::language_arch_info): New member function.
8470 (minimal_language_data): Delete la_language_arch_info.
8471 (minimal_language::language_arch_info): New member function.
8472 * d-lang.c (d_language_arch_info): Delete function, move
8473 implementation to...
8474 (d_language::language_arch_info): ...here, a new member
8475 function.
8476 (d_language_data): Delete la_language_arch_info.
8477 * f-lang.c (f_language_arch_info): Delete function, move
8478 implementation to...
8479 (f_language::language_arch_info): ...here, a new member
8480 function.
8481 (f_language_data): Delete la_language_arch_info.
8482 * go-lang.c (go_language_arch_info): Delete function, move
8483 implementation to...
8484 (go_language::language_arch_info): ...here, a new member
8485 function.
8486 (go_language_data): Delete la_language_arch_info.
8487 * language.c (unknown_language_data): Likewise.
8488 (unknown_language::language_arch_info): New member function.
8489 (auto_language_data): Delete la_language_arch_info.
8490 (auto_language::language_arch_info): New member function.
8491 (language_gdbarch_post_init): Update call to
8492 la_language_arch_info.
8493 * language.h (language_data): Delete la_language_arch_info
8494 function pointer.
8495 (language_defn::language_arch_info): New function.
8496 * m2-lang.c (m2_language_arch_info): Delete function, move
8497 implementation to...
8498 (m2_language::language_arch_info): ...here, a new member
8499 function.
8500 (m2_language_data): Delete la_language_arch_info.
8501 * objc-lang.c (objc_language_arch_info): Delete function, move
8502 implementation to...
8503 (objc_language::language_arch_info): ...here, a new member
8504 function.
8505 (objc_language_data): Delete la_language_arch_info.
8506 * opencl-lang.c (opencl_language_arch_info): Delete function, move
8507 implementation to...
8508 (opencl_language::language_arch_info): ...here, a new member
8509 function.
8510 (opencl_language_data): Delete la_language_arch_info.
8511 * p-lang.c (pascal_language_arch_info): Delete function, move
8512 implementation to...
8513 (pascal_language::language_arch_info): ...here, a new member
8514 function.
8515 (pascal_language_data): Delete la_language_arch_info.
8516 * rust-lang.c (rust_language_arch_info): Delete function, move
8517 implementation to...
8518 (rust_language::language_arch_info): ...here, a new member
8519 function.
8520 (rust_language_data): Delete la_language_arch_info.
8521
48448202
AB
85222020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8523
8524 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
8525 initializer.
8526 * c-lang.c (c_language_data): Likewise.
8527 (cplus_language_data): Likewise.
8528 (cplus_language::pass_by_reference_info): New method.
8529 (asm_language_data): Delete la_pass_by_reference initializer.
8530 (minimal_language_data): Likewise.
8531 * cp-abi.c (cp_pass_by_reference): Remove use of
8532 default_pass_by_reference.
8533 * d-lang.c (d_language_data): Likewise.
8534 * f-lang.c (f_language_data): Likewise.
8535 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
8536 default_pass_by_reference.
8537 * go-lang.c (go_language_data): Likewise.
8538 * language.c (language_pass_by_reference): Update.
8539 (default_pass_by_reference): Delete.
8540 (unknown_language_data): Delete la_pass_by_reference
8541 initializer.
8542 (auto_language_data): Likewise.
8543 * language.h (struct language_data): Delete la_pass_by_reference
8544 field.
8545 (language_defn::pass_by_reference_info): New member function.
8546 (default_pass_by_reference): Delete declaration.
8547 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
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
15e5fd35
AB
85542020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8555
8556 * ada-lang.c (ada_read_var_value): Delete function, move
8557 implementation to...
8558 (ada_language::read_var_value): ...here.
8559 (ada_language_data): Delete la_read_var_value initializer.
8560 * c-lang.c (c_language_data): Likewise.
8561 (cplus_language_data): Likewise.
8562 (minimal_language_data): Likewise.
8563 * d-lang.c (d_language_data): Likewise.
8564 * f-lang.c (f_language_data): Likewise.
8565 * findvar.c (default_read_var_value): Rename to...
8566 (language_defn::read_var_value): ...this.
8567 * findvar.c (read_var_value): Update header comment, and change to
8568 call member function instead of function pointer.
8569 * go-lang.c (go_language_data): Likewise.
8570 * language.c (unknown_language_data): Delete la_read_var_value
8571 initializer.
8572 (auto_language_data): Likewise.
8573 * language.h (struct language_data): Delete la_read_var_value
8574 field.
8575 (language_defn::read_var_value): New member function.
8576 (default_read_var_value): Delete declaration.
8577 * m2-lang.c (m2_language_data): Delete la_read_var_value
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 * value.h (default_read_var_value): Delete declaration.
8584
5bd40f2a
AB
85852020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8586
8587 * ada-lang.c (ada_print_array_index): Delete function, move
8588 implementation to...
8589 (ada_language::print_array_index): ...here.
8590 (ada_language_data): Delete la_print_array_index initializer.
8591 * c-lang.c (c_language_data): Likewise.
8592 (cplus_language_data): Likewise.
8593 (minimal_language_data): Likewise.
8594 * d-lang.c (d_language_data): Likewise.
8595 * f-lang.c (f_language_data): Likewise.
8596 * go-lang.c (go_language_data): Likewise.
8597 * language.c (default_print_array_index): Delete function, move
8598 implementation to...
8599 (language_defn::print_array_index): ...here.
8600 (unknown_language_data): Delete la_print_array_index initializer.
8601 (auto_language_data): Likewise.
8602 * language.h (struct language_data): Delete la_print_array_index
8603 field.
8604 (language_defn::print_array_index): New member function.
8605 (LA_PRINT_ARRAY_INDEX): Update.
8606 (default_print_array_index): Delete declaration.
8607 * m2-lang.c (m2_language_data): Delete la_print_array_index
8608 initializer.
8609 * objc-lang.c (objc_language_data): Likewise.
8610 * opencl-lang.c (opencl_language_data): Likewise.
8611 * p-lang.c (pascal_language_data): Likewise.
8612 * rust-lang.c (rust_language_data): Likewise.
8613
0874fd07
AB
86142020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8615
8616 * gdb/ada-lang.c (ada_language_defn): Convert to...
8617 (ada_language_data): ...this.
8618 (class ada_language): New class.
8619 (ada_language_defn): New static global.
8620 * gdb/c-lang.c (c_language_defn): Convert to...
8621 (c_language_data): ...this.
8622 (class c_language): New class.
8623 (c_language_defn): New static global.
8624 (cplus_language_defn): Convert to...
8625 (cplus_language_data): ...this.
8626 (class cplus_language): New class.
8627 (cplus_language_defn): New static global.
8628 (asm_language_defn): Convert to...
8629 (asm_language_data): ...this.
8630 (class asm_language): New class.
8631 (asm_language_defn): New static global.
8632 (minimal_language_defn): Convert to...
8633 (minimal_language_data): ...this.
8634 (class minimal_language): New class.
8635 (minimal_language_defn): New static global.
8636 * gdb/d-lang.c (d_language_defn): Convert to...
8637 (d_language_data): ...this.
8638 (class d_language): New class.
8639 (d_language_defn): New static global.
8640 * gdb/f-lang.c (f_language_defn): Convert to...
8641 (f_language_data): ...this.
8642 (class f_language): New class.
8643 (f_language_defn): New static global.
8644 * gdb/go-lang.c (go_language_defn): Convert to...
8645 (go_language_data): ...this.
8646 (class go_language): New class.
8647 (go_language_defn): New static global.
8648 * gdb/language.c (unknown_language_defn): Remove declaration.
8649 (current_language): Initialize to nullptr, real initialization is
8650 moved to _initialize_language.
8651 (languages): Delete global.
8652 (language_defn::languages): Define.
8653 (set_language_command): Use language_defn::languages.
8654 (set_language): Likewise.
8655 (range_error): Likewise.
8656 (language_enum): Likewise.
8657 (language_def): Likewise.
8658 (add_set_language_command): Use language_def::languages for the
8659 language list, and language_def to lookup language pointers.
8660 (skip_language_trampoline): Use language_defn::languages.
8661 (unknown_language_defn): Convert to...
8662 (unknown_language_data): ...this.
8663 (class unknown_language): New class.
8664 (unknown_language_defn): New static global.
8665 (auto_language_defn): Convert to...
8666 (auto_language_data): ...this.
8667 (class auto_language): New class.
8668 (auto_language_defn): New static global.
8669 (language_gdbarch_post_init): Use language_defn::languages.
8670 (_initialize_language): Initialize current_language.
8671 * gdb/language.h (struct language_defn): Rename to...
8672 (struct language_data): ...this.
8673 (struct language_defn): New.
8674 (auto_language_defn): Delete.
8675 (unknown_language_defn): Delete.
8676 (minimal_language_defn): Delete.
8677 (ada_language_defn): Delete.
8678 (asm_language_defn): Delete.
8679 (c_language_defn): Delete.
8680 (cplus_language_defn): Delete.
8681 (d_language_defn): Delete.
8682 (f_language_defn): Delete.
8683 (go_language_defn): Delete.
8684 (m2_language_defn): Delete.
8685 (objc_language_defn): Delete.
8686 (opencl_language_defn): Delete.
8687 (pascal_language_defn): Delete.
8688 (rust_language_defn): Delete.
8689 * gdb/m2-lang.c (m2_language_defn): Convert to...
8690 (m2_language_data): ...this.
8691 (class m2_language): New class.
8692 (m2_language_defn): New static global.
8693 * gdb/objc-lang.c (objc_language_defn): Convert to...
8694 (objc_language_data): ...this.
8695 (class objc_language): New class.
8696 (objc_language_defn): New static global.
8697 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
8698 (opencl_language_data): ...this.
8699 (class opencl_language): New class.
8700 (opencl_language_defn): New static global.
8701 * gdb/p-lang.c (pascal_language_defn): Convert to...
8702 (pascal_language_data): ...this.
8703 (class pascal_language): New class.
8704 (pascal_language_defn): New static global.
8705 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
8706 language pointer, update comment format.
8707 * gdb/rust-lang.c (rust_language_defn): Convert to...
8708 (rust_language_data): ...this.
8709 (class rust_language): New class.
8710 (rust_language_defn): New static global.
8711
1313c56e
AB
87122020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
8713
8714 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
8715 member variable.
8716 <m_stmt_at_address>: New member variable.
8717 (lnp_state_machine::record_line): Don't record some lines, update
8718 tracking of is_stmt at the same address.
8719 (lnp_state_machine::lnp_state_machine): Initialise new member
8720 variables.
8721
b7ed9f3d
ST
87222020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
8723
8724 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
8725 "-include gnu-nat-mig.h".
8726 * gnu-nat-mig.h: New file.
8727 * gnu-nat.c: Include "gnu-nat-mig.h".
8728 (exc_server, msg_reply_server, notify_server,
8729 process_reply_server): Remove declarations.
8730
14a8ad62
ST
87312020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8732
8733 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
8734 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
8735 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
8736 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
8737 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
8738 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
8739 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
8740 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
8741 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
8742 to gnu_nat_target class.
8743 * gnu-nat.c: Likewise.
8744 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
8745 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
8746 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
8747 object.
8748 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
8749 instead of `gnu_target'.
8750
0af5e106
ST
87512020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8752
8753 * i386-gnu-tdep.c: Include "gdbcore.h"
8754 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
8755 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
8756 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
8757 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
8758 i386_gnu_sigcontext_addr): New functions
8759 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
8760 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
8761 tdep.
8762
078f2fc9
ST
87632020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8764
8765 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
8766 before fork_inferior call. Avoid calling it if target_is_pushed returns
8767 true.
8768
53dff92c
ST
87692020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8770
8771 * gnu-nat.h (gnu_target): New variable declaration.
8772 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
8773 gnu_target.
8774 * gnu-nat.c (gnu_target): New variable.
8775 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
8776 add_thread_silent, and add_thread calls.
8777 (gnu_nat_target::create_inferior): Pass gnu_target to
8778 add_thread_silent, thread_change_ptid call.
8779 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
8780 call.
8781
5a8b8627
ST
87822020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8783
8784 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
8785 (gnu_nat_target::find_memory_regions): Remove unused
8786 `old_address' variable.
8787
366f550a
ST
87882020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8789
8790 * gnu-nat.c: Include "gdbarch.h".
8791
f14871bf
ST
87922020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8793
8794 * reply_mig_hack.awk (Error return): Cast function through
8795 void *, to bypass compiler function call check.
8796
c6887cfb
ST
87972020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8798
8799 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
8800 $(srcdir)/reply_mig_hack.awk.
8801
6930bffe
ST
88022020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8803
8804 * gnu-nat.h (gnu_debug_flag): Set type to bool.
8805
112c22ed
JG
88062020-05-30 Jonny Grant <jg@jguk.org>
8807
8808 * configure.ac (ACX_BUGURL): change bug URL to https.
8809
f68f85b5
PA
88102020-05-30 Pedro Alves <palves@redhat.com>
8811
8812 * cp-support.c (replace_typedefs_template): New.
8813 (replace_typedefs_qualified_name): Handle
8814 DEMANGLE_COMPONENT_TEMPLATE.
8815
976ca316
SM
88162020-05-29 Simon Marchi <simon.marchi@efficios.com>
8817
8818 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
8819 dwarf2/index-cache.h, dwarf2/index-write.c,
8820 dwarf2/index-write.h, dwarf2/line-header.c,
8821 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
8822 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
8823 variables and fields from `dwarf2_per_objfile` to just
8824 `per_objfile` throughout.
8825
989ade05
SM
88262020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
8827
8828 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8829 <push_dwarf_reg_entry_value>: Add comment.
8830
c47bae85
KB
88312020-05-28 Kevin Buettner <kevinb@redhat.com>
8832 Keith Seitz <keiths@redhat.com>
8833
8834 * python/python.c (do_start_initialization): Call PyEval_SaveThread
8835 instead of PyEval_ReleaseLock.
8836 (class gdbpy_gil): Move to earlier in file.
8837 (finalize_python): Set gdb_python_initialized.
8838 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
8839 when not initialized.
8840
44486dcf
SM
88412020-05-28 Simon Marchi <simon.marchi@efficios.com>
8842
8843 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8844 <push_dwarf_reg_entry_value>: Remove assert. Override
8845 per_objfile with caller_per_objfile.
8846
f030440d
TV
88472020-05-28 Tom de Vries <tdevries@suse.de>
8848
8849 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
8850 PR gold/15646 workaround to symbol kind "type".
8851
f0fbb768
TT
88522020-05-27 Tom Tromey <tromey@adacore.com>
8853
8854 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
8855
af0b2a3e
TT
88562020-05-27 Tom Tromey <tromey@adacore.com>
8857
8858 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
8859 Use htab_find_with_hash.
8860 <add_abbrev>: Remove "abbrev_number" parameter.
8861 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
8862 "abbrev_number" parameter. Use htab_find_slot_with_hash.
8863 (hash_abbrev): Add comment.
8864 (abbrev_table::lookup_abbrev): Move to header file.
8865 (abbrev_table::read): Update.
8866
7d00ffec
TT
88672020-05-27 Tom Tromey <tromey@adacore.com>
8868
8869 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
8870 method.
8871 <canonical_name>: New member.
8872 <raw_name>: Rename from "name".
8873 (partial_die_info): Initialize canonical_name.
8874 (scan_partial_symbols): Check raw_name.
8875 (partial_die_parent_scope, partial_die_full_name)
8876 (add_partial_symbol, add_partial_subprogram)
8877 (add_partial_enumeration, load_partial_dies): Use "name" method.
8878 (partial_die_info::name): New method.
8879 (partial_die_info::read, guess_partial_die_structure_name)
8880 (partial_die_info::fixup): Update.
8881
697bba18
TT
88822020-05-27 Tom Tromey <tromey@adacore.com>
8883
8884 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
8885 <get_ref_die_offset>: Inline.
8886 <get_ref_die_offset_complaint>: New method.
8887 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
8888 (attribute::get_ref_die_offset_complaint): Rename from
8889 get_ref_die_offset. Just issue complaint.
8890
c17ace43
HD
88912020-05-27 Hannes Domani <ssbssa@yahoo.de>
8892
8893 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
8894
96445f0b
HD
88952020-05-27 Hannes Domani <ssbssa@yahoo.de>
8896
8897 * exec.c (exec_file_attach): Use errno value of first openp failure.
8898
ac637ec3
HD
88992020-05-27 Hannes Domani <ssbssa@yahoo.de>
8900
8901 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
8902 Don't close thread handle.
8903
17ee85fc
TT
89042020-05-27 Tom Tromey <tom@tromey.com>
8905 Simon Marchi <simon.marchi@efficios.com>
8906
8907 * objfiles.h (struct objfile) <partial_symtabs>: Now a
8908 shared_ptr.
8909 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
8910 member.
8911 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
8912 dwarf2_per_bfd_objfile_data_key>: New globals.
8913 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
8914 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
8915 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
8916 shared.
8917 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
8918 short-circuit when sharing.
8919 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
8920 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
8921
39b16f87
SM
89222020-05-27 Simon Marchi <simon.marchi@efficios.com>
8923
8924 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
8925 to...
8926 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
8927 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
8928
fcf23d5b
SM
89292020-05-27 Simon Marchi <simon.marchi@efficios.com>
8930
8931 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
8932 build_name_components, find_name_components_bounds>:
8933 Add per_objfile parameter.
8934 (struct mapped_index) <symbol_name_at>: Likewise.
8935 (struct mapped_debug_names): Remove constructor.
8936 <dwarf2_per_objfile>: Remove field.
8937 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
8938 (mapped_index_base::find_name_components_bounds,
8939 mapped_index_base::build_name_components,
8940 dw2_expand_symtabs_matching_symbol): Likewise.
8941 (class mock_mapped_index) <symbol_name_at>: Likewise.
8942 (check_match): Likewise.
8943 (check_find_bounds_finds): Likewise.
8944 (test_mapped_index_find_name_component_bounds): Update.
8945 (CHECK_MATCH): Update.
8946 (dw2_expand_symtabs_matching): Update.
8947 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
8948 per_objfile parameter.
8949 <find_vec_in_debug_names>: Likewise.
8950 <m_per_objfile>: New field.
8951 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
8952 parameter.
8953 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
8954 (dw2_debug_names_iterator::next): Update.
8955 (dw2_debug_names_lookup_symbol): Update.
8956 (dw2_debug_names_expand_symtabs_for_function): Update.
8957 (dw2_debug_names_map_matching_symbols): Update.
8958 (dw2_debug_names_expand_symtabs_matching): Update.
8959 (dwarf2_read_debug_names): Update.
8960
7188ed02
SM
89612020-05-27 Simon Marchi <simon.marchi@efficios.com>
8962
8963 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
8964 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
8965 move to dwarf2_per_objfile.
8966 <read_in_chain>: Remove.
8967 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
8968 remove_all_cus, age_comp_units>: New methods.
8969 <m_dwarf2_cus>: New member.
8970 (struct dwarf2_per_cu_data) <cu>: Remove.
8971 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
8972 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
8973 moved to methods of dwarf2_per_objfile.
8974 (dwarf2_clear_marks): Remove.
8975 (dwarf2_queue_item::~dwarf2_queue_item): Update.
8976 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
8977 (dwarf2_per_bfd::free_cached_comp_units): Remove.
8978 (dwarf2_per_objfile::remove_all_cus): New.
8979 (class free_cached_comp_units) <~free_cached_comp_units>:
8980 Update.
8981 (load_cu): Update.
8982 (dw2_do_instantiate_symtab): Adjust.
8983 (fill_in_sig_entry_from_dwo_entry): Adjust.
8984 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8985 (cutu_reader::cutu_reader): Likewise.
8986 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
8987 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
8988 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
8989 and dwarf2_per_objfile::age_comp_units.
8990 (load_partial_comp_unit): Update.
8991 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
8992 (process_queue): Likewise.
8993 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
8994 backlink.
8995 (dwarf2_read_addr_index): Likewise.
8996 (follow_die_offset): Likewise.
8997 (dwarf2_fetch_die_loc_sect_off): Likewise.
8998 (dwarf2_fetch_constant_bytes): Likewise.
8999 (dwarf2_fetch_die_type_sect_off): Likewise.
9000 (follow_die_sig_1): Likewise.
9001 (load_full_type_unit): Likewise.
9002 (read_signatured_type): Likewise.
9003 (dwarf2_cu::dwarf2_cu): Don't set cu field.
9004 (dwarf2_cu::~dwarf2_cu): Remove.
9005 (dwarf2_per_objfile::get_cu): New.
9006 (dwarf2_per_objfile::set_cu): New.
9007 (age_cached_comp_units): Rename to...
9008 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
9009 to std::unordered_map.
9010 (free_one_cached_comp_unit): Rename to...
9011 (dwarf2_per_objfile::remove_cu): ... this. Adjust
9012 to std::unordered_map.
9013 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
9014 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
9015 a dwarf2_per_objfile in data.
9016 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
9017 (dwarf2_clear_marks): Remove.
9018
2e671100
SM
90192020-05-27 Simon Marchi <simon.marchi@efficios.com>
9020
9021 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
9022 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
9023 (init_tu_and_read_dwo_dies): Likewise.
9024 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
9025 (cutu_reader::cutu_reader): Likewise.
9026 (load_partial_comp_unit): Likewise.
9027 (process_psymtab_comp_unit): Update.
9028 (build_type_psymtabs_1): Update.
9029 (process_skeletonless_type_unit): Update.
9030 (load_full_comp_unit): Update.
9031 (find_partial_die): Update.
9032 (dwarf2_read_addr_index): Update.
9033 (read_signatured_type): Update.
9034
2e6a9f79
SM
90352020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9036
9037 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
9038 m_header_read_in>: New fields.
9039 <get_header>: New method.
9040 * dwarf2/read.c (per_cu_header_read_in): Remove.
9041 (dwarf2_per_cu_data::get_header): New.
9042 (dwarf2_per_cu_data::addr_size): Update.
9043 (dwarf2_per_cu_data::offset_size): Update.
9044 (dwarf2_per_cu_data::ref_addr_size): Update.
9045
1b555f17
SM
90462020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9047
9048 * dwarf2/read.c (load_cu): Return dwarf2_cu.
9049 (dw2_do_instantiate_symtab): Update.
9050 (queue_and_load_all_dwo_tus): Change parameter from
9051 dwarf2_per_cu_data to dwarf2_cu.
9052 (dwarf2_fetch_die_loc_sect_off): Update.
9053 (dwarf2_fetch_constant_bytes): Update.
9054 (dwarf2_fetch_die_type_sect_off): Update.
9055
8fc0b21d
SM
90562020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9057
9058 * dwarf2/read.c (process_full_comp_unit,
9059 process_full_type_unit): Remove per_cu, per_objfile paramters.
9060 Add dwarf2_cu parameter.
9061 (process_queue): Update.
9062
168c9250
SM
90632020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9064
9065 * dwarf2/read.c (create_cu_from_index_list): Replace
9066 dwarf2_per_objfile parameter with dwarf2_per_bfd.
9067 (create_cus_from_index_list): Likewise.
9068 (create_cus_from_index): Likewise.
9069 (create_signatured_type_table_from_index): Likewise.
9070 (create_cus_from_debug_names_list): Likewise.
9071 (create_cus_from_debug_names): Likewise.
9072 (dwarf2_read_gdb_index): Update.
9073 (dwarf2_read_debug_names): Update.
9074
e286671b
TT
90752020-05-27 Tom Tromey <tom@tromey.com>
9076 Simon Marchi <simon.marchi@efficios.com>
9077
9078 * dwarf2/read.h (struct dwarf2_per_objfile)
9079 <get_type_for_signatured_type, set_type_for_signatured_type>:
9080 New methods.
9081 <m_type_map>: New member.
9082 (struct signatured_type) <type>: Remove.
9083 * dwarf2/read.c
9084 (dwarf2_per_objfile::get_type_for_signatured_type,
9085 dwarf2_per_objfile::set_type_for_signatured_type): New.
9086 (get_signatured_type): Use new methods.
9087
8adb8487
TT
90882020-05-27 Tom Tromey <tom@tromey.com>
9089 Simon Marchi <simon.marchi@efficios.com>
9090
9091 * dwarf2/read.h (struct type_unit_group_unshareable): New.
9092 (struct dwarf2_per_objfile) <type_units>: New member.
9093 <get_type_unit_group_unshareable>: New method.
9094 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
9095 num_symtabs, symtabs>: Remove; move to
9096 type_unit_group_unshareable.
9097 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
9098 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
9099 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
9100
127bbf4b
SM
91012020-05-27 Simon Marchi <simon.marchi@efficios.com>
9102
9103 * dwarf2/read.h (struct dwarf2_per_cu_data):
9104 <dwarf2_per_objfile>: Remove.
9105 * dwarf2/read.c (create_cu_from_index_list): Don't assign
9106 dwarf2_per_objfile.
9107 (create_signatured_type_table_from_index): Likewise.
9108 (create_signatured_type_table_from_debug_names): Likewise.
9109 (create_debug_type_hash_table): Likewise.
9110 (fill_in_sig_entry_from_dwo_entry): Likewise.
9111 (create_type_unit_group): Likewise.
9112 (read_comp_units_from_section): Likewise.
9113 (create_cus_hash_table): Likewise.
9114
f6e649dd
SM
91152020-05-27 Simon Marchi <simon.marchi@efficios.com>
9116
9117 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
9118 dwarf2_per_cu_data::dwarf2_per_objfile.
9119 (compute_compunit_symtab_includes): Likewise.
9120 (dwarf2_cu::start_symtab): Likewise.
9121
aa66c379
SM
91222020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9123
9124 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
9125 parameter.
9126 * dwarf2/read.c (get_die_type_at_offset): Likewise.
9127 (read_namespace_alias): Update.
9128 (lookup_die_type): Update.
9129 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
9130 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
9131 Update.
9132 (disassemble_dwarf_expression): Update.
9133
120ce1b5
SM
91342020-05-27 Simon Marchi <simon.marchi@efficios.com>
9135
9136 * dwarf2/read.h (struct dwarf2_queue_item): Add
9137 dwarf2_per_objfile parameter, assign new parameter.
9138 <per_objfile>: New field.
9139 * dwarf2/read.c (free_one_cached_comp_unit): Add
9140 dwarf2_per_objfile parameter.
9141 (queue_comp_unit): Likewise.
9142 (dw2_do_instantiate_symtab): Update.
9143 (process_psymtab_comp_unit): Update.
9144 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
9145 (process_imported_unit_die): Update.
9146 (queue_and_load_dwo_tu): Update.
9147 (follow_die_offset): Update.
9148 (follow_die_sig_1): Update.
9149
9f47c707
SM
91502020-05-27 Simon Marchi <simon.marchi@efficios.com>
9151
9152 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
9153 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
9154 (read_call_site_scope): Assign per_objfile.
9155 (dwarf2_per_cu_data::objfile): Remove.
9156 * gdbtypes.h (struct call_site) <per_objfile>: New member.
9157 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
9158 dwarf2_per_objfile parameter.
9159 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
9160 dwarf2_per_objfile parameter.
9161 (dwarf_expr_reg_to_entry_parameter): Add output
9162 dwarf2_per_objfile parameter.
9163 (locexpr_get_frame_base): Update.
9164 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
9165 <push_dwarf_reg_entry_value>: Update.
9166 <call_site_to_target_addr>: Update.
9167 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
9168 parameter.
9169 (value_of_dwarf_reg_entry): Update.
9170 (rw_pieced_value): Update.
9171 (indirect_synthetic_pointer): Update.
9172 (dwarf2_evaluate_property): Update.
9173 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
9174 parameter.
9175 (locexpr_read_variable): Update.
9176 (locexpr_get_symbol_read_needs): Update.
9177 (loclist_read_variable): Update.
9178
14095eb3
SM
91792020-05-27 Simon Marchi <simon.marchi@efficios.com>
9180
9181 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9182 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9183 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9184 parameter.
9185 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9186 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9187 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9188 parameter.
9189 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
9190 sect_variable_value): Add dwarf2_per_objfile parameter.
9191 (class dwarf_evaluate_loc_desc) <dwarf_call,
9192 dwarf_variable_value>: Update.
9193 (fetch_const_value_from_synthetic_pointer): Add
9194 dwarf2_per_objfile parameter.
9195 (fetch_const_value_from_synthetic_pointer): Update.
9196 (coerced_pieced_ref): Update.
9197 (class symbol_needs_eval_context) <dwarf_call,
9198 dwarf_variable_value>: Update.
9199 (dwarf2_compile_expr_to_ax): Update.
9200
3c3cd3d4
SM
92012020-05-27 Simon Marchi <simon.marchi@efficios.com>
9202
9203 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
9204 parameter.
9205 (dwarf2_evaluate_loc_desc_full): Update.
9206
82ca3f51
SM
92072020-05-27 Simon Marchi <simon.marchi@efficios.com>
9208
9209 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
9210 parameter.
9211 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
9212 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
9213 dwarf2_per_objfile parameter.
9214 (decode_debug_loc_dwo_addresses): Likewise.
9215 (dwarf2_find_location_expression): Update.
9216 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
9217 (locexpr_describe_location_piece): Add dwarf2_per_objfile
9218 parameter.
9219 (disassemble_dwarf_expression): Add dwarf2_per_objfile
9220 parameter.
9221 (locexpr_describe_location_1): Likewise.
9222 (locexpr_describe_location): Update.
9223
4b167ea1
SM
92242020-05-27 Simon Marchi <simon.marchi@efficios.com>
9225
9226 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
9227 Remove.
9228 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
9229 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
9230 (dwarf2_compile_property_to_c): Update.
9231 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
9232 use text offset from objfile.
9233 (locexpr_tracepoint_var_ref): Update.
9234 (locexpr_generate_c_location): Update.
9235 (loclist_describe_location): Update.
9236 (loclist_tracepoint_var_ref): Update.
9237 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
9238 dwarf2_per_objfile parameter.
9239 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
9240 use text offset from objfile.
9241 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
9242
89b07335
SM
92432020-05-27 Simon Marchi <simon.marchi@efficios.com>
9244
9245 * dwarf2/expr.h (struct dwarf_expr_context)
9246 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
9247 <offset>: Remove.
9248 <per_objfile>: New member.
9249 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
9250 dwarf2_per_objfile parameter. Don't set offset, set
9251 per_objfile.
9252 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
9253 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
9254 a dwarf2_per_objfile object instead of an offset.
9255 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
9256 constructor.
9257 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
9258 to dwarf2_expr_executor constructor. Don't set offset.
9259 (dwarf2_fetch_cfa_info): Update.
9260 (struct dwarf2_frame_cache) <text_offset>: Remove.
9261 <per_objfile>: New field.
9262 (dwarf2_frame_cache): Update.
9263 (dwarf2_frame_prev_register): Update.
9264 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9265 <dwarf_evaluate_loc_desc>: Add constructor.
9266 (dwarf2_evaluate_loc_desc_full): Update.
9267 (dwarf2_locexpr_baton_eval): Update.
9268 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
9269 Add constructor.
9270 (dwarf2_loc_desc_get_symbol_read_needs): Update.
9271
293e7e51
SM
92722020-05-27 Simon Marchi <simon.marchi@efficios.com>
9273
9274 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
9275 addr_sized_int_type>: Move to dwarf2_cu.
9276 <int_type>: Move to dwarf2_per_objfile.
9277 (struct dwarf2_per_objfile) <int_type>: Move here.
9278 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
9279 addr_sized_int_type>: Move here.
9280 (read_func_scope): Update.
9281 (read_array_type): Update.
9282 (read_tag_string_type): Update.
9283 (attr_to_dynamic_prop): Update.
9284 (dwarf2_per_cu_data::int_type): Rename to...
9285 (dwarf2_per_objfile::int_type): ... this.
9286 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
9287 (dwarf2_cu::addr_sized_int_type): ... this.
9288 (read_subrange_type): Update.
9289 (dwarf2_per_cu_data::addr_type): Rename to...
9290 (dwarf2_cu::addr_type): ... this.
9291 (set_die_type): Update.
9292
64874a40
SM
92932020-05-27 Simon Marchi <simon.marchi@efficios.com>
9294
9295 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
9296 data through per_cu->cu.
9297
4ab09049
SM
92982020-05-27 Simon Marchi <simon.marchi@efficios.com>
9299
9300 * dwarf2/read.c (lookup_dwo_comp_unit): Change
9301 dwarf2_per_cu_data parameter fo dwarf2_cu.
9302 (lookup_dwo_type_unit): Likewise.
9303 (read_cutu_die_from_dwo): Likewise.
9304 (lookup_dwo_unit): Likewise.
9305 (open_and_init_dwo_file): Likewise.
9306 (lookup_dwo_cutu): Likewise.
9307 (lookup_dwo_comp_unit): Likewise.
9308 (lookup_dwo_type_unit): Likewise.
9309 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9310 (cutu_reader::cutu_reader): Update.
9311
47b14e86
SM
93122020-05-27 Simon Marchi <simon.marchi@efficios.com>
9313
9314 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
9315 parameter.
9316 (process_full_type_unit): Likewise.
9317 (process_queue): Update.
9318
43182c09
SM
93192020-05-27 Simon Marchi <simon.marchi@efficios.com>
9320
9321 * dwarf2/read.c (recursively_compute_inclusions): Add
9322 dwarf2_per_objfile parameter.
9323 (compute_compunit_symtab_includes): Likewise.
9324 (process_cu_includes): Update.
9325
7aa104c4
SM
93262020-05-27 Simon Marchi <simon.marchi@efficios.com>
9327
9328 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
9329 parameter.
9330 (create_type_unit_group): Update.
9331 (process_psymtab_comp_unit_reader): Update.
9332 (build_type_psymtabs_reader): Update.
9333
e3beb21d
SM
93342020-05-27 Simon Marchi <simon.marchi@efficios.com>
9335
9336 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
9337 object through m_this_cu->cu.
9338
d460f660
SM
93392020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9340
9341 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
9342 the info parameter.
9343 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
9344
ab432490
SM
93452020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9346
9347 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
9348 per_objfile parameter.
9349 (load_full_type_unit): Add per_objfile parameter.
9350 (read_signatured_type): Likewise.
9351 (load_full_comp_unit): Likewise.
9352 (load_cu): Likewise.
9353 (dw2_do_instantiate_symtab): Likewise.
9354 (dw2_get_file_names): Likewise.
9355 (dw2_map_symtabs_matching_filename): Update.
9356 (dw_expand_symtabs_matching_file_matcher): Update.
9357 (dw2_map_symbol_filenames): Update.
9358 (process_psymtab_comp_unit): Add per_objfile parameter.
9359 (build_type_psymtabs_1): Update.
9360 (process_skeletonless_type_unit): Update.
9361 (dwarf2_build_psymtabs_hard): Update.
9362 (load_partial_comp_unit): Add per_objfile parameter.
9363 (scan_partial_symbols): Update.
9364 (load_full_comp_unit): Add per_objfile parameter.
9365 (process_imported_unit_die): Update.
9366 (create_cus_hash_table): Update.
9367 (find_partial_die): Update.
9368 (dwarf2_read_addr_index): Update.
9369 (follow_die_offset): Update.
9370 (dwarf2_fetch_die_loc_sect_off): Update.
9371 (dwarf2_fetch_constant_bytes): Update.
9372 (dwarf2_fetch_die_type_sect_off): Update.
9373 (follow_die_sig_1): Update.
9374 (load_full_type_unit): Add per_objfile parameter.
9375 (read_signatured_type): Likewise.
9376
313bad1b
SM
93772020-05-27 Simon Marchi <simon.marchi@efficios.com>
9378
9379 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
9380 of objfile_name.
9381
c3699833
SM
93822020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9383
9384 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
9385 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9386 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
9387 field.
9388 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9389 (create_cus_from_index): Update.
9390 (dwarf2_read_gdb_index): Update.
9391 (create_cus_from_debug_names): Update.
9392 (dwarf2_read_debug_names): Update.
9393 (get_abbrev_section_for_cu): Update.
9394 (create_all_comp_units): Update.
9395 (read_attribute_value): Update.
9396 (get_debug_line_section): Update.
9397 * dwarf2/index-cache.c (index_cache::store): Update.
9398 * dwarf2/index-write.c (save_gdb_index_command): Update.
9399 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
9400
1859c670
SM
94012020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9402
9403 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
9404 member.
9405 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
9406 dwarf2_per_cu_data::per_bfd.
9407 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
9408 (create_type_unit_group): Likewise.
9409 (queue_comp_unit): Remove reference to
9410 per_cu->dwarf2_per_objfile.
9411 (maybe_queue_comp_unit): Likewise.
9412 (fill_in_sig_entry_from_dwo_entry): Assign new field.
9413 (create_cus_hash_table): Assign new field.
9414
5e22e966
SM
94152020-05-27 Simon Marchi <simon.marchi@efficios.com>
9416
9417 * dwarf2/read.c: Replace
9418 dwarf2_cu->per_cu->dwarf2_per_objfile references with
9419 dwarf2_cu->per_objfile throughout.
9420
97a1449a
SM
94212020-05-27 Simon Marchi <simon.marchi@efficios.com>
9422
9423 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
9424 parameter, don't use per_cu->dwarf2_per_objfile.
9425 (dw2_instantiate_symtab): Likewise.
9426 (dw2_find_last_source_symtab): Update.
9427 (dw2_map_expand_apply): Update.
9428 (dw2_lookup_symbol): Update.
9429 (dw2_expand_symtabs_for_function): Update.
9430 (dw2_expand_all_symtabs): Update.
9431 (dw2_expand_symtabs_with_fullname): Update.
9432 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
9433 don't use per_cu->dwarf2_per_objfile.
9434 (dw2_expand_marked_cus): Update.
9435 (dw2_find_pc_sect_compunit_symtab): Update.
9436 (dw2_debug_names_lookup_symbol): Update.
9437 (dw2_debug_names_expand_symtabs_for_function): Update.
9438 (dw2_debug_names_map_matching_symbols): Update.
9439 (dwarf2_psymtab::expand_psymtab): Update.
9440
9e021579
SM
94412020-05-27 Simon Marchi <simon.marchi@efficios.com>
9442
9443 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
9444 <per_objfile>: New member.
9445 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
9446 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
9447 call to dwarf2_cu.
9448 (cutu_reader::cutu_reader): Update.
9449 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
9450
ae090bdb
SM
94512020-05-27 Simon Marchi <simon.marchi@efficios.com>
9452
9453 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
9454 struct dwarf2_per_objfile.
9455 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
9456 dwarf2_per_bfd.
9457 * dwarf2/read.c (set_die_type): Update.
9458 (get_die_type_at_offset): Update.
9459
af758d11
SM
94602020-05-27 Tom Tromey <tom@tromey.com>
9461 Simon Marchi <simon.marchi@efficios.com>
9462
9463 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
9464 method.
9465 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
9466 get_symtab, set_symtab>: New methods.
9467 <m_symtabs>: New field.
9468 (struct dwarf2_psymtab): Derive from partial_symtab.
9469 <readin_p, get_compunit_symtab>: Declare methods.
9470 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
9471 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
9472 New methods.
9473 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
9474 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
9475 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9476 (dw2_symtab_iter_next, dw2_print_stats)
9477 (dw2_expand_symtabs_with_fullname)
9478 (dw2_expand_symtabs_matching_one)
9479 (dw_expand_symtabs_matching_file_matcher)
9480 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
9481 (dw2_debug_names_iterator::next)
9482 (dw2_debug_names_map_matching_symbols)
9483 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
9484 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
9485 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
9486 New methods.
9487 (get_compunit_symtab, process_full_comp_unit)
9488 (process_full_type_unit): Update.
9489 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
9490
5989a64e
SM
94912020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9492
9493 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
9494 then introduce a new dwarf2_per_objfile type.
9495 <read_line_string>: Move to the new dwarf2_per_objfile type.
9496 <objfile>: Likewise.
9497 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
9498 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
9499 dwarf2_per_objfile->per_bfd.
9500 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
9501 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
9502 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
9503 (dwarf2_per_bfd::free_cached_comp_units): ... this.
9504 (dwarf2_has_info): Allocate dwarf2_per_bfd.
9505 (dwarf2_per_objfile::locate_sections): Rename to...
9506 (dwarf2_per_bfd::locate_sections): ... this.
9507 (dwarf2_per_objfile::get_cutu): Rename to...
9508 (dwarf2_per_bfd::get_cutu): ... this.
9509 (dwarf2_per_objfile::get_cu): Rename to...
9510 (dwarf2_per_bfd::get_cu): ... this.
9511 (dwarf2_per_objfile::get_tu): Rename to...
9512 (dwarf2_per_bfd::get_tu): ... this.
9513 (dwarf2_per_objfile::allocate_per_cu): Rename to...
9514 (dwarf2_per_bfd::allocate_per_cu): ... this.
9515 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
9516 (dwarf2_per_bfd::allocate_signatured_type): ... this.
9517 (get_gdb_index_contents_ftype): Change parameter from
9518 dwarf2_per_objfile to dwarf2_per_bfd.
9519 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
9520 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
9521
a50264ba
TT
95222020-05-27 Tom Tromey <tom@tromey.com>
9523 Simon Marchi <simon.marchi@efficios.com>
9524
9525 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
9526 (allocate_piece_closure): Set "per_objfile" member.
9527 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
9528 (locexpr_describe_location, loclist_describe_location): Use new
9529 member.
9530 * dwarf2/read.c (read_call_site_scope)
9531 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
9532 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
9533 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
9534 handle_data_member_location): Set per_objfile member.
9535 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
9536 member.
9537 (struct dwarf2_loclist_baton) <per_objfile>: New member.
9538
d3473f0c
TT
95392020-05-27 Tom Tromey <tom@tromey.com>
9540
9541 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
9542 allocate_signatured_type>: Declare new methods.
9543 <m_num_psymtabs>: New member.
9544 (struct dwarf2_per_cu_data) <index>: New member.
9545 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
9546 (dwarf2_per_objfile::allocate_signatured_type): New methods.
9547 (create_cu_from_index_list): Use allocate_per_cu.
9548 (create_signatured_type_table_from_index)
9549 (create_signatured_type_table_from_debug_names)
9550 (create_debug_type_hash_table, add_type_unit)
9551 (read_comp_units_from_section): Use allocate_signatured_type.
9552
5717c425
TT
95532020-05-27 Tom Tromey <tom@tromey.com>
9554
9555 * psymtab.c (partial_map_expand_apply)
9556 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9557 (psym_lookup_global_symbol_language)
9558 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9559 (psym_print_stats, psym_expand_symtabs_for_function)
9560 (psym_map_symbol_filenames, psym_map_matching_symbols)
9561 (psym_expand_symtabs_matching)
9562 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9563 (maintenance_check_psymtabs): Update.
9564 * psympriv.h (struct partial_symtab) <readin_p,
9565 get_compunit_symtab>: Add objfile parameter.
9566 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
9567 Likewise.
9568 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
9569 get_compunit_symtab>: Likewise.
9570 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
9571
45940949
TT
95722020-05-27 Tom Tromey <tom@tromey.com>
9573
9574 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
9575 member.
9576 * dwarf2/read.c (delete_file_name_entry): Fix comment.
9577 (create_cu_from_index_list)
9578 (create_signatured_type_table_from_index)
9579 (create_signatured_type_table_from_debug_names)
9580 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
9581 (dwarf2_create_include_psymtab)
9582 (create_debug_type_hash_table, add_type_unit)
9583 (create_type_unit_group, read_comp_units_from_section)
9584 (dwarf2_compute_name, create_cus_hash_table)
9585 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9586 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
9587 obstack.
9588 (dw2_get_real_path): Likewise. Change argument to
9589 dwarf2_per_objfile.
9590
f8c6d152
LM
95912020-05-27 Luis Machado <luis.machado@linaro.org>
9592
9593 PR tdep/26000
9594 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
9595 for ldrd (immediate).
9596
e98d2e6d
PW
95972020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9598
9599 * command.h: Add comment giving the name of class_tui.
9600 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
9601 create the fake command for the help for class_tui.
9602
53a47a3e
TT
96032020-05-26 Tom Tromey <tromey@adacore.com>
9604
9605 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
9606 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
9607 (val_atr): New function.
9608 (value_val_atr): Use it.
9609 * ada-valprint.c (print_optional_low_bound): Change low bound
9610 handling for enums.
9611 (val_print_packed_array_elements): Don't call discrete_position.
9612 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
9613 discrete_position for enum types.
9614 * language.c (default_print_array_index): Change type.
9615 * language.h (struct language_defn) <la_print_array_index>: Add
9616 index_type parameter, change type of index_value.
9617 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
9618 (default_print_array_index): Update.
9619 * valprint.c (maybe_print_array_index): Don't call
9620 value_from_longest. Update.
9621 (value_print_array_elements): Don't call discrete_position.
9622
0bc2354b
TT
96232020-05-26 Tom Tromey <tromey@adacore.com>
9624
9625 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
9626 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
9627
1218a4bf
CDA
96282020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
9629
9630 PR gdb/13519
9631 * avr-tdep.c (avr_integer_to_address): Return data or code
9632 address accordingly to the second 'type' argument of the
9633 function.
9634
92651b1d
MW
96352020-05-25 Michael Weghorn <m.weghorn@posteo.de>
9636
9637 * infcmd.c, inferior.h: (construct_inferior_arguments):
9638 Moved function from here to gdbsupport/common-inferior.{h,cc}
9639
0a4f5f8c
TT
96402020-05-23 Tom Tromey <tom@tromey.com>
9641
9642 Revert commit eca1f90c:
9643 * NEWS: Remove entry for completion styling.
9644 * completer.c (_rl_completion_prefix_display_length): Move
9645 declaration later.
9646 (gdb_fnprint): Revert.
9647 (gdb_display_match_list_1): Likewise.
9648 * cli/cli-style.c (completion_prefix_style)
9649 (completion_difference_style, completion_suffix_style): Remove.
9650 (_initialize_cli_style): Revert.
9651 * cli/cli-style.h (completion_prefix_style)
9652 (completion_difference_style, completion_suffix_style): Don't
9653 declare.
9654
e08bd6c5
PA
96552020-05-24 Pedro Alves <palves@redhat.com>
9656
9657 * symtab.c (completion_list_add_name): Return boolean indication
9658 of whether the symbol matched.
9659 (completion_list_add_symbol): Don't try to remove C++ aliases if
9660 the symbol didn't match in the first place.
9661 * symtab.h (completion_list_add_name): Return bool.
9662
ceacbf6e
SM
96632020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
9664
9665 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
9666 type::field.
9667
26f16254
JB
96682020-05-23 Joel Brobecker <brobecker@adacore.com>
9669
9670 GDB 9.2 released.
9671
eca1f90c
TT
96722020-05-23 Tom Tromey <tom@tromey.com>
9673
9674 * NEWS: Add entry for completion styling.
9675 * completer.c (_rl_completion_prefix_display_length): Move
9676 declaration earlier.
9677 (gdb_fnprint): Use completion_style.
9678 (gdb_display_match_list_1): Likewise.
9679 * cli/cli-style.c (completion_prefix_style)
9680 (completion_difference_style, completion_suffix_style): New
9681 globals.
9682 (_initialize_cli_style): Register new globals.
9683 * cli/cli-style.h (completion_prefix_style)
9684 (completion_difference_style, completion_suffix_style): Declare.
9685
51e2cfa2
PA
96862020-05-23 Pedro Alves <palves@redhat.com>
9687
9688 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
9689 (parse_escape): Use ISDIGIT instead of isdigit.
9690 (puts_debug): Use gdb_isprint instead of isprint.
9691 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
9692 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
9693 ISSPACE instead of isspace.
9694 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
9695 instead of isspace.
9696 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
9697 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
9698 instead of isxdigit and ISDIGIT instead of isdigit.
9699
80fc5e77
SM
97002020-05-22 Simon Marchi <simon.marchi@efficios.com>
9701
9702 * gdbtypes.h (struct type) <field>: New method.
9703 (TYPE_FIELDS): Remove, replace all uses with either type::fields
9704 or type::field.
9705
3cabb6b0
SM
97062020-05-22 Simon Marchi <simon.marchi@efficios.com>
9707
9708 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
9709 (TYPE_FIELDS): Use type::fields. Change all call sites that
9710 modify the propery to use type::set_fields instead.
9711
1f704f76
SM
97122020-05-22 Simon Marchi <simon.marchi@efficios.com>
9713
9714 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
9715 type::num_fields instead.
9716
5e33d5f4
SM
97172020-05-22 Simon Marchi <simon.marchi@efficios.com>
9718
9719 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
9720 methods.
9721 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
9722 that modify the number of fields to use type::set_num_fields
9723 instead.
9724
9392ebb3
TT
97252020-05-22 Tom Tromey <tromey@adacore.com>
9726
9727 * compile/compile-object-load.h (munmap_list_free): Don't
9728 declare.
9729
7c13f4e8
AB
97302020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
9731
9732 * annotate.c (annotate_source_line): Update return type, add call
9733 to update current symtab and line.
9734 * annotate.h (annotate_source_line): Update return type, and
9735 extend header comment.
9736 * source.c (info_line_command): Check annotation_level before
9737 calling annotate_source_line.
9738 * stack.c (print_frame_info): If calling annotate_source_line
9739 returns true, then don't print any other source line information.
9740
aa370940
SM
97412020-05-21 Simon Marchi <simon.marchi@efficios.com>
9742
9743 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
9744
84d53fa9
SM
97452020-05-21 Simon Marchi <simon.marchi@efficios.com>
9746
9747 * coffread.c (patch_type): Remove NULL check before xfree.
9748 * corefile.c (set_gnutarget): Likewise.
9749 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
9750 * exec.c (build_section_table): Likewise.
9751 * remote.c (remote_target::pass_signals): Likewise.
9752 * utils.c (n_spaces): Likewise.
9753 * cli/cli-script.c (document_command): Likewise.
9754 * i386-windows-tdep.c (core_process_module_section): Likewise.
9755 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
9756
9d428aae
SM
97572020-05-20 Simon Marchi <simon.marchi@efficios.com>
9758
9759 * symfile.c (reread_symbols): Clear objfile's section_offsets
9760 vector and section indices, re-compute them by calling
9761 sym_offsets.
9762
250106a7
TT
97632020-05-20 Tom Tromey <tromey@adacore.com>
9764
9765 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 9766 (desc_one_bound, desc_index_type): Compute field name.
250106a7 9767
9a0bacfb
TV
97682020-05-20 Tom de Vries <tdevries@suse.de>
9769
9770 PR symtab/25833
9771 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
9772
7b958a48
AM
97732020-05-20 Alan Modra <amodra@gmail.com>
9774
9775 PR 25993
9776 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
9777 bfd_set_filename.
9778 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
9779 passed to bfd_set_filename.
9780 * symfile-mem.c (add_vsyscall_page): Likewise for string
9781 passed to symbol_file_add_from_memory.
9782 (symbol_file_add_from_memory): Make name param a const char* and
9783 don't strdup.
9784
c7e97679
AM
97852020-05-20 Alan Modra <amodra@gmail.com>
9786
9787 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
9788 rather than accessing bfd->filename directly.
9789 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
9790 and use bfd_section_name.
9791 * dwarf2/frame.c (decode_frame_entry): Likewise.
9792 * exec.c (exec_set_section_address): Likewise.
9793 * solib-aix.c (solib_aix_bfd_open): Likewise.
9794 * stap-probe.c (get_stap_base_address): Likewise.
9795 * symfile.c (reread_symbols): Likewise.
9796
563c591b
TT
97972020-05-19 Tom Tromey <tromey@adacore.com>
9798
9799 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
9800
f408d82c
SM
98012020-05-19 Simon Marchi <simon.marchi@efficios.com>
9802
9803 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
9804
98c59b52
PA
98052020-05-19 Pedro Alves <palves@redhat.com>
9806
9807 * NEWS (set exec-file-mismatch): Adjust entry.
9808 * exec.c: Include "build-id.h".
9809 (validate_exec_file): Try to match build IDs instead of filenames.
9810 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
9811 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
9812 and pass down 'warn_if_slow'.
9813 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
9814 gdb_bfd_open_closure to pass it down.
9815 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
9816
4111f652
PA
98172020-05-19 Pedro Alves <palves@redhat.com>
9818
9819 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
9820 * target.c (target_fileio_open_1): Rename to target_fileio_open
9821 and make extern. Use bool.
9822 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
9823 (target_fileio_read_alloc_1): Adjust.
9824 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
9825 (target_fileio_open_warn_if_slow): Delete declaration.
9826
ad80db5b
PA
98272020-05-19 Pedro Alves <palves@redhat.com>
9828
9829 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
9830 Adjust all callers.
9831
1d6ce4d3
YS
98322020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
9833
9834 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
9835 whether disp is negative.
9836
9005fbbb
SM
98372020-05-19 Simon Marchi <simon.marchi@efficios.com>
9838
9839 * symfile.h (struct symfile_segment_data)
9840 <~symfile_segment_data>: Remove.
9841 <segment_info>: Change to std::vector.
9842 * symfile.c (default_symfile_segments): Update.
9843 * elfread.c (elf_symfile_segments): Update.
9844
68b888ff
SM
98452020-05-19 Simon Marchi <simon.marchi@efficios.com>
9846
9847 * symfile.h (struct symfile_segment_data) <struct segment>: New.
9848 <segments>: New.
9849 <segment_bases, segment_sizes>: Remove.
9850 * symfile.c (default_symfile_segments): Update.
9851 * elfread.c (elf_symfile_segments): Update.
9852 * remote.c (remote_target::get_offsets): Update.
9853 * solib-target.c (solib_target_relocate_section_addresses):
9854 Update.
9855
62982abd
SM
98562020-05-19 Simon Marchi <simon.marchi@efficios.com>
9857
9858 * symfile.h (struct symfile_segment_data): Initialize fields.
9859 <~symfile_segment_data>: Add.
9860 (symfile_segment_data_up): New.
9861 (struct sym_fns) <sym_segments>: Return a
9862 symfile_segment_data_up.
9863 (default_symfile_segments): Return a symfile_segment_data_up.
9864 (free_symfile_segment_data): Remove.
9865 (get_symfile_segment_data): Return a symfile_segment_data_up.
9866 * symfile.c (default_symfile_segments): Likewise.
9867 (get_symfile_segment_data): Likewise.
9868 (free_symfile_segment_data): Remove.
9869 (symfile_find_segment_sections): Update.
9870 * elfread.c (elf_symfile_segments): Return a
9871 symfile_segment_data_up.
9872 * remote.c (remote_target::get_offsets): Update.
9873 * solib-target.c (solib_target_relocate_section_addresses):
9874 Update.
9875 * symfile-debug.c (debug_sym_segments): Return a
9876 symfile_segment_data_up.
9877
7f204339
RO
98782020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9879
e52a0f1b
RO
9880 PR build/25981
9881 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
9882 Hardcode register numbers.
9883
7f204339
RO
9884 PR build/25981
9885 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
9886 procfs_find_LDT_entry): Remove.
9887 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
9888 procfs_find_LDT_entry): Remove.
9889 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
9890 Remove.
9891
7f32a4d5
PA
98922020-05-17 Pedro Alves <palves@redhat.com>
9893 Andrew Burgess <andrew.burgess@embecosm.com>
9894 Keno Fischer <keno@juliacomputing.com>
9895
9896 PR gdb/25741
9897 * breakpoint.c (build_target_condition_list): Update comments.
9898 (build_target_command_list): Update comments and skip matching
9899 locations.
9900 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
9901 a separate function. Simplify "set breakpoint auto-hw off"
9902 handling.
9903 (insert_breakpoints): Update comment.
9904 (tracepoint_locations_match): New parameter. For breakpoints,
9905 compare location types too, if the caller wants to.
9906 (handle_automatic_hardware_breakpoints): New functions.
9907 (bp_location_is_less_than): Also sort by location type and
9908 hardware breakpoint length.
9909 (update_global_location_list): Handle "set breakpoint auto-hw on"
9910 here.
9911 (update_breakpoint_locations): Ask breakpoint_locations_match to
9912 ignore location types.
9913
7d93a1e0
SM
99142020-05-16 Simon Marchi <simon.marchi@efficios.com>
9915
9916 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
9917 type::name instead.
9918
d0e39ea2
SM
99192020-05-16 Simon Marchi <simon.marchi@efficios.com>
9920
9921 * gdbtypes.h (struct type) <name, set_name>: New methods.
9922 (TYPE_CODE): Use type::name. Change all call sites used to set
9923 the name to use type::set_name instead.
9924
2dab0c7b
TT
99252020-05-16 Tom Tromey <tom@tromey.com>
9926
9927 * top.c (quit_force): Update.
9928 * infrun.c (handle_no_resumed): Update.
9929 * top.h (all_uis): New function.
9930 (ALL_UIS): Remove.
9931
59f7bd8d
SM
99322020-05-16 Simon Marchi <simon.marchi@efficios.com>
9933
9934 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
9935
9bf058f0
PA
99362020-05-16 Pedro Alves <palves@redhat.com>
9937
9938 * ia64-linux-nat.c
9939 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
9940 Declare method.
9941 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
9942
8f86ae1a
SM
99432020-05-15 Simon Marchi <simon.marchi@efficios.com>
9944
9945 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
9946 (sparc64_adi_info): Likewise.
9947
d6bc0792
TT
99482020-05-15 Tom Tromey <tom@tromey.com>
9949
9950 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
9951 block_objfile.
9952 (lookup_objfile_from_block): Remove.
9953 (lookup_symbol_in_block, lookup_symbol_in_static_block)
9954 (lookup_global_symbol): Use block_objfile.
9955 * symtab.h (lookup_objfile_from_block): Don't declare.
9956 * printcmd.c (clear_dangling_display_expressions): Use
9957 block_objfile.
9958 * parse.c (operator_check_standard): Use block_objfile.
9959
8c14c3a3
TT
99602020-05-15 Tom Tromey <tom@tromey.com>
9961
9962 * language.c (language_alloc_type_symbol): Set
9963 SYMBOL_SECTION.
9964 * symtab.c (initialize_objfile_symbol): Remove.
9965 (allocate_symbol): Remove.
9966 (allocate_template_symbol): Remove.
9967 * dwarf2/read.c (fixup_go_packaging): Use "new".
9968 (new_symbol): Use "new".
9969 (read_variable): Don't call initialize_objfile_symbol. Use
9970 "new".
9971 (read_func_scope): Use "new".
9972 * xcoffread.c (process_xcoff_symbol): Don't call
9973 initialize_objfile_symbol.
9974 (SYMBOL_DUP): Remove.
9975 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
9976 "new".
9977 * symtab.h (allocate_symbol, initialize_objfile_symbol)
9978 (allocate_template_symbol): Don't declare.
9979 (struct symbol): Add copy constructor. Change defaults.
9980 * jit.c (finalize_symtab): Use "new".
9981 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
9982 Use "new".
9983 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9984 (common_block_end): Use "new".
9985 * mdebugread.c (parse_symbol): Use "new".
9986 (new_symbol): Likewise.
9987
5b4a1a8d
PW
99882020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9989
9990 * NEWS: Mention changes to help and apropos.
9991
57b4f16e
PW
99922020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9993
9994 * command.h (enum command_class): Improve comments, document
9995 that class_alias is for user-defined aliases, give the class
9996 name for each class, remove unused class_xdb.
9997 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
9998 * breakpoint.c (_initialize_breakpoint): Replace class_alias
9999 by a precise class.
10000 * infcmd.c (_initialize_infcmd): Likewise.
10001 * reverse.c (_initialize_reverse): Likewise.
10002 * stack.c (_initialize_stack): Likewise.
10003 * symfile.c (_initialize_symfile): Likewise.
10004 * tracepoint.c (_initialize_tracepoint): Likewise.
10005
7c05caf7
PW
100062020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10007
10008 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
10009 when their aliased command is traversed.
10010 (help_cmd): Add fput_command_names_styled call to
10011 output command name and aliases when command has an alias.
10012
3b3aaacb
PW
100132020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10014
10015 * cli/cli-decode.h (help_cmd_list): Remove declaration.
10016 * cli/cli-decode.c (help_cmd_list): Declare as static,
10017 remove prefix argument, use bool for recurse arg, rework to show the aliases of
10018 a command together with the command.
10019 (fput_command_name_styled, fput_command_names_styled): New functions.
10020 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
10021 fput_command_name_styled.
10022 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
10023 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
10024
7aa1b46f
PW
100252020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10026
10027 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
10028 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
10029 * command.h (cmd_show_list): Likewise.
10030 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
10031 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
10032
89bcba74
PW
100332020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10034
10035 * unittests/command-def-selftests.c (traverse_command_structure):
10036 Verify all commands of a list have the same prefix command and
10037 that only the top cmdlist commands have a null prefix.
10038
3f4d92eb
PW
100392020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10040
10041 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
10042 as prefix, not one of its aliases.
10043 (set_cmd_prefix): Remove.
10044 (do_add_cmd): Centralize the setting of the prefix of a command, when
10045 command is defined after its full chain of prefix commands.
10046 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
10047 (add_setshow_cmd_full): Likewise.
10048 (update_prefix_field_of_prefixed_commands): New function.
10049 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
10050 update_prefix_field_of_prefixed_commands.
10051 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
10052 addresses of remote_set_cmdlist and remote_show_cmdlist given
10053 as argument, not the address of an argument.
10054 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
10055 * gdb/remote.c (_initialize_remote): Likewise.
10056
0605465f
PW
100572020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10058
10059 * cli/cli-cmds.c (alias_command): Check for an existing alias
10060 using lookup_cmd_composition, as valid_command_p is too strict
10061 and forbids aliases that are the prefix of an existing alias
10062 or command.
10063 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
10064 command is properly recognised as a valid command.
10065
58e6ac70
PW
100662020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10067
10068 * unittests/help-doc-selftests.c: Rename to
10069 unittests/command-def-selftests.c
10070 * unittests/command-def-selftests.c (help_doc_tests): Update some
10071 comments.
10072 (command_structure_tests, traverse_command_structure): New namespace
10073 and function.
10074 (command_structure_invariants_tests): New function.
10075 (_initialize_command_def_selftests) Renamed from
10076 _initialize_help_doc_selftests, register command_structure_invariants
10077 selftest.
10078
a7b9ceb8
PW
100792020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10080
10081 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
10082 an alias of 'show'.
10083
b2188a06
JB
100842020-05-15 Joel Brobecker <brobecker@adacore.com>
10085
10086 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
10087 ada_is_fixed_point_type. Update all callers.
10088 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
10089 all callers.
10090 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
10091 Update all callers.
10092 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
10093 print_fixed_point_type. Update all callers.
10094 * ada-valprint.c (ada_value_print_num): Replace call to
10095 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
10096
a51951c2
KB
100972020-05-14 Kevin Buettner <kevinb@redhat.com>
10098
10099 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
10100 processors.
10101 (cpu_supports_bts): Add CV_AMD case.
10102
29d6859f
LM
101032020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
10104 Simon Marchi <simon.marchi@efficios.com>
10105
10106 * infrun.c (stop_all_threads): Collect multiple wait events at
10107 each pass.
10108
78134374
SM
101092020-05-14 Simon Marchi <simon.marchi@efficios.com>
10110
10111 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
10112 type::code instead.
10113
67607e24
SM
101142020-05-14 Simon Marchi <simon.marchi@efficios.com>
10115
10116 * gdbtypes.h (struct type) <code, set_code>: New methods.
10117 (TYPE_CODE): Use type::code. Change all call sites used to set
10118 the code to use type::set_code instead.
10119
a05575d3
TBA
101202020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10121 Tom de Vries <tdevries@suse.de>
10122 Pedro Alves <palves@redhat.com>
10123
10124 PR threads/25478
10125 * infrun.c (stop_all_threads): Do NOT ignore
10126 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
10127 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
10128 received.
10129 (handle_no_resumed): Remove code handling a live inferior with no
10130 threads.
10131 * remote.c (has_single_non_exited_thread): New.
10132 (remote_target::update_thread_list): Do not delete a thread if is
10133 the last thread of the process.
10134 * thread.c (thread_select): Call delete_exited_threads instead of
10135 prune_threads.
10136
6ad82919
TBA
101372020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10138
10139 * infrun.c (stop_all_threads): Enable/disable thread events of all
10140 targets. Move a debug message denoting the end of the function
10141 into the SCOPED_EXIT block.
10142
d890404b
TBA
101432020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10144
10145 * process-stratum-target.h: Include <set>.
10146 (all_non_exited_process_targets, switch_to_target_no_thread): New
10147 function declarations.
10148 * process-stratum-target.c (all_non_exited_process_targets)
10149 (switch_to_target_no_thread): New function implementations.
10150
293b3ebc
TBA
101512020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10152
10153 * infrun.c (handle_inferior_event): Extract out a piece of code
10154 into...
10155 (mark_non_executing_threads): ...this new function.
10156
7ca9b62a
TBA
101572020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10158
10159 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
10160 use.
10161
fc75c28b
TBA
101622020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10163
10164 * regcache.c (regcache_read_pc_protected): New function
10165 implementation that returns 0 if the PC cannot read via
10166 'regcache_read_pc'.
10167 * infrun.c (proceed): Call 'regcache_read_pc_protected'
10168 instead of 'regcache_read_pc'.
10169 (keep_going_pass_signal): Ditto.
10170
a89febbd
TT
101712020-05-13 Tom Tromey <tromey@adacore.com>
10172
10173 * ada-lang.c (align_value): Remove.
10174 (ada_template_to_fixed_record_type_1): Use align_up.
10175
f7e23710
TBA
101762020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10177
10178 * async-event.c: Update the copyright year.
10179 * async-event.h: Update the copyright year.
10180
02ff80c2
SM
101812020-05-12 Simon Marchi <simon.marchi@efficios.com>
10182
10183 * objfiles.h (is_addr_in_objfile,
10184 shared_objfile_contains_address_p): Return bool.
10185 * objfile.c (is_addr_in_objfile,
10186 shared_objfile_contains_address_p): Return bool.
10187
4fd6c7e8
TT
101882020-05-11 Tom Tromey <tromey@adacore.com>
10189
10190 * cli/cli-cmds.c (info_command): Restore.
10191 (_initialize_cli_cmds): Use add_prefix_command for "info".
10192 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
10193
5eb68a39
TT
101942020-05-11 Tom Tromey <tromey@adacore.com>
10195
10196 * ada-lang.c (ada_value_primitive_field): Now public.
10197 * ada-lang.h (ada_value_primitive_field): Declare.
10198 * ada-valprint.c (print_field_values): Use
10199 ada_value_primitive_field for wrapper fields.
10200
7666722f
TV
102012020-05-11 Tom de Vries <tdevries@suse.de>
10202
10203 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
10204 MODULE_DOMAIN.
10205
3ee6bb11
TV
102062020-05-11 Tom de Vries <tdevries@suse.de>
10207
10208 PR symtab/25941
10209 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
10210 with length 0, if not gdb-produced.
10211 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
10212
43434996
TV
102132020-05-09 Tom de Vries <tdevries@suse.de>
10214
10215 PR gdb/25955
10216 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
10217 calculation.
10218
2f78cffc
TT
102192020-05-09 Tom Tromey <tom@tromey.com>
10220
10221 * top.c (server_command): Now bool.
10222 * top.h (server_command): Now bool.
10223
4f7bc5ed
TT
102242020-05-08 Tom Tromey <tromey@adacore.com>
10225
10226 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
10227 already being processed.
10228
8be4b118
TT
102292020-05-08 Tom Tromey <tom@tromey.com>
10230
10231 * printcmd.c (struct display) <next>: Remove.
10232 <display>: New constructor.
10233 <exp_string>: Now a std::string.
10234 <enabled_p>: Now a bool.
10235 (display_number): Move definition earlier.
10236 (displays): Rename from display_chain. Now a std::vector.
10237 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
10238 (display_command): Update.
10239 (do_one_display, disable_display)
10240 (enable_disable_display_command, do_enable_disable_display):
10241 Update.
10242 (free_display): Remove.
10243 (clear_displays): Rewrite.
10244 (delete_display): Update.
10245 (map_display_numbers): Use function_view. Remove "data"
10246 parameter. Update.
10247 (do_delete_display): Remove.
10248 (undisplay_command): Update.
10249 (do_one_display, do_displays, disable_display)
10250 (info_display_command): Update.
10251 (do_enable_disable_display): Remove.
10252 (enable_disable_display_command)
10253 (clear_dangling_display_expressions): Update.
10254
94c93c35
TT
102552020-05-08 Tom Tromey <tom@tromey.com>
10256
10257 * symtab.c (set_symbol_cache_size)
10258 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
10259 (maintenance_print_symbol_cache_statistics): Update.
10260 * symmisc.c (print_symbol_bcache_statistics)
10261 (print_objfile_statistics, maintenance_print_objfiles)
10262 (maintenance_info_symtabs, maintenance_check_symtabs)
10263 (maintenance_expand_symtabs, maintenance_info_line_tables):
10264 Update.
10265 * symfile-debug.c (set_debug_symfile): Update.
10266 * source.c (forget_cached_source_info): Update.
10267 * python/python.c (gdbpy_progspaces): Update.
10268 * psymtab.c (maintenance_info_psymtabs): Update.
10269 * probe.c (parse_probes): Update.
10270 * linespec.c (iterate_over_all_matching_symtabs)
10271 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
10272 * guile/scm-progspace.c (gdbscm_progspaces): Update.
10273 * exec.c (exec_target::close): Update.
10274 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
10275 * breakpoint.c (print_one_breakpoint_location)
10276 (create_longjmp_master_breakpoint)
10277 (create_std_terminate_master_breakpoint): Update.
10278 * progspace.c (program_spaces): Now a std::vector.
10279 (maybe_new_address_space): Update.
10280 (add_program_space): Remove.
10281 (program_space::program_space): Update.
10282 (remove_program_space): Update.
10283 (number_of_program_spaces): Remove.
10284 (print_program_space, update_address_spaces): Update.
10285 * progspace.h (program_spaces): Change type.
10286 (ALL_PSPACES): Remove.
10287 (number_of_program_spaces): Don't declare.
10288 (struct program_space) <next>: Remove.
10289
a1fd1ac9
TT
102902020-05-08 Tom Tromey <tom@tromey.com>
10291
10292 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
10293 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
10294 (enable_break): Update.
10295 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
10296 (frv_fdpic_find_canonical_descriptor): Update.
10297 (frv_fetch_objfile_link_map): Update.
10298 * progspace.c (program_space::free_all_objfiles): Update.
10299 (program_space::solibs): New method.
10300 * progspace.h (struct program_space) <solibs>: New method.
10301 * solist.h (master_so_list): Don't declare.
10302 (ALL_SO_LIBS): Remove.
10303 * solib.h (so_list_head): Remove.
10304 (update_solib_list): Update comment.
10305 * solib.c (master_so_list): Remove.
10306 (solib_used, update_solib_list, solib_add)
10307 (info_sharedlibrary_command, clear_solib)
10308 (reload_shared_libraries_1, remove_user_added_objfile): Update.
10309
38eae084
TT
103102020-05-08 Tom Tromey <tom@tromey.com>
10311
10312 * extension.c (extension_languages): Now a std::array.
10313 (ALL_EXTENSION_LANGUAGES): Remove.
10314 (get_ext_lang_defn, get_ext_lang_of_file)
10315 (eval_ext_lang_from_control_command): Update.
10316 (finish_ext_lang_initialization)
10317 (auto_load_ext_lang_scripts_for_objfile)
10318 (ext_lang_type_printers::ext_lang_type_printers)
10319 (apply_ext_lang_type_printers)
10320 (ext_lang_type_printers::~ext_lang_type_printers)
10321 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
10322 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
10323 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
10324 (get_matching_xmethod_workers, ext_lang_colorize)
10325 (ext_lang_before_prompt): Update.
10326 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
10327
596dc4ad
TT
103282020-05-08 Tom Tromey <tom@tromey.com>
10329
10330 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
10331 overload.
10332 <swap_string, m_string>: Remove.
10333 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
10334 Update.
10335 * stabsread.c (define_symbol, read_type): Update.
10336 * linespec.c (find_linespec_symbols): Update.
10337 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
10338 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
10339 * dbxread.c (read_dbx_symtab): Update.
10340 * cp-support.h (cp_canonicalize_string_full)
10341 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
10342 Return unique_xmalloc_ptr.
10343 * cp-support.c (inspect_type): Update.
10344 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
10345 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
10346 Likewise.
10347 * c-typeprint.c (print_name_maybe_canonical): Update.
10348 * break-catch-throw.c (check_status_exception_catchpoint):
10349 Update.
10350
bf4cb9be
TV
103512020-05-08 Tom de Vries <tdevries@suse.de>
10352
10353 * infrun.c (follow_fork): Copy current_line and current_symtab to
10354 child thread.
10355
a1b68f28
SM
103562020-05-07 Simon Marchi <simon.marchi@efficios.com>
10357
10358 * async-event.c (struct async_signal_handler, struct
10359 async_event_handler): Reformat, remove typedef.
10360
98d48915
SM
103612020-05-07 Simon Marchi <simon.marchi@efficios.com>
10362
10363 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
10364 access thistype->main_type->dyn_prop_list directly.
10365
7aa91313
SM
103662020-05-07 Simon Marchi <simon.marchi@efficios.com>
10367
10368 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
10369 (remove_dyn_prop): Remove. Update all users to use
10370 type::remove_dyn_prop.
10371 * gdbtypes.c (remove_dyn_prop): Rename to...
10372 (type::remove_dyn_prop): ... this.
10373
5c54719c
SM
103742020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
10375
10376 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
10377 (add_dyn_prop): Remove. Update all users to use
10378 type::add_dyn_prop.
10379 * gdbtypes.c (add_dyn_prop): Rename to...
10380 (type::add_dyn_prop): ... this.
10381
24e99c6c
SM
103822020-05-07 Simon Marchi <simon.marchi@efficios.com>
10383
10384 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
10385 (get_dyn_prop): Remove. Update all users to use
10386 type::dyn_prop.
10387 * gdbtypes.c (get_dyn_prop): Rename to...
10388 (type::dyn_prop): ... this.
10389
0d4bf016
SM
103902020-05-06 Simon Marchi <simon.marchi@efficios.com>
10391
10392 * gdbtypes.h (struct main_type) <flag_static>: Remove.
10393
ac4a4f1c
SM
103942020-05-06 Simon Marchi <simon.marchi@efficios.com>
10395
10396 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
10397 instruction, skip it if it's there.
10398
a3bbacc1
SM
103992020-05-05 Simon Marchi <simon.marchi@efficios.com>
10400
10401 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
10402
c3236f84
SM
104032020-05-04 Simon Marchi <simon.marchi@efficios.com>
10404
10405 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
10406 * gdbtypes.c (recursive_dump_type): Remove use of
10407 TYPE_INCOMPLETE.
10408
3b6acaee
TT
104092020-05-03 Tom Tromey <tom@tromey.com>
10410
10411 * breakpoint.c (catch_command, tcatch_command): Remove.
10412 (_initialize_breakpoint): Use add_basic_prefix_cmd,
10413 add_show_prefix_cmd.
10414 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
10415 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
10416 Remove.
10417 (add_internal_problem_command): Use add_basic_prefix_cmd,
10418 add_show_prefix_cmd.
10419 * mips-tdep.c (set_mipsfpu_command): Remove.
10420 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
10421 * dwarf2/index-cache.c (set_index_cache_command): Remove.
10422 (_initialize_index_cache): Use add_basic_prefix_cmd.
10423 * memattr.c (dummy_cmd): Remove.
10424 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
10425 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
10426 (_initialize_tui_win): Use add_basic_prefix_cmd,
10427 add_show_prefix_cmd.
10428 * cli/cli-logging.c (set_logging_command): Remove.
10429 (_initialize_cli_logging): Use add_basic_prefix_cmd,
10430 add_show_prefix_cmd.
10431 (show_logging_command): Remove.
10432 * target.c (target_command): Remove.
10433 (add_target): Use add_basic_prefix_cmd.
10434
a51119cd
HD
104352020-05-02 Hannes Domani <ssbssa@yahoo.de>
10436
10437 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
10438
652fc23a 104392020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 10440
652fc23a
PW
10441 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
10442 info_command.
10443
117539e6
KR
104442020-04-30 Kamil Rytarowski <n54@gmx.com>
10445
10446 * nbsd-nat.c (nbsd_enable_proc_events)
10447 (nbsd_nat_target::post_startup_inferior): Add.
10448 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
10449 (nbsd_nat_target::update_thread_list): Rewrite.
10450 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
10451 "PTRACE_LWP_CREATE".
10452 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
10453
102e38eb 104542020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 10455
102e38eb
PW
10456 * stack.c (_initialize_stack): Remove duplicated creation
10457 of "frame" command and "f" alias.
10458
ee9d1e5f
HD
104592020-04-30 Hannes Domani <ssbssa@yahoo.de>
10460
10461 PR gdb/18706
10462 * gdbtypes.c (check_typedef): Calculate size of array of
10463 stubbed type.
10464
627c7fb8
HD
104652020-04-30 Hannes Domani <ssbssa@yahoo.de>
10466
10467 PR gdb/15559
10468 * i386-tdep.c (i386_push_dummy_call): Call
10469 i386_thiscall_push_dummy_call.
10470 (i386_thiscall_push_dummy_call): New function.
10471 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
10472 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
10473 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
10474
ffc2844e
SM
104752020-04-29 Simon Marchi <simon.marchi@efficios.com>
10476
10477 * gdbarch.sh (do_read): Add shellcheck disable directive for
10478 warning SC2162.
10479
1207375d
SM
104802020-04-29 Simon Marchi <simon.marchi@efficios.com>
10481
10482 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
10483 "referenced but not assigned" warning.
10484
9fdb2916
SM
104852020-04-29 Simon Marchi <simon.marchi@efficios.com>
10486
10487 * gdbarch.sh: Remove code that sets fallbackdefault.
10488
759cea5e
SM
104892020-04-29 Simon Marchi <simon.marchi@efficios.com>
10490
10491 * gdbarch.sh: Use shell operators && and || instead of
10492 -a and -o.
10493
cb02ab24
SM
104942020-04-29 Simon Marchi <simon.marchi@efficios.com>
10495
10496 * gdbarch.sh: Use $(...) instead of `...`.
10497
a6fc5ffc
SM
104982020-04-29 Simon Marchi <simon.marchi@efficios.com>
10499
10500 * gdbarch.sh: Use double quotes around variables.
10501
8d113d13
SM
105022020-04-29 Simon Marchi <simon.marchi@efficios.com>
10503
10504 * gdbarch.sh: Use %s with printf, instead of variables in the
10505 format string.
10506
ed6acedd
TT
105072020-04-29 Tom Tromey <tromey@adacore.com>
10508
10509 PR ada/25875:
10510 * dwarf2/read.c (update_enumeration_type_from_children): Compute
10511 type fields here.
10512 (read_enumeration_type): Call
10513 update_enumeration_type_from_children later. Update comments.
10514 (process_enumeration_scope): Don't create type fields.
10515
b68b1b58
KR
105162020-04-29 Kamil Rytarowski <n54@gmx.com>
10517
10518 * nbsd-tdep.c: Include "xml-syscall.h".
10519 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
10520
f94b2e03
KR
105212020-04-29 Kamil Rytarowski <n54@gmx.com>
10522
10523 * nbsd-nat.c: Include "sys/wait.h".
10524 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
10525 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
10526 (nbsd_nat_target::remove_exec_catchpoint)
10527 (nbsd_nat_target::set_syscall_catchpoint): Add.
10528 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
10529 (nbsd_nat_target::insert_exec_catchpoint)
10530 (nbsd_nat_target::remove_exec_catchpoint)
10531 (nbsd_nat_target::set_syscall_catchpoint): Add.
10532 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
10533 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
10534 `nbsd_get_syscall_number'.
10535
fc49bc72
TT
105362020-04-29 Tom Tromey <tom@tromey.com>
10537
10538 * stack.c (print_block_frame_labels): Remove.
10539
d642b692
HD
105402020-04-29 Hannes Domani <ssbssa@yahoo.de>
10541
10542 PR gdb/17320
10543 * ada-valprint.c (val_print_packed_array_elements): Move array
10544 end bracket to new line.
10545 (ada_val_print_string): Remove extra spaces before first array
10546 element.
10547 * c-valprint.c (c_value_print_array): Likewise.
10548 * m2-valprint.c (m2_print_array_contents): Likewise.
10549 (m2_value_print_inner): Likewise.
10550 * p-valprint.c (pascal_value_print_inner): Likewise.
10551 * valprint.c (generic_val_print_array): Likewise.
10552 (value_print_array_elements): Move first array element and array
10553 end bracket to new line.
10554
ea90f227
TV
105552020-04-29 Tom de Vries <tdevries@suse.de>
10556
10557 PR symtab/25889
10558 * linespec.c (find_method): Fix ix calculation.
10559
4498ef4f
KR
105602020-04-28 Kamil Rytarowski <n54@gmx.com>
10561
10562 * syscalls/update-netbsd.sh: New file.
10563 * syscalls/netbsd.xml: Regenerate.
10564 * data-directory/Makefile.in: Register `netbsd.xml' in
10565 `SYSCALLS_FILES'.
10566
a55e30b5
SM
105672020-04-28 Simon Marchi <simon.marchi@efficios.com>
10568
10569 * syscalls/update-freebsd.sh: Add double quotes.
10570
2b2fbab8
TT
105712020-04-28 Tom Tromey <tom@tromey.com>
10572
10573 * NEWS: Update.
10574 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
10575 (cmdpy_init): Allow class_tui.
10576
a65189c9
TV
105772020-04-28 Mark Williams <mark@myosotissp.com>
10578
10579 PR gdb/24480
10580 * dwarf2read.c: Add missing assingments to list_in_scope when
10581 start_symtab was already called.
10582
1b95cdb7
SM
105832020-04-28 Simon Marchi <simon.marchi@efficios.com>
10584
10585 PR gdb/25881
10586 * dwarf2/read.c (offset_map_type): Use
10587 gdb:hash_enum<sect_offset> as hash function.
10588
15cd93d0
TV
105892020-04-28 Tom de Vries <tdevries@suse.de>
10590
10591 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
10592 with DW_AT_signature.
10593
1eb39914
SM
105942020-04-27 Simon Marchi <simon.marchi@efficios.com>
10595
10596 * configure.ac: Remove check for fs_base/gs_base in
10597 user_regs_struct.
10598 * configure: Re-generate.
10599 * config.in: Re-generate.
10600 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
10601 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
10602 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
10603
991a3e2e
LM
106042020-04-27 Luis Machado <luis.machado@linaro.org>
10605
10606 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
10607 problematic inline frame unwinding situation.
10608 * frame.c (frame_id_computed_p): New function.
10609 * frame.h (frame_id_computed_p): New prototype.
10610
361ba0e8
TT
106112020-04-26 Tom Tromey <tom@tromey.com>
10612
10613 * command.h (enum command_class) <class_pseudo>: Remove.
10614
bc3609fd
PW
106152020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10616
10617 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
10618 and whitespace.
10619
b9771db7
KR
106202020-04-25 Kamil Rytarowski <n54@gmx.com>
10621
ec16513e
SM
10622 * inf-ptrace.c (inf_ptrace_target::wait): Remove
10623 `PT_GET_PROCESS_STATE' block.
b9771db7 10624
7151c1af
TT
106252020-04-24 Tom Tromey <tom@tromey.com>
10626
10627 * symtab.h (symbol_get_demangled_name): Don't declare.
10628 * symtab.c (symbol_get_demangled_name): Remove.
10629 (general_symbol_info::natural_name)
10630 (general_symbol_info::demangled_name): Update.
10631
906bb4c5
TT
106322020-04-24 Tom Tromey <tom@tromey.com>
10633
10634 PR rust/25025:
10635 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
10636
bcfe6157
TT
106372020-04-24 Tom Tromey <tom@tromey.com>
10638
10639 PR symtab/12707:
10640 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
10641 exists.
10642 (new_symbol): Likewise.
10643 * compile/compile-object-load.c (get_out_value_type): Use
10644 symbol_matches_search_name.
10645
f049a313
TT
106462020-04-24 Tom Tromey <tom@tromey.com>
10647
10648 * dwarf2/read.c (add_partial_symbol): Do not call
10649 compute_and_set_names.
10650
76e288d1
TT
106512020-04-24 Tom Tromey <tom@tromey.com>
10652
10653 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
10654 overload.
10655
2467f4f6
TT
106562020-04-24 Tom Tromey <tom@tromey.com>
10657
10658 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
10659 (add_psymbol_to_list): New overload. Make old overload call new
10660 one.
10661 * psympriv.h (add_psymbol_to_list): New overload.
10662
e61108c9
TT
106632020-04-24 Tom Tromey <tom@tromey.com>
10664
10665 * dwarf2/read.c (partial_die_info::read) <case
10666 DW_AT_linkage_name>: Use value_as_string.
10667 (dwarf2_string_attr): Use value_as_string.
10668 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
10669 method.
10670 * dwarf2/attribute.c (attribute::value_as_string): New method.
10671
8c87a452
TT
106722020-04-24 Tom Tromey <tom@tromey.com>
10673
10674 * symtab.c (general_symbol_info::natural_name)
10675 (general_symbol_info::demangled_name): Check for language_rust.
10676
787de330
TT
106772020-04-24 Tom Tromey <tom@tromey.com>
10678
10679 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
10680 (dwarf2_physname): ... from here.
10681 (partial_die_info::read): Add Rust "{" hack.
10682
ff985671
TT
106832020-04-24 Tom Tromey <tom@tromey.com>
10684
10685 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
10686 method.
10687 (symbol_set_demangled_name): Don't declare.
10688 * symtab.c (general_symbol_info::set_demangled_name): Rename from
10689 symbol_set_demangled_name.
10690 (general_symbol_info::set_language)
10691 (general_symbol_info::compute_and_set_names): Update.
10692 * minsyms.c (minimal_symbol_reader::install): Update.
10693 * dwarf2/read.c (new_symbol): Update.
10694
1acda803
TT
106952020-04-24 Tom Tromey <tromey@adacore.com>
10696
10697 PR python/23662:
10698 * python/py-type.c (convert_field): Handle
10699 FIELD_LOC_KIND_DWARF_BLOCK.
10700 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
10701 (typy_get_dynamic): Nw function.
10702 (type_object_getset): Add "dynamic".
10703 * NEWS: Add entry.
10704
d656f129
TT
107052020-04-24 Tom Tromey <tromey@adacore.com>
10706
10707 * ada-typeprint.c (print_choices, print_variant_part)
10708 (print_record_field_types_dynamic): New functions.
10709 (print_record_field_types): Use print_record_field_types_dynamic.
10710
7d79de9a
TT
107112020-04-24 Tom Tromey <tromey@adacore.com>
10712
10713 * dwarf2/read.c (handle_data_member_location): New overload.
10714 (dwarf2_add_field): Use it.
10715 (decode_locdesc): Add "computed" parameter. Update comment.
10716 * gdbtypes.c (is_dynamic_type_internal): Also look for
10717 FIELD_LOC_KIND_DWARF_BLOCK.
10718 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
10719 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
10720 virtual base classes.
10721 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
10722 FIELD_LOC_KIND_DWARF_BLOCK.
10723
f8e89861
TT
107242020-04-24 Tom Tromey <tromey@adacore.com>
10725
10726 * dwarf2/read.c (read_structure_type): Handle dynamic length.
10727 * gdbtypes.c (is_dynamic_type_internal): Check
10728 TYPE_HAS_DYNAMIC_LENGTH.
10729 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
10730 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
10731 New macros.
10732 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
10733 constant.
10734
9c6a1327
TT
107352020-04-24 Tom Tromey <tromey@adacore.com>
10736
10737 * dwarf2/read.c (struct variant_field): Rewrite.
10738 (struct variant_part_builder): New.
10739 (struct nextfield): Remove "variant" field. Add "offset".
10740 (struct field_info): Add "current_variant_part" and
10741 "variant_parts".
10742 (alloc_discriminant_info): Remove.
10743 (alloc_rust_variant): New function.
10744 (quirk_rust_enum): Update.
10745 (dwarf2_add_field): Set "offset" member. Don't handle
10746 DW_TAG_variant_part.
10747 (offset_map_type): New typedef.
10748 (convert_variant_range, create_one_variant)
10749 (create_one_variant_part, create_variant_parts)
10750 (add_variant_property): New functions.
10751 (dwarf2_attach_fields_to_type): Call add_variant_property.
10752 (read_structure_type): Don't handle DW_TAG_variant_part.
10753 (handle_variant_part, handle_variant): New functions.
10754 (handle_struct_member_die): Use them.
10755 (process_structure_scope): Don't handle variant parts.
10756 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
10757 (struct discriminant_info): Remove.
10758 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
10759 (struct main_type) <flag_discriminated_union>: Remove.
10760 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
10761 (rust_enum_variant): Return int. Remove "contents". Rewrite.
10762 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
10763 Update.
10764 * valops.c (value_union_variant): Remove.
10765 * value.h (value_union_variant): Don't declare.
10766
b249d2c2
TT
107672020-04-24 Tom Tromey <tromey@adacore.com>
10768
10769 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
10770 (ada_value_primitive_packed_val): Update.
10771 * ada-valprint.c (ada_value_print_1): Update.
10772 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
10773 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
10774 just an address. Use evaluate_for_locexpr_baton.
10775 (dwarf2_evaluate_property): Update.
10776 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
10777 array_view.
10778 * findvar.c (default_read_var_value): Update.
10779 * gdbtypes.c (compute_variant_fields_inner)
10780 (resolve_dynamic_type_internal): Update.
10781 (resolve_dynamic_type): Change type of valaddr parameter.
10782 * gdbtypes.h (resolve_dynamic_type): Update.
10783 * valarith.c (value_subscripted_rvalue): Update.
10784 * value.c (value_from_contents_and_address): Update.
10785
61122aa9
TT
107862020-04-24 Tom Tromey <tromey@adacore.com>
10787
10788 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
10789 "push_initial_value" parameter.
10790 (dwarf2_evaluate_property): Likewise.
10791 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
10792
ef83a141
TT
107932020-04-24 Tom Tromey <tromey@adacore.com>
10794
10795 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
10796 (variant::matches, compute_variant_fields_recurse)
10797 (compute_variant_fields_inner, compute_variant_fields): New
10798 functions.
10799 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
10800 Use resolved_type after type is made.
10801 (operator==): Add new cases.
10802 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
10803 (struct discriminant_range, struct variant, struct variant_part):
10804 New.
10805 (union dynamic_prop_data) <variant_parts, original_type>: New
10806 members.
10807 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
10808 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
10809 constants.
10810 * value.c (unpack_bits_as_long): Now public.
10811 * value.h (unpack_bits_as_long): Declare.
10812
675127ec
TT
108132020-04-24 Tom Tromey <tromey@adacore.com>
10814
10815 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
10816 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
10817
9852ceef
HD
108182020-04-24 Hannes Domani <ssbssa@yahoo.de>
10819
10820 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
10821
7632c6ce
KR
108222020-04-24 Kamil Rytarowski <n54@gmx.com>
10823
10824 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
10825 (remove_fork_catchpoint, post_startup_inferior)
10826 (post_attach): Move...
10827 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
10828 (remove_fork_catchpoint, post_startup_inferior)
10829 (post_attach): ...here.
10830 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
10831 (remove_fork_catchpoint, post_startup_inferior)
10832 (post_attach): Move...
10833 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
10834 (remove_fork_catchpoint, post_startup_inferior)
10835 (post_attach): ...here.
10836
7be2bb4f
TT
108372020-04-24 Tom Tromey <tromey@adacore.com>
10838
10839 * nat/windows-nat.h (struct windows_thread_info)
10840 <pc_adjusted>: New member.
10841 * windows-nat.c (windows_fetch_one_register): Check
10842 pc_adjusted.
10843 (windows_nat_target::get_windows_debug_event)
10844 (windows_nat_target::wait): Set pc_adjusted.
10845
f80cb3b4
TV
108462020-04-24 Tom de Vries <tdevries@suse.de>
10847
10848 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
10849 Run gdb-add-index inside temp dir.
10850
29514b87
TT
108512020-04-23 Tom Tromey <tromey@adacore.com>
10852
10853 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
10854 in loop.
10855
5939967b
LM
108562020-04-23 Luis Machado <luis.machado@linaro.org>
10857
10858 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10859 get_frame_register instead of gdbarch_unwind_pc.
10860
70bc38f5
TV
108612020-04-23 Tom de Vries <tdevries@suse.de>
10862
10863 * symtab.c (lookup_global_symbol): Prefer def over decl.
10864
de82891c
TV
108652020-04-23 Tom de Vries <tdevries@suse.de>
10866
10867 PR symtab/25807
10868 * block.c (best_symbol, better_symbol): Promote to external.
10869 * block.h (best_symbol, better_symbol): Declare.
10870 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
10871 decl.
10872
ecc6c606
TT
108732020-04-23 Tom Tromey <tromey@adacore.com>
10874
10875 PR ada/25837:
10876 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
10877 "const char *", not a "const std::string &".
10878 <name_and_matcher::operator==>: Update.
10879 * unittests/lookup_name_info-selftests.c: Change type of
10880 "result".
10881
740480b8
TT
108822020-04-23 Tom Tromey <tom@tromey.com>
10883
10884 * inferior.h (iterate_over_inferiors): Don't declare.
10885 * inferior.c (iterate_over_inferiors): Remove.
10886 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
10887 Remove.
10888 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
10889 use iterate_over_inferiors.
10890 (darwin_resume_inferior_it)
10891 (struct resume_inferior_threads_param)
10892 (darwin_resume_inferior_threads_it): Remove.
10893 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
10894
ae3ab1f0
TV
108952020-04-23 Tom de Vries <tdevries@suse.de>
10896
10897 * blockframe.c (find_pc_partial_function): Use
10898 find_pc_sect_compunit_symtab rather than
10899 objfile->sf->qf->find_pc_sect_compunit_symtab.
10900
317d2668
TV
109012020-04-22 Tom de Vries <tdevries@suse.de>
10902
10903 PR symtab/25764
10904 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
10905 in psymtabs.
10906
eea9e357
TV
109072020-04-22 Tom de Vries <tdevries@suse.de>
10908
10909 PR symtab/25801
10910 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
10911 symtabs.
10912
3d5afab3
TV
109132020-04-22 Tom de Vries <tdevries@suse.de>
10914
10915 PR symtab/25700
10916 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
10917 CU if already created.
10918
d43b7a2d
TBA
109192020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10920
10921 * infrun.c (displaced_step_fixup): Switch to the event_thread
10922 before calling displaced_step_restore, not after.
10923
d89edf9b
MM
109242020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10925
10926 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
10927 its inferior is not recorded by us.
10928 (record_btrace_target_open): Replace call to
10929 all_non_exited_threads () with call to current_inferior
10930 ()->non_exited_threads ().
10931 (record_btrace_target::stop_recording): Likewise.
10932 (record_btrace_target::close): Likewise.
10933 (record_btrace_target::wait): Likewise.
10934 (record_btrace_target::record_stop_replaying): Likewise.
10935
5897fd49
MM
109362020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10937
10938 * btrace.c (btrace_enable): Throw an error on double enables and
10939 when enabling recording fails.
10940 (btrace_disable): Throw an error if the thread is not recorded.
10941
1a476b6d
MM
109422020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10943
10944 * record-btrace.c (record_btrace_target::fetch_registers): Forward
10945 request if we do not have a thread_info.
10946
4778a5f8
TV
109472020-04-21 Tom de Vries <tdevries@suse.de>
10948
10949 PR gdb/25471
10950 * thread.c
10951 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
10952 exception in get_frame_id.
10953
0fa7617d
TT
109542020-04-20 Tom Tromey <tromey@adacore.com>
10955
10956 * python/python.c (struct gdbpy_event): Mark move constructor as
10957 noexcept.
10958 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
10959 constructor as noexcept.
10960 * completer.h (struct completion_result): Mark move constructor as
10961 noexcept.
10962 * completer.c (completion_result::completion_result): Use
10963 initialization style. Don't call reset_match_list.
10964
ad23bda0
MS
109652020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
10966
10967 * MAINTAINERS (Write After Approval): Add myself.
10968
45e1f031
TT
109692020-04-18 Tom Tromey <tom@tromey.com>
10970
10971 * windows-tdep.c (init_w32_command_list)
10972 (w32_prefix_command_valid): Restore.
10973 (_initialize_windows_tdep): Call init_w32_command_list.
10974
08feed99
TT
109752020-04-18 Tom Tromey <tom@tromey.com>
10976
10977 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
10978 * value.c (value_fn_field): Update.
10979 * valops.c (find_function_in_inferior)
10980 (value_allocate_space_in_inferior): Update.
10981 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10982 Update.
10983 * tui/tui-source.c (tui_source_window::set_contents): Update.
10984 * symtab.c (lookup_global_or_static_symbol)
10985 (find_function_start_sal_1, skip_prologue_sal)
10986 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
10987 * symmisc.c (dump_msymbols, dump_symtab_1)
10988 (maintenance_print_one_line_table): Update.
10989 * symfile.c (init_entry_point_info, section_is_mapped)
10990 (list_overlays_command, simple_read_overlay_table)
10991 (simple_overlay_update_1): Update.
10992 * stap-probe.c (handle_stap_probe): Update.
10993 * stabsread.c (dbx_init_float_type, define_symbol)
10994 (read_one_struct_field, read_enum_type, read_range_type): Update.
10995 * source.c (info_line_command): Update.
10996 * python/python.c (gdbpy_source_objfile_script)
10997 (gdbpy_execute_objfile_script): Update.
10998 * python/py-type.c (save_objfile_types): Update.
10999 * python/py-objfile.c (py_free_objfile): Update.
11000 * python/py-inferior.c (python_new_objfile): Update.
11001 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
11002 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
11003 (maintenance_check_psymtabs): Update.
11004 * printcmd.c (info_address_command): Update.
11005 * objfiles.h (struct objfile) <arch>: New method, from
11006 get_objfile_arch.
11007 (get_objfile_arch): Don't declare.
11008 * objfiles.c (get_objfile_arch): Remove.
11009 (filter_overlapping_sections): Update.
11010 * minsyms.c (msymbol_is_function): Update.
11011 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
11012 (output_nondebug_symbol): Update.
11013 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
11014 (mdebug_expand_psymtab): Update.
11015 * machoread.c (macho_add_oso_symfile): Update.
11016 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
11017 Update.
11018 * linux-fork.c (checkpoint_command): Update.
11019 * linespec.c (convert_linespec_to_sals): Update.
11020 * jit.c (finalize_symtab): Update.
11021 * infrun.c (insert_exception_resume_from_probe): Update.
11022 * ia64-tdep.c (ia64_find_unwind_table): Update.
11023 * hppa-tdep.c (internalize_unwinds): Update.
11024 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
11025 Update.
11026 * gcore.c (call_target_sbrk): Update.
11027 * elfread.c (record_minimal_symbol, elf_symtab_read)
11028 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
11029 (elf_gnu_ifunc_resolve_by_got): Update.
11030 * dwarf2/read.c (create_addrmap_from_index)
11031 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11032 (read_debug_names_from_section)
11033 (process_psymtab_comp_unit_reader, add_partial_symbol)
11034 (add_partial_subprogram, process_full_comp_unit)
11035 (read_file_scope, read_func_scope, read_lexical_block_scope)
11036 (read_call_site_scope, dwarf2_ranges_read)
11037 (dwarf2_record_block_ranges, dwarf2_add_field)
11038 (mark_common_block_symbol_computed, read_tag_pointer_type)
11039 (read_tag_string_type, dwarf2_init_float_type)
11040 (dwarf2_init_complex_target_type, read_base_type)
11041 (partial_die_info::read, partial_die_info::read)
11042 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
11043 (dwarf2_fetch_die_loc_sect_off): Update.
11044 * dwarf2/loc.c (dwarf2_find_location_expression)
11045 (class dwarf_evaluate_loc_desc, rw_pieced_value)
11046 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
11047 (dwarf2_loc_desc_get_symbol_read_needs)
11048 (locexpr_describe_location_piece, locexpr_describe_location_1)
11049 (loclist_describe_location): Update.
11050 * dwarf2/index-write.c (write_debug_names): Update.
11051 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
11052 * dtrace-probe.c (dtrace_process_dof): Update.
11053 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
11054 (process_one_symbol): Update.
11055 * ctfread.c (ctf_init_float_type, read_base_type): Update.
11056 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
11057 (coff_read_enum_type): Update.
11058 * cli/cli-cmds.c (edit_command, list_command): Update.
11059 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
11060 * breakpoint.c (create_overlay_event_breakpoint)
11061 (create_longjmp_master_breakpoint)
11062 (create_std_terminate_master_breakpoint)
11063 (create_exception_master_breakpoint, get_sal_arch): Update.
11064 * block.c (block_gdbarch): Update.
11065 * annotate.c (annotate_source_line): Update.
11066
0743fc83
TT
110672020-04-17 Tom Tromey <tromey@adacore.com>
11068
11069 * auto-load.c (show_auto_load_cmd): Remove.
11070 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
11071 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
11072 (maintenance_print_arc_command): Remove.
11073 * tui/tui-win.c (tui_command): Remove.
11074 (tui_get_cmd_list): Use add_basic_prefix_cmd.
11075 * tui/tui-layout.c (tui_layout_command): Remove.
11076 (_initialize_tui_layout): Use add_basic_prefix_cmd.
11077 * python/python.c (user_set_python, user_show_python): Remove.
11078 (_initialize_python): Use add_basic_prefix_cmd,
11079 add_show_prefix_cmd.
11080 * guile/guile.c (set_guile_command, show_guile_command): Remove.
11081 (install_gdb_commands): Use add_basic_prefix_cmd,
11082 add_show_prefix_cmd.
11083 (info_guile_command): Remove.
11084 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
11085 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
11086 add_show_prefix_cmd.
11087 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
11088 Remove do_set and do_show parameters.
11089 * cli/cli-style.c (set_style, show_style): Remove.
11090 (_initialize_cli_style): Use add_basic_prefix_cmd,
11091 add_show_prefix_cmd.
11092 (cli_style_option::add_setshow_commands): Remove do_set and
11093 do_show parameters.
11094 (cli_style_option::add_setshow_commands): Use
11095 add_basic_prefix_cmd, add_show_prefix_cmd.
11096 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
11097 (set_style_name): Remove.
11098 * cli/cli-dump.c (dump_command, append_command): Remove.
11099 (srec_dump_command, ihex_dump_command, verilog_dump_command)
11100 (tekhex_dump_command, binary_dump_command)
11101 (binary_append_command): Remove.
11102 (_initialize_cli_dump): Use add_basic_prefix_cmd.
11103 * windows-tdep.c (w32_prefix_command_valid): Remove global.
11104 (init_w32_command_list): Remove; move into ...
11105 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
11106 * valprint.c (set_print, show_print, set_print_raw)
11107 (show_print_raw): Remove.
11108 (_initialize_valprint): Use add_basic_prefix_cmd,
11109 add_show_prefix_cmd.
11110 * typeprint.c (set_print_type, show_print_type): Remove.
11111 (_initialize_typeprint): Use add_basic_prefix_cmd,
11112 add_show_prefix_cmd.
11113 * record.c (set_record_command, show_record_command): Remove.
11114 (_initialize_record): Use add_basic_prefix_cmd,
11115 add_show_prefix_cmd.
11116 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
11117 add_show_prefix_cmd.
11118 (info_command, show_command, set_debug, show_debug): Remove.
11119 * top.h (set_history, show_history): Don't declare.
11120 * top.c (set_history, show_history): Remove.
11121 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
11122 (unset_tdesc_cmd): Remove.
11123 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
11124 add_show_prefix_cmd.
11125 * symtab.c (info_module_command): Remove.
11126 (_initialize_symtab): Use add_basic_prefix_cmd.
11127 * symfile.c (overlay_command): Remove.
11128 (_initialize_symfile): Use add_basic_prefix_cmd.
11129 * sparc64-tdep.c (info_adi_command): Remove.
11130 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
11131 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
11132 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
11133 add_show_prefix_cmd.
11134 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
11135 (_initialize_serial): Use add_basic_prefix_cmd,
11136 add_show_prefix_cmd.
11137 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
11138 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
11139 add_show_prefix_cmd.
11140 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
11141 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
11142 add_show_prefix_cmd.
11143 * riscv-tdep.c (show_riscv_command, set_riscv_command)
11144 (show_debug_riscv_command, set_debug_riscv_command): Remove.
11145 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
11146 add_show_prefix_cmd.
11147 * remote.c (remote_command, set_remote_cmd): Remove.
11148 (_initialize_remote): Use add_basic_prefix_cmd.
11149 * record-full.c (set_record_full_command)
11150 (show_record_full_command): Remove.
11151 (_initialize_record_full): Use add_basic_prefix_cmd,
11152 add_show_prefix_cmd.
11153 * record-btrace.c (cmd_set_record_btrace)
11154 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
11155 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
11156 (cmd_show_record_btrace_pt): Remove.
11157 (_initialize_record_btrace): Use add_basic_prefix_cmd,
11158 add_show_prefix_cmd.
11159 * ravenscar-thread.c (set_ravenscar_command)
11160 (show_ravenscar_command): Remove.
11161 (_initialize_ravenscar): Use add_basic_prefix_cmd,
11162 add_show_prefix_cmd.
11163 * mips-tdep.c (show_mips_command, set_mips_command)
11164 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
11165 add_show_prefix_cmd.
11166 * maint.c (maintenance_command, maintenance_info_command)
11167 (maintenance_check_command, maintenance_print_command)
11168 (maintenance_set_cmd, maintenance_show_cmd): Remove.
11169 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
11170 add_show_prefix_cmd.
11171 (show_per_command_cmd): Remove.
11172 * maint-test-settings.c (maintenance_set_test_settings_cmd):
11173 Remove.
11174 (maintenance_show_test_settings_cmd): Remove.
11175 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
11176 add_show_prefix_cmd.
11177 * maint-test-options.c (maintenance_test_options_command):
11178 Remove.
11179 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
11180 * macrocmd.c (macro_command): Remove
11181 (_initialize_macrocmd): Use add_basic_prefix_cmd.
11182 * language.c (set_check, show_check): Remove.
11183 (_initialize_language): Use add_basic_prefix_cmd,
11184 add_show_prefix_cmd.
11185 * infcmd.c (unset_command): Remove.
11186 (_initialize_infcmd): Use add_basic_prefix_cmd.
11187 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
11188 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
11189 add_show_prefix_cmd.
11190 * go32-nat.c (go32_info_dos_command): Remove.
11191 (_initialize_go32_nat): Use add_basic_prefix_cmd.
11192 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
11193 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
11194 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
11195 (_initialize_frame): Use add_basic_prefix_cmd,
11196 add_show_prefix_cmd.
11197 * dcache.c (set_dcache_command, show_dcache_command): Remove.
11198 (_initialize_dcache): Use add_basic_prefix_cmd,
11199 add_show_prefix_cmd.
11200 * cp-support.c (maint_cplus_command): Remove.
11201 (_initialize_cp_support): Use add_basic_prefix_cmd.
11202 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
11203 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
11204 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
11205 add_basic_prefix_cmd, add_show_prefix_cmd.
11206 * breakpoint.c (save_command): Remove.
11207 (_initialize_breakpoint): Use add_basic_prefix_cmd.
11208 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
11209 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
11210 add_show_prefix_cmd.
11211 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
11212 (set_ada_command, show_ada_command): Remove.
11213 (_initialize_ada_language): Use add_basic_prefix_cmd,
11214 add_show_prefix_cmd.
11215 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
11216
3557f442
KR
112172020-04-16 Kamil Rytarowski <n54@gmx.com>
11218
11219 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
11220 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
11221
16197208
SM
112222020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11223
11224 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
11225 warning messages.
11226
00ac85d3
SM
112272020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11228
11229 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
11230 import table is not at beginning of .idata section.
11231
381ce63f
PA
112322020-04-16 Pedro Alves <palves@redhat.com>
11233
11234 * inferior.c (delete_inferior): Use delete operator directly
11235 instead of delete_program_space.
11236 * progspace.c (add_program_space): New, factored out from
11237 program_space::program_space.
11238 (remove_program_space): New, factored out from
11239 delete_program_space.
11240 (program_space::program_space): Remove intro comment. Rewrite.
11241 (program_space::~program_space): Remove intro comment. Call
11242 remove_program_space.
11243 (delete_program_space): Delete.
11244 * progspace.h (program_space::program_space): Make explicit. Move
11245 intro comment here, adjusted.
11246 (program_space::~program_space): Move intro comment here,
11247 adjusted.
11248 (delete_program_space): Remove.
11249
a010605f
TT
112502020-04-16 Tom Tromey <tromey@adacore.com>
11251
11252 * windows-nat.c (windows_nat::handle_access_violation): New
11253 function.
11254 * nat/windows-nat.h (handle_access_violation): Declare.
11255 * nat/windows-nat.c (handle_exception): Move Cygwin code to
11256 windows-nat.c. Call handle_access_violation.
11257
efba5c23
TV
112582020-04-16 Tom de Vries <tdevries@suse.de>
11259
11260 PR symtab/25791
11261 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
11262 CUs without psymtab.
11263
97ed802d
KB
112642020-04-16 Kevin Buettner <kevinb@redhat.com>
11265
11266 * python/python.c (do_start_initialization): Don't call
11267 PyEval_InitThreads for Python 3.9 and beyond.
11268
c7d64809
KR
112692020-04-15 Kamil Rytarowski <n54@gmx.com>
11270
11271 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
11272 thread functions.
11273 (obsd_nat_target::wait): Likewise.
11274
ce127a96
TT
112752020-04-15 Tom Tromey <tromey@adacore.com>
11276
11277 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
11278 (DEBUG_EXCEPT): Use debug_printf.
11279
99f1bc6a
AB
112802020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
11281
11282 * completer.c (class completion_tracker::completion_hash_entry)
11283 <hash_name>: New member function.
11284 (completion_tracker::discard_completions): New callback to hash a
11285 completion_hash_entry, pass this to htab_create_alloc.
11286
a0e9b532
JT
112872016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
11288
11289 * windows-nat.c (windows_make_so): Warn rather than stopping with
11290 an error if realpath() fails.
11291
06ca5dd4
KR
112922020-04-14 Kamil Rytarowski <n54@gmx.com>
11293
11294 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
11295 (nbsd_nat_target::info_proc): Add do_status.
11296
194d088f
TV
112972020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
11298 Tom de Vries <tdevries@suse.de>
11299
11300 PR symtab/25718
11301 * psympriv.h (struct partial_symtab::read_symtab)
11302 (struct partial_symtab::expand_psymtab)
11303 (struct partial_symtab::read_dependencies): Update comments.
11304 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
11305 read_symtab for includer.
11306 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
11307 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
11308 (struct dwarf2_include_psymtab::m_readin): Remove.
11309 (struct dwarf2_include_psymtab::includer): New member function.
11310 (dwarf2_psymtab::expand_psymtab): Assert !readin.
11311
c1a66c06
TV
113122020-04-14 Tom de Vries <tdevries@suse.de>
11313
11314 PR symtab/25720
11315 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
11316 with NULL symbol_matcher and lookup_name.
11317 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
11318 and lookup_name.
11319 * dwarf2/read.c (dw2_expand_symtabs_matching)
11320 (dw2_debug_names_expand_symtabs_matching): Same.
11321 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
11322 Make lookup_name a pointer. Update comment.
11323 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
11324 lookup_name being a pointer.
11325 * symfile.c (expand_symtabs_matching): Same.
11326 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
11327 * linespec.c (iterate_over_all_matching_symtabs): Same.
11328
400b5eca
TT
113292020-04-13 Tom Tromey <tom@tromey.com>
11330
11331 * run-on-main-thread.c: Update include.
11332 * unittests/main-thread-selftests.c: Update include.
11333 * tui/tui-win.c: Update include.
11334 * tui/tui-io.c: Update include.
11335 * tui/tui-interp.c: Update include.
11336 * tui/tui-hooks.c: Update include.
11337 * top.h: Update include.
11338 * top.c: Update include.
11339 * ser-base.c: Update include.
11340 * remote.c: Update include.
11341 * remote-notif.c: Update include.
11342 * remote-fileio.c: Update include.
11343 * record-full.c: Update include.
11344 * record-btrace.c: Update include.
11345 * python/python.c: Update include.
11346 * posix-hdep.c: Update include.
11347 * mingw-hdep.c: Update include.
11348 * mi/mi-main.c: Update include.
11349 * mi/mi-interp.c: Update include.
11350 * main.c: Update include.
11351 * linux-nat.c: Update include.
11352 * interps.c: Update include.
11353 * infrun.c: Update include.
11354 * inf-loop.c: Update include.
11355 * event-top.c: Update include.
11356 * event-loop.c: Move to ../gdbsupport/.
11357 * event-loop.h: Move to ../gdbsupport/.
11358 * async-event.h: Update include.
11359 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
11360
93b54c8e
TT
113612020-04-13 Tom Tromey <tom@tromey.com>
11362
11363 * tui/tui-win.c: Include async-event.h.
11364 * remote.c: Include async-event.h.
11365 * remote-notif.c: Include async-event.h.
11366 * record-full.c: Include async-event.h.
11367 * record-btrace.c: Include async-event.h.
11368 * infrun.c: Include async-event.h.
11369 * event-top.c: Include async-event.h.
11370 * event-loop.h: Move some declarations to async-event.h.
11371 * event-loop.c: Don't include ser-event.h or top.h. Move some
11372 code to async-event.c.
11373 * async-event.h: New file.
11374 * async-event.c: New file.
11375 * Makefile.in (COMMON_SFILES): Add async-event.c.
11376 (HFILES_NO_SRCDIR): Add async-event.h.
11377
c1cd3163
TT
113782020-04-13 Tom Tromey <tom@tromey.com>
11379
11380 * utils.c (flush_streams): New function.
11381 * event-loop.c (gdb_wait_for_event): Call flush_streams.
11382
29f2bf4f
TT
113832020-04-13 Tom Tromey <tom@tromey.com>
11384
11385 * event-loop.c (handle_file_event): Use warning, not
11386 printf_unfiltered.
11387
98029d02
TT
113882020-04-13 Tom Tromey <tom@tromey.com>
11389
11390 * event-loop.c: Include <chrono>.
11391
06cc9596
TT
113922020-04-13 Tom Tromey <tom@tromey.com>
11393
11394 * gdb_select.h: Move to ../gdbsupport/.
11395 * event-loop.c: Update include path.
11396 * top.c: Update include path.
11397 * ser-base.c: Update include path.
11398 * ui-file.c: Update include path.
11399 * ser-tcp.c: Update include path.
11400 * guile/scm-ports.c: Update include path.
11401 * posix-hdep.c: Update include path.
11402 * ser-unix.c: Update include path.
11403 * gdb_usleep.c: Update include path.
11404 * mingw-hdep.c: Update include path.
11405 * inflow.c: Update include path.
11406 * infrun.c: Update include path.
11407 * event-top.c: Update include path.
11408
8ae8e197
TT
114092020-04-13 Tom Tromey <tom@tromey.com>
11410
11411 * configure: Rebuild.
11412 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
11413
58cf28e8
TT
114142020-04-13 Tom Tromey <tom@tromey.com>
11415
11416 * event-loop.h (start_event_loop): Don't declare.
11417 * event-loop.c (start_event_loop): Move...
11418 * main.c (start_event_loop): ...here. Now static.
11419
b7f999ae
SDJ
114202020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
11421
11422 * MAINTAINERS: Update my email address.
11423
1085dfd4
KR
114242020-04-12 Kamil Rytarowski <n54@gmx.com>
11425
11426 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
11427 IP_ALL.
11428
49d1d1f5
KR
114292020-04-12 Kamil Rytarowski <n54@gmx.com>
11430
11431 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 11432 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 11433
b4848d2a
KR
114342020-04-12 Kamil Rytarowski <n54@gmx.com>
11435
11436 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 11437 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 11438
51c133d5
KR
114392020-04-12 Kamil Rytarowski <n54@gmx.com>
11440
11441 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
11442
54b8cbd0
KR
114432020-04-11 Kamil Rytarowski <n54@gmx.com>
11444
11445 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
11446 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
11447 (nbsd_nat_target::info_proc): New functions.
11448 * nbsd-nat.c (kinfo_get_vmmap): New function.
11449 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
11450 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
11451 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
11452 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
11453 functions.
11454 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
11455 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
11456 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
11457 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
11458 (KINFO_VME_FLAG_GROWS_DOWN): New.
11459
cf83625d
AS
114602020-04-10 Artur Shepilko <nomadbyte@gmail.com>
11461
11462 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
11463 bit shift.
11464
0c4311ab
TT
114652020-04-10 Tom Tromey <tromey@adacore.com>
11466
11467 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
11468
3e65b3e9
TT
114692020-04-10 Tom Tromey <tromey@adacore.com>
11470
11471 * symtab.c (get_symbol_address, get_msymbol_address): Skip
11472 separate debug files.
11473
13302e95
HD
114742020-04-10 Hannes Domani <ssbssa@yahoo.de>
11475
11476 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11477 Move to...
11478 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11479 ... here.
11480 * windows-nat.c (windows_nat_target::get_windows_debug_event):
11481 Check for STATUS_WX86_BREAKPOINT.
11482 (windows_nat_target::wait): Same.
11483
bdfc1e8a
TV
114842020-04-10 Tom de Vries <tdevries@suse.de>
11485
11486 PR cli/25808
11487 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
11488
f4460aec
SM
114892020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11490
11491 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
11492 (Write After Approval): Remove Tom de Vries.
11493
a25198bb
BE
114942020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
11495
11496 revert partially:
11497 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11498
aac66a4c
SM
11499 * buildsym.c (record_line): Fix undefined behavior and preserve
11500 lines at eof.
a25198bb 11501
206c98a6
KR
115022020-04-09 Kamil Rytarowski <n54@gmx.com>
11503
11504 * auxv.h (svr4_auxv_parse): New.
11505 * auxv.c (default_auxv_parse): Split into default_auxv_parse
11506 and generic_auxv_parse.
11507 (svr4_auxv_parse): Add.
11508 * obsd-tdep.c: Include "auxv.h".
11509 (obsd_auxv_parse): Remove.
11510 (obsd_init_abi): Remove comment.
11511 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
11512 from `obsd_auxv_parse' to `svr4_auxv_parse'.
11513 * nbsd-tdep.c: Include "auxv.h".
11514 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
11515
71fbdbaf
TT
115162020-04-08 Tom Tromey <tromey@adacore.com>
11517
11518 * nat/windows-nat.h (last_wait_event): Don't declare.
11519 (wait_for_debug_event): Update comment.
11520 * nat/windows-nat.c (last_wait_event): Now static.
11521
2c1d95e8
TT
115222020-04-08 Tom Tromey <tromey@adacore.com>
11523
11524 * windows-nat.c (wait_for_debug_event): Move to
11525 nat/windows-nat.c.
11526 * nat/windows-nat.h (wait_for_debug_event): Declare.
11527 * nat/windows-nat.c (wait_for_debug_event): Move from
11528 windows-nat.c. No longer static.
11529
d2977bc4
TT
115302020-04-08 Tom Tromey <tromey@adacore.com>
11531
11532 * windows-nat.c (get_windows_debug_event): Use
11533 fetch_pending_stop.
11534 * nat/windows-nat.h (fetch_pending_stop): Declare.
11535 * nat/windows-nat.c (fetch_pending_stop): New function.
11536
e758e19c
TT
115372020-04-08 Tom Tromey <tromey@adacore.com>
11538
11539 * windows-nat.c (windows_continue): Use matching_pending_stop and
11540 continue_last_debug_event.
11541 * nat/windows-nat.h (matching_pending_stop)
11542 (continue_last_debug_event): Declare.
11543 * nat/windows-nat.c (DEBUG_EVENTS): New define.
11544 (matching_pending_stop, continue_last_debug_event): New
11545 functions.
11546
8d30e395
TT
115472020-04-08 Tom Tromey <tromey@adacore.com>
11548
11549 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
11550 (handle_exception_result): Move to nat/windows-nat.h.
11551 (DEBUG_EXCEPTION_SIMPLE): Remove.
11552 (windows_nat::handle_ms_vc_exception): New function.
11553 (handle_exception): Move to nat/windows-nat.c.
11554 (get_windows_debug_event): Update.
11555 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
11556 nat/windows-nat.c.
11557 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
11558 (handle_exception_result): Move from windows-nat.c.
11559 (handle_exception): Declare.
11560 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
11561 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
11562 windows-nat.c.
11563
29de418d
TT
115642020-04-08 Tom Tromey <tromey@adacore.com>
11565
11566 * windows-nat.c (exception_count, event_count): Remove.
11567 (handle_exception, get_windows_debug_event)
11568 (do_initial_windows_stuff): Update.
11569
a816ba18
TT
115702020-04-08 Tom Tromey <tromey@adacore.com>
11571
11572 * windows-nat.c (windows_nat::handle_load_dll)
11573 (windows_nat::handle_unload_dll): Rename. No longer static.
11574 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
11575 Declare.
11576
a00caa12
TT
115772020-04-08 Tom Tromey <tromey@adacore.com>
11578
11579 * complaints.h (stop_whining): Declare at top-level.
11580 (complaint): Don't declare stop_whining.
11581
d41b524f
TT
115822020-04-08 Tom Tromey <tromey@adacore.com>
11583
11584 * windows-nat.c (windows_nat::handle_output_debug_string):
11585 Rename. No longer static.
11586 * nat/windows-nat.h (handle_output_debug_string): Declare.
11587
3c76026d
TT
115882020-04-08 Tom Tromey <tromey@adacore.com>
11589
11590 * windows-nat.c (current_process_handle, current_process_id)
11591 (main_thread_id, last_sig, current_event, last_wait_event)
11592 (current_windows_thread, desired_stop_thread_id, pending_stops)
11593 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
11594 (display_selectors, fake_create_process)
11595 (get_windows_debug_event): Update.
11596 * nat/windows-nat.h (current_process_handle, current_process_id)
11597 (main_thread_id, last_sig, current_event, last_wait_event)
11598 (current_windows_thread, desired_stop_thread_id, pending_stops)
11599 (struct pending_stop, siginfo_er): Move from windows-nat.c.
11600 * nat/windows-nat.c (current_process_handle, current_process_id)
11601 (main_thread_id, last_sig, current_event, last_wait_event)
11602 (current_windows_thread, desired_stop_thread_id, pending_stops)
11603 (siginfo_er): New globals. Move from windows-nat.c.
11604
9d8679cc
TT
116052020-04-08 Tom Tromey <tromey@adacore.com>
11606
11607 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
11608 (handle_load_dll): Update.
11609 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
11610
28688adf
TT
116112020-04-08 Tom Tromey <tromey@adacore.com>
11612
11613 * windows-nat.c (enum thread_disposition_type): Move to
11614 nat/windows-nat.h.
11615 (windows_nat::thread_rec): Rename from thread_rec. No longer
11616 static.
11617 (windows_add_thread, windows_nat_target::fetch_registers)
11618 (windows_nat_target::store_registers, handle_exception)
11619 (windows_nat_target::resume, get_windows_debug_event)
11620 (windows_nat_target::get_tib_address)
11621 (windows_nat_target::thread_name)
11622 (windows_nat_target::thread_alive): Update.
11623 * nat/windows-nat.h (enum thread_disposition_type): Move from
11624 windows-nat.c.
11625 (thread_rec): Declare.
11626
4834dad0
TT
116272020-04-08 Tom Tromey <tromey@adacore.com>
11628
11629 * windows-nat.c: Add "using namespace".
11630 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
11631 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
11632
65bafd5b
TT
116332020-04-08 Tom Tromey <tromey@adacore.com>
11634
11635 * nat/windows-nat.h (struct windows_thread_info): Declare
11636 destructor.
11637 * nat/windows-nat.c (~windows_thread_info): New.
11638
0a4afda3
TT
116392020-04-08 Tom Tromey <tromey@adacore.com>
11640
11641 PR gdb/22992
11642 * windows-nat.c (current_event): Update comment.
11643 (last_wait_event, desired_stop_thread_id): New globals.
11644 (struct pending_stop): New.
11645 (pending_stops): New global.
11646 (windows_nat_target) <stopped_by_sw_breakpoint>
11647 <supports_stopped_by_sw_breakpoint>: New methods.
11648 (windows_fetch_one_register): Add assertions. Adjust PC.
11649 (windows_continue): Handle pending stops. Suspend other threads
11650 when stepping. Use last_wait_event
11651 (wait_for_debug_event): New function.
11652 (get_windows_debug_event): Use wait_for_debug_event. Handle
11653 pending stops. Queue spurious stops.
11654 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
11655 (windows_nat_target::kill): Use wait_for_debug_event.
11656 * nat/windows-nat.h (struct windows_thread_info)
11657 <stopped_at_software_breakpoint>: New field.
11658 * nat/windows-nat.c (windows_thread_info::resume): Clear
11659 stopped_at_software_breakpoint.
11660
8e61ebec
TT
116612020-04-08 Tom Tromey <tromey@adacore.com>
11662
11663 * windows-nat.c (enum thread_disposition_type): New.
11664 (thread_rec): Replace "get_context" parameter with "disposition";
11665 change type.
11666 (windows_add_thread, windows_nat_target::fetch_registers)
11667 (windows_nat_target::store_registers, handle_exception)
11668 (windows_nat_target::resume, get_windows_debug_event)
11669 (windows_nat_target::get_tib_address)
11670 (windows_nat_target::thread_name)
11671 (windows_nat_target::thread_alive): Update.
11672
98a03287
TT
116732020-04-08 Tom Tromey <tromey@adacore.com>
11674
11675 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
11676 (windows_continue): Use windows_continue::resume.
11677 * nat/windows-nat.h (struct windows_thread_info) <suspend,
11678 resume>: Declare new methods.
11679 * nat/windows-nat.c: New file.
11680 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
11681
7c7411bc
TT
116822020-04-08 Tom Tromey <tromey@adacore.com>
11683
11684 * windows-nat.c (windows_add_thread, windows_delete_thread)
11685 (windows_nat_target::fetch_registers)
11686 (windows_nat_target::store_registers, fake_create_process)
11687 (windows_nat_target::resume, windows_nat_target::resume)
11688 (get_windows_debug_event, windows_nat_target::wait)
11689 (windows_nat_target::pid_to_str)
11690 (windows_nat_target::get_tib_address)
11691 (windows_nat_target::get_ada_task_ptid)
11692 (windows_nat_target::thread_name)
11693 (windows_nat_target::thread_alive): Use lwp, not tid.
11694
2950fdf7
TT
116952020-04-08 Tom Tromey <tromey@adacore.com>
11696
11697 * windows-nat.c (handle_exception)
11698 (windows_nat_target::thread_name): Update.
11699 * nat/windows-nat.h (windows_thread_info): Remove destructor.
11700 <name>: Now unique_xmalloc_ptr.
11701
62fe396b
TT
117022020-04-08 Tom Tromey <tromey@adacore.com>
11703
11704 * windows-nat.c (thread_rec)
11705 (windows_nat_target::fetch_registers): Update.
11706 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
11707 Update comment.
11708 <debug_registers_changed, reload_context>: Now bool.
11709
e9534bd2
TT
117102020-04-08 Tom Tromey <tromey@adacore.com>
11711
11712 * windows-nat.c (windows_add_thread): Use new.
11713 (windows_init_thread_list, windows_delete_thread): Use delete.
11714 (get_windows_debug_event): Update.
11715 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
11716 destructor, and initializers.
11717
ae1f8880
TT
117182020-04-08 Tom Tromey <tromey@adacore.com>
11719
11720 * windows-nat.c (struct windows_thread_info): Remove.
11721 * nat/windows-nat.h: New file.
11722
55a1e039
TT
117232020-04-08 Tom Tromey <tromey@adacore.com>
11724
11725 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
11726 (thread_rec, windows_add_thread, windows_delete_thread)
11727 (windows_continue): Update.
11728
93366324
TT
117292020-04-08 Tom Tromey <tromey@adacore.com>
11730
11731 * windows-nat.c (struct windows_thread_info): Remove typedef.
11732 (thread_head): Remove.
11733 (thread_list): New global.
11734 (thread_rec, windows_add_thread, windows_init_thread_list)
11735 (windows_delete_thread, windows_continue): Update.
11736
0f2265e2
SM
117372020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11738
11739 * windows-tdep.h (windows_init_abi): Add comment.
11740 (cygwin_init_abi): New declaration.
11741 * windows-tdep.c: Split signal enumeration in two, one for
11742 Windows and one for Cygwin.
11743 (windows_gdb_signal_to_target): Only deal with signal of the
11744 Windows OS ABI.
11745 (cygwin_gdb_signal_to_target): New function.
11746 (windows_init_abi): Rename to windows_init_abi_common, don't set
11747 gdb_signal_to_target gdbarch method. Add new new function with
11748 this name.
11749 (cygwin_init_abi): New function.
11750 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
11751 comment. Don't call windows_init_abi.
11752 (amd64_windows_init_abi): Add comment, call windows_init_abi.
11753 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
11754 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
11755 i386_windows_init_abi_common, don't call windows_init_abi. Add
11756 a new function of this name.
11757 (i386_cygwin_init_abi): New function.
11758 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
11759 OS ABI Cygwin.
11760
3810f182
SM
117612020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11762
11763 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
11764 parameter.c.
11765 (dwarf2_read_gdb_index): Update.
11766
063f8e80
KR
117672020-04-07 Kamil Rytarowski <n54@gmx.com>
11768
11769 * nbsd-tdep.c: Include "objfiles.h".
11770 (nbsd_skip_solib_resolver): New.
11771 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
11772
85a9510c 117732020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11774
11775 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
11776 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
11777 with DW_LLE_base_addressx are being emitted in DWARFv5.
11778 Add the newly added kind DW_LOC_OFFSET_PAIR also.
11779 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
11780 unsigned integer.
11781
9fc3eaae 117822020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11783
11784 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
11785 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
11786 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
11787 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
11788 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
11789 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
11790 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
11791
11792
41144253 117932020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11794
11795 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
11796 (read_loclist_index): New function definition.
11797 (lookup_loclist_base): New function definition.
11798 (read_loclist_header): New function definition.
11799 (dwarf2_cu): Add loclist_base and loclist_header field.
11800 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
11801 (read_full_die_1): Read the value of DW_AT_loclists_base.
11802 (read_attribute_reprocess): Handle DW_FORM_loclistx.
11803 (read_attribute_value): Handle DW_FORM_loclistx.
11804 (skip_one_die): Handle DW_FORM_loclistx.
11805 (loclist_header): New structure declaration.
11806 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
11807
9f4e76a4
SM
118082020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11809
11810 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
11811 constructor. Remove `addr` parameter from other constructor and
11812 add `per_cu` parameter.
11813 * dwarf2/read.c (create_partial_symtab): Update.
11814
25c11aca
TV
118152020-04-07 Tom de Vries <tdevries@suse.de>
11816
11817 PR symtab/25796
11818 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
11819 (partial_die_info::fixup): Inherit has_const_value.
11820
5707e24b
TV
118212020-04-07 Tom de Vries <tdevries@suse.de>
11822
11823 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
11824 symbols without address.
11825
05f00e22
KR
118262020-04-06 Kamil Rytarowski <n54@gmx.com>
11827
11828 * nbsd-nat.h (struct thread_info): Add forward declaration.
11829 (nbsd_nat_target::thread_alive): Add.
11830 (nbsd_nat_target::thread_name): Likewise.
11831 (nbsd_nat_target::update_thread_list): Likewise.
11832 (update_thread_list::post_attach): Likewise.
11833 (post_attach::pid_to_str): Likewise.
11834 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
11835 (nbsd_thread_lister): Add.
11836 (nbsd_nat_target::thread_alive): Likewise.
11837 (nbsd_nat_target::thread_name): Likewise.
11838 (nbsd_add_threads): Likewise.
11839 (update_thread_list::post_attach): Likewise.
11840 (nbsd_nat_target::update_thread_list): Likewise.
11841 (post_attach::pid_to_str): Likewise.
11842
6ee448cc
TT
118432020-04-06 Tom Tromey <tromey@adacore.com>
11844
11845 * ada-valprint.c (print_variant_part): Extract the variant field.
11846 (print_field_values): Use the field as the outer value when
11847 recursing.
11848
dea34e8c
TT
118492020-04-06 Tom Tromey <tromey@adacore.com>
11850
11851 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
11852 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
11853 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
11854 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
11855 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
11856
93689ce9
TT
118572020-04-06 Tom Tromey <tromey@adacore.com>
11858
11859 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
11860 TYPE_CODE_ERROR.
11861
79743962
KR
118622020-04-06 Kamil Rytarowski <n54@gmx.com>
11863
11864 * nbsd-tdep.c: Include "gdbarch.h".
11865 Define enum with NetBSD signal numbers.
11866 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
11867 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
11868 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
11869 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
11870 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
11871 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
11872 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
11873 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11874 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
11875 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
11876 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
11877 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
11878
9e7c9a03
HD
118792020-04-03 Hannes Domani <ssbssa@yahoo.de>
11880
11881 PR gdb/25325
11882 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
11883
d9e49b61
TT
118842020-04-03 Tom Tromey <tromey@adacore.com>
11885
11886 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
11887 Read constant block.
11888
e0fc5c3f
SM
118892020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11890
11891 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
11892 (gdb_bfd_get_full_section_contents): New declaration.
11893 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
11894 * windows-tdep.c (is_linked_with_cygwin_dll): Use
11895 gdb_bfd_get_full_section_contents.
11896
e2ff18a0
SM
118972020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11898
11899 * exec.c (build_section_table): Replace internal_error with
11900 gdb_assert.
11901 (section_table_xfer_memory_partial): Likewise.
11902 * mdebugread.c (parse_partial_symbols): Likewise.
11903 * psymtab.c (lookup_partial_symbol): Likewise.
11904 * utils.c (wrap_here): Likewise.
11905
0830d301
TT
119062020-04-02 Tom Tromey <tromey@adacore.com>
11907
11908 * f-lang.c (build_fortran_types): Use arch_type to initialize
11909 builtin_complex_s32 in the TYPE_CODE_ERROR case.
11910
e7da7f8f
TT
119112020-04-02 Tom Tromey <tromey@adacore.com>
11912
11913 * dwarf2/read.c (partial_die_info::read): Do not create a vector
11914 of attributes.
11915
c90d28ac
AB
119162020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
11917 Bernd Edlinger <bernd.edlinger@hotmail.de>
11918 Tom Tromey <tromey@adacore.com>
11919
11920 * buildsym.c (buildsym_compunit::record_line): Remove
11921 deduplication code.
11922
1aa98955
TV
119232020-04-02 Tom de Vries <tdevries@suse.de>
11924
11925 PR ada/24671
11926 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
11927
d3214198
TV
119282020-04-02 Tom de Vries <tdevries@suse.de>
11929
11930 * dwarf2/read.c (dwarf2_gdb_index_functions,
11931 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
11932 NULL.
11933 * psymtab.c (psym_lookup_global_symbol_language): New function.
11934 (psym_functions): Init psym_lookup_global_symbol_language with
11935 psym_lookup_global_symbol_language.
11936 * symfile-debug.c (debug_sym_quick_functions): Init
11937 lookup_global_symbol_language with NULL.
11938 * symfile.c (set_initial_language): Remove fixme comment.
11939 * symfile.h (struct quick_symbol_functions): Add
11940 lookup_global_symbol_language.
11941 * symtab.c (find_quick_global_symbol_language): New function.
11942 (find_main_name): Use find_quick_global_symbol_language.
11943
2836752f
SM
119442020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11945
11946 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
11947
64dc2d4b
BE
119482020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11949
11950 * buildsym.c (record_line): Fix undefined behavior and preserve
11951 lines at eof.
11952
bbe3dc41
BE
119532020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11954
11955 * buildsym.c (record_line): Fix the resizing condition.
11956
6b4a335b
TT
119572020-04-01 Tom Tromey <tom@tromey.com>
11958
11959 * value.h (value_literal_complex): Add comment.
11960 * valops.c (value_literal_complex): Refer to value.h.
11961
3638a098
TT
119622020-04-01 Tom Tromey <tom@tromey.com>
11963
11964 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
11965 (scalar_type): New rule, from typebase.
11966 (typebase): Use scalar_type. Recognize complex types.
11967 (field_name): Handle FLOAT_KEYWORD.
11968 (ident_tokens): Add _Complex and __complex__.
11969
c34e8714
TT
119702020-04-01 Tom Tromey <tom@tromey.com>
11971
11972 PR exp/25299:
11973 * valarith.c (promotion_type, complex_binop): New functions.
11974 (scalar_binop): Handle complex numbers. Use promotion_type.
11975 (value_pos, value_neg, value_complement): Handle complex numbers.
11976
fa649bb7
TT
119772020-04-01 Tom Tromey <tom@tromey.com>
11978
11979 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
11980 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
11981 (parse_number): Handle complex numbers.
11982
981c08ce
TT
119832020-04-01 Tom Tromey <tom@tromey.com>
11984
11985 * c-valprint.c (c_decorations): Change complex suffix to "i".
11986
4c99290d
TT
119872020-04-01 Tom Tromey <tom@tromey.com>
11988
11989 * valprint.c (generic_value_print_complex): Use accessors.
11990 * value.h (value_real_part, value_imaginary_part): Declare.
11991 * valops.c (value_real_part, value_imaginary_part): New
11992 functions.
11993 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
11994
5b930b45
TT
119952020-04-01 Tom Tromey <tom@tromey.com>
11996
11997 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
11998 (read_range_type): Update.
11999 * mdebugread.c (basic_type): Update.
12000 * go-lang.c (build_go_types): Use init_complex_type.
12001 * gdbtypes.h (struct main_type) <complex_type>: New member.
12002 (init_complex_type): Update.
12003 (arch_complex_type): Don't declare.
12004 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
12005 Make name if none given. Use alloc_type_copy. Look for cached
12006 complex type.
12007 (arch_complex_type): Remove.
12008 (gdbtypes_post_init): Use init_complex_type.
12009 * f-lang.c (build_fortran_types): Use init_complex_type.
12010 * dwarf2/read.c (read_base_type): Update.
12011 * d-lang.c (build_d_types): Use init_complex_type.
12012 * ctfread.c (read_base_type): Update.
12013
53cccef1
TBA
120142020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12015
12016 * infrun.c (stop_all_threads): Update assertion, plus when
12017 stopping threads, take into account that we might be trying
12018 to stop an all-stop target.
12019 (stop_waiting): Call 'stop_all_threads' if there exists a
12020 non-stop target.
12021
a0714d30
TBA
120222020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12023
12024 * target.h (exists_non_stop_target): New function declaration.
12025 * target.c (exists_non_stop_target): New function.
12026
60e22c1e
HD
120272020-04-01 Hannes Domani <ssbssa@yahoo.de>
12028
12029 PR gdb/24789
12030 * eval.c (is_integral_or_integral_reference): New function.
12031 (evaluate_subexp_standard): Allow integer references in
12032 pointer arithmetic.
12033
e139a727
TBA
120342020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12035
12036 * remote.c (remote_target::remote_parse_stop_reply): Remove the
12037 check for no ptid in the stop reply when the target is non-stop.
12038
e0802d59
TT
120392020-04-01 Tom Tromey <tromey@adacore.com>
12040
12041 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
12042 "name" parameter to rvalue reference. Initialize m_name_holder.
12043 <lookup_name_info>: New overloads.
12044 <name>: Return gdb::string_view.
12045 <c_str>: New method.
12046 <make_ignore_params>: Update.
12047 <search_name_hash>: Update.
12048 <language_lookup_name>: Return const char *.
12049 <m_name>: Change type.
12050 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
12051 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
12052 (lookup_name_info::match_any): Update.
12053 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
12054 Update.
12055 * minsyms.c (linkage_name_str): Update.
12056 * language.c (default_symbol_name_matcher): Update.
12057 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
12058 Update.
12059 * ada-lang.c (ada_fold_name): Change parameter to string_view.
12060 (ada_lookup_name_info::ada_lookup_name_info): Update.
12061 (literal_symbol_name_matcher): Update.
12062
8c072cb6
TT
120632020-04-01 Tom Tromey <tromey@adacore.com>
12064
12065 * psymtab.c (psymtab_search_name): Remove function.
12066 (psym_lookup_symbol): Create search name and lookup name here.
12067 (lookup_partial_symbol): Remove "name" parameter; add
12068 lookup_name.
12069 (psym_expand_symtabs_for_function): Update.
12070
6f29a534
TT
120712020-03-31 Joel Jones <joelkevinjones@gmail.com>
12072
12073 PR tui/25597:
12074 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
12075
af62665e
TT
120762020-03-31 Tom Tromey <tromey@adacore.com>
12077
12078 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
12079 memcpy.
12080
d1a89da5
NC
120812020-03-30 Nelson Chu <nelson.chu@sifive.com>
12082
12083 * features/riscv/32bit-csr.xml: Regenerated.
12084 * features/riscv/64bit-csr.xml: Regenerated.
12085
d8af9068
TT
120862020-03-30 Tom Tromey <tromey@adacore.com>
12087
12088 * ada-valprint.c (print_variant_part): Update.
12089 * ada-lang.h (ada_which_variant_applies): Update.
12090 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
12091 outer_valaddr parameters; replace with "outer" value parameter.
12092 (to_fixed_variant_branch_type): Update.
12093
227c0bf4
PFC
120942020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12095
12096 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
12097 <list>. Remove inclusion of observable.h.
12098 (PPC_DEBUG_CURRENT_VERSION): Move up define.
12099 (struct arch_lwp_info): New struct.
12100 (class ppc_linux_dreg_interface): New class.
12101 (struct ppc_linux_process_info): New struct.
12102 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
12103 <low_new_clone, low_forget_process, low_prepare_to_resume>
12104 <copy_thread_dreg_state, mark_thread_stale>
12105 <mark_debug_registers_changed, register_hw_breakpoint>
12106 <clear_hw_breakpoint, register_wp, clear_wp>
12107 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
12108 <num_memory_accesses, get_trigger_type>
12109 <create_watchpoint_request, hwdebug_point_cmp>
12110 <init_arch_lwp_info, get_arch_lwp_info>
12111 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
12112 methods.
12113 <struct ptid_hash>: New inner struct.
12114 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
12115 members.
12116 (saved_dabr_value, hwdebug_info, max_slots_number)
12117 (struct hw_break_tuple, struct thread_points, ppc_threads)
12118 (have_ptrace_hwdebug_interface)
12119 (hwdebug_find_thread_points_by_tid)
12120 (hwdebug_insert_point, hwdebug_remove_point): Remove.
12121 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
12122 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
12123 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
12124 use m_dreg_interface.
12125 (hwdebug_point_cmp): Change to...
12126 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
12127 reference arguments instead of pointers.
12128 (ppc_linux_nat_target::ranged_break_num_registers): Use
12129 m_dreg_interface.
12130 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
12131 m_dreg_interface. Call register_hw_breakpoint.
12132 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
12133 m_dreg_interface. Call clear_hw_breakpoint.
12134 (get_trigger_type): Change to...
12135 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
12136 comment.
12137 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
12138 use m_dreg_interface. Call register_hw_breakpoint.
12139 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
12140 use m_dreg_interface. Call clear_hw_breakpoint.
12141 (can_use_watchpoint_cond_accel): Change to...
12142 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
12143 method. Update comment, use m_dreg_interface and
12144 m_process_info.
12145 (calculate_dvc): Change to...
12146 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
12147 m_dreg_interface.
12148 (num_memory_accesses): Change to...
12149 (ppc_linux_nat_target::num_memory_accesses): ...this method.
12150 (check_condition): Change to...
12151 (ppc_linux_nat_target::check_condition): ...this method.
12152 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
12153 comment, use m_dreg_interface.
12154 (create_watchpoint_request): Change to...
12155 (ppc_linux_nat_target::create_watchpoint_request): ...this
12156 method. Use m_dreg_interface.
12157 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
12158 m_dreg_interface. Call register_hw_breakpoint or register_wp.
12159 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
12160 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
12161 (ppc_linux_nat_target::low_forget_process)
12162 (ppc_linux_nat_target::low_new_fork)
12163 (ppc_linux_nat_target::low_new_clone)
12164 (ppc_linux_nat_target::low_delete_thread)
12165 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
12166 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
12167 only call mark_thread_stale.
12168 (ppc_linux_thread_exit): Remove.
12169 (ppc_linux_nat_target::stopped_data_address): Change to...
12170 (ppc_linux_nat_target::low_stopped_data_address): This. Add
12171 comment, use m_dreg_interface and m_thread_hw_breakpoints.
12172 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
12173 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
12174 comment. Call low_stopped_data_address.
12175 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
12176 m_dreg_interface.
12177 (ppc_linux_nat_target::masked_watch_num_registers): Use
12178 m_dreg_interface.
12179 (ppc_linux_nat_target::copy_thread_dreg_state)
12180 (ppc_linux_nat_target::mark_thread_stale)
12181 (ppc_linux_nat_target::mark_debug_registers_changed)
12182 (ppc_linux_nat_target::register_hw_breakpoint)
12183 (ppc_linux_nat_target::clear_hw_breakpoint)
12184 (ppc_linux_nat_target::register_wp)
12185 (ppc_linux_nat_target::clear_wp)
12186 (ppc_linux_nat_target::init_arch_lwp_info)
12187 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
12188 (_initialize_ppc_linux_nat): Remove observer callback.
12189
4db10d8f
PFC
121902020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12191
12192 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
12193 (ppc_linux_nat_target::auxv_parse)
12194 (ppc_linux_nat_target::read_description)
12195 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
12196 Move up.
12197
1310c1b0
PFC
121982020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12199
12200 * linux-nat.h (low_new_clone): New method.
12201 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
12202
69b037c3
SM
122032020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12204
12205 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
12206 (dbx_expand_psymtab): ... this.
12207 (start_psymtab): Update.
12208 * mdebugread.c (psymtab_to_symtab_1): Rename to...
12209 (mdebug_expand_psymtab): ... this.
12210 (parse_partial_symbols): Update.
12211 (new_psymtab): Update.
12212 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
12213 (xcoff_expand_psymtab): ... this.
12214 (xcoff_start_psymtab): Update.
12215
48993951
SM
122162020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12217
12218 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
12219 <expand_dependencies>: ... this.
12220 * psymtab.c (partial_symtab::read_dependencies): Rename to...
12221 (partial_symtab::expand_dependencies): ... this.
12222 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
12223 Update.
12224 (dwarf2_psymtab::expand_psymtab): Update.
12225 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12226 * mdebugread.c (psymtab_to_symtab_1): Update.
12227 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12228
3ad83046
SM
122292020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12230
12231 * psympriv.h (discard_psymtab): Remove.
12232 * dbxread.c (dbx_end_psymtab): Update.
12233 * xcoffread.c (xcoff_end_psymtab): Update.
12234
4d1b9ab6
TT
122352020-03-28 Tom Tromey <tom@tromey.com>
12236
12237 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
12238 comment.
12239
f1749218
TT
122402020-03-28 Tom Tromey <tom@tromey.com>
12241
12242 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
12243
ebea7626
HD
122442020-03-27 Hannes Domani <ssbssa@yahoo.de>
12245
12246 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12247
a879b4d5
JB
122482020-03-26 John Baldwin <jhb@FreeBSD.org>
12249
12250 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
12251
0826b30a
TT
122522020-03-26 Tom Tromey <tom@tromey.com>
12253
12254 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
12255 (mark_common_block_symbol_computed, read_tag_string_type)
12256 (attr_to_dynamic_prop, read_subrange_type): Update.
12257 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
12258 to be methods on struct attribute.
12259 (skip_one_die, process_imported_unit_die, read_namespace_alias)
12260 (read_call_site_scope, partial_die_info::read)
12261 (partial_die_info::read, lookup_die_type, follow_die_ref):
12262 Update.
12263 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
12264 from dwarf2_get_ref_die_offset.
12265 (attribute::constant_value): New method, from
12266 dwarf2_get_attr_constant_value.
12267 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
12268 Declare method.
12269 <constant_value>: New method.
12270
2b2558bf
TT
122712020-03-26 Tom Tromey <tom@tromey.com>
12272
12273 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
12274 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
12275 (dwarf_type_encoding_name): Move to stringify.c.
12276 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
12277 * dwarf2/stringify.c: New file.
12278 * dwarf2/stringify.h: New file.
12279
eeb64781
TT
122802020-03-26 Tom Tromey <tom@tromey.com>
12281
12282 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
12283 Rewrite.
12284
a39fdb41
TT
122852020-03-26 Tom Tromey <tom@tromey.com>
12286
12287 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
12288 methods.
12289 * dwarf2/read.c (lookup_addr_base): Move to die.h.
12290 (lookup_ranges_base): Likewise.
12291 (read_cutu_die_from_dwo, read_full_die_1): Update.
12292
436c571c
TT
122932020-03-26 Tom Tromey <tom@tromey.com>
12294
12295 * dwarf2/read.c (read_import_statement, read_file_scope)
12296 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
12297 (read_lexical_block_scope, read_call_site_scope)
12298 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
12299 (handle_struct_member_die, process_structure_scope)
12300 (update_enumeration_type_from_children)
12301 (process_enumeration_scope, read_array_type, read_common_block)
12302 (read_namespace, read_module, read_subroutine_type): Update.
12303 (sibling_die): Remove.
12304
052c8bb8
TT
123052020-03-26 Tom Tromey <tom@tromey.com>
12306
12307 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
12308 (build_type_psymtabs_reader, read_structure_type)
12309 (read_enumeration_type, read_full_die_1): Update.
12310 (dwarf2_attr_no_follow): Move to die.h.
12311 * dwarf2/die.h (struct die_info) <attr>: New method.
12312
2b24b6e4
TT
123132020-03-26 Tom Tromey <tom@tromey.com>
12314
12315 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
12316 <base_address>: Now an optional.
12317 (dwarf2_find_base_address, dwarf2_rnglists_process)
12318 (dwarf2_ranges_process, fill_in_loclist_baton)
12319 (dwarf2_symbol_mark_computed): Update.
12320
c2d50fd0
TT
123212020-03-26 Tom Tromey <tom@tromey.com>
12322
12323 * dwarf2/read.c (struct die_info): Move to die.h.
12324 * dwarf2/die.h: New file.
12325
0df7ad3a
TT
123262020-03-26 Tom Tromey <tom@tromey.com>
12327
12328 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
12329 * dwarf2/read.c
12330 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12331 Move to line-header.c.
12332 (read_checked_initial_length_and_offset, read_formatted_entries):
12333 Likewise.
12334 (dwarf_decode_line_header): Split into two.
12335 * dwarf2/line-header.c
12336 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12337 Move from read.c.
12338 (read_checked_initial_length_and_offset, read_formatted_entries):
12339 Likewise.
12340 (dwarf_decode_line_header): New function, split from read.c.
12341
86c0bb4c
TT
123422020-03-26 Tom Tromey <tom@tromey.com>
12343
12344 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
12345 Declare method.
12346 * dwarf2/read.c (read_attribute_value): Update.
12347 (dwarf2_per_objfile::read_line_string): Rename from
12348 read_indirect_line_string.
12349 (read_formatted_entries): Update.
12350
2ef46c2f
TT
123512020-03-26 Tom Tromey <tom@tromey.com>
12352
12353 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
12354 variable.
12355
4f9c1eda
TT
123562020-03-26 Tom Tromey <tom@tromey.com>
12357
12358 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
12359 const.
12360 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
12361 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
12362 parameter const.
12363
5a0e026f
TT
123642020-03-26 Tom Tromey <tom@tromey.com>
12365
12366 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
12367 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
12368 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
12369 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
12370
8844c11b
TT
123712020-03-26 Tom Tromey <tom@tromey.com>
12372
12373 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
12374 file_names_size, file_full_name, file_file_name>: Use const.
12375 <file_name_at, file_names>: Add const overload.
12376 * dwarf2/line-header.c (line_header::file_file_name)
12377 (line_header::file_full_name): Update.
12378
c90ec28a
TT
123792020-03-26 Tom Tromey <tom@tromey.com>
12380
12381 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
12382 (macro_start_file, consume_improper_spaces)
12383 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
12384 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
12385 (dwarf_decode_macros): Move to macro.c.
12386 * dwarf2/macro.c: New file.
12387 * dwarf2/macro.h: New file.
12388 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
12389
4f44ae6c
TT
123902020-03-26 Tom Tromey <tom@tromey.com>
12391
12392 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
12393 method.
12394 * dwarf2/section.c: New method. From
12395 read_indirect_string_at_offset_from.
12396 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
12397 (read_indirect_string_at_offset_from): Move to section.c.
12398 (read_indirect_string_at_offset): Rewrite.
12399 (read_indirect_line_string_at_offset): Remove.
12400 (read_indirect_string, read_indirect_line_string)
12401 (dwarf_decode_macro_bytes): Update.
12402
a0194fa8
TT
124032020-03-26 Tom Tromey <tom@tromey.com>
12404
12405 * dwarf2/section.h (struct dwarf2_section_info)
12406 <overload_complaint>: Declare.
12407 (dwarf2_section_buffer_overflow_complaint): Don't declare.
12408 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
12409 Rename from dwarf2_section_buffer_overflow_complaint.
12410 * dwarf2/read.c (skip_one_die, partial_die_info::read)
12411 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
12412
3d27bbdb
TT
124132020-03-26 Tom Tromey <tom@tromey.com>
12414
12415 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
12416 Declare.
12417 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
12418 Move from read.c.
12419 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
12420 to section.c.
12421
9eac9650
TT
124222020-03-26 Tom Tromey <tom@tromey.com>
12423
12424 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
12425
bf80d710
TT
124262020-03-26 Tom Tromey <tom@tromey.com>
12427
12428 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
12429 "builder".
12430 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
12431 parameter.
12432 (dwarf_decode_macros): Update.
12433
0314b390
TT
124342020-03-26 Tom Tromey <tom@tromey.com>
12435
12436 * dwarf2/read.c (read_attribute_value): Update.
12437 (read_indirect_string_from_dwz): Move to dwz.c; change into
12438 method.
12439 (dwarf_decode_macro_bytes): Update.
12440 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
12441 * dwarf2/dwz.c: New file.
12442 * Makefile.in (COMMON_SFILES): Add dwz.c.
12443
9fda78b6
TT
124442020-03-26 Tom Tromey <tom@tromey.com>
12445
12446 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
12447 * dwarf2/read.c: Add include.
12448 * dwarf2/index-write.c: Add include.
12449 * dwarf2/index-cache.c: Add include.
12450 * dwarf2/dwz.h: New file.
12451
33aa3c10
TT
124522020-03-25 Tom Tromey <tom@tromey.com>
12453
12454 * compile/compile-object-load.c (get_out_value_type): Mention
12455 correct symbol name in error message.
12456
d503b685
HD
124572020-03-25 Hannes Domani <ssbssa@yahoo.de>
12458
12459 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12460
7b1eff95
TV
124612020-03-25 Tom de Vries <tdevries@suse.de>
12462
12463 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
12464 * symmisc.c (dump_symtab_1): Print user and includes fields.
12465 (maintenance_info_symtabs): Same.
12466
dd895392
AB
124672020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
12468
12469 PR gdb/25534
12470 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
12471 (riscv_regcache_cooked_write): New function.
12472 (riscv_push_dummy_call): Use new function.
12473 (riscv_return_value): Likewise.
12474
5ab2fbf1
SM
124752020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
12476
12477 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
12478 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
12479 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
12480 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
12481 * infrun.c (follow_fork): Likewise.
12482 (follow_fork_inferior): Likewise.
12483 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
12484 * linux-nat.h (class linux_nat_target): Likewise.
12485 * remote.c (class remote_target) <follow_fork>: Likewise.
12486 (remote_target::follow_fork): Likewise.
12487 * target-delegates.c: Re-generate.
12488 * target.c (default_follow_fork): Likewise.
12489 (target_follow_fork): Likewise.
12490 * target.h (struct target_ops) <follow_fork>: Likewise.
12491 (target_follow_fork): Likewise.
12492
a64fafb5
TV
124932020-03-24 Tom de Vries <tdevries@suse.de>
12494
12495 * psymtab.c (maintenance_info_psymtabs): Print user field.
12496
fe26d3a3
TT
124972020-03-20 Tom Tromey <tromey@adacore.com>
12498
12499 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
12500 const.
12501 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
12502 const.
12503
c884cc46
SM
125042020-03-20 Simon Marchi <simon.marchi@efficios.com>
12505
12506 * ptrace.m4: Don't check for ptrace declaration.
12507 * config.in: Re-generate.
12508 * configure: Re-generate.
12509 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
12510 not defined.
12511
1ff700c2
KR
125122020-03-20 Kamil Rytarowski <n54@gmx.com>
12513
12514 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
12515 `PTRACE_TYPE_RET'.
12516 * i386-bsd-nat.c (gdb_ptrace): Likewise.
12517 * sparc-nat.c (gdb_ptrace): Likewise.
12518 * x86-bsd-nat.c (gdb_ptrace): Likewise.
12519
f7d4f0b1
TT
125202020-03-20 Tom Tromey <tromey@adacore.com>
12521
12522 * c-exp.y (lex_one_token): Fix assert.
12523
f67210ff
TT
125242020-03-20 Tom Tromey <tromey@adacore.com>
12525
12526 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
12527 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
12528 strncpy call.
12529
1773be9e
TT
125302020-03-20 Tom Tromey <tromey@adacore.com>
12531
12532 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
12533
70304be9
TT
125342020-03-20 Tom Tromey <tromey@adacore.com>
12535
12536 * ada-valprint.c (print_variant_part): Remove parameters; switch
12537 to value-based API.
12538 (print_field_values): Likewise.
12539 (ada_val_print_struct_union): Likewise.
12540 (ada_value_print_1): Update.
12541
9faa006d
KR
125422020-03-20 Kamil Rytarowski <n54@gmx.com>
12543
12544 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
12545 nbsd_nat_target instead of inf_ptrace_target.
12546 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12547 nbsd_nat_target.
12548
4a90f062
KR
125492020-03-20 Kamil Rytarowski <n54@gmx.com>
12550
12551 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
12552 it to the ptrace call.
12553 * (store_registers): Likewise.
12554
125552020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
12556
12557 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
12558 it to the ptrace call.
12559 * (store_registers): Likewise.
12560
2d07da27
LM
125612020-03-19 Luis Machado <luis.machado@linaro.org>
12562
12563 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
12564 valid, fetch vg value from ptrace.
12565
f09db380
KR
125662020-03-19 Kamil Rytarowski <n54@gmx.com>
12567 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
12568 * inf-ptrace.c: Likewise.
12569 * (gdb_ptrace): Add.
12570 * (inf_ptrace_target::resume): Update.
12571 * (inf_ptrace_target::xfer_partial): Likewise.
12572 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
12573 * (inf_ptrace_peek_poke): Update.
12574
fcc7376e
KR
125752020-03-19 Kamil Rytarowski <n54@gmx.com>
12576
12577 * x86-bsd-nat.c (gdb_ptrace): New.
12578 * (x86bsd_dr_set): Add new argument `ptid'.
12579 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
12580 x86bsd_dr_set_addr): Update.
12581
cada5fc9
AB
125822020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12583
12584 * remote.c (remote_target::process_stop_reply): Handle events for
12585 all threads differently.
12586
19a2740f
AB
125872020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12588
12589 * completer.c (completion_tracker::remove_completion): Define new
12590 function.
12591 * completer.h (completion_tracker::remove_completion): Declare new
12592 function.
12593 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
12594 when adding a C++ function symbol.
12595
724fd9ba
AB
125962020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12597
12598 * completer.c (completion_tracker::completion_hash_entry): Define
12599 new class.
12600 (advance_to_filename_complete_word_point): Call
12601 recompute_lowest_common_denominator.
12602 (completion_tracker::completion_tracker): Call discard_completions
12603 to setup the hash table.
12604 (completion_tracker::discard_completions): Allow for being called
12605 from the constructor, pass new equal function, and element deleter
12606 when constructing the hash table. Initialise new class member
12607 variables.
12608 (completion_tracker::maybe_add_completion): Remove use of
12609 m_entries_vec, and store more information into m_entries_hash.
12610 (completion_tracker::recompute_lcd_visitor): New function, most
12611 content taken from...
12612 (completion_tracker::recompute_lowest_common_denominator):
12613 ...here, this now just visits each item in the hash calling the
12614 above visitor.
12615 (completion_tracker::build_completion_result): Remove use of
12616 m_entries_vec, call recompute_lowest_common_denominator.
12617 * completer.h (completion_tracker::have_completions): Remove use
12618 of m_entries_vec.
12619 (completion_tracker::completion_hash_entry): Declare new class.
12620 (completion_tracker::recompute_lowest_common_denominator): Change
12621 function signature.
12622 (completion_tracker::recompute_lcd_visitor): Declare new function.
12623 (completion_tracker::m_entries_vec): Delete.
12624 (completion_tracker::m_entries_hash): Initialize to NULL.
12625 (completion_tracker::m_lowest_common_denominator_valid): New
12626 member variable.
12627 (completion_tracker::m_lowest_common_denominator_max_length): New
12628 member variable.
12629
5a82b8a1
KR
126302020-03-17 Kamil Rytarowski <n54@gmx.com>
12631
12632 * regformats/regdef.h: Put reg in gdb namespace.
12633
fb516a69
KR
126342020-03-17 Kamil Rytarowski <n54@gmx.com>
12635
12636 * i386-bsd-nat.c (gdb_ptrace): New.
12637 * (i386bsd_fetch_inferior_registers,
12638 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12639 * (i386bsd_fetch_inferior_registers,
12640 i386bsd_store_inferior_registers) Use gdb_ptrace.
12641
1c0aa1fb
KR
126422020-03-17 Kamil Rytarowski <n54@gmx.com>
12643
12644 * amd64-bsd-nat.c (gdb_ptrace): New.
12645 * (amd64bsd_fetch_inferior_registers,
12646 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12647 * (amd64bsd_fetch_inferior_registers,
12648 amd64bsd_store_inferior_registers) Use gdb_ptrace.
12649
5ccd2fb7
KR
126502020-03-17 Kamil Rytarowski <n54@gmx.com>
12651
12652 * user-regs.c (user_reg::read): Rename to...
12653 (user_reg::xread): ...this.
12654 * (append_user_reg): Rename argument `read' to `xread'.
12655 * (user_reg_add_builtin): Likewise.
12656 * (user_reg_add): Likewise.
12657 * (value_of_user_reg): Likewise.
12658
2108a63a
KR
126592020-03-17 Kamil Rytarowski <n54@gmx.com>
12660
12661 * sparc-nat.c (gdb_ptrace): New.
12662 * sparc-nat.c (sparc_fetch_inferior_registers)
12663 (sparc_store_inferior_registers) Remove obsolete comment.
12664 * sparc-nat.c (sparc_fetch_inferior_registers)
12665 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
12666 * sparc-nat.c (sparc_fetch_inferior_registers)
12667 (sparc_store_inferior_registers) Use gdb_ptrace.
12668
a225c9a8
KR
126692020-03-17 Kamil Rytarowski <n54@gmx.com>
12670
12671 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
12672 it to the ptrace call.
12673 * sh-nbsd-nat.c (store_registers): Likewise.
12674
98097623
KR
126752020-03-17 Kamil Rytarowski <n54@gmx.com>
12676
12677 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
12678 nbsd_nat_target instead of inf_ptrace_target.
12679 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12680 nbsd_nat_target.
12681
9e38d619
KR
126822020-03-17 Kamil Rytarowski <n54@gmx.com>
12683
12684 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
12685
a2ecbe9f
KR
126862020-03-17 Kamil Rytarowski <n54@gmx.com>
12687
12688 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
12689 <sys/sysctl.h>.
12690 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
12691
58990295
TV
126922020-03-17 Tom de Vries <tdevries@suse.de>
12693
12694 PR gdb/23710
12695 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
12696 fields.
12697 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
12698 fields.
12699 (process_imported_unit_die): Skip import of c++ CUs.
12700
771dd3a8
TT
127012020-03-16 Tom Tromey <tom@tromey.com>
12702
12703 * p-valprint.c (pascal_object_print_value): Initialize
12704 base_value.
12705
817a7585
AK
127062020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
12707 Shahab Vahedi <shahab@synopsys.com>
12708
12709 * Makefile.in: Add arch/arc.o
12710 * configure.tgt: Likewise.
12711 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
12712 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 12713 (arc_read_description): New function to cache target descriptions.
817a7585
AK
12714 * arc-tdep.h (arc_read_description): Add proto type.
12715 * arch/arc.c: New file.
12716 * arch/arc.h: Likewise.
12717 * features/Makefile: Replace old target descriptions with new.
12718 * features/arc-arcompact.c: Remove.
12719 * features/arc-arcompact.xml: Likewise.
12720 * features/arc-v2.c: Likewise
12721 * features/arc-v2.xml: Likewise
12722 * features/arc/aux-arcompact.xml: New file.
12723 * features/arc/aux-v2.xml: Likewise.
12724 * features/arc/core-arcompact.xml: Likewise.
12725 * features/arc/core-v2.xml: Likewise.
12726 * features/arc/aux-arcompact.c: Generate.
12727 * features/arc/aux-v2.c: Likewise.
12728 * features/arc/core-arcompact.c: Likewise.
12729 * features/arc/core-v2.c: Likewise.
12730 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
12731
67430cd0
TT
127322020-03-16 Tom Tromey <tromey@adacore.com>
12733
12734 PR gdb/25663:
12735 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
12736 putting value into bcache.
12737
30efb6c7
SM
127382020-03-16 Simon Marchi <simon.marchi@efficios.com>
12739
12740 PR gdb/21500
12741 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
12742 to...
12743 (amd64_windows_init_abi_common): ... this. Don't set size of
12744 long type.
12745 (amd64_windows_init_abi): New function.
12746 (amd64_cygwin_init_abi): New function.
12747 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
12748 the Cygwin OS ABI.
12749 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
12750 comment.
12751
8db52437
SM
127522020-03-16 Simon Marchi <simon.marchi@efficios.com>
12753
12754 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
12755 * windows-tdep.c (CYGWIN_DLL_NAME): New.
12756 (pe_import_directory_entry): New struct type.
12757 (is_linked_with_cygwin_dll): New function.
12758 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
12759 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
12760 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
12761
5982a56a
SM
127622020-03-16 Simon Marchi <simon.marchi@efficios.com>
12763
12764 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
12765 i386_cygwin_core_osabi_sniffer.
12766
7a1998df
SM
127672020-03-16 Simon Marchi <simon.marchi@efficios.com>
12768
12769 * i386-cygwin-tdep.c: Rename to...
12770 * i386-windows-tdep.c: ... this.
12771 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
12772 i386-windows-tdep.c.
12773 * configure.tgt: Likewise.
12774
053205cc
SM
127752020-03-16 Simon Marchi <simon.marchi@efficios.com>
12776
12777 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
12778 * osabi.c (gdb_osabi_names): Add "Windows".
12779 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
12780 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
12781 (i386_cygwin_core_osabi_sniffer): New function, extracted from
12782 i386_cygwin_osabi_sniffer.
12783 (_initialize_i386_cygwin_tdep): Register OS ABI
12784 GDB_OSABI_WINDOWS for i386.
12785 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
12786 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
12787 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
12788 for x86-64.
12789 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
12790 when the target matches '*-*-mingw*'.
12791
fe4b2ee6
SM
127922020-03-16 Simon Marchi <simon.marchi@efficios.com>
12793
12794 * defs.h (enum gdb_osabi): Move to...
12795 * osabi.h (enum gdb_osabi): ... here.
12796 * gdbarch.sh: Include osabi.h in gdbarch.h.
12797 * gdbarch.h: Re-generate.
12798
cb9b645d
SM
127992020-03-16 Simon Marchi <simon.marchi@efficios.com>
12800
12801 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
12802 function.
12803 (_initialize_amd64_windows_tdep): Register osabi sniffer.
12804
3293bbaf
TT
128052020-03-14 Tom Tromey <tom@tromey.com>
12806
12807 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
12808 for C++.
12809 (c_type_print_modifier): Likewise. Add "language" parameter.
12810 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
12811 (c_type_print_base_1): Update.
12812 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
12813 constants.
12814 * type-stack.c (type_stack::insert): Handle tp_atomic and
12815 tp_restrict.
12816 (type_stack::follow_type_instance_flags): Likewise.
12817 (type_stack::follow_types): Likewise. Merge type-following code.
12818 * c-exp.y (RESTRICT, ATOMIC): New tokens.
12819 (space_identifier, cv_with_space_id)
12820 (const_or_volatile_or_space_identifier_noopt)
12821 (const_or_volatile_or_space_identifier): Remove.
12822 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
12823 rules.
12824 (ptr_operator, typebase): Update.
12825 (enum token_flag) <FLAG_C>: New constant.
12826 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
12827 "_Atomic".
12828 (lex_one_token): Handle FLAG_C.
12829
154151a6
KR
128302020-03-14 Kamil Rytarowski <n54@gmx.com>
12831
12832 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
12833 it to the ptrace call.
12834 * m68k-bsd-nat.c (store_registers): Likewise.
12835
bc107784
KR
128362020-03-14 Kamil Rytarowski <n54@gmx.com>
12837
12838 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
12839 gdb_byte *.
12840 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
12841 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
12842 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
12843
01a80117
KR
128442020-03-14 Kamil Rytarowski <n54@gmx.com>
12845
12846 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
12847 nbsd_nat_target instead of inf_ptrace_target.
12848 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12849 nbsd_nat_target.
12850
f90280ca
KR
128512020-03-14 Kamil Rytarowski <n54@gmx.com>
12852
12853 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
12854 register_t.
12855
6def66f1
KR
128562020-03-14 Kamil Rytarowski <n54@gmx.com>
12857
12858 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
12859 it to the ptrace call.
12860 * alpha-bsd-nat.c (store_registers): Likewise.
12861
66eaca97
KR
128622020-03-14 Kamil Rytarowski <n54@gmx.com>
12863
12864 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
12865 includes.
12866 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
12867 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
12868 fill_fpregset): Likewise.
12869
4fed520b
KR
128702020-03-14 Kamil Rytarowski <n54@gmx.com>
12871
12872 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
12873 nbsd_nat_target instead of inf_ptrace_target.
12874 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12875 nbsd_nat_target.
12876
2190cf06
KR
128772020-03-14 Kamil Rytarowski <n54@gmx.com>
12878
12879 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
12880 register_t.
12881
75c56d3d
KR
128822020-03-14 Kamil Rytarowski <n54@gmx.com>
12883
12884 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
12885 it to the ptrace call.
12886 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
12887 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
12888 * arm-nbsd-nat.c (store_register): Likewise.
12889 * arm-nbsd-nat.c (store_regs): Likewise.
12890 * arm-nbsd-nat.c (store_fp_register): Likewise.
12891 * arm-nbsd-nat.c (store_fp_regs): Likewise.
12892
6018d381
KR
128932020-03-14 Kamil Rytarowski <n54@gmx.com>
12894
12895 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
12896 nbsd_nat_target instead of inf_ptrace_target.
12897 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12898 nbsd_nat_target.
12899
013f99f0
KR
129002020-03-14 Kamil Rytarowski <n54@gmx.com>
12901
12902 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
12903 it to the ptrace call.
12904 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
12905
12753073
KR
129062020-03-14 Kamil Rytarowski <n54@gmx.com>
12907
6227b330
KR
12908 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
12909 it to the ptrace call.
12910 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
12911
129122020-03-14 Kamil Rytarowski <n54@gmx.com>
12913
12914 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
12915 gdb_byte *.
12753073
KR
12916 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
12917
d5be5fa4
KR
129182020-03-14 Kamil Rytarowski <n54@gmx.com>
12919
12920 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
12921 instead of inf_ptrace_target.
12922 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12923 nbsd_nat_target.
12924
8110f842
KR
129252020-03-14 Kamil Rytarowski <n54@gmx.com>
12926
12927 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12928 register_t.
12929
52feded7
KR
129302020-03-14 Kamil Rytarowski <n54@gmx.com>
12931
12932 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12933 register_t.
12934
25567eee
KR
129352020-03-14 Kamil Rytarowski <n54@gmx.com>
12936
12937 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
12938 register_t.
12939
426a9c18
TT
129402020-03-13 Tom Tromey <tom@tromey.com>
12941
12942 * value.h (val_print): Don't declare.
12943 * valprint.h (val_print_array_elements)
12944 (val_print_scalar_formatted, generic_val_print): Don't declare.
12945 * valprint.c (generic_val_print_array): Take a struct value.
12946 (generic_val_print_ptr, generic_val_print_memberptr)
12947 (generic_val_print_bool, generic_val_print_int)
12948 (generic_val_print_char, generic_val_print_complex)
12949 (generic_val_print): Remove.
12950 (generic_value_print): Update.
12951 (do_val_print): Remove unused parameters. Don't call
12952 la_val_print.
12953 (val_print): Remove.
12954 (common_val_print): Update. Don't call value_check_printable.
12955 (val_print_scalar_formatted, val_print_array_elements): Remove.
12956 * rust-lang.c (rust_val_print): Remove.
12957 (rust_language_defn): Update.
12958 * p-valprint.c (pascal_val_print): Remove.
12959 (pascal_value_print_inner): Update.
12960 (pascal_object_print_val_fields, pascal_object_print_val):
12961 Remove.
12962 (pascal_object_print_static_field): Update.
12963 * p-lang.h (pascal_val_print): Don't declare.
12964 * p-lang.c (pascal_language_defn): Update.
12965 * opencl-lang.c (opencl_language_defn): Update.
12966 * objc-lang.c (objc_language_defn): Update.
12967 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
12968 * m2-lang.h (m2_val_print): Don't declare.
12969 * m2-lang.c (m2_language_defn): Update.
12970 * language.h (struct language_defn) <la_val_print>: Remove.
12971 * language.c (unk_lang_value_print_inner): Rename. Change
12972 argument types.
12973 (unknown_language_defn, auto_language_defn): Update.
12974 * go-valprint.c (go_val_print): Remove.
12975 * go-lang.h (go_val_print): Don't declare.
12976 * go-lang.c (go_language_defn): Update.
12977 * f-valprint.c (f_val_print): Remove.
12978 * f-lang.h (f_value_print): Don't declare.
12979 * f-lang.c (f_language_defn): Update.
12980 * d-valprint.c (d_val_print): Remove.
12981 * d-lang.h (d_value_print): Don't declare.
12982 * d-lang.c (d_language_defn): Update.
12983 * cp-valprint.c (cp_print_value_fields)
12984 (cp_print_value_fields_rtti, cp_print_value): Remove.
12985 (cp_print_static_field): Update.
12986 * c-valprint.c (c_val_print_array, c_val_print_ptr)
12987 (c_val_print_struct, c_val_print_union, c_val_print_int)
12988 (c_val_print_memberptr, c_val_print): Remove.
12989 * c-lang.h (c_val_print_array, cp_print_value_fields)
12990 (cp_print_value_fields_rtti): Don't declare.
12991 * c-lang.c (c_language_defn, cplus_language_defn)
12992 (asm_language_defn, minimal_language_defn): Update.
12993 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
12994 (ada_val_print_enum): Take a struct value.
12995 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
12996 (ada_val_print): Remove.
12997 (ada_value_print_1): Update.
12998 (printable_val_type): Remove.
12999 * ada-lang.h (ada_val_print): Don't declare.
13000 * ada-lang.c (ada_language_defn): Update.
13001
42331a1e
TT
130022020-03-13 Tom Tromey <tom@tromey.com>
13003
13004 * valprint.c (do_val_print): Update.
13005 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
13006 a struct value.
13007 (value_to_value_object_no_release): Declare.
13008 * python/py-value.c (value_to_value_object_no_release): New
13009 function.
13010 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
13011 struct value.
13012 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
13013 function.
13014 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
13015 a struct value.
13016 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
13017 Declare.
13018 (gdbscm_apply_val_pretty_printer): Take a struct value.
13019 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
13020 value.
13021 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
13022 value.
13023 * extension-priv.h (struct extension_language_ops)
13024 <apply_val_pretty_printer>: Take a struct value.
13025 * cp-valprint.c (cp_print_value): Create a struct value.
13026 (cp_print_value): Update.
13027
3a916a97
TT
130282020-03-13 Tom Tromey <tom@tromey.com>
13029
13030 * ada-valprint.c (print_field_values): Call common_val_print.
13031
b59eac37
TT
130322020-03-13 Tom Tromey <tom@tromey.com>
13033
13034 * ada-valprint.c (val_print_packed_array_elements): Remove
13035 bitoffset and val parameters. Call common_val_print.
13036 (ada_val_print_string): Remove offset, address, and original_value
13037 parameters.
13038 (ada_val_print_array): Update.
13039 (ada_value_print_array): New function.
13040 (ada_value_print_1): Call it.
13041
03371129
TT
130422020-03-13 Tom Tromey <tom@tromey.com>
13043
13044 * ada-valprint.c (ada_value_print): Use common_val_print.
13045
2e088f8b
TT
130462020-03-13 Tom Tromey <tom@tromey.com>
13047
13048 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
13049
39ef85a8
TT
130502020-03-13 Tom Tromey <tom@tromey.com>
13051
13052 * ada-valprint.c (ada_value_print_num): New function.
13053 (ada_value_print_1): Use it.
13054
b9fa6e07
TT
130552020-03-13 Tom Tromey <tom@tromey.com>
13056
13057 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
13058
416595d6
TT
130592020-03-13 Tom Tromey <tom@tromey.com>
13060
13061 * ada-valprint.c (ada_value_print_ptr): New function.
13062 (ada_value_print_1): Use it.
13063
5b5e15ec
TT
130642020-03-13 Tom Tromey <tom@tromey.com>
13065
13066 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
13067 call common_val_print.
13068 (ada_val_print_1): Update.
13069 (ada_value_print_1): New function.
13070 (ada_value_print_inner): Rewrite.
13071
fbf54e75
TT
130722020-03-13 Tom Tromey <tom@tromey.com>
13073
13074 * cp-valprint.c (cp_print_value_fields): Update.
13075 (cp_print_value): New function.
13076
64b653ca
TT
130772020-03-13 Tom Tromey <tom@tromey.com>
13078
13079 * m2-valprint.c (m2_value_print_inner): Use
13080 cp_print_value_fields.
13081 * cp-valprint.c (cp_print_value_fields): New function.
13082 * c-valprint.c (c_value_print_struct): New function.
13083 (c_value_print_inner): Use c_value_print_struct.
13084 * c-lang.h (cp_print_value_fields): Declare.
13085
6999f067
TT
130862020-03-13 Tom Tromey <tom@tromey.com>
13087
13088 * c-valprint.c (c_value_print_array): New function.
13089 (c_value_print_inner): Use it.
13090
ce80b8bd
TT
130912020-03-13 Tom Tromey <tom@tromey.com>
13092
13093 * c-valprint.c (c_value_print_memberptr): New function.
13094 (c_value_print_inner): Use it.
13095
2faac269
TT
130962020-03-13 Tom Tromey <tom@tromey.com>
13097
13098 * c-valprint.c (c_value_print_int): New function.
13099 (c_value_print_inner): Use it.
13100
da3e2c29
TT
131012020-03-13 Tom Tromey <tom@tromey.com>
13102
13103 * c-valprint.c (c_value_print_ptr): New function.
13104 (c_value_print_inner): Use it.
13105
50836231
TT
131062020-03-13 Tom Tromey <tom@tromey.com>
13107
13108 * c-valprint.c (c_value_print_inner): Rewrite.
13109
4f412b6e
TT
131102020-03-13 Tom Tromey <tom@tromey.com>
13111
13112 * valprint.c (generic_value_print_complex): New function.
13113 (generic_value_print): Use it.
13114
f5354008
TT
131152020-03-13 Tom Tromey <tom@tromey.com>
13116
13117 * valprint.c (generic_val_print_float): Don't call
13118 val_print_scalar_formatted.
13119 (generic_val_print, generic_value_print): Update.
13120
3eec3b05
TT
131212020-03-13 Tom Tromey <tom@tromey.com>
13122
13123 * valprint.c (generic_value_print_char): New function
13124 (generic_value_print): Use it.
13125
fdddfccb
TT
131262020-03-13 Tom Tromey <tom@tromey.com>
13127
13128 * valprint.c (generic_value_print_int): New function.
13129 (generic_value_print): Use it.
13130
6dde7521
TT
131312020-03-13 Tom Tromey <tom@tromey.com>
13132
13133 * valprint.c (generic_value_print_bool): New function.
13134 (generic_value_print): Use it.
13135
4112d2e6
TT
131362020-03-13 Tom Tromey <tom@tromey.com>
13137
13138 * valprint.c (generic_val_print_func): Simplify.
13139 (generic_val_print, generic_value_print): Update.
13140
65786af6
TT
131412020-03-13 Tom Tromey <tom@tromey.com>
13142
13143 * valprint.c (generic_val_print_flags): Remove.
13144 (generic_val_print, generic_value_print): Update.
13145 (val_print_type_code_flags): Add original_value parameter.
13146
40f3ce18
TT
131472020-03-13 Tom Tromey <tom@tromey.com>
13148
13149 * valprint.c (generic_val_print): Update.
13150 (generic_value_print): Update.
13151 * valprint.c (generic_val_print_enum): Don't call
13152 val_print_scalar_formatted.
13153
2a5b130b
TT
131542020-03-13 Tom Tromey <tom@tromey.com>
13155
13156 * valprint.c (generic_value_print): Call generic_value_print_ptr.
13157 * valprint.c (generic_value_print_ptr): New function.
13158
abc66ce9
TT
131592020-03-13 Tom Tromey <tom@tromey.com>
13160
13161 * valprint.c (generic_value_print): Rewrite.
13162
07a32858
TT
131632020-03-13 Tom Tromey <tom@tromey.com>
13164
13165 * p-valprint.c (pascal_object_print_value_fields)
13166 (pascal_object_print_value): New functions.
13167
64d64d3a
TT
131682020-03-13 Tom Tromey <tom@tromey.com>
13169
13170 * p-valprint.c (pascal_value_print_inner): Rewrite.
13171
6a95a1f5
TT
131722020-03-13 Tom Tromey <tom@tromey.com>
13173
13174 * f-valprint.c (f_value_print_innner): Rewrite.
13175
59fcdac6
TT
131762020-03-13 Tom Tromey <tom@tromey.com>
13177
13178 * m2-valprint.c (m2_print_unbounded_array): New overload.
13179 (m2_print_unbounded_array): Update.
13180 (m2_print_array_contents): Take a struct value.
13181 (m2_value_print_inner): Rewrite.
13182
d133c3e1
TT
131832020-03-13 Tom Tromey <tom@tromey.com>
13184
13185 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
13186 (d_value_print_inner): New function.
13187 * d-lang.h (d_value_print_inner): Declare.
13188 * d-lang.c (d_language_defn): Use d_value_print_inner.
13189
23b0f06b
TT
131902020-03-13 Tom Tromey <tom@tromey.com>
13191
13192 * go-valprint.c (go_value_print_inner): New function.
13193 * go-lang.h (go_value_print_inner): Declare.
13194 * go-lang.c (go_language_defn): Use go_value_print_inner.
13195
5f56f7cb
TT
131962020-03-13 Tom Tromey <tom@tromey.com>
13197
13198 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
13199 API.
13200 (rust_val_print): Rewrite.
13201 (rust_value_print_inner): New function, from rust_val_print.
13202 (rust_language_defn): Use rust_value_print_inner.
13203
26792ee0
TT
132042020-03-13 Tom Tromey <tom@tromey.com>
13205
13206 * ada-valprint.c (ada_value_print_inner): New function.
13207 * ada-lang.h (ada_value_print_inner): Declare.
13208 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
13209
24051bbe
TT
132102020-03-13 Tom Tromey <tom@tromey.com>
13211
13212 * f-valprint.c (f_value_print_innner): New function.
13213 * f-lang.h (f_value_print_innner): Declare.
13214 * f-lang.c (f_language_defn): Use f_value_print_innner.
13215
c0941be6
TT
132162020-03-13 Tom Tromey <tom@tromey.com>
13217
13218 * p-valprint.c (pascal_value_print_inner): New function.
13219 * p-lang.h (pascal_value_print_inner): Declare.
13220 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
13221
62c4663d
TT
132222020-03-13 Tom Tromey <tom@tromey.com>
13223
13224 * m2-valprint.c (m2_value_print_inner): New function.
13225 * m2-lang.h (m2_value_print_inner): Declare.
13226 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
13227
62182190
TT
132282020-03-13 Tom Tromey <tom@tromey.com>
13229
13230 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
13231 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
13232 * c-valprint.c (c_value_print_inner): New function.
13233 * c-lang.h (c_value_print_inner): Declare.
13234 * c-lang.c (c_language_defn, cplus_language_defn)
13235 (asm_language_defn, minimal_language_defn): Use
13236 c_value_print_inner.
13237
1e592a8a
TT
132382020-03-13 Tom Tromey <tom@tromey.com>
13239
13240 * p-valprint.c (pascal_object_print_value_fields): Now static.
13241 * p-lang.h (pascal_object_print_value_fields): Don't declare.
13242
7fe471e9
TT
132432020-03-13 Tom Tromey <tom@tromey.com>
13244
13245 * c-valprint.c (c_val_print_array): Simplify.
13246
d121c6ce
TT
132472020-03-13 Tom Tromey <tom@tromey.com>
13248
13249 * valprint.c (value_print_array_elements): New function.
13250 * valprint.h (value_print_array_elements): Declare.
13251
4dba70ee
TT
132522020-03-13 Tom Tromey <tom@tromey.com>
13253
13254 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
13255 * mips-tdep.c (mips_print_register): Use
13256 value_print_scalar_formatted.
13257
4f9ae810
TT
132582020-03-13 Tom Tromey <tom@tromey.com>
13259
13260 * valprint.h (value_print_scalar_formatted): Declare.
13261 * valprint.c (value_print_scalar_formatted): New function.
13262
156bfec9
TT
132632020-03-13 Tom Tromey <tom@tromey.com>
13264
13265 * valprint.h (generic_value_print): Declare.
13266 * valprint.c (generic_value_print): New function.
13267
2b4e573d
TT
132682020-03-13 Tom Tromey <tom@tromey.com>
13269
13270 * valprint.c (do_val_print): Call la_value_print_inner, if
13271 available.
13272 * rust-lang.c (rust_language_defn): Update.
13273 * p-lang.c (pascal_language_defn): Update.
13274 * opencl-lang.c (opencl_language_defn): Update.
13275 * objc-lang.c (objc_language_defn): Update.
13276 * m2-lang.c (m2_language_defn): Update.
13277 * language.h (struct language_defn) <la_value_print_inner>: New
13278 member.
13279 * language.c (unknown_language_defn, auto_language_defn): Update.
13280 * go-lang.c (go_language_defn): Update.
13281 * f-lang.c (f_language_defn): Update.
13282 * d-lang.c (d_language_defn): Update.
13283 * c-lang.c (c_language_defn, cplus_language_defn)
13284 (asm_language_defn, minimal_language_defn): Update.
13285 * ada-lang.c (ada_language_defn): Update.
13286
a1f6a07c
TT
132872020-03-13 Tom Tromey <tom@tromey.com>
13288
13289 * c-valprint.c (c_value_print): Use common_val_print.
13290
410cf315
TT
132912020-03-13 Tom Tromey <tom@tromey.com>
13292
13293 * cp-valprint.c (cp_print_static_field): Use common_val_print.
13294
72a45c93
TT
132952020-03-13 Tom Tromey <tom@tromey.com>
13296
13297 * f-valprint.c (f77_print_array_1, f_val_print): Use
13298 common_val_print.
13299
040f66bd
TT
133002020-03-13 Tom Tromey <tom@tromey.com>
13301
13302 * riscv-tdep.c (riscv_print_one_register_info): Use
13303 common_val_print.
13304
a6e05a6c
TT
133052020-03-13 Tom Tromey <tom@tromey.com>
13306
13307 * mi/mi-main.c (output_register): Use common_val_print.
13308
3444c526
TT
133092020-03-13 Tom Tromey <tom@tromey.com>
13310
13311 * infcmd.c (default_print_one_register_info): Use
13312 common_val_print.
13313
c2a44efe
TT
133142020-03-13 Tom Tromey <tom@tromey.com>
13315
13316 * valprint.h (common_val_print_checked): Declare.
13317 * valprint.c (common_val_print_checked): New function.
13318 * stack.c (print_frame_arg): Use common_val_print_checked.
13319
b0c26e99
TT
133202020-03-13 Tom Tromey <tom@tromey.com>
13321
13322 * valprint.c (do_val_print): New function, from val_print.
13323 (val_print): Use do_val_print.
13324 (common_val_print): Use do_val_print.
13325
ce3acbe9
TT
133262020-03-13 Tom Tromey <tom@tromey.com>
13327
13328 * valprint.c (value_print): Use scoped_value_mark.
13329
96c7f873
TV
133302020-03-13 Tom de Vries <tdevries@suse.de>
13331
13332 PR symtab/25646
13333 * psymtab.c (partial_symtab::partial_symtab): Don't set
13334 globals_offset and statics_offset. Push element onto
13335 current_global_psymbols and current_static_psymbols stacks.
13336 (concat): New function.
13337 (end_psymtab_common): Set globals_offset and statics_offset. Pop
13338 element from current_global_psymbols and current_static_psymbols
13339 stacks. Concat popped elements to global_psymbols and
13340 static_symbols.
13341 (add_psymbol_to_list): Use current_global_psymbols and
13342 current_static_psymbols stacks.
13343 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
13344 current_static_psymbols fields.
13345
6ba0a321
CB
133462020-03-12 Christian Biesinger <cbiesinger@google.com>
13347
13348 * corelow.c (sniff_core_bfd): Remove.
13349 (class core_target) <m_core_vec>: Remove.
13350 (core_target::core_target): Update.
13351 (core_file_fns): Remove.
13352 (deprecated_add_core_fns): Remove.
13353 (default_core_sniffer): Remove.
13354 (sniff_core_bfd): Remove.
13355 (default_check_format): Remove.
13356 (gdb_check_format): Remove.
13357 (core_target_open): Update.
13358 (core_target::get_core_register_section): Update.
13359 (get_core_registers_cb): Update.
13360 (core_target::fetch_registers): Update.
13361 * gdbcore.h (struct core_fns): Remove.
13362 (deprecated_add_core_fns): Remove.
13363 (default_core_sniffer): Remove.
13364 (default_check_format): Remove.
13365
227031b2
TT
133662020-03-12 Tom Tromey <tom@tromey.com>
13367
13368 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
13369 CORE_ADDR.
13370 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
13371
53807e9f
TT
133722020-03-12 Tom Tromey <tom@tromey.com>
13373
13374 * remote.c (remote_target::download_tracepoint)
13375 (remote_target::enable_tracepoint)
13376 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
13377 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
13378 sprintf_vma.
13379
64f25102
TT
133802020-03-12 Tom Tromey <tom@tromey.com>
13381
13382 * symfile-mem.c: Update CORE_ADDR size assert.
13383
272cd5a3
SM
133842020-03-12 Simon Marchi <simon.marchi@efficios.com>
13385
13386 * selftest.m4: Move to gdbsupport/.
13387 * acinclude.m4: Update path to selftest.m4.
13388
74cd3f9d
SM
133892020-03-12 Simon Marchi <simon.marchi@efficios.com>
13390
13391 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
13392 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
13393 gdbarch-selfselftests.c and selftest-arch.c.
13394 (SUBDIR_UNITTESTS_OBS): Rename to...
13395 (SELFTESTS_OBS): ... this.
13396 (COMMON_SFILES): Remove disasm-selftests.c and
13397 gdbarch-selftests.c.
13398 * configure.ac: Don't add selftest-arch.{c,o} to
13399 CONFIG_{SRCS,OBS}.
13400 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
13401 preprocessor conditions.
13402
db6878ac
SM
134032020-03-12 Simon Marchi <simon.marchi@efficios.com>
13404
13405 * configure.ac: Don't source bfd/development.sh.
13406 * selftest.m4: Modify comment.
13407 * configure: Re-generate.
13408
4d696a5c
SM
134092020-03-12 Simon Marchi <simon.marchi@efficios.com>
13410
13411 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
13412 not "true" or "false".
13413 * configure: Re-generate.
13414
8dd8e1c7
CB
134152020-03-12 Christian Biesinger <cbiesinger@google.com>
13416
13417 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
13418 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
13419 renamed to arm_nbsd_supply_gregset.
13420 (fetch_register): Update to call arm_nbsd_supply_gregset.
13421 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
13422 (arm_netbsd_nat_target::fetch_registers): Update.
13423 (fetch_elfcore_registers): Removed.
13424 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
13425 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
13426 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
13427 not require NetBSD system headers.
13428 (arm_nbsd_regset): New struct.
13429 (arm_nbsd_iterate_over_regset_sections): New function.
13430 (arm_netbsd_init_abi_common): Updated to call
13431 set_gdbarch_iterate_over_regset_sections.
13432 * arm-nbsd-tdep.h: New file.
13433
dd69bf7a
KB
134342020-03-11 Kevin Buettner <kevinb@redhat.com>
13435
13436 * symtab.c (find_pc_sect_line): Add check which prevents infinite
13437 recursion.
13438
a0761e34
SM
134392020-03-11 Simon Marchi <simon.marchi@efficios.com>
13440
13441 * configure: Re-generate.
13442
e7a82140
TT
134432020-03-11 Tom Tromey <tromey@adacore.com>
13444
13445 * ada-typeprint.c (print_choices): Fix comment.
13446
dcc050c8
AB
134472020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
13448
13449 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
13450 previous item in the list, when the list has no items.
13451
1c33af77
TV
134522020-03-11 Tom de Vries <tdevries@suse.de>
13453
13454 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
13455 PROP_LOCLIST handling code.
13456
8c95582d
AB
134572020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
13458
13459 * buildsym-legacy.c (record_line): Pass extra parameter to
13460 record_line.
13461 * buildsym.c (buildsym_compunit::record_line): Take an extra
13462 parameter, reduce duplication in the line table, and record the
13463 is_stmt flag in the line table.
13464 * buildsym.h (buildsym_compunit::record_line): Add extra
13465 parameter.
13466 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
13467 non-statement lines.
13468 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
13469 this to the symtab builder.
13470 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
13471 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
13472 through to dwarf_record_line_1.
13473 * infrun.c (process_event_stop_test): When stepping, don't stop at
13474 a non-statement instruction, and only refresh the step info when
13475 we land in the middle of a line's range. Also add an extra
13476 comment.
13477 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
13478 field.
13479 * record-btrace.c (btrace_find_line_range): Only record lines
13480 marked as is-statement.
13481 * stack.c (frame_show_address): Show the frame address if we are
13482 in a non-statement sal.
13483 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
13484 (maintenance_print_one_line_table): Print a header for the is_stmt
13485 column, and include is_stmt information in the output.
13486 * symtab.c (find_pc_sect_line): Find lines marked as statements in
13487 preference to non-statements.
13488 (find_pcs_for_symtab_line): Prefer is-statement entries.
13489 (find_line_common): Likewise.
13490 * symtab.h (struct linetable_entry): Add is_stmt field.
13491 (struct symtab_and_line): Likewise.
13492 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
13493 arranging the line table.
13494
e4003a34
TV
134952020-03-07 Tom de Vries <tdevries@suse.de>
13496
13497 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
13498 DIE.
13499
e8932576
TT
135002020-03-07 Tom Tromey <tom@tromey.com>
13501
13502 * valops.c (value_literal_complex): Remove obsolete comment.
13503 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
13504 comment.
13505
29734269
SM
135062020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13507
13508 * infrun.h: Forward-declare thread_info.
13509 (set_step_info): Add thread_info parameter, add doc.
13510 * infrun.c (set_step_info): Add thread_info parameter, move doc
13511 to header.
13512 * infrun.c (process_event_stop_test): Pass thread to
13513 set_step_info call.
13514 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
13515 set_step_info.
13516 (prepare_one_step): Add thread_info parameter, pass it to
13517 set_step_frame and prepare_one_step (recursive) call.
13518 (step_1): Pass thread to prepare_one_step call.
13519 (step_command_fsm::should_stop): Pass thread to
13520 prepare_one_step.
13521 (until_next_fsm): Pass thread to set_step_frame call.
13522 (finish_command): Pass thread to set_step_info call.
13523
b7d64b29
HD
135242020-03-06 Hannes Domani <ssbssa@yahoo.de>
13525
13526 * windows-tdep.c (windows_solib_create_inferior_hook):
13527 Check if inferior is running.
13528
09f2921c
TV
135292020-03-06 Tom de Vries <tdevries@suse.de>
13530
13531 * NEWS: Fix "the the".
13532 * ctfread.c: Same.
13533
fd760e79
TV
135342020-03-06 Tom de Vries <tdevries@suse.de>
13535
13536 * psymtab.c (psymtab_to_symtab): Don't print "done.".
13537
20ea4a60
AB
135382020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13539
13540 * .dir-locals.el: Add a comment referencing the other copies of
13541 this file.
13542
0afbabf0
JB
135432020-03-05 John Baldwin <jhb@FreeBSD.org>
13544
13545 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
13546 psargs.
13547
842806cb
TBA
135482020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13549
13550 * .gitattributes: New file.
13551
be1e3d3e
TT
135522020-03-04 Tom Tromey <tom@tromey.com>
13553
13554 * symmisc.c (print_symbol_bcache_statistics)
13555 (print_objfile_statistics): Update.
13556 * symfile.c (allocate_symtab): Use intern.
13557 * psymtab.c (partial_symtab::partial_symtab): Use intern.
13558 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13559 macro_cache>: Remove.
13560 <string_cache>: New member.
13561 (struct objfile) <intern>: New methods.
13562 * elfread.c (elf_symtab_read): Use intern.
13563 * dwarf2/read.c (fixup_go_packaging): Intern package name.
13564 (dwarf2_compute_name, dwarf2_physname)
13565 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
13566 names.
13567 (guess_partial_die_structure_name): Update.
13568 (partial_die_info::fixup): Intern name.
13569 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
13570 name.
13571 (dwarf2_name): Intern name. Update.
13572 * buildsym.c (buildsym_compunit::get_macro_table): Use
13573 string_cache.
13574
4e7625fd
TT
135752020-03-04 Tom Tromey <tom@tromey.com>
13576
13577 * jit.c (bfd_open_from_target_memory): Make "target" const.
13578 * corefile.c (gnutarget): Now const.
13579 * gdbcore.h (gnutarget): Now const.
13580
46f9f931
HD
135812020-03-04 Hannes Domani <ssbssa@yahoo.de>
13582
13583 * NEWS: Mention support for WOW64 processes.
13584 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
13585 (amd64_windows_segment_register_p): Remove static.
13586 (_initialize_amd64_windows_nat): Update.
13587 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
13588 * i386-windows-nat.c (context_offset): Update.
13589 (i386_mappings): Rename and remove static.
13590 (i386_windows_segment_register_p): Remove static.
13591 (_initialize_i386_windows_nat): Update.
13592 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
13593 (STATUS_WX86_SINGLE_STEP): New macro.
13594 (EnumProcessModulesEx): New macro.
13595 (Wow64SuspendThread): New macro.
13596 (Wow64GetThreadContext): New macro.
13597 (Wow64SetThreadContext): New macro.
13598 (Wow64GetThreadSelectorEntry): New macro.
13599 (windows_set_context_register_offsets): Add static.
13600 (windows_set_segment_register_p): Likewise.
13601 (windows_add_thread): Adapt for WOW64 processes.
13602 (windows_fetch_one_register): Likewise.
13603 (windows_nat_target::fetch_registers): Likewise.
13604 (windows_store_one_register): Likewise.
13605 (display_selector): Likewise.
13606 (display_selectors): Likewise.
13607 (handle_exception): Likewise.
13608 (windows_continue): Likewise.
13609 (windows_nat_target::resume): Likewise.
13610 (windows_add_all_dlls): Likewise.
13611 (do_initial_windows_stuff): Likewise.
13612 (windows_nat_target::attach): Likewise.
13613 (windows_get_exec_module_filename): Likewise.
13614 (windows_nat_target::create_inferior): Likewise.
13615 (windows_xfer_siginfo): Likewise.
13616 (_initialize_loadable): Initialize Wow64SuspendThread,
13617 Wow64GetThreadContext, Wow64SetThreadContext,
13618 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
13619 * windows-nat.h (windows_set_context_register_offsets):
13620 Remove declaration.
13621 (windows_set_segment_register_p): Likewise.
13622 (i386_windows_segment_register_p): Add declaration.
13623 (amd64_windows_segment_register_p): Likewise.
13624
440cf44e
LM
136252020-03-04 Luis Machado <luis.machado@linaro.org>
13626
13627 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
13628 in "info registers" for AArch64/ARM.
13629
13630 The change caused "info registers" to not print GPR's.
13631
13632 gdb/ChangeLog:
13633
13634 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13635
13636 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13637 when reg->group is empty and reggroup is not.
13638
1009d92f
TT
136392020-03-03 Tom Tromey <tromey@adacore.com>
13640
13641 * dwarf2/frame.c (struct dwarf2_frame_cache)
13642 <checked_tailcall_bottom, entry_cfa_sp_offset,
13643 entry_cfa_sp_offset_p>: Remove members.
13644 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
13645 (dwarf2_frame_prev_register): Don't call
13646 dwarf2_tailcall_sniffer_first.
13647 (dwarf2_append_unwinders): Don't append tailcall unwinder.
13648 * frame-unwind.c (add_unwinder): New fuction.
13649 (frame_unwind_init): Use it. Add tailcall unwinder.
13650
5e5d66b6
AB
136512020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
13652 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13653
13654 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
13655 value should be printed as true.
13656
584cf46d
HD
136572020-03-03 Hannes Domani <ssbssa@yahoo.de>
13658
13659 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
13660 (windows_init_abi): Set and use windows_so_ops.
13661
7b973adc
SDJ
136622020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
13663
13664 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
13665 when verifying if dealing with a convenience variable.
13666
bb7b70ab
LM
136672020-03-03 Luis Machado <luis.machado@linaro.org>
13668
13669 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
13670
9822cb57
SM
136712020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13672
13673 * infrun.c (gdbarch_supports_displaced_stepping): New.
13674 (use_displaced_stepping): Break up conditions in smaller pieces.
13675 Use gdbarch_supports_displaced_stepping.
13676 (displaced_step_prepare_throw): Use
13677 gdbarch_supports_displaced_stepping.
13678
63e163f2
AB
136792020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13680
13681 * NEWS: Mention new behaviour of the history filename.
13682 * top.c (write_history_p): Add comment.
13683 (show_write_history_p): Add header comment, give a different
13684 message when history writing is on, but the history filename is
13685 empty.
13686 (history_filename): Add comment.
13687 (history_filename_empty): New function.
13688 (show_history_filename): Add header comment, give a different
13689 message when the filename is empty.
13690 (init_history): Compare history_filename against nullptr, and only
13691 read history if the filename is not empty.
13692 (set_history_filename): Add header comment, and only make
13693 non-empty filenames absolute.
13694 (init_main): Make the filename argument to 'set history filename'
13695 optional.
13696
81b86b97
CB
136972020-03-02 Christian Biesinger <cbiesinger@google.com>
13698
13699 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
13700 (arm_supply_vfpregset): ...this, and update to use VFP registers.
13701 (fetch_fp_register): Update.
13702 (fetch_fp_regs): Update.
13703 (store_fp_register): Update.
13704 (store_fp_regs): Update.
13705 (arm_netbsd_nat_target::read_description): New function.
13706 (fetch_elfcore_registers): Update.
13707
24ed6739
AB
137082020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13709
13710 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
13711 general_thread if the stop reply is missing a thread-id.
13712 (remote_target::process_stop_reply): Use the first non-exited
13713 thread if the target didn't pass a thread-id.
13714 * infrun.c (do_target_wait): Move call to
13715 switch_to_inferior_no_thread to ....
13716 (do_target_wait_1): ... here.
13717
a84bb2a0
JT
137182020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
13719
13720 * debuginfod-support.c: Include defs.h first.
13721
658dadf0
TV
137222020-02-28 Tom de Vries <tdevries@suse.de>
13723
13724 * symfile.c (set_initial_language): Use default language for lookup.
13725
4ebe4877
SM
137262020-02-28 Simon Marchi <simon.marchi@efficios.com>
13727
13728 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
13729 reader variable, pass `this` to read_cutu_die_from_dwo.
13730
e5da1139
AM
137312020-02-27 Aaron Merey <amerey@redhat.com>
13732
13733 * source.c (open_source_file): Check for nullptr when computing
13734 srcpath.
13735
317f7127
TT
137362020-02-27 Tom Tromey <tromey@adacore.com>
13737
13738 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
13739 member.
13740 (dwarf2_add_field): Don't update nfields.
13741 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
13742
3104d9ee
AB
137432020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13744
13745 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
13746 abs.
13747
b83470bf
TT
137482020-02-26 Tom Tromey <tom@tromey.com>
13749
13750 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
13751 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
13752 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
13753 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
13754 per_cu_data.
13755
edfe0a0c
TT
137562020-02-26 Tom Tromey <tom@tromey.com>
13757
13758 * dwarf2/index-write.c (psym_index_map): Change type.
13759 (add_address_entry_worker, write_one_signatured_type)
13760 (recursively_count_psymbols, recursively_write_psymbols)
13761 (class debug_names, psyms_seen_size, write_gdbindex)
13762 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
13763
0d79cdc4
AM
137642020-02-26 Aaron Merey <amerey@redhat.com>
13765
13766 * Makefile.in: Handle optional debuginfod support.
13767 * NEWS: Update.
13768 * README: Add --with-debuginfod summary.
13769 * config.in: Regenerate.
13770 * configure: Regenerate.
13771 * configure.ac: Handle optional debuginfod support.
13772 * debuginfod-support.c: debuginfod helper functions.
13773 * debuginfod-support.h: Ditto.
13774 * doc/gdb.texinfo: Add --with-debuginfod to configure options
13775 summary.
13776 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
13777 when a dwz file cannot be found.
13778 * elfread.c (elf_symfile_read): Query debuginfod servers when a
13779 debuginfo file cannot be found.
13780 * source.c (open_source_file): Query debuginfod servers when a
13781 source file cannot be found.
13782 * top.c (print_gdb_configuration): Include
13783 --{with,without}-debuginfod in the output.
13784
b65ce565
JG
137852020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
13786
13787 * thread.c (thr_try_catch_cmd): Print thread name.
13788
d4c9a4f8
SM
137892020-02-26 Simon Marchi <simon.marchi@efficios.com>
13790
13791 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
13792 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13793 dwarf2_fetch_die_type_sect_off): Move to...
13794 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
13795 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13796 dwarf2_fetch_die_type_sect_off): ... here.
13797 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
13798 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13799 dwarf2_fetch_die_type_sect_off): Move doc to header file.
13800
0dce4280
TV
138012020-02-26 Tom de Vries <tdevries@suse.de>
13802
13803 PR gdb/25603
13804 * symfile.c (set_initial_language): Exit-early if
13805 language_mode == language_mode_manual.
13806
450a1bfc
SM
138072020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13808
13809 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
13810 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
13811 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
13812
9e80cfa1
AB
138132020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
13814
13815 * gdbtypes.c (create_array_type_with_stride): Handle negative
13816 array strides.
13817 * valarith.c (value_subscripted_rvalue): Likewise.
13818
09624f1f
LM
138192020-02-25 Luis Machado <luis.machado@linaro.org>
13820
13821 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
13822
8cb5117c
SM
138232020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13824
13825 * loc.h (dwarf2_get_die_type): Move to...
13826 * read.h (dwarf2_get_die_type): ... here.
13827 * read.c (dwarf2_get_die_type): Move doc to header.
13828
c325c44e
JB
138292020-02-25 Joel Brobecker <brobecker@adacore.com>
13830
13831 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
13832 'gnulib/Makefile.in' to the list.
13833
4ac93832
TT
138342020-02-24 Tom Tromey <tom@tromey.com>
13835
13836 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
13837 Remove.
13838 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
13839 XOBNEWVEC.
13840
197400e8
TT
138412020-02-24 Tom Tromey <tom@tromey.com>
13842
13843 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
13844 New method.
13845 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
13846 (dw2_do_instantiate_symtab, dw2_get_file_names)
13847 (build_type_psymtab_dependencies, load_full_type_unit): Update.
13848
76935768
TT
138492020-02-24 Tom Tromey <tom@tromey.com>
13850
13851 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
13852 make_scoped_restore.
13853 (dwarf2_psymtab::read_symtab): Don't clear
13854 reading_partial_symbols.
13855
a88ef40d
TV
138562020-02-24 Tom de Vries <tdevries@suse.de>
13857
13858 PR gdb/25592
13859 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
13860
c9af6521
TV
138612020-02-24 Tom de Vries <tdevries@suse.de>
13862
13863 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
13864 commands layout next/prev/regs.
13865
5707a07a
TT
138662020-02-22 Tom Tromey <tom@tromey.com>
13867
13868 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
13869 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
13870
3b0fb49e
TT
138712020-02-22 Tom Tromey <tom@tromey.com>
13872
13873 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
13874
283be8bf
TT
138752020-02-22 Tom Tromey <tom@tromey.com>
13876
13877 * tui/tui-win.c (_initialize_tui_win): Add usage text.
13878 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
13879 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
13880 * tui/tui.c (_initialize_tui): Add usage text.
13881
ca793b96
TT
138822020-02-22 Tom Tromey <tom@tromey.com>
13883
13884 * tui/tui-win.c (tui_set_focus_command)
13885 (tui_set_win_height_command): Use error_no_arg.
13886 (_initialize_tui_win): Update help text.
13887 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
13888
432b5c40
TT
138892020-02-22 Tom Tromey <tom@tromey.com>
13890
13891 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
13892 * tui/tui-disasm.h (struct tui_disasm_window)
13893 <display_start_addr>: Declare.
13894 * tui/tui-source.h (struct tui_source_window)
13895 <display_start_addr>: Declare.
13896 * tui/tui-winsource.h (struct tui_source_window_base)
13897 <show_source_line, display_start_addr>: New methods.
13898 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
13899 Rename and move to protected section.
13900 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
13901 (tui_source_window_base::do_erase_source_content): Update.
13902 (tui_source_window_base::show_source_line): Now a method.
13903 (tui_source_window_base::show_source_content)
13904 (tui_source_window_base::tui_source_window_base)
13905 (tui_source_window_base::rerender)
13906 (tui_source_window_base::refill)
13907 (tui_source_window_base::do_scroll_horizontal)
13908 (tui_source_window_base::set_is_exec_point_at)
13909 (tui_source_window_base::update_breakpoint_info)
13910 (tui_source_window_base::update_exec_info): Update.
13911 * tui/tui-source.c (tui_source_window::set_contents)
13912 (tui_source_window::showing_source_p)
13913 (tui_source_window::do_scroll_vertical)
13914 (tui_source_window::location_matches_p)
13915 (tui_source_window::line_is_displayed): Update.
13916 (tui_source_window::display_start_addr): New method.
13917 * tui/tui-disasm.c (tui_disasm_window::set_contents)
13918 (tui_disasm_window::do_scroll_vertical)
13919 (tui_disasm_window::location_matches_p): Update.
13920 (tui_disasm_window::display_start_addr): New method.
13921
01b1af32
TT
139222020-02-22 Tom Tromey <tom@tromey.com>
13923
13924 * NEWS: Add entry for gdb.register_window_type.
13925 * tui/tui-layout.h (window_factory): New typedef.
13926 (tui_register_window): Declare.
13927 * tui/tui-layout.c (saved_tui_windows): New global.
13928 (tui_apply_current_layout): Use it.
13929 (tui_register_window): New function.
13930 * python/python.c (do_start_initialization): Call
13931 gdbpy_initialize_tui.
13932 (python_GdbMethods): Add "register_window_type" function.
13933 * python/python-internal.h (gdbpy_register_tui_window)
13934 (gdbpy_initialize_tui): Declare.
13935 * python/py-tui.c: New file.
13936 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
13937
fc96d20b
TT
139382020-02-22 Tom Tromey <tom@tromey.com>
13939
13940 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
13941
935c78c0
TT
139422020-02-22 Tom Tromey <tom@tromey.com>
13943
13944 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
13945 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
13946 * tui/tui-data.c (tui_set_win_with_focus): Remove.
13947 (tui_set_win_focus_to): Move from tui-win.c.
13948
0240c8f1
TT
139492020-02-22 Tom Tromey <tom@tromey.com>
13950
13951 * tui/tui-layout.c (make_standard_window, get_locator_window): New
13952 functions.
13953 (known_window_types): New global.
13954 (tui_get_window_by_name): Reimplement.
13955 (initialize_known_windows): New function.
13956 (validate_window_name): Rewrite.
13957 (_initialize_tui_layout): Call initialize_known_windows.
13958
fdb01f0c
TT
139592020-02-22 Tom Tromey <tom@tromey.com>
13960
13961 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
13962 Remove constants.
13963 * tui/tui-winsource.h (struct tui_source_window_base)
13964 <tui_source_window_base>: Remove parameter.
13965 * tui/tui-winsource.c
13966 (tui_source_window_base::tui_source_window_base): Remove
13967 parameter.
13968 (tui_source_window_base::refill): Update.
13969 * tui/tui-stack.h (struct tui_locator_window)
13970 <tui_locator_window>: Update.
13971 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
13972 Default the constructor.
13973 * tui/tui-regs.h (struct tui_data_item_window)
13974 <tui_data_item_window>: Default the constructor.
13975 (struct tui_data_window) <tui_data_window>: Likewise.
13976 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
13977 Default the constructor.
13978 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
13979 Default the constructor.
13980 <type>: Remove.
13981 (struct tui_win_info) <tui_win_info>: Default the constructor.
13982 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
13983 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
13984 Default the constructor.
13985
865a5aec
TT
139862020-02-22 Tom Tromey <tom@tromey.com>
13987
13988 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
13989 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
13990 * tui/tui-win.c (tui_resize_all): Don't call
13991 tui_delete_invisible_windows.
13992 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
13993 done.
13994 (tui_set_layout): Update.
13995 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
13996 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
13997 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
13998
e098d18c
TT
139992020-02-22 Tom Tromey <tom@tromey.com>
14000
14001 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
14002 correctly.
14003
eb9c8874
TT
140042020-02-22 Tom Tromey <tom@tromey.com>
14005
14006 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
14007
7eed1a8e
TT
140082020-02-22 Tom Tromey <tom@tromey.com>
14009
14010 * tui/tui-winsource.h (struct tui_source_window_iterator)
14011 <inner_iterator>: New etytypedef.
14012 <tui_source_window_iterator>: Take "end" parameter.
14013 <tui_source_window_iterator>: Take iterator.
14014 <operator*, advance>: Update.
14015 <m_iter>: Change type.
14016 <m_end>: New field.
14017 (struct tui_source_windows) <begin, end>: Update.
14018 * tui/tui-layout.c (tui_windows): New global.
14019 (tui_apply_current_layout): Clear tui_windows.
14020 (tui_layout_window::apply): Update tui_windows.
14021 * tui/tui-data.h (tui_windows): Declare.
14022 (all_tui_windows): Now inline function.
14023 (class tui_window_iterator, struct all_tui_windows): Remove.
14024
7c043ba6
TT
140252020-02-22 Tom Tromey <tom@tromey.com>
14026
14027 PR tui/17850:
14028 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
14029 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
14030 "height" argument.
14031 (class tui_layout_window) <get_sizes>: Likewise.
14032 (class tui_layout_split) <tui_layout_split>: Add "vertical"
14033 argument.
14034 <get_sizes>: Add "height" argument.
14035 <m_vertical>: New field.
14036 * tui/tui-layout.c (tui_layout_split::clone): Update.
14037 (tui_layout_split::get_sizes): Add "height" argument.
14038 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
14039 (tui_new_layout_command): Parse "-horizontal".
14040 (_initialize_tui_layout): Update help string.
14041 (tui_layout_split::specification): Add "-horizontal" when needed.
14042 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
14043 argument.
14044 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
14045 New methods.
14046
6bc56648
TT
140472020-02-22 Tom Tromey <tom@tromey.com>
14048
14049 * tui/tui-layout.h (enum tui_adjust_result): New.
14050 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
14051 (class tui_layout_window) <adjust_size>: Return
14052 tui_adjust_result. Rewrite.
14053 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
14054 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
14055
c22fef7e
TT
140562020-02-22 Tom Tromey <tom@tromey.com>
14057
14058 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
14059 parameter and return types.
14060 (class tui_layout_base) <specification>: Add "depth".
14061 (class tui_layout_window) <specification>: Add "depth".
14062 (class tui_layout_split) <specification>: Add "depth".
14063 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
14064 and return types.
14065 (tui_new_layout_command): Parse sub-layouts.
14066 (_initialize_tui_layout): Update help string.
14067 (tui_layout_window::specification): Add "depth".
14068 (add_layout_command): Update.
14069
ee325b61
TT
140702020-02-22 Tom Tromey <tom@tromey.com>
14071
14072 * NEWS: Add "tui new-layout" item.
14073 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
14074 Add new-layout command to help text.
14075 (validate_window_name): New function.
14076 (tui_new_layout_command): New function.
14077 (_initialize_tui_layout): Register "new-layout".
14078 (tui_layout_window::specification): New method.
14079 (tui_layout_window::specification): New method.
14080 * tui/tui-layout.h (class tui_layout_base) <specification>: New
14081 method.
14082 (class tui_layout_window) <specification>: New method.
14083 (class tui_layout_split) <specification>: New method.
14084
416eb92d
TT
140852020-02-22 Tom Tromey <tom@tromey.com>
14086
14087 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
14088 * tui/tui-win.c (window_name_completer): Update comment.
14089 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
14090 Declare method.
14091 (class tui_layout_window) <replace_window>: Likewise.
14092 (class tui_layout_split) <replace_window>: Likewise.
14093 (tui_set_layout): Don't declare.
14094 (tui_set_initial_layout): Declare function.
14095 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
14096 (asm_regs_layout): New globals.
14097 (tui_current_layout, show_layout): Remove.
14098 (tui_set_layout, tui_add_win_to_layout): Rewrite.
14099 (find_layout, tui_apply_layout): New function.
14100 (layout_completer): Remove.
14101 (tui_next_layout): Reimplement.
14102 (tui_next_layout_command): New function.
14103 (tui_set_initial_layout, tui_prev_layout_command): New functions.
14104 (tui_regs_layout): Reimplement.
14105 (tui_regs_layout_command): New function.
14106 (extract_display_start_addr): Rewrite.
14107 (next_layout, prev_layout): Remove.
14108 (tui_layout_window::replace_window): New method.
14109 (tui_layout_split::replace_window): New method.
14110 (destroy_layout): New function.
14111 (layout_list): New global.
14112 (add_layout_command): New function.
14113 (initialize_layouts): Update.
14114 (tui_layout_command): New function.
14115 (_initialize_tui_layout): Install "layout" commands.
14116 * tui/tui-data.h (enum tui_layout_type): Remove.
14117 (tui_current_layout): Don't declare.
14118
0dbc2fc7
TT
141192020-02-22 Tom Tromey <tom@tromey.com>
14120
14121 * tui/tui-regs.c (tui_reg_layout): Remove.
14122 (tui_reg_command): Use tui_regs_layout.
14123 * tui/tui-layout.h (tui_reg_command): Declare.
14124 * tui/tui-layout.c (tui_reg_command): New function.
14125
5afe342e
TT
141262020-02-22 Tom Tromey <tom@tromey.com>
14127
14128 * tui/tui.c (tui_rl_delete_other_windows): Call
14129 tui_remove_some_windows.
14130 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
14131 Declare method.
14132 (class tui_layout_window) <remove_windows>: New method.
14133 (class tui_layout_split) <remove_windows>: Declare.
14134 (tui_remove_some_windows): Declare.
14135 * tui/tui-layout.c (tui_remove_some_windows): New function.
14136 (tui_layout_split::remove_windows): New method.
14137
427326a8
TT
141382020-02-22 Tom Tromey <tom@tromey.com>
14139
14140 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
14141 * tui/tui-layout.h (tui_next_layout): Declare.
14142 * tui/tui-layout.c (tui_next_layout): New function.
14143
3fe12b6d
TT
141442020-02-22 Tom Tromey <tom@tromey.com>
14145
14146 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
14147 correct coordinates.
14148
59b8b5d2
TT
141492020-02-22 Tom Tromey <tom@tromey.com>
14150
14151 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
14152 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
14153 DATA_WIN case.
14154
2a3d458b
TT
141552020-02-22 Tom Tromey <tom@tromey.com>
14156
14157 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
14158 TUI_DISASM_WIN, not tui_win_list.
14159
3f0cbb04
TT
141602020-02-22 Tom Tromey <tom@tromey.com>
14161
14162 * valprint.c (generic_val_print_enum_1)
14163 (val_print_type_code_flags): Style member names.
14164 * rust-lang.c (val_print_struct, rust_print_enum)
14165 (rust_print_struct_def, rust_internal_print_type): Style member
14166 names.
14167 * p-valprint.c (pascal_object_print_value_fields): Style member
14168 names. Only call fprintf_symbol_filtered for static members.
14169 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
14170 * f-valprint.c (f_val_print): Style member names.
14171 * f-typeprint.c (f_type_print_base): Style member names.
14172 * cp-valprint.c (cp_print_value_fields): Style member names. Only
14173 call fprintf_symbol_filtered for static members.
14174 (cp_print_class_member): Style member names.
14175 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
14176 member names.
14177 * ada-valprint.c (ada_print_scalar): Style enum names.
14178 (ada_val_print_enum): Likewise.
14179 * ada-typeprint.c (print_enum_type): Style enum names.
14180
d4d947ae
TT
141812020-02-21 Tom Tromey <tom@tromey.com>
14182
14183 * psympriv.h (struct partial_symtab): Update comment.
14184
e94e944b
TT
141852020-02-21 Tom Tromey <tromey@adacore.com>
14186
14187 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
14188 type is CORE_ADDR.
14189
1eb73179
TV
141902020-02-21 Tom de Vries <tdevries@suse.de>
14191
14192 PR gdb/25534
14193 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
14194 if dependencies[i]->user != NULL.
14195
4f180d53
AT
141962020-02-21 Ali Tamur <tamur@google.com>
14197
14198 * dwarf2/read.c (dwarf2_name): Add null check.
14199
22b6cd70
TT
142002020-02-20 Tom Tromey <tom@tromey.com>
14201
14202 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
14203 ">=", in binary search.
14204 (dwarf2_find_containing_comp_unit): New overload.
14205 (run_test): New self-test.
14206 (_initialize_dwarf2_read): Register new test.
14207
bd0cf5a6
NC
142082020-02-20 Nelson Chu <nelson.chu@sifive.com>
14209
14210 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
14211 * riscv-tdep.h: Likewise.
14212 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
14213 rv32-only CSR.
14214 * features/riscv/64bit-csr.xml: Regenerated.
14215
3f702acd
SDJ
142162020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
14217 Tom Tromey <tom@tromey.com>
14218
14219 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
14220 of 'fputc_unfiltered'.
14221 (putchar_unfiltered): Call 'fputc_unfiltered'.
14222 (fputc_unfiltered): Call 'fputs_unfiltered'.
14223
d13c7322
AB
142242020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
14225
14226 * config.in: Regenerate.
14227 * configure: Regenerate.
14228 * configure.ac: Add --with-python-libdir option.
14229 * main.c: Use WITH_PYTHON_LIBDIR.
14230
869d8950
TT
142312020-02-19 Tom Tromey <tom@tromey.com>
14232
14233 * symtab.c (general_symbol_info::compute_and_set_names): Use
14234 obstack_strndup. Simplify call to symbol_set_demangled_name.
14235
298e9637
SM
142362020-02-19 Simon Marchi <simon.marchi@efficios.com>
14237
14238 * dwarf2/read.c (allocate_signatured_type_table,
14239 allocate_dwo_unit_table, allocate_type_unit_groups_table,
14240 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
14241 Remove objfile parameter, update all callers.
14242
08410482
DE
142432020-02-19 Doug Evans <dje@google.com>
14244
14245 PR rust/25535
14246 * rust-lang.c (rust_print_enum): Apply embedded_offset to
14247 rust_enum_variant calculation.
14248
dfdeeca1
TT
142492020-02-19 Tom Tromey <tromey@adacore.com>
14250
14251 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
14252
2ef5453b
TT
142532020-02-19 Tom Tromey <tromey@adacore.com>
14254
14255 * ada-lang.c (cache_symbol): Use obstack_strdup.
14256
9f1528a1
AB
142572020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14258
14259 * configure: Regenerate.
14260
d3c22fa8
TT
142612020-02-19 Tom Tromey <tromey@adacore.com>
14262
14263 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
14264 NULL check.
14265
bf84f706
MR
142662020-02-19 Maciej W. Rozycki <macro@wdc.com>
14267
14268 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
14269
d1c9b20f
AB
142702020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14271
14272 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
14273 if GDBSERVER is not defined.
14274 (riscv_tdesc_cache): Likewise, also store const target_desc.
14275 (STATIC_IN_GDB): Define.
14276 (riscv_create_target_description): Update declaration with
14277 STATIC_IN_GDB.
14278 (riscv_lookup_target_description): New function, only define if
14279 GDBSERVER is not defined.
14280 * arch/riscv.h (riscv_create_target_description): Declare only
14281 when GDBSERVER is defined.
14282 (riscv_lookup_target_description): New declaration when GDBSERVER
14283 is not defined.
14284 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
14285 (riscv_linux_read_features): ...this, and return
14286 riscv_gdbarch_features instead of target_desc.
14287 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
14288 (riscv_linux_read_description): Rename to...
14289 (riscv_linux_read_features): ...this.
14290 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14291 Update to use riscv_gdbarch_features and
14292 riscv_lookup_target_description.
14293 * riscv-tdep.c (riscv_find_default_target_description): Use
14294 riscv_lookup_target_description instead of
14295 riscv_create_target_description.
14296
373d7ac0
SM
142972020-02-18 Simon Marchi <simon.marchi@efficios.com>
14298
14299 * valprint.c (generic_val_print_enum_1): When printing a flag
14300 enum with value 0 and there is no enumerator with value 0, print
14301 just "0" instead of "(unknown: 0x0)".
14302
b29a2df0
SM
143032020-02-18 Simon Marchi <simon.marchi@efficios.com>
14304
14305 * valprint.c (generic_val_print_enum_1): Print unknown part of
14306 flag enum in hex.
14307
6740f0cc
SM
143082020-02-18 Simon Marchi <simon.marchi@efficios.com>
14309
14310 * dwarf2/read.c (update_enumeration_type_from_children): Allow
14311 flag enums to contain duplicate enumerators.
14312 * valprint.c (generic_val_print_enum_1): Update comment.
14313
edd45eb0
SM
143142020-02-18 Simon Marchi <simon.marchi@efficios.com>
14315
14316 * dwarf2/read.c: Include "count-one-bits.h".
14317 (update_enumeration_type_from_children): If an enumerator has
14318 multiple bits set, don't treat the enumeration as a "flag enum".
14319 * valprint.c (generic_val_print_enum_1): Assert that enumerators
14320 of flag enums have 0 or 1 bit set.
14321
6d0cf446
BE
143222020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
14323
14324 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
14325 conversion.
14326 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14327 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14328 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14329 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14330 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14331
7001c1b7
SM
143322020-02-18 Simon Marchi <simon.marchi@efficios.com>
14333
14334 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
14335
fdb61c6c
SM
143362020-02-14 Simon Marchi <simon.marchi@efficios.com>
14337
14338 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
14339 displaced_step_closure_up.
14340 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14341 (struct displaced_step_closure_up):
14342 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14343 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14344 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
14345 Likewise.
14346 * gdbarch.sh (displaced_step_copy_insn): Likewise.
14347 * gdbarch.c, gdbarch.h: Re-generate.
14348 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
14349 displaced_step_closure_up.
14350 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14351 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14352 * infrun.h (displaced_step_closure_up): New type alias.
14353 (struct displaced_step_inferior_state) <step_closure>: Change
14354 type to displaced_step_closure_up.
14355 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
14356 displaced_step_closure_up.
14357 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14358
a4a38eb4
TT
143592020-02-14 Tom Tromey <tom@tromey.com>
14360
14361 * minidebug.c (gnu_debug_key): New global.
14362 (find_separate_debug_file_in_section): Use it.
14363
e8217e61
SM
143642020-02-14 Simon Marchi <simon.marchi@efficios.com>
14365
14366 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
14367 std::unique_ptr.
14368 * gdbarch.c: Re-generate.
14369 * gdbarch.h: Re-generate.
14370 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
14371 change.
14372 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
14373 type to std::unique_ptr.
14374 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14375 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14376 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14377 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14378 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
14379 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14380 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14381 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14382 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14383
d8d83535
SM
143842020-02-14 Simon Marchi <simon.marchi@efficios.com>
14385
14386 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
14387 std::unique_ptr.
14388 (displaced_step_clear): Rename to...
14389 (displaced_step_reset): ... this. Just call displaced->reset ().
14390 (displaced_step_clear_cleanup): Rename to...
14391 (displaced_step_reset_cleanup): ... this.
14392 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
14393 (displaced_step_fixup): Likewise.
14394 (resume_1): Likewise.
14395 (handle_inferior_event): Restore child's memory before calling
14396 displaced_step_fixup on the parent.
14397 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
14398 to std::unique_ptr.
14399 <step_closure>: Change type to std::unique_ptr.
14400
5f661e03
SM
144012020-02-14 Simon Marchi <simon.marchi@efficios.com>
14402
14403 * arm-tdep.c: Include count-one-bits.h.
14404 (cleanup_block_store_pc): Use count_one_bits.
14405 (cleanup_block_load_pc): Use count_one_bits.
14406 (arm_copy_block_xfer): Use count_one_bits.
14407 (thumb2_copy_block_xfer): Use count_one_bits.
14408 (thumb_copy_pop_pc_16bit): Use count_one_bits.
14409 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
14410 (thumb_get_next_pcs_raw): Use count_one_bits.
14411 (arm_get_next_pcs_raw): Use count_one_bits_l.
14412 * arch/arm.c (bitcount): Remove.
14413 * arch/arm.h (bitcount): Remove.
14414
8084e579
TT
144152020-02-14 Tom Tromey <tromey@adacore.com>
14416
14417 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
14418 Update.
14419 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
14420 * dwarf2/loc.c (call_site_find_chain_1): Return
14421 unique_xmalloc_ptr.
14422 (call_site_find_chain): Likewise.
14423
258bf0ee
RB
144242020-02-14 Richard Biener <rguenther@suse.de>
14425
14426 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
14427 on expression with division operators.
14428
f98a8458
AKS
144292020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14430
14431 * MAINTAINERS (Write After Approval): Adding myself.
14432
d1437c0e
TT
144332020-02-12 Tom Tromey <tom@tromey.com>
14434
14435 * event-loop.c (event_data, gdb_event, event_handler_func):
14436 Remove.
14437
3d4560f7
TT
144382020-02-12 Tom Tromey <tom@tromey.com>
14439
14440 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
14441 (dwarf2_frame_objfile_data): Add comment.
14442 (find_comp_unit, set_comp_unit): New functions.
14443 (dwarf2_frame_find_fde): Use find_comp_unit.
14444 (dwarf2_build_frame_info): Use set_comp_unit.
14445
21982304
TT
144462020-02-12 Tom Tromey <tom@tromey.com>
14447
14448 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
14449 (comp_unit): Don't initialize objfile.
14450 (execute_cfa_program): Add text_offset parameter.
14451 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
14452 (dwarf2_frame_cache): Update.
14453 (dwarf2_build_frame_info): Don't set "objfile" member.
14454
4debb237
TT
144552020-02-12 Tom Tromey <tom@tromey.com>
14456
14457 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
14458 (decode_frame_entry): Likewise.
14459 (dwarf2_build_frame_info): Update.
14460
0d404d44
TT
144612020-02-12 Tom Tromey <tom@tromey.com>
14462
14463 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
14464 (decode_frame_entry_1): Use the comp_unit obstack.
14465
a7a3ae5c
TT
144662020-02-12 Tom Tromey <tom@tromey.com>
14467
14468 * dwarf2/frame.c (struct comp_unit): Add initializers and
14469 constructor.
14470 (dwarf2_frame_objfile_data): Store a comp_unit.
14471 (dwarf2_frame_find_fde): Update.
14472 (dwarf2_build_frame_info): Use "new".
14473
a9d65418
TT
144742020-02-12 Tom Tromey <tom@tromey.com>
14475
14476 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
14477 (dwarf2_fde_table): Typedef for std::vector.
14478 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
14479 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
14480 (decode_frame_entry): Update.
14481 (dwarf2_build_frame_info): Use "new".
14482
7559c217
CB
144832020-02-12 Christian Biesinger <cbiesinger@google.com>
14484
14485 * arm-tdep.c (arm_gdbarch_init): Update.
14486 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
14487 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
14488 have_neon, is_m>: Change to bool.
14489
aeefc73c
CB
144902020-02-12 Christian Biesinger <cbiesinger@google.com>
14491
14492 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
14493
d27b8e5f
TT
144942020-02-12 Tom Tromey <tom@tromey.com>
14495
14496 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
14497
cd5900f3
HD
144982020-02-12 Hannes Domani <ssbssa@yahoo.de>
14499
14500 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
14501 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
14502
f056b22b
TT
145032020-02-11 Tom Tromey <tom@tromey.com>
14504
14505 * psymtab.h: Update comment.
14506
f92ff6b5
TT
145072020-02-11 Tom Tromey <tom@tromey.com>
14508
14509 * gdb_obstack.h (struct auto_obstack): Use
14510 DISABLE_COPY_AND_ASSIGN.
14511
3fd6912b
TT
145122020-02-11 Tom Tromey <tom@tromey.com>
14513
14514 * dwarf2/frame.h (struct objfile): Don't forward declare.
14515
69ed9b74
CB
145162020-02-11 Christian Biesinger <cbiesinger@google.com>
14517
14518 * cris-tdep.c (cris_supply_gregset): Change signature to match
14519 what struct regset expects.
14520 (cris_regset): New struct.
14521 (fetch_core_registers): Remove.
14522 (cris_iterate_over_regset_sections): New function.
14523 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
14524 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
14525
bda874f6
CB
145262020-02-11 Christian Biesinger <cbiesinger@google.com>
14527
14528 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
14529 registers.
14530
754e1564
CB
145312020-02-11 Christian Biesinger <cbiesinger@google.com>
14532
14533 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
14534
8ddd8e0e
SM
145352020-02-11 Simon Marchi <simon.marchi@efficios.com>
14536
14537 * configure: Re-generate.
14538
898e7f60
SM
145392020-02-11 Simon Marchi <simon.marchi@efficios.com>
14540
14541 * configure: Re-generate.
14542
58df732b
SM
145432020-02-11 Simon Marchi <simon.marchi@efficios.com>
14544
14545 * acinclude: Update warning.m4 path.
14546 * warning.m4: Move to gdbsupport.
14547
da5bd37e
TT
145482020-02-11 Tom Tromey <tromey@adacore.com>
14549
14550 * remote.c (remote_console_output): Update.
14551 * printcmd.c (printf_command): Update.
14552 * event-loop.c (gdb_wait_for_event): Update.
14553 * linux-nat.c (sigchld_handler): Update.
14554 * remote-sim.c (gdb_os_write_stdout): Update.
14555 (gdb_os_flush_stdout): Update.
14556 (gdb_os_flush_stderr): Update.
14557 (gdb_os_write_stderr): Update.
14558 * exceptions.c (print_exception): Update.
14559 * remote-fileio.c (remote_fileio_func_read): Update.
14560 (remote_fileio_func_write): Update.
14561 * tui/tui.c (tui_enable): Update.
14562 * tui/tui-interp.c (tui_interp::init): Update.
14563 * utils.c (init_page_info): Update.
14564 (putchar_unfiltered, fputc_unfiltered): Update.
14565 (gdb_flush): Update.
14566 (emit_style_escape): Update.
14567 (flush_wrap_buffer, fputs_maybe_filtered): Update.
14568 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
14569 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
14570 (stderr_file::write): Update.
14571 (stderr_file::puts): Update.
14572 * ui-file.h (ui_file_isatty, ui_file_write)
14573 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
14574 (ui_file_puts): Don't declare.
14575
85f0dd3c
TV
145762020-02-10 Tom de Vries <tdevries@suse.de>
14577
14578 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
14579 sentinel to char *.
14580
2e927613
TV
145812020-02-09 Tom de Vries <tdevries@suse.de>
14582
14583 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
14584 filename if it matches "<artificial>".
14585
6bafc845
HD
145862020-02-09 Hannes Domani <ssbssa@yahoo.de>
14587
14588 * windows-tdep.c (struct enum_value_name): New struct.
14589 (create_enum): New function.
14590 (windows_get_siginfo_type): Create and use enum types.
14591
7928d571
HD
145922020-02-09 Hannes Domani <ssbssa@yahoo.de>
14593
14594 * NEWS: Mention $_siginfo support for Windows.
14595 * windows-nat.c (handle_exception): Set siginfo_er.
14596 (windows_nat_target::mourn_inferior): Reset siginfo_er.
14597 (windows_xfer_siginfo): New function.
14598 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
14599 * windows-tdep.c (struct windows_gdbarch_data): New struct.
14600 (init_windows_gdbarch_data): New function.
14601 (get_windows_gdbarch_data): New function.
14602 (windows_get_siginfo_type): New function.
14603 (windows_init_abi): Register windows_get_siginfo_type.
14604 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
14605
6751ebae
TT
146062020-02-08 Tom Tromey <tom@tromey.com>
14607
14608 * dwarf2/read.c (class cutu_reader) <cutu_reader,
14609 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
14610 <keep>: Declare method.
14611 <m_keep>: Remove member.
14612 <~cutu_reader>: Remove.
14613 (cutu_reader::init_tu_and_read_dwo_dies): Update.
14614 (cutu_reader::cutu_reader): Update.
14615 (cutu_reader::keep): Rename from ~cutu_reader.
14616 (process_psymtab_comp_unit, build_type_psymtabs_1)
14617 (process_skeletonless_type_unit, load_partial_comp_unit)
14618 (load_full_comp_unit, dwarf2_read_addr_index)
14619 (read_signatured_type): Update.
14620
135f5437
TT
146212020-02-08 Tom Tromey <tom@tromey.com>
14622
14623 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
14624 "want_partial_unit" parameter.
14625 (process_psymtab_comp_unit): Change want_partial_unit to bool.
14626 Inline check for DW_TAG_partial_unit.
14627 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
14628
9f66ff1c
TT
146292020-02-08 Tom Tromey <tom@tromey.com>
14630
14631 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
14632 read.c.
14633 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
14634 read.c.
14635
c8a7a66f
TT
146362020-02-08 Tom Tromey <tom@tromey.com>
14637
14638 * dwarf2/read.c (read_address): Move to comp-unit.c.
14639 (dwarf2_rnglists_process, dwarf2_ranges_process)
14640 (read_attribute_value, dwarf_decode_lines_1)
14641 (var_decode_location, decode_locdesc): Update.
14642 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
14643 read.c. Remove "cu" parameter.
14644 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
14645 method.
14646
8266302d
TT
146472020-02-08 Tom Tromey <tom@tromey.com>
14648
14649 * dwarf2/read.c (read_attribute_value, read_indirect_string)
14650 (read_indirect_line_string): Update.
14651 * dwarf2/comp-unit.c (read_offset): Remove.
14652 (read_comp_unit_head): Update.
14653 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
14654 method.
14655 (read_offset): Don't declare.
14656
4057dfde
TT
146572020-02-08 Tom Tromey <tom@tromey.com>
14658
14659 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
14660 * dwarf2/read.c (struct comp_unit_head): Move to
14661 dwarf2/comp-unit.h.
14662 (enum class rcuh_kind): Move to comp-unit.h.
14663 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
14664 (read_comp_unit_head, error_check_comp_unit_head)
14665 (read_and_check_comp_unit_head): Move to comp-unit.c.
14666 (read_offset, dwarf_unit_type_name): Likewise.
14667 (create_debug_type_hash_table, read_cutu_die_from_dwo)
14668 (cutu_reader::cutu_reader, read_call_site_scope)
14669 (find_partial_die, follow_die_offset): Update.
14670 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
14671
24aa364d
TT
146722020-02-08 Tom Tromey <tom@tromey.com>
14673
14674 * dwarf2/read.c (read_offset_1): Move to leb.c.
14675 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
14676 (dwarf_decode_macro_bytes): Update.
14677 * dwarf2/leb.c (read_offset): Rename; move from read.c.
14678 * dwarf2/leb.h (read_offset): Declare.
14679
2c7d5afc
TT
146802020-02-08 Tom Tromey <tom@tromey.com>
14681
14682 * dwarf2/read.c (dwarf2_section_size): Remove.
14683 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
14684 Update.
14685 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
14686
4075cb26
TT
146872020-02-08 Tom Tromey <tom@tromey.com>
14688
14689 * dwarf2/read.c (read_initial_length): Move to leb.c.
14690 * dwarf2/leb.h (read_initial_length): Declare.
14691 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
14692 handle_nonstd parameter.
14693 * dwarf2/frame.c (read_initial_length): Remove.
14694 (decode_frame_entry_1): Update.
14695
09ba997f
TT
146962020-02-08 Tom Tromey <tom@tromey.com>
14697
14698 * dwarf2/loc.c (dwarf2_find_location_expression)
14699 (dwarf_evaluate_loc_desc::get_tls_address)
14700 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14701 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
14702 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
14703 (dwarf2_compile_property_to_c)
14704 (dwarf2_loc_desc_get_symbol_read_needs)
14705 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
14706 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
14707 (loclist_describe_location, loclist_tracepoint_var_ref)
14708 (loclist_generate_c_location): Update.
14709 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
14710 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
14711 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
14712 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
14713 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
14714 (dwarf2_per_cu_data::addr_size)
14715 (dwarf2_per_cu_data::ref_addr_size)
14716 (dwarf2_per_cu_data::text_offset)
14717 (dwarf2_per_cu_data::addr_type): Now methods.
14718 (per_cu_header_read_in): Make per_cu "const".
14719 (dwarf2_version): Remove.
14720 (dwarf2_per_cu_data::int_type): Now a method.
14721 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
14722 (set_die_type, read_array_type, read_subrange_index_type)
14723 (read_tag_string_type, read_subrange_type): Update.
14724 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
14725 offset_size, ref_addr_size, text_offset, addr_type, version,
14726 objfile, int_type, addr_sized_int_type>: Declare methods.
14727
96c738c0
TT
147282020-02-08 Tom Tromey <tom@tromey.com>
14729
14730 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
14731 Move earlier.
14732
8fdd972c
TT
147332020-02-08 Tom Tromey <tom@tromey.com>
14734
14735 * dwarf2/read.h (dwarf_line_debug): Declare.
14736 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
14737 * dwarf2/read.c: Move line_header code to new files.
14738 (dwarf_line_debug): No longer static.
14739 * dwarf2/line-header.c: New file.
14740 * dwarf2/line-header.h: New file.
14741
03075812
TT
147422020-02-08 Tom Tromey <tom@tromey.com>
14743
14744 * dwarf2/read.c (struct line_header) <file_full_name,
14745 file_file_name>: Return unique_xmalloc_ptr.
14746 (line_header::file_file_name): Update.
14747 (line_header::file_full_name): Update.
14748 (dw2_get_file_names_reader): Update.
14749 (macro_start_file): Update.
14750
bb822404
TT
147512020-02-08 Tom Tromey <tom@tromey.com>
14752
14753 * dwarf2/read.c (struct line_header) <file_full_name,
14754 file_file_name>: Declare methods.
14755 (dw2_get_file_names_reader): Update.
14756 (file_file_name): Now a method.
14757 (file_full_name): Likewise.
14758 (macro_start_file): Update.
14759
009b64fc
TT
147602020-02-08 Tom Tromey <tom@tromey.com>
14761
14762 * dwarf2/read.c (dwarf_always_disassemble)
14763 (show_dwarf_always_disassemble): Move to loc.c.
14764 (_initialize_dwarf2_read): Move "always-disassemble" registration
14765 to loc.c.
14766 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
14767 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
14768 static.
14769 (show_dwarf_always_disassemble): Move from read.c.
14770 (_initialize_dwarf2loc): Move always-disassemble from read.c.
14771
5895093f
TT
147722020-02-08 Tom Tromey <tom@tromey.com>
14773
14774 * dwarf2/read.c (~dwarf2_per_objfile): Update.
14775 (create_quick_file_names_table): Return htab_up.
14776 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
14777 Update.
14778 * dwarf2/read.h (struct dwarf2_per_objfile)
14779 <quick_file_names_table>: Now htab_up.
14780
b3b32279
TT
147812020-02-08 Tom Tromey <tom@tromey.com>
14782
14783 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
14784
1d33d811
TT
147852020-02-08 Tom Tromey <tom@tromey.com>
14786
14787 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
14788 Rewrite.
14789 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
14790 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
14791 (abbrev_table::abbrev_table): No longer inline.
14792 (ABBREV_HASH_SIZE): Remove.
14793 (abbrev_table::m_abbrevs): Now an htab_up.
14794
86de1d91
TT
147952020-02-08 Tom Tromey <tom@tromey.com>
14796
14797 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
14798 (cutu_reader): Update.
14799 (build_type_psymtabs_1): Update.
14800 * dwarf2/abbrev.c (abbrev_table::read): Rename.
14801 (abbrev_table::alloc_abbrev): Update.
14802 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
14803 (abbrev_table::read): New static method, renamed from
14804 abbrev_table_read_table.
14805 (abbrev_table::alloc_abbrev)
14806 (abbrev_table::add_abbrev): Now private.
14807 (abbrev_table::abbrev_table): Now private.
14808 (abbrev_table::m_abbrev_obstack): Now private. Rename.
14809
0335378b
TT
148102020-02-08 Tom Tromey <tom@tromey.com>
14811
14812 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
14813 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
14814 htab_up.
14815
48b490f2
TT
148162020-02-08 Tom Tromey <tom@tromey.com>
14817
14818 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
14819 htab_up.
14820 (lookup_dwo_unit_in_dwp): Update.
14821 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
14822 on obstack.
14823
bc68fb19
TT
148242020-02-08 Tom Tromey <tom@tromey.com>
14825
14826 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
14827 obstack.
14828
d15acc42
TT
148292020-02-08 Tom Tromey <tom@tromey.com>
14830
14831 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
14832 line_header_hash.
14833 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
14834 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
14835 Change type to htab_up.
14836
eaa5fa8b
TT
148372020-02-08 Tom Tromey <tom@tromey.com>
14838
14839 * dwarf2/read.c (allocate_type_unit_groups_table): Return
14840 htab_up. Don't allocate on obstack.
14841 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
14842 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
14843 Change type to htab_up.
14844
b0b6a987
TT
148452020-02-08 Tom Tromey <tom@tromey.com>
14846
14847 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
14848 Change type to htab_up.
14849 * dwarf2/read.c (create_signatured_type_table_from_index)
14850 (create_signatured_type_table_from_debug_names)
14851 (create_all_type_units, add_type_unit)
14852 (lookup_dwo_signatured_type, lookup_signatured_type)
14853 (process_skeletonless_type_unit): Update.
14854 (create_debug_type_hash_table, create_debug_types_hash_table):
14855 Change type of types_htab.
14856 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
14857 htab_up. Don't allocate on obstack.
14858 (create_cus_hash_table): Change type of cus_htab parameter.
14859 (struct dwo_file) <cus, tus>: Now htab_up.
14860 (lookup_dwo_signatured_type, lookup_dwo_cutu)
14861 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
14862 (queue_and_load_all_dwo_tus): Update.
14863 * dwarf2/index-write.c (write_gdbindex): Update.
14864 (write_debug_names): Update.
14865
39856def
TT
148662020-02-08 Tom Tromey <tom@tromey.com>
14867
14868 * dwarf2/read.h (struct dwarf2_queue_item): Move from
14869 dwarf2/read.c. Remove "next" member. Add constructor ntad
14870 destructor.
14871 (struct dwarf2_per_objfile) <queue>: New member.
14872 * dwarf2/read.c (struct dwarf2_queue_item): Move to
14873 dwarf2/read.h.
14874 (dwarf2_queue, dwarf2_queue_tail): Remove.
14875 (class dwarf2_queue_guard): Add parameter to constructor. Use
14876 DISABLE_COPY_AND_ASSIGN.
14877 <m_per_objfile>: New member.
14878 <~dwarf2_queue_guard>: Rewrite.
14879 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
14880 Update.
14881 (~dwarf2_queue_item): New.
14882
3e225074
TT
148832020-02-08 Tom Tromey <tom@tromey.com>
14884
14885 * dwarf2/read.c (struct die_info) <has_children>: New member.
14886 (dw2_get_file_names_reader): Remove has_children.
14887 (dw2_get_file_names): Update.
14888 (read_cutu_die_from_dwo): Remove has_children.
14889 (cutu_reader::init_tu_and_read_dwo_dies)
14890 (cutu_reader::cutu_reader): Update.
14891 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
14892 Remove has_children.
14893 (build_type_psymtabs_1, process_skeletonless_type_unit)
14894 (load_partial_comp_unit, load_full_comp_unit): Update.
14895 (create_dwo_cu_reader): Remove has_children.
14896 (create_cus_hash_table, read_die_and_children): Update.
14897 (read_full_die_1,read_full_die): Remove has_children.
14898 (read_signatured_type): Update.
14899 (class cutu_reader) <has_children>: Remove.
14900
82ca8957
TT
149012020-02-08 Tom Tromey <tom@tromey.com>
14902
14903 * dwarf2/expr.c: Rename from dwarf2expr.c.
14904 * dwarf2/expr.h: Rename from dwarf2expr.h.
14905 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
14906 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
14907 * dwarf2/frame.c: Rename from dwarf2-frame.c.
14908 * dwarf2/frame.h: Rename from dwarf2-frame.h.
14909 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
14910 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
14911 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
14912 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
14913 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
14914 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
14915 * dwarf2/loc.c: Rename from dwarf2loc.c.
14916 * dwarf2/loc.h: Rename from dwarf2loc.h.
14917 * dwarf2/read.c: Rename from dwarf2read.c.
14918 * dwarf2/read.h: Rename from dwarf2read.h.
14919 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
14920 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
14921 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
14922 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
14923 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
14924 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
14925 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
14926 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
14927 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
14928 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
14929 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
14930 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
14931 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
14932 Update.
14933 * Makefile.in (COMMON_SFILES): Update.
14934 (HFILES_NO_SRCDIR): Update.
14935
9e35d499
TT
149362020-02-08 Tom Tromey <tom@tromey.com>
14937
14938 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
14939 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
14940
1eba2311
TT
149412020-02-08 Tom Tromey <tom@tromey.com>
14942
14943 * dwarf2read.h (struct die_info): Don't declare.
14944
e41c2da2
TT
149452020-02-08 Tom Tromey <tom@tromey.com>
14946
14947 * dwarf2read.h (die_info_ptr): Remove typedef.
14948
4fc6c0d5
TT
149492020-02-08 Tom Tromey <tom@tromey.com>
14950
14951 * dwarf2read.c (read_call_site_scope)
14952 (handle_data_member_location, dwarf2_add_member_fn)
14953 (mark_common_block_symbol_computed, read_common_block)
14954 (attr_to_dynamic_prop, partial_die_info::read)
14955 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
14956 (dwarf2_symbol_mark_computed, set_die_type): Update.
14957 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
14958 method.
14959 (attr_form_is_block): Don't declare.
14960 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
14961
cd6c91b4
TT
149622020-02-08 Tom Tromey <tom@tromey.com>
14963
14964 * dwarf2read.c (dwarf2_find_base_address, )
14965 (read_call_site_scope, rust_containing_type)
14966 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
14967 (handle_data_member_location, dwarf2_add_member_fn)
14968 (get_alignment, read_structure_type, process_structure_scope)
14969 (mark_common_block_symbol_computed, read_common_block)
14970 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
14971 (partial_die_info::read, read_attribute_value, new_symbol)
14972 (lookup_die_type, dwarf2_get_ref_die_offset)
14973 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
14974 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
14975 (dwarf2_symbol_mark_computed): Update.
14976 * dwarf2/attribute.h (struct attribute) <value_as_address,
14977 form_is_section_offset, form_is_constant, form_is_ref>: Declare
14978 methods.
14979 (value_as_address, attr_form_is_section_offset)
14980 (attr_form_is_constant, attr_form_is_ref): Don't declare.
14981 * dwarf2/attribute.c (attribute::value_as_address)
14982 (attribute::form_is_section_offset, attribute::form_is_constant)
14983 (attribute::form_is_ref): Now methods.
14984
162dce55
TT
149852020-02-08 Tom Tromey <tom@tromey.com>
14986
14987 * dwarf2read.c (struct attribute, DW_STRING)
14988 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
14989 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
14990 (attr_form_is_block, attr_form_is_section_offset)
14991 (attr_form_is_constant, attr_form_is_ref): Move.
14992 * dwarf2/attribute.h: New file.
14993 * dwarf2/attribute.c: New file, from dwarf2read.c.
14994 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
14995
3054dd54
TT
149962020-02-08 Tom Tromey <tom@tromey.com>
14997
14998 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
14999 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
15000 Move.
15001 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
15002 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
15003 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
15004 abbrev.c.
15005 * dwarf2/abbrev.h: New file.
15006 * dwarf2/abbrev.c: New file, from dwarf2read.c.
15007 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
15008
96b79293
TT
150092020-02-08 Tom Tromey <tom@tromey.com>
15010
15011 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
15012 (dwarf2_section_size, dwarf2_get_section_info)
15013 (create_signatured_type_table_from_debug_names)
15014 (create_addrmap_from_aranges, read_debug_names_from_section)
15015 (get_gdb_index_contents_from_section, read_comp_unit_head)
15016 (error_check_comp_unit_head, read_abbrev_offset)
15017 (create_debug_type_hash_table, init_cu_die_reader)
15018 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
15019 (read_comp_units_from_section, create_cus_hash_table)
15020 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
15021 (create_dwp_v2_section, dwarf2_rnglists_process)
15022 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
15023 (abbrev_table_read_table, read_indirect_string_at_offset_from)
15024 (read_indirect_string_from_dwz, read_addr_index_1)
15025 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
15026 (dwarf_decode_macro_bytes, dwarf_decode_macros)
15027 (fill_in_loclist_baton): Update.
15028 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
15029 get_containing_section, get_bfd_owner, get_bfd_section,
15030 get_file_name, get_id, get_flags, empty, read>: Declare methods.
15031 (dwarf2_read_section, get_section_name, get_section_file_name)
15032 (get_containing_section, get_section_bfd_owner)
15033 (get_section_bfd_section, get_section_name, get_section_file_name)
15034 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
15035 declare.
15036 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
15037 (dwarf2_section_info::get_bfd_owner)
15038 (dwarf2_section_info::get_bfd_section)
15039 (dwarf2_section_info::get_name)
15040 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
15041 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
15042 (dwarf2_section_info::read): Now methods.
15043 * dwarf-index-write.c (class debug_names): Update.
15044
2c86cff9
TT
150452020-02-08 Tom Tromey <tom@tromey.com>
15046
15047 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
15048 Move to dwarf2/section.h.
15049 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
15050 (get_section_bfd_section, get_section_name)
15051 (get_section_file_name, get_section_id, get_section_flags)
15052 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
15053 dwarf2/section.c.
15054 * dwarf2/section.h: New file.
15055 * dwarf2/section.c: New file, from dwarf2read.c.
15056 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
15057
f4382c45
TT
150582020-02-08 Tom Tromey <tom@tromey.com>
15059
15060 * dwarf2read.h (read_unsigned_leb128): Don't declare.
15061 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
15062 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
15063 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
15064 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
15065 * dwarf2/leb.h: New file, from dwarf2read.c.
15066 * dwarf2/leb.c: New file, from dwarf2read.c.
15067 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
15068 Remove.
15069 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
15070 (COMMON_SFILES): Add dwarf2/leb.c.
15071
01840b7a
JB
150722020-02-08 Joel Brobecker <brobecker@adacore.com>
15073
15074 GDB 9.1 released.
15075
dfcb27e4
IB
150762020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15077
15078 PR gdb/25190:
aac66a4c
SM
15079 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
15080 * gdb/remote.c (remote_console_output): Update.
15081 * gdb/ui-file.c (fputs_unfiltered): Rename to...
15082 (ui_file_puts): ...this.
15083 * gdb/ui-file.h (ui_file_puts): Add declaration.
15084 * gdb/utils.c (emit_style_escape): Update.
15085 (flush_wrap_buffer): Update.
15086 (fputs_maybe_filtered): Update.
15087 (fputs_unfiltered): Add function.
dfcb27e4 15088
faa17681
IB
150892020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15090
aac66a4c
SM
15091 * gdb/event-loop.c (gdb_wait_for_event): Update.
15092 * gdb/printcmd.c (printf_command): Update.
15093 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
15094 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
15095 (gdb_os_flush_stderr): Update.
15096 * gdb/remote.c (remote_console_output): Update.
15097 * gdb/ui-file.c (gdb_flush): Rename to...
15098 (ui_file_flush): ...this.
15099 (stderr_file::write): Update.
15100 (stderr_file::puts): Update.
15101 * gdb/ui-file.h (gdb_flush): Rename to...
15102 (ui_file_flush): ...this.
15103 * gdb/utils.c (gdb_flush): Add function.
15104 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 15105
5abbbe1d
TT
151062020-02-07 Tom Tromey <tromey@adacore.com>
15107
15108 PR breakpoints/24915:
15109 * source.c (find_and_open_source): Do not check basenames_may_differ.
15110
919adfe8
TT
151112020-02-07 Tom Tromey <tom@tromey.com>
15112
15113 * README: Update gdbserver documentation.
15114 * gdbserver: Move to top level.
15115 * configure.tgt (build_gdbserver): Remove.
15116 * configure.ac: Remove --enable-gdbserver.
15117 * configure: Rebuild.
15118 * Makefile.in (distclean): Don't mention gdbserver.
15119
1d5d29e7
SV
151202020-02-06 Shahab Vahedi <shahab@synopsys.com>
15121
15122 * source-cache.c (source_cache::ensure): Surround
15123 get_plain_source_lines with a try/catch.
15124 (source_cache::get_line_charpos): Get rid of try/catch
15125 and only check for the return value of "ensure".
15126 * tui/tui-source.c (tui_source_window::set_contents):
15127 Simplify "nlines" calculation.
15128
6eb1129c
SV
151292020-02-06 Shahab Vahedi <shahab@synopsys.com>
15130
15131 * MAINTAINERS (Write After Approval): Add myself.
15132
c6a42d11
CB
151332020-02-05 Christian Biesinger <cbiesinger@google.com>
15134
15135 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
15136 function call.
15137
c8ecdda6
CB
151382020-02-05 Christian Biesinger <cbiesinger@google.com>
15139
15140 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
15141
f6480e70
MR
151422020-02-05 Maciej W. Rozycki <macro@wdc.com>
15143
15144 * nat/riscv-linux-tdesc.h: New file.
15145 * nat/riscv-linux-tdesc.c: New file, taking code from...
15146 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15147 ... here.
15148 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
15149 NATDEPFILES.
15150
dcc9fbc6
AB
151512020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
15152
15153 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
15154 we don't set the fake simulator ptid to the null_ptid.
15155
719546c4
SM
151562020-02-03 Simon Marchi <simon.marchi@efficios.com>
15157
15158 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
15159 * gdbthread.h (class thread_info) <resumed>: Likewise.
15160 * infrun.c (resume_1): Likewise.
15161 (proceed): Likewise.
15162 (infrun_thread_stop_requested): Likewise.
15163 (stop_all_threads): Likewise.
15164 (handle_inferior_event): Likewise.
15165 (restart_threads): Likewise.
15166 (finish_step_over): Likewise.
15167 (keep_going_stepped_thread): Likewise.
15168 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
15169 (linux_handle_extended_wait): Likewise.
15170 * record-btrace.c (get_thread_current_frame_id): Likewise.
15171 * record-full.c (record_full_wait_1): Likewise.
15172 * remote.c (remote_target::process_initial_stop_replies): Likewise.
15173 * target.c (target_resume): Likewise.
15174 * thread.c (set_running_thread): Likewise.
15175
e409c542
AKS
151762020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15177
15178 * f-valprint.c (f77_print_array_1): Changed datatype of index
15179 variable to LONGEST from int to enable it to contain bound
15180 values correctly.
15181
ee98c0da
MR
151822020-02-03 Maciej W. Rozycki <macro@wdc.com>
15183
15184 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
15185 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
15186 offsets according to FLEN determined.
15187 (riscv_linux_nat_target::read_description): Determine FLEN
15188 dynamically.
15189 (riscv_linux_nat_target::fetch_registers): Size regset buffer
15190 according to FLEN determined.
15191 (riscv_linux_nat_target::store_registers): Likewise.
15192
aa66aac4
SV
151932020-02-01 Shahab Vahedi <shahab@synopsys.com>
15194
15195 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
15196 when reg->group is empty and reggroup is not.
15197
fd9faca8
TT
151982020-01-31 Tom Tromey <tromey@adacore.com>
15199
15200 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
15201 Call beneath target's mourn_inferior after unpushing.
15202
42330a68
AB
152032020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15204
15205 PR tui/9765
15206 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
15207 have enough lines to fill the screen, still return the lowest
15208 address we found.
15209
7a27a45b
AB
152102020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15211
15212 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
15213 '-', '<', and '>' commands.
15214
c47f70e2
PA
152152020-01-29 Pedro Alves <palves@redhat.com>
15216 Sergio Durigan Junior <sergiodj@redhat.com>
15217
15218 * infcmd.c (construct_inferior_arguments): Assert that
15219 'argc' is greater than 0.
15220
5133a315
LM
152212020-01-29 Luis Machado <luis.machado@linaro.org>
15222
15223 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
15224 (BRK_INSN_MASK): Define to 0xd4200000.
15225 (aarch64_program_breakpoint_here_p): New function.
15226 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
15227 * arch-utils.c (default_program_breakpoint_here_p): Moved from
15228 breakpoint.c.
15229 * arch-utils.h (default_program_breakpoint_here_p): Moved from
15230 breakpoint.h
15231 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
15232 call gdbarch_program_breakpoint_here_p.
15233 (program_breakpoint_here): Moved to arch-utils.c, renamed to
15234 default_program_breakpoint_here_p, changed return type to bool and
15235 simplified.
15236 * breakpoint.h (program_breakpoint_here): Moved prototype to
15237 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
15238 return type to bool.
15239 * gdbarch.c: Regenerate.
15240 * gdbarch.h: Regenerate.
15241 * gdbarch.sh (program_breakpoint_here_p): New method.
15242 * infrun.c (handle_signal_stop): Call
15243 gdbarch_program_breakpoint_here_p.
15244
168f8c6b
TT
152452020-01-26 Tom Tromey <tom@tromey.com>
15246
15247 * ctfread.c (struct ctf_fp_info): Reindent.
15248 (_initialize_ctfread): Remove.
15249
128a391f
TT
152502020-01-26 Tom Tromey <tom@tromey.com>
15251
15252 * psymtab.c (partial_map_expand_apply)
15253 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
15254 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
15255 (psym_print_stats, psym_expand_symtabs_for_function)
15256 (psym_map_symbol_filenames, psym_map_matching_symbols)
15257 (psym_expand_symtabs_matching)
15258 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
15259 (maintenance_check_psymtabs): Use new methods.
15260 * psympriv.h (struct partial_symtab) <readin_p,
15261 get_compunit_symtab>: New methods.
15262 <readin, compunit_symtab>: Remove members.
15263 (struct standard_psymtab): New.
15264 (struct legacy_psymtab): Derive from standard_psymtab.
15265 * dwarf2read.h (struct dwarf2_psymtab): Derive from
15266 standard_psymtab.
15267 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
15268
0494dbec
TT
152692020-01-26 Tom Tromey <tom@tromey.com>
15270
15271 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
15272 read_dependencies. Add assert.
15273 * psymtab.c (partial_symtab::read_dependencies): New method.
15274 * psympriv.h (struct partial_symtab) <read_dependencies>: New
15275 method.
15276 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
15277 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
15278 read_dependencies.
15279 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
15280 Add assert.
15281
8566b89b
TT
152822020-01-26 Tom Tromey <tom@tromey.com>
15283
15284 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
15285 Call expand_psymtab.
15286 (xcoff_read_symtab): Call expand_psymtab.
15287 (xcoff_start_psymtab, xcoff_end_psymtab): Set
15288 legacy_expand_psymtab.
15289 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
15290 method.
15291 (struct legacy_psymtab) <expand_psymtab>: Implement.
15292 <legacy_expand_psymtab>: New member.
15293 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
15294 (parse_partial_symbols): Set legacy_expand_psymtab.
15295 (psymtab_to_symtab_1): Change argument order. Call
15296 expand_psymtab.
15297 (new_psymtab): Set legacy_expand_psymtab.
15298 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
15299 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
15300 expand_psymtab.
15301 (dwarf2_psymtab::expand_psymtab): Rename from
15302 psymtab_to_symtab_1. Call expand_psymtab.
15303 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
15304 (dbx_end_psymtab): Likewise.
15305 (dbx_psymtab_to_symtab_1): Change argument order. Call
15306 expand_psymtab.
15307 (dbx_read_symtab): Call expand_psymtab.
15308 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
15309 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
15310 (ctf_psymtab::read_symtab): Call expand_psymtab.
15311
077cbab2
TT
153122020-01-26 Tom Tromey <tom@tromey.com>
15313
15314 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
15315 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
15316 messages.
15317 * mdebugread.c (mdebug_read_symtab): Remove prints.
15318 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
15319 assert.
15320 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
15321
891813be
TT
153222020-01-26 Tom Tromey <tom@tromey.com>
15323
15324 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
15325 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
15326 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
15327 legacy_symtab.
15328 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
15329 * psymtab.c (psymtab_to_symtab): Call method.
15330 (dump_psymtab): Update.
15331 * psympriv.h (struct partial_symtab): Add virtual destructor.
15332 <read_symtab>: New method.
15333 (struct legacy_symtab): New.
15334 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
15335 (struct pst_map) <pst>: Now a legacy_psymtab.
15336 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
15337 (new_psymtab): Use legacy_psymtab.
15338 * dwarf2read.h (struct dwarf2_psymtab): New.
15339 (struct dwarf2_per_cu_data) <psymtab>: Use it.
15340 * dwarf2read.c (dwarf2_create_include_psymtab)
15341 (dwarf2_build_include_psymtabs, create_type_unit_group)
15342 (create_partial_symtab, process_psymtab_comp_unit_reader)
15343 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
15344 (set_partial_user): Use dwarf2_psymtab.
15345 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
15346 (psymtab_to_symtab_1, process_full_comp_unit)
15347 (process_full_type_unit, dwarf2_ranges_read)
15348 (dwarf2_get_pc_bounds, psymtab_include_file_name)
15349 (dwarf_decode_lines): Use dwarf2_psymtab.
15350 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
15351 (add_address_entry_worker, write_one_signatured_type)
15352 (recursively_count_psymbols, recursively_write_psymbols)
15353 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
15354 (write_debug_names): Likewise.
15355 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
15356 <pst>: Now a legacy_psymtab.
15357 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
15358 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
15359 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
15360 * ctfread.c (struct ctf_psymtab): New.
15361 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
15362 ctf_psymtab.
15363 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
15364 (create_partial_symtab): Return a ctf_psymtab.
15365 (scan_partial_symbols): Update.
15366
c3693a1d
TT
153672020-01-26 Tom Tromey <tom@tromey.com>
15368
15369 * xcoffread.c (xcoff_start_psymtab): Use new.
15370 * psymtab.c (partial_symtab::partial_symtab): New constructor,
15371 renamed from start_psymtab_common.
15372 * psympriv.h (struct partial_symtab): Add new constructor.
15373 (start_psymtab_common): Don't declare.
15374 * mdebugread.c (parse_partial_symbols): Use new.
15375 * dwarf2read.c (create_partial_symtab): Use new.
15376 * dbxread.c (start_psymtab): Use new.
15377 * ctfread.c (create_partial_symtab): Use new.
15378
32caafd0
TT
153792020-01-26 Tom Tromey <tom@tromey.com>
15380
15381 * xcoffread.c (xcoff_end_psymtab): Use new.
15382 * psymtab.c (start_psymtab_common): Use new.
15383 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
15384 Update.
15385 * psympriv.h (struct partial_symtab): Add parameters to
15386 constructor. Don't inline.
15387 (allocate_psymtab): Don't declare.
15388 * mdebugread.c (new_psymtab): Use new.
15389 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
15390 * dbxread.c (dbx_end_psymtab): Use new.
15391
abaa2f23
TT
153922020-01-26 Tom Tromey <tom@tromey.com>
15393
15394 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
15395 allocate_psymtab. Update documentation.
15396 * psymtab.c (psymtab_storage::install_psymtab): Rename from
15397 allocate_psymtab. Do not use new.
15398 (allocate_psymtab): Use new. Update.
15399
6d94535f
TT
154002020-01-26 Tom Tromey <tom@tromey.com>
15401
15402 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
15403 * psymtab.c (psym_print_stats): Update.
15404 * psympriv.h (struct partial_symtab) <readin,
15405 psymtabs_addrmap_supported, anonymous>: Now bool.
15406 * mdebugread.c (psymtab_to_symtab_1): Update.
15407 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
15408 (build_type_psymtabs_reader, psymtab_to_symtab_1)
15409 (process_full_comp_unit, process_full_type_unit): Update.
15410 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
15411 * ctfread.c (psymtab_to_symtab): Update.
15412
6f17252b
TT
154132020-01-26 Tom Tromey <tom@tromey.com>
15414
15415 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
15416 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
15417 * psymtab.c (psymtab_storage): Delete psymtabs.
15418 (psymtab_storage::allocate_psymtab): Use new.
15419 (psymtab_storage::discard_psymtab): Use delete.
15420 * psympriv.h (struct partial_symtab): Add constructor and
15421 initializers.
15422
f6f1cebc
TT
154232020-01-26 Tom Tromey <tom@tromey.com>
15424
15425 * machoread.c: Do not include psympriv.h.
15426
e47e48f6
PW
154272020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15428
15429 * NEWS: Mention the new option and the set/show commands.
15430
a2fedca9
PW
154312020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15432
15433 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
15434 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
15435 (validate_exec_file): New variables, enums, functions.
15436 (exec_file_locate_attach, print_section_info): Style the filenames.
15437 (_initialize_exec): Install show_exec_file_mismatch_command and
15438 set_exec_file_mismatch_command.
15439 * gdbcore.h (validate_exec_file): Declare.
15440 * infcmd.c (attach_command): Call validate_exec_file.
15441 * remote.c ( remote_target::remote_add_inferior): Likewise.
15442
7ffa82e1
AB
154432020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15444
15445 * frame.c (find_frame_sal): Move call to get_next_frame into more
15446 inner scope.
15447 * inline-frame.c (inilne_state) <inline_state>: Update argument
15448 types.
15449 (inilne_state) <skipped_symbol>: Rename to...
15450 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
15451 (skip_inline_frames): Build vector of skipped symbols and use this
15452 to reate the inline_state.
15453 (inline_skipped_symbol): Add a comment and some assertions, fetch
15454 skipped symbol from the list.
15455
3d92a3e3
AB
154562020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15457
15458 * buildsym.c (lte_is_less_than): Delete.
15459 (buildsym_compunit::end_symtab_with_blockvector): Create local
15460 lambda function to sort line table entries, and use
15461 std::stable_sort instead of std::sort.
15462 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
15463 markers when looking for a previous line.
15464
94a72be7
AB
154652020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15466
15467 * dwarf2read.c (lnp_state_machine::record_line): Include
15468 end_sequence parameter in debug print out. Record the line if we
15469 are at an end_sequence marker even if it's not the start of a
15470 statement.
15471 * symmisc.c (maintenance_print_one_line_table): Print end of
15472 sequence markers with 'END' not '0'.
15473
53af73bf
PA
154742020-01-24 Pedro Alves <palves@redhat.com>
15475
15476 PR gdb/25410
15477 * thread.c (scoped_restore_current_thread::restore): Use
15478 switch_to_inferior_no_thread.
15479 * exec.c: Include "progspace-and-thread.h".
15480 (add_target_sections, remove_target_sections):
15481 scoped_restore_current_pspace_and_thread instead of
15482 scoped_restore_current_thread.
15483 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
15484 and aspace to the inferior before calling clone_program_space.
15485 Remove stale comment.
15486
3050c6f4
CB
154872020-01-24 Christian Biesinger <cbiesinger@google.com>
15488
15489 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
15490 (arm_netbsd_nat_target::fetch_registers): ...this.
15491 (arm_nbsd_nat_target::store_registers): Rename to...
15492 (arm_netbsd_nat_target::store_registers): ...this.
15493
73685c7e
CB
154942020-01-24 Christian Biesinger <cbiesinger@google.com>
15495
15496 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
15497 register_t.
15498
89203d40
CB
154992020-01-24 Christian Biesinger <cbiesinger@google.com>
15500
15501 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
15502 Update comment.
15503 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
15504 Likewise.
15505 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
15506 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
15507 the correct replacement (iterate_over_regset_sections).
15508 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
15509 Update comment.
15510
1ba1ac88
AB
155112020-01-24 Graham Markall <graham.markall@embecosm.com>
15512
15513 PR gdb/23718
15514 * gdb/python/python.c (execute_gdb_command): Call
15515 async_enable_stdin in catch block.
15516
f3364a6d
AB
155172020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15518
15519 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
15520 SWITCH_THRU_ALL_UIS.
15521
733d0a67
AB
155222020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15523
15524 PR tui/9765
15525 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
15526 comment, add extra parameter, and update to store previous symbol
15527 when appropriate.
15528 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
15529 add extra parameter.
15530 * tui/tui-disasm.c (tui_disassemble): Update header comment,
15531 remove unneeded parameter, add try/catch around gdb_print_insn,
15532 rewrite to add items to asm_lines vector.
15533 (tui_find_backward_disassembly_start_address): New function.
15534 (tui_find_disassembly_address): Updated throughout.
15535 (tui_disasm_window::set_contents): Update for changes to
15536 tui_disassemble.
15537 (tui_disasm_window::do_scroll_vertical): No need to adjust the
15538 number of lines to scroll.
15539
b3b3bada
SM
155402020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
15541
15542 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
15543 (SECT_OFF_DATA): Likewise.
15544 (SECT_OFF_RODATA): Likewise.
15545 (SECT_OFF_TEXT): Likewise.
15546 (SECT_OFF_BSS): Likewise.
15547 (struct objfile) <text_section_offset, data_section_offset>: New
15548 methods.
15549 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
15550 objfile::text_section_offset.
15551 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
15552 * coffread.c (coff_symtab_read): Likewise.
15553 (enter_linenos): Likewise.
15554 (process_coff_symbol): Likewise.
15555 * ctfread.c (get_objfile_text_range): Likewise.
15556 * dtrace-probe.c (dtrace_probe::get_relocated_address):
15557 Use objfile::data_section_offset.
15558 * dwarf2-frame.c (execute_cfa_program): Use
15559 objfile::text_section_offset.
15560 (dwarf2_frame_find_fde): Likewise.
15561 * dwarf2read.c (create_addrmap_from_index): Likewise.
15562 (create_addrmap_from_aranges): Likewise.
15563 (dw2_find_pc_sect_compunit_symtab): Likewise.
15564 (process_psymtab_comp_unit_reader): Likewise.
15565 (add_partial_symbol): Likewise.
15566 (add_partial_subprogram): Likewise.
15567 (process_full_comp_unit): Likewise.
15568 (read_file_scope): Likewise.
15569 (read_func_scope): Likewise.
15570 (read_lexical_block_scope): Likewise.
15571 (read_call_site_scope): Likewise.
15572 (dwarf2_rnglists_process): Likewise.
15573 (dwarf2_ranges_process): Likewise.
15574 (dwarf2_ranges_read): Likewise.
15575 (dwarf_decode_lines_1): Likewise.
15576 (new_symbol): Likewise.
15577 (dwarf2_fetch_die_loc_sect_off): Likewise.
15578 (dwarf2_per_cu_text_offset): Likewise.
15579 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
15580 * hppa-tdep.c (read_unwind_info): Likewise.
15581 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
15582 * psympriv.h (struct partial_symtab): Likewise.
15583 * psymtab.c (find_pc_sect_psymtab): Likewise.
15584 * solib-svr4.c (enable_break): Likewise.
15585 * stap-probe.c (relocate_address): Use
15586 objfile::data_section_offset.
15587 * xcoffread.c (enter_line_range): Use
15588 objfile::text_section_offset.
15589 (read_xcoff_symtab): Likewise.
15590
ab53f382
SM
155912020-01-23 Simon Marchi <simon.marchi@efficios.com>
15592
15593 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
15594 declaration to narrower scopes.
15595
e7eee665
SM
155962020-01-23 Simon Marchi <simon.marchi@efficios.com>
15597
15598 * darwin-nat.h (struct darwin_exception_msg, enum
15599 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
15600 Move up.
15601 (class darwin_nat_target) <wait_1, check_new_threads,
15602 decode_exception_message, decode_message, stop_inferior,
15603 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
15604 * darwin-nat.c (darwin_check_new_threads): Rename to...
15605 (darwin_nat_target::check_new_threads): ... this.
15606 (darwin_suspend_inferior_it): Remove.
15607 (darwin_decode_exception_message): Rename to...
15608 (darwin_nat_target::decode_exception_message): ... this.
15609 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
15610 (darwin_decode_message): Rename to...
15611 (darwin_nat_target::decode_message): ... this.
15612 (cancel_breakpoint): Rename to...
15613 (darwin_nat_target::cancel_breakpoint): ... this.
15614 (darwin_wait): Rename to...
15615 (darwin_nat_target::wait_1): ... this. Use range-based for loop
15616 instead of iterate_over_inferiors.
15617 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
15618 (darwin_stop_inferior): Rename to...
15619 (darwin_nat_target::stop_inferior): ... this.
15620 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
15621 (darwin_init_thread_list): Rename to...
15622 (darwin_nat_target::init_thread_list): ... this.
15623 (darwin_ptrace_him): Rename to...
15624 (darwin_nat_target::ptrace_him): ... this.
15625 (darwin_nat_target::create_inferior): Pass lambda function to
15626 fork_inferior.
15627 (darwin_nat_target::detach): Call stop_inferior instead of
15628 darwin_stop_inferior.
15629 * fork-inferior.h (fork_inferior): Change init_trace_fun
15630 parameter to gdb::function_view.
15631 * fork-inferior.c (fork_inferior): Likewise.
15632
c162ed3e
HD
156332020-01-23 Hannes Domani <ssbssa@yahoo.de>
15634
15635 * i386-cygwin-tdep.c (core_process_module_section): Update.
15636 * windows-nat.c (struct lm_info_windows): Add text_offset.
15637 (windows_xfer_shared_libraries): Update.
15638 * windows-tdep.c (windows_xfer_shared_library):
15639 Add text_offset_cached argument.
15640 * windows-tdep.h (windows_xfer_shared_library): Update.
15641
a1237872
SM
156422020-01-21 Simon Marchi <simon.marchi@efficios.com>
15643
15644 * gdbarch.sh: Add declaration for _initialize_gdbarch.
15645
b3ee6dd9
SM
156462020-01-21 Simon Marchi <simon.marchi@efficios.com>
15647
15648 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
15649 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
15650 replace with range-based for.
15651 (gdbsim_interrupt_inferior): Remove.
15652 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
15653 with a range-based for. Inline code from
15654 gdbsim_interrupt_inferior.
15655
f9fac3c8
SM
156562020-01-21 Simon Marchi <simon.marchi@efficios.com>
15657
15658 * infrun.c (proceed): Fix indentation.
15659
f6474de9
TT
156602020-01-21 Tom Tromey <tromey@adacore.com>
15661
15662 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
15663 * python/python.c (python_extension_ops): Update.
15664 (gdbpy_colorize): New function.
15665 * python/lib/gdb/__init__.py (colorize): New function.
15666 * extension.h (ext_lang_colorize): Declare.
15667 * extension.c (ext_lang_colorize): New function.
15668 * extension-priv.h (struct extension_language_ops) <colorize>: New
15669 member.
15670 * cli/cli-style.c (_initialize_cli_style): Update help text.
15671
f0c702d4
LM
156722020-01-21 Luis Machado <luis.machado@linaro.org>
15673
15674 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
15675 <cond>: Change type to bool.
15676 (aarch64_displaced_step_b_cond): Update cond to use bool type.
15677 (aarch64_displaced_step_cb): Likewise.
15678 (aarch64_displaced_step_tb): Likewise.
15679
1ab139e5
LM
156802020-01-21 Luis Machado <luis.machado@linaro.org>
15681
15682 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
15683 output.
15684
0c271889
LM
156852020-01-21 Luis Machado <luis.machado@linaro.org>
15686
15687 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
15688 <pc_adjust>: Adjust the documentation.
15689 (aarch64_displaced_step_fixup): Check if PC really moved before
15690 adjusting it.
15691
4d89c1c7
TT
156922020-01-19 Tom Tromey <tom@tromey.com>
15693
15694 * disasm.c (~gdb_disassembler): New destructor.
15695 (gdb_buffered_insn_length): Call disassemble_free_target.
15696 * disasm.h (class gdb_disassembler): Declare destructor. Use
15697 DISABLE_COPY_AND_ASSIGN.
15698
c0ab21c2
TT
156992020-01-19 Tom Tromey <tom@tromey.com>
15700
15701 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
15702 (die_reader_func_ftype): Remove.
15703 (cutu_reader): New class.
15704 (dw2_get_file_names_reader): Remove "data" parameter.
15705 (dw2_get_file_names): Use cutu_reader.
15706 (create_debug_type_hash_table): Update.
15707 (read_cutu_die_from_dwo): Update comment.
15708 (lookup_dwo_unit): Add dwo_name parameter.
15709 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
15710 die_reader_func_ftype and data parameters.
15711 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
15712 Remove die_reader_func_ftype and data parameters.
15713 (~cutu_reader): New; from init_cutu_and_read_dies.
15714 (cutu_reader::cutu_reader): Rename from
15715 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
15716 and data parameters.
15717 (init_cutu_and_read_dies_simple): Remove.
15718 (struct process_psymtab_comp_unit_data): Remove.
15719 (process_psymtab_comp_unit_reader): Remove data parameter; add
15720 want_partial_unit and pretend_language parameters.
15721 (process_psymtab_comp_unit): Use cutu_reader.
15722 (build_type_psymtabs_reader): Remove data parameter.
15723 (build_type_psymtabs_1): Use cutu_reader.
15724 (process_skeletonless_type_unit): Likewise.
15725 (load_partial_comp_unit_reader): Remove.
15726 (load_partial_comp_unit): Use cutu_reader.
15727 (load_full_comp_unit_reader): Remove.
15728 (load_full_comp_unit): Use cutu_reader.
15729 (struct create_dwo_cu_data): Remove.
15730 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
15731 dwo_unit parameters.
15732 (create_cus_hash_table): Use cutu_reader.
15733 (struct dwarf2_read_addr_index_data): Remove.
15734 (dwarf2_read_addr_index_reader): Remove.
15735 (dwarf2_read_addr_index): Use cutu_reader.
15736 (read_signatured_type_reader): Remove.
15737 (read_signatured_type): Use cutu_reader.
15738
45bbae5c
TT
157392020-01-19 Tom Tromey <tom@tromey.com>
15740
15741 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
15742 * tui/tui-wingeneral.h (class tui_suppress_output): New.
15743 (tui_wrefresh): Declare.
15744 * tui/tui-wingeneral.c (suppress_output): New global.
15745 (tui_suppress_output, ~tui_suppress_output): New constructor and
15746 destructor.
15747 (tui_wrefresh): New function.
15748 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
15749 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
15750 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
15751 method.
15752 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
15753 tui_wrefresh.
15754 (tui_data_window::no_refresh): New method.
15755 (tui_data_item_window::refresh_window): Call tui_wrefresh.
15756 (tui_reg_command): Use tui_suppress_output
15757 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
15758 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
15759 method.
15760 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
15761
4f13c1c0
TT
157622020-01-19 Tom Tromey <tom@tromey.com>
15763
15764 * tui/tui-winsource.c (tui_update_source_windows_with_line):
15765 Handle case where symtab is null.
15766
fa47e446
SM
157672020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
15768
15769 * linux-fork.c (one_fork_p): Simplify.
15770
26f42329
SM
157712020-01-17 Simon Marchi <simon.marchi@efficios.com>
15772
15773 * top.c (struct qt_args): Remove.
15774 (kill_or_detach): Change return type to void, replace `void *`
15775 parameter with a proper one.
15776 (print_inferior_quit_action): Likewise.
15777 (quit_confirm): Use range-based for loop to iterate over inferiors.
15778 (quit_force): Likewise.
15779
a9ac81b1
SM
157802020-01-17 Simon Marchi <simon.marchi@efficios.com>
15781
15782 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
15783 `void *` parameter with proper parameters.
15784 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
15785 (print_one_inferior): Change return type to void, replace `void *`
15786 parameter with proper parameters.
15787 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
15788 inferiors.
15789 (get_other_inferior): Remove.
15790 (mi_cmd_remove_inferior): Use range-based loop to iterate over
15791 inferiors.
15792
788eca49
SM
157932020-01-17 Simon Marchi <simon.marchi@efficios.com>
15794
15795 * mi/mi-interp.c (report_initial_inferior): Remove.
15796 (mi_interp::init): Use range-based for to iterate over inferiors.
15797
d9bc85b6
SM
157982020-01-17 Simon Marchi <simon.marchi@efficios.com>
15799
15800 * python/py-inferior.c (build_inferior_list): Remove.
15801 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
15802
40c94099
CB
158032020-01-16 Christian Biesinger <cbiesinger@google.com>
15804
15805 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
15806 (btrace_stitch_trace): Likewise.
15807 * charset.c (intermediate_encoding): Likewise (vaild).
15808 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
15809 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
15810 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
15811
e0cdfe3c
HD
158122020-01-16 Hannes Domani <ssbssa@yahoo.de>
15813
15814 * windows-tdep.c (windows_get_tlb_type):
15815 Add rtl_user_process_parameters type.
15816
790f1718 158172020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 15818 Norbert Lange <nolange79@gmail.com>
790f1718
PA
15819
15820 PR build/24805
15821 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
15822 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
15823 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
15824 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
15825 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
15826 (ps_plog): Redeclare exported functions with default visibility.
15827
3112ed97
NA
158282020-01-16 Nitika Achra <Nitika.Achra@amd.com>
15829
15830 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
15831 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
15832
8dc3273e
SM
158332020-01-15 Simon Marchi <simon.marchi@efficios.com>
15834
15835 * infcmd.c (post_create_inferior): Use get_thread_regcache
15836 instead of get_current_regcache.
15837
ff47f4f0
TT
158382020-01-14 Tom Tromey <tom@tromey.com>
15839
15840 PR symtab/12535:
15841 * python/python.c (gdbpy_decode_line): Treat empty string the same
15842 as no argument.
15843
975f45b7
TT
158442020-01-14 Tom Tromey <tom@tromey.com>
15845
15846 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
15847
25e57356
TT
158482020-01-14 Tom Tromey <tom@tromey.com>
15849
15850 * nat/linux-btrace.c: Don't include <config.h>.
15851 * nat/linux-ptrace.c: Don't include <config.h>.
15852 * nat/x86-linux-dregs.c: Don't include <config.h>.
15853
05ea2a05
TT
158542020-01-14 Tom Tromey <tom@tromey.com>
15855
15856 * configure: Rebuild.
15857 * configure.ac: Move many checks to ../gdbsupport/common.m4.
15858
01027315
TT
158592020-01-14 Tom Tromey <tom@tromey.com>
15860
15861 * nat/x86-linux-dregs.c: Include configh.h.
15862 * nat/linux-ptrace.c: Include configh.h.
15863 * nat/linux-btrace.c: Include configh.h.
15864 * defs.h: Include config.h, bfd.h.
15865 * configure.ac: Don't source common.host.
15866 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
15867 * configure: Rebuild.
15868 * acinclude.m4: Update path.
15869 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
15870 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
15871 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
15872 (CLIBS): Add LIBSUPPORT.
15873 (CDEPS): Likewise.
15874 (COMMON_SFILES): Remove gdbsupport files.
15875 (HFILES_NO_SRCDIR): Likewise.
15876 (stamp-version): Update path to create-version.sh.
15877 (ALLDEPFILES): Remove gdbsupport files.
15878
b2ceabe8
TT
158792020-01-14 Tom Tromey <tom@tromey.com>
15880
15881 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
15882 USE_WIN32API when needed.
15883 * configure.ac (USE_WIN32API): Don't define.
15884 (WIN32LIBS): Use WIN32APILIBS.
15885 * configure: Rebuild.
15886
25c51f71
TT
158872020-01-14 Tom Tromey <tom@tromey.com>
15888
15889 * configure: Rebuild.
15890 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
15891
717c684d
BE
158922020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
15893
15894 * skip.c (skip_function_command): Make skip w/o arguments use the
15895 name of the inlined function if pc is inside any inlined function.
15896
7da6a5b9
LM
158972020-01-14 Luis Machado <luis.machado@linaro.org>
15898
15899 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
15900 * infrun.c (resume_1): Likewise.
15901 (handle_inferior_event): Remove stale comment.
15902 * linux-nat.c (linux_nat_target::resume): Update comments.
15903 (save_stop_reason): Likewise.
15904 (linux_nat_filter_event): Likewise.
15905 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
15906
44e4c775
AB
159072020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15908
15909 * elfread.c (record_minimal_symbol): Set section index to 0 for
15910 non-allocatable sections.
15911
18a8505e
AT
15912
159132020-01-13 Ali Tamur <tamur@google.com>
15914
15915 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
15916 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
15917 to gdb::optional. Update comments.
15918 (dwo_file): Update comments.
15919 (read_attribute): Update API to take an additional out parameter,
15920 need_reprocess. This is used to mark attributes that need other
15921 attributes (e.g. str_offsets_base) for correct computation which may not
15922 have been read yet.
15923 (read_attribute_reprocess): New function declaration.
15924 (read_addr_index): Likewise.
15925 (read_dwo_str_index): Likewise.
15926 (read_stub_str_index): Likewise.
15927 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
15928 (lookup_addr_base): New function definition.
15929 (lookup_ranges_base): Likewise.
15930 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
15931 lookup_ranges_base.
15932 (init_cutu_and_read_dies): Update comments.
15933 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
15934 unit. This is used to inherit parent's str_offsets_base and addr_base.
15935 Update comments.
15936 (init_cutu_and_read_dies_simple): Reflect API changes.
15937 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
15938 (create_cus_hash_table): Change API to take parent compile unit.
15939 Reflect API changes.
15940 (open_and_init_dwo_file): Reflect API changes.
15941 (dwarf2_get_pc_bounds): Update comments.
15942 (dwarf2_record_block_ranges): Likewise.
15943 (read_full_die_1): Change implementation to reprocess attributes that
15944 need str_offsets_base and addr_base.
15945 (partial_die_info::read): Likewise.
15946 (read_attribute_reprocess): New function definition.
15947 (read_attribute_value): Change API to take an additional out parameter,
15948 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
15949 when a non-dwo compile unit has index based attributes.
15950 (read_attribute): Reflect API changes.
15951 (read_addr_index_1): Reflect API changes. Update comments.
15952 (dwarf2_read_addr_index_data): Reflect API changes.
15953 (dwarf2_read_addr_index): Likewise.
15954 (read_str_index): Change API and implementation. This becomes a helper
15955 to be used by the new string index related methods. Update error
15956 message and comments.
15957 (read_dwo_str_index): New function definition.
15958 (read_stub_str_index): Likewise.
15959 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
15960 * symfile.h (dwarf2_debug_sections): Likewise.
15961 * xcoffread.c (dwarf2_debug_sections): Likewise.
15962
0cac9354
SM
159632020-01-13 Simon Marchi <simon.marchi@efficios.com>
15964
15965 * gdbcore.h (struct core_fns) <core_read_registers>: Change
15966 core_reg_sect type to gdb_byte *.
15967 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
15968 * cris-tdep.c (fetch_core_registers): Likewise.
15969 * corelow.c (core_target::get_core_register_section): Change
15970 type of `contents` to gdb::byte_vector.
15971
9a6d629c
AB
159722020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15973
15974 * tui/tui-wingeneral.c (box_win): Position the title in the center
15975 of the border.
15976
d8b2f9e3
SM
159772020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15978
15979 * corelow.c (core_target::get_core_register_section): Use
15980 std::vector instead of alloca.
15981
bb564c58
SM
159822020-01-13 Simon Marchi <simon.marchi@efficios.com>
15983
15984 * warning.m4: Add -Wmissing-declarations to build_warnings.
15985 * configure: Re-generate.
15986
6b366111
SM
159872020-01-13 Simon Marchi <simon.marchi@efficios.com>
15988
15989 * python/python.c (init__gdb_module): Add declaration.
15990
6c265988
SM
159912020-01-13 Simon Marchi <simon.marchi@efficios.com>
15992
15993 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
15994 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
15995 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
15996 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
15997 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
15998 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
15999 * ada-exp.y (_initialize_ada_exp): Add declaration.
16000 * ada-lang.c (_initialize_ada_language): Add declaration.
16001 * ada-tasks.c (_initialize_tasks): Add declaration.
16002 * agent.c (_initialize_agent): Add declaration.
16003 * aix-thread.c (_initialize_aix_thread): Add declaration.
16004 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
16005 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
16006 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
16007 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
16008 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
16009 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
16010 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
16011 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
16012 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
16013 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
16014 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
16015 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
16016 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
16017 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
16018 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
16019 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
16020 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
16021 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
16022 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
16023 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
16024 * annotate.c (_initialize_annotate): Add declaration.
16025 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
16026 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
16027 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
16028 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
16029 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
16030 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
16031 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
16032 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
16033 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
16034 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
16035 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
16036 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
16037 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
16038 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
16039 * auto-load.c (_initialize_auto_load): Add declaration.
16040 * auxv.c (_initialize_auxv): Add declaration.
16041 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
16042 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
16043 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
16044 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
16045 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
16046 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
16047 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
16048 * breakpoint.c (_initialize_breakpoint): Add declaration.
16049 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
16050 * btrace.c (_initialize_btrace): Add declaration.
16051 * charset.c (_initialize_charset): Add declaration.
16052 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
16053 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
16054 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
16055 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
16056 * cli/cli-script.c (_initialize_cli_script): Add declaration.
16057 * cli/cli-style.c (_initialize_cli_style): Add declaration.
16058 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
16059 * coffread.c (_initialize_coffread): Add declaration.
16060 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
16061 * compile/compile.c (_initialize_compile): Add declaration.
16062 * complaints.c (_initialize_complaints): Add declaration.
16063 * completer.c (_initialize_completer): Add declaration.
16064 * copying.c (_initialize_copying): Add declaration.
16065 * corefile.c (_initialize_core): Add declaration.
16066 * corelow.c (_initialize_corelow): Add declaration.
16067 * cp-abi.c (_initialize_cp_abi): Add declaration.
16068 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
16069 * cp-support.c (_initialize_cp_support): Add declaration.
16070 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
16071 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
16072 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
16073 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
16074 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
16075 * ctfread.c (_initialize_ctfread): Add declaration.
16076 * d-lang.c (_initialize_d_language): Add declaration.
16077 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
16078 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
16079 * dbxread.c (_initialize_dbxread): Add declaration.
16080 * dcache.c (_initialize_dcache): Add declaration.
16081 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
16082 * disasm.c (_initialize_disasm): Add declaration.
16083 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
16084 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
16085 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
16086 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
16087 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
16088 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
16089 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
16090 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
16091 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
16092 * elfread.c (_initialize_elfread): Add declaration.
16093 * exec.c (_initialize_exec): Add declaration.
16094 * extension.c (_initialize_extension): Add declaration.
16095 * f-lang.c (_initialize_f_language): Add declaration.
16096 * f-valprint.c (_initialize_f_valprint): Add declaration.
16097 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
16098 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
16099 * filesystem.c (_initialize_filesystem): Add declaration.
16100 * findcmd.c (_initialize_mem_search): Add declaration.
16101 * findvar.c (_initialize_findvar): Add declaration.
16102 * fork-child.c (_initialize_fork_child): Add declaration.
16103 * frame-base.c (_initialize_frame_base): Add declaration.
16104 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
16105 * frame.c (_initialize_frame): Add declaration.
16106 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
16107 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
16108 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
16109 * gcore.c (_initialize_gcore): Add declaration.
16110 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
16111 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
16112 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
16113 * gdbarch.c (_initialize_gdbarch): Add declaration.
16114 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
16115 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
16116 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
16117 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
16118 * go-lang.c (_initialize_go_language): Add declaration.
16119 * go32-nat.c (_initialize_go32_nat): Add declaration.
16120 * guile/guile.c (_initialize_guile): Add declaration.
16121 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
16122 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
16123 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
16124 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
16125 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
16126 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
16127 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
16128 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
16129 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
16130 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
16131 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
16132 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
16133 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
16134 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
16135 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
16136 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
16137 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
16138 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
16139 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
16140 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
16141 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
16142 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
16143 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
16144 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
16145 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
16146 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
16147 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
16148 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
16149 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
16150 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
16151 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
16152 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
16153 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
16154 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
16155 * infcall.c (_initialize_infcall): Add declaration.
16156 * infcmd.c (_initialize_infcmd): Add declaration.
16157 * inflow.c (_initialize_inflow): Add declaration.
16158 * infrun.c (_initialize_infrun): Add declaration.
16159 * interps.c (_initialize_interpreter): Add declaration.
16160 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
16161 * jit.c (_initialize_jit): Add declaration.
16162 * language.c (_initialize_language): Add declaration.
16163 * linux-fork.c (_initialize_linux_fork): Add declaration.
16164 * linux-nat.c (_initialize_linux_nat): Add declaration.
16165 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
16166 * linux-thread-db.c (_initialize_thread_db): Add declaration.
16167 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
16168 * m2-lang.c (_initialize_m2_language): Add declaration.
16169 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
16170 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
16171 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
16172 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
16173 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
16174 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
16175 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
16176 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
16177 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
16178 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
16179 * machoread.c (_initialize_machoread): Add declaration.
16180 * macrocmd.c (_initialize_macrocmd): Add declaration.
16181 * macroscope.c (_initialize_macroscope): Add declaration.
16182 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
16183 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
16184 * maint.c (_initialize_maint_cmds): Add declaration.
16185 * mdebugread.c (_initialize_mdebugread): Add declaration.
16186 * memattr.c (_initialize_mem): Add declaration.
16187 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
16188 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
16189 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
16190 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
16191 * mi/mi-main.c (_initialize_mi_main): Add declaration.
16192 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
16193 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
16194 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
16195 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
16196 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
16197 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
16198 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
16199 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
16200 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
16201 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
16202 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
16203 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
16204 * mipsread.c (_initialize_mipsread): Add declaration.
16205 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
16206 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
16207 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
16208 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
16209 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
16210 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
16211 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
16212 * nto-procfs.c (_initialize_procfs): Add declaration.
16213 * objc-lang.c (_initialize_objc_language): Add declaration.
16214 * observable.c (_initialize_observer): Add declaration.
16215 * opencl-lang.c (_initialize_opencl_language): Add declaration.
16216 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
16217 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
16218 * osabi.c (_initialize_gdb_osabi): Add declaration.
16219 * osdata.c (_initialize_osdata): Add declaration.
16220 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
16221 * parse.c (_initialize_parse): Add declaration.
16222 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
16223 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
16224 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
16225 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
16226 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
16227 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
16228 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
16229 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
16230 * printcmd.c (_initialize_printcmd): Add declaration.
16231 * probe.c (_initialize_probe): Add declaration.
16232 * proc-api.c (_initialize_proc_api): Add declaration.
16233 * proc-events.c (_initialize_proc_events): Add declaration.
16234 * proc-service.c (_initialize_proc_service): Add declaration.
16235 * procfs.c (_initialize_procfs): Add declaration.
16236 * producer.c (_initialize_producer): Add declaration.
16237 * psymtab.c (_initialize_psymtab): Add declaration.
16238 * python/python.c (_initialize_python): Add declaration.
16239 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
16240 * record-btrace.c (_initialize_record_btrace): Add declaration.
16241 * record-full.c (_initialize_record_full): Add declaration.
16242 * record.c (_initialize_record): Add declaration.
16243 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
16244 * regcache.c (_initialize_regcache): Add declaration.
16245 * reggroups.c (_initialize_reggroup): Add declaration.
16246 * remote-notif.c (_initialize_notif): Add declaration.
16247 * remote-sim.c (_initialize_remote_sim): Add declaration.
16248 * remote.c (_initialize_remote): Add declaration.
16249 * reverse.c (_initialize_reverse): Add declaration.
16250 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
16251 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
16252 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
16253 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
16254 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
16255 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
16256 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
16257 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
16258 Add declaration.
16259 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
16260 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
16261 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
16262 * rust-exp.y (_initialize_rust_exp): Add declaration.
16263 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
16264 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
16265 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
16266 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
16267 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
16268 * score-tdep.c (_initialize_score_tdep): Add declaration.
16269 * ser-go32.c (_initialize_ser_dos): Add declaration.
16270 * ser-mingw.c (_initialize_ser_windows): Add declaration.
16271 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
16272 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
16273 * ser-uds.c (_initialize_ser_socket): Add declaration.
16274 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
16275 * serial.c (_initialize_serial): Add declaration.
16276 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
16277 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
16278 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
16279 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
16280 * skip.c (_initialize_step_skip): Add declaration.
16281 * sol-thread.c (_initialize_sol_thread): Add declaration.
16282 * solib-aix.c (_initialize_solib_aix): Add declaration.
16283 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
16284 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
16285 * solib-frv.c (_initialize_frv_solib): Add declaration.
16286 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
16287 * solib-target.c (_initialize_solib_target): Add declaration.
16288 * solib.c (_initialize_solib): Add declaration.
16289 * source-cache.c (_initialize_source_cache): Add declaration.
16290 * source.c (_initialize_source): Add declaration.
16291 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
16292 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
16293 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
16294 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
16295 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
16296 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
16297 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
16298 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
16299 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
16300 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
16301 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
16302 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
16303 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
16304 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
16305 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
16306 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
16307 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
16308 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
16309 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
16310 * stabsread.c (_initialize_stabsread): Add declaration.
16311 * stack.c (_initialize_stack): Add declaration.
16312 * stap-probe.c (_initialize_stap_probe): Add declaration.
16313 * std-regs.c (_initialize_frame_reg): Add declaration.
16314 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
16315 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
16316 * symfile.c (_initialize_symfile): Add declaration.
16317 * symmisc.c (_initialize_symmisc): Add declaration.
16318 * symtab.c (_initialize_symtab): Add declaration.
16319 * target.c (_initialize_target): Add declaration.
16320 * target-connection.c (_initialize_target_connection): Add
16321 declaration.
16322 * target-dcache.c (_initialize_target_dcache): Add declaration.
16323 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
16324 * thread.c (_initialize_thread): Add declaration.
16325 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
16326 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
16327 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
16328 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
16329 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
16330 * tracectf.c (_initialize_ctf): Add declaration.
16331 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
16332 * tracefile.c (_initialize_tracefile): Add declaration.
16333 * tracepoint.c (_initialize_tracepoint): Add declaration.
16334 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
16335 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
16336 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
16337 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
16338 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
16339 * tui/tui-win.c (_initialize_tui_win): Add declaration.
16340 * tui/tui.c (_initialize_tui): Add declaration.
16341 * typeprint.c (_initialize_typeprint): Add declaration.
16342 * ui-style.c (_initialize_ui_style): Add declaration.
16343 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
16344 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
16345 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
16346 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
16347 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
16348 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
16349 * unittests/filtered_iterator-selftests.c
16350 (_initialize_filtered_iterator_selftests): Add declaration.
16351 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
16352 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
16353 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
16354 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
16355 * unittests/main-thread-selftests.c
16356 (_initialize_main_thread_selftests): Add declaration.
16357 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
16358 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
16359 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
16360 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
16361 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
16362 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
16363 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
16364 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
16365 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
16366 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
16367 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
16368 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
16369 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
16370 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
16371 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
16372 declaration.
16373 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
16374 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
16375 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
16376 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
16377 * user-regs.c (_initialize_user_regs): Add declaration.
16378 * utils.c (_initialize_utils): Add declaration.
16379 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
16380 * valops.c (_initialize_valops): Add declaration.
16381 * valprint.c (_initialize_valprint): Add declaration.
16382 * value.c (_initialize_values): Add declaration.
16383 * varobj.c (_initialize_varobj): Add declaration.
16384 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
16385 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
16386 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
16387 * windows-nat.c (_initialize_windows_nat): Add declaration.
16388 (_initialize_check_for_gdb_ini): Add declaration.
16389 (_initialize_loadable): Add declaration.
16390 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
16391 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
16392 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
16393 * xcoffread.c (_initialize_xcoffread): Add declaration.
16394 * xml-support.c (_initialize_xml_support): Add declaration.
16395 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
16396 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
16397 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
16398 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
16399
e2de1eec
SM
164002020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16401
16402 * regformats/regdat.sh: Generate declaration for init function.
16403
e0037b4c
SM
164042020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16405
16406 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
16407 up.
16408 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
16409 close_one_inferior>: New methods.
16410 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
16411 pass down target to find_inferior_pid.
16412 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
16413 Pass down target to find_inferior_ptid.
16414 (gdbsim_target::create_inferior): Pass down target to
16415 add_thread_silent.
16416 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
16417 target down to find_inferior_ptid and switch_to_thread.
16418 (gdbsim_target::close): Update to call close_one_inferior.
16419 (struct resume_data): Remove.
16420 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
16421 directly, rather than through a void pointer.
16422 (gdbsim_target::resume): Update to call resume_one_inferior.
16423
58920b5b
SM
164242020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
16425
16426 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
16427
4ec89149
PA
164282020-01-12 Pedro Alves <palves@redhat.com>
16429
16430 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
16431 directly for the current inferior instead of
16432 discard_all_inferiors.
16433 (discard_all_inferiors): Delete.
16434
7c392d1d
TT
164352020-01-11 Tom Tromey <tom@tromey.com>
16436
16437 * tui/tui-wingeneral.c (box_win): Check cli_styling.
16438 * tui/tui-winsource.c (tui_source_window_base::refill): Use
16439 deprecated_safe_get_selected_frame.
16440
d9ebdab7
TBA
164412020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16442
16443 * inferior.c (print_inferior): Switch inferior before printing it.
16444
f3c469b9
PA
164452020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
16446 Pedro Alves <palves@redhat.com>
16447
16448 * progspace-and-thread.c (switch_to_program_space_and_thread):
16449 Assert there's an inferior for PSPACE. Use
16450 switch_to_inferior_no_thread to switch the inferior too.
16451 * progspace.c (program_space::~program_space): Call
16452 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
16453 (program_space::free_all_objfiles): Don't call clear_symtab_users
16454 here.
16455 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
16456
65c574f6
PA
164572020-01-10 Pedro Alves <palves@redhat.com>
16458
16459 * NEWS: Mention multi-target debugging, "info connections", and
16460 "add-inferior -no-connection".
16461
2f4fcf00
PA
164622020-01-10 Pedro Alves <palves@redhat.com>
16463
16464 * infrun.c: Include "target-connection.h".
16465 (check_multi_target_resumption): New.
16466 (proceed): Call it.
16467 * target-connection.c (make_target_connection_string): Make
16468 extern.
16469 * target-connection.h (make_target_connection_string): Declare.
16470
121b3efd
PA
164712020-01-10 Pedro Alves <palves@redhat.com>
16472
16473 * Makefile.in (COMMON_SFILES): Add target-connection.c.
16474 * inferior.c (uiout_field_connection): New function.
16475 (print_inferior): Add new "connection-id" column.
16476 (add_inferior_command): Show connection number/string of added
16477 inferior.
16478 * process-stratum-target.h
16479 (process_stratum_target::connection_string): New virtual method.
16480 (process_stratum_target::connection_number): New field.
16481 * remote.c (remote_target::connection_string): New override.
16482 * target-connection.c: New file.
16483 * target-connection.h: New file.
16484 * target.c (decref_target): Remove process_stratum targets from
16485 the connection list.
16486 (target_stack::push): Add process_stratum targets to the
16487 connection list.
16488
4f837581
PA
164892020-01-10 Pedro Alves <palves@redhat.com>
16490
16491 Revert:
16492 2016-04-12 Pedro Alves <palves@redhat.com>
16493 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
16494 Remove references to name.
16495 * serial.h (struct serial) <name>: Delete.
16496
f4ec508e
PA
164972020-01-10 Pedro Alves <palves@redhat.com>
16498
16499 * gdbarch-selftests.c (register_to_value_test): Remove "target
16500 already pushed" check.
16501
5b6d1e4f
PA
165022020-01-10 Pedro Alves <palves@redhat.com>
16503 John Baldwin <jhb@FreeBSD.org>
16504
16505 * aarch64-linux-nat.c
16506 (aarch64_linux_nat_target::thread_architecture): Adjust.
16507 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
16508 (task_command_1): Likewise.
16509 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
16510 (aix_thread_target::wait, aix_thread_target::fetch_registers)
16511 (aix_thread_target::store_registers)
16512 (aix_thread_target::thread_alive): Adjust.
16513 * amd64-fbsd-tdep.c: Include "inferior.h".
16514 (amd64fbsd_get_thread_local_address): Pass down target.
16515 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
16516 thread's gdbarch instead of target_gdbarch.
16517 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
16518 get_last_target_status.
16519 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
16520 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
16521 inferiors.
16522 (update_inserted_breakpoint_locations): Skip if inferiors with no
16523 execution.
16524 (update_global_location_list): When handling moribund locations,
16525 find representative inferior for location's pspace, and use thread
16526 count of its process_stratum target.
16527 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
16528 * bsd-uthread.c (bsd_uthread_target::wait): Use
16529 as_process_stratum_target and adjust thread_change_ptid and
16530 add_thread calls.
16531 (bsd_uthread_target::update_thread_list): Use
16532 as_process_stratum_target and adjust find_thread_ptid,
16533 thread_change_ptid and add_thread calls.
16534 * btrace.c (maint_btrace_packet_history_cmd): Adjust
16535 find_thread_ptid call.
16536 * corelow.c (add_to_thread_list): Adjust add_thread call.
16537 (core_target_open): Adjust add_thread_silent and thread_count
16538 calls.
16539 (core_target::pid_to_str): Adjust find_inferior_ptid call.
16540 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
16541 * event-top.c (async_disconnect): Pop targets from all inferiors.
16542 * exec.c (add_target_sections): Push exec target on all inferiors
16543 sharing the program space.
16544 (remove_target_sections): Remove the exec target from all
16545 inferiors sharing the program space.
16546 (exec_on_vfork): New.
16547 * exec.h (exec_on_vfork): Declare.
16548 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
16549 Pass it down.
16550 (fbsd_nat_target::update_thread_list): Adjust.
16551 (fbsd_nat_target::resume): Adjust.
16552 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
16553 down.
16554 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
16555 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
16556 get_thread_arch_regcache call.
16557 * fork-child.c (gdb_startup_inferior): Pass target down to
16558 startup_inferior and set_executing.
16559 * gdbthread.h (struct process_stratum_target): Forward declare.
16560 (add_thread, add_thread_silent, add_thread_with_info)
16561 (in_thread_list): Add process_stratum_target parameter.
16562 (find_thread_ptid(inferior*, ptid_t)): New overload.
16563 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
16564 parameter.
16565 (all_threads()): Delete overload.
16566 (all_threads, all_non_exited_threads): Add process_stratum_target
16567 parameter.
16568 (all_threads_safe): Use brace initialization.
16569 (thread_count): Add process_stratum_target parameter.
16570 (set_resumed, set_running, set_stop_requested, set_executing)
16571 (threads_are_executing, finish_thread_state): Add
16572 process_stratum_target parameter.
16573 (switch_to_thread): Use is_current_thread.
16574 * i386-fbsd-tdep.c: Include "inferior.h".
16575 (i386fbsd_get_thread_local_address): Pass down target.
16576 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
16577 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
16578 have_inferiors check.
16579 * inf-ptrace.c (inf_ptrace_target::create_inferior)
16580 (inf_ptrace_target::attach): Adjust.
16581 * infcall.c (run_inferior_call): Adjust.
16582 * infcmd.c (run_command_1): Pass target to
16583 scoped_finish_thread_state.
16584 (proceed_thread_callback): Skip inferiors with no execution.
16585 (continue_command): Rename 'all_threads' local to avoid hiding
16586 'all_threads' function. Adjust get_last_target_status call.
16587 (prepare_one_step): Adjust set_running call.
16588 (signal_command): Use user_visible_resume_target. Compare thread
16589 pointers instead of inferior_ptid.
16590 (info_program_command): Adjust to pass down target.
16591 (attach_command): Mark target's 'thread_executing' flag.
16592 (stop_current_target_threads_ns): New, factored out from ...
16593 (interrupt_target_1): ... this. Switch inferior before making
16594 target calls.
16595 * inferior-iter.h
16596 (struct all_inferiors_iterator, struct all_inferiors_range)
16597 (struct all_inferiors_safe_range)
16598 (struct all_non_exited_inferiors_range): Filter on
16599 process_stratum_target too. Remove explicit.
16600 * inferior.c (inferior::inferior): Push dummy target on target
16601 stack.
16602 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
16603 Add process_stratum_target parameter, and pass it down.
16604 (have_live_inferiors): Adjust.
16605 (switch_to_inferior_and_push_target): New.
16606 (add_inferior_command, clone_inferior_command): Handle
16607 "-no-connection" parameter. Use
16608 switch_to_inferior_and_push_target.
16609 (_initialize_inferior): Mention "-no-connection" option in
16610 the help of "add-inferior" and "clone-inferior" commands.
16611 * inferior.h: Include "process-stratum-target.h".
16612 (interrupt_target_1): Use bool.
16613 (struct inferior) <push_target, unpush_target, target_is_pushed,
16614 find_target_beneath, top_target, process_target, target_at,
16615 m_stack>: New.
16616 (discard_all_inferiors): Delete.
16617 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
16618 (all_inferiors, all_non_exited_inferiors): Add
16619 process_stratum_target parameter.
16620 * infrun.c: Include "gdb_select.h" and <unordered_map>.
16621 (target_last_proc_target): New global.
16622 (follow_fork_inferior): Push target on new inferior. Pass target
16623 to add_thread_silent. Call exec_on_vfork. Handle target's
16624 reference count.
16625 (follow_fork): Adjust get_last_target_status call. Also consider
16626 target.
16627 (follow_exec): Push target on new inferior.
16628 (struct execution_control_state) <target>: New field.
16629 (user_visible_resume_target): New.
16630 (do_target_resume): Call target_async.
16631 (resume_1): Set target's threads_executing flag. Consider resume
16632 target.
16633 (commit_resume_all_targets): New.
16634 (proceed): Also consider resume target. Skip threads of inferiors
16635 with no execution. Commit resumtion in all targets.
16636 (start_remote): Pass current inferior to wait_for_inferior.
16637 (infrun_thread_stop_requested): Consider target as well. Pass
16638 thread_info pointer to clear_inline_frame_state instead of ptid.
16639 (infrun_thread_thread_exit): Consider target as well.
16640 (random_pending_event_thread): New inferior parameter. Use it.
16641 (do_target_wait): Rename to ...
16642 (do_target_wait_1): ... this. Add inferior parameter, and pass it
16643 down.
16644 (threads_are_resumed_pending_p, do_target_wait): New.
16645 (prepare_for_detach): Adjust calls.
16646 (wait_for_inferior): New inferior parameter. Handle it. Use
16647 do_target_wait_1 instead of do_target_wait.
16648 (fetch_inferior_event): Adjust. Switch to representative
16649 inferior. Pass target down.
16650 (set_last_target_status): Add process_stratum_target parameter.
16651 Save target in global.
16652 (get_last_target_status): Add process_stratum_target parameter and
16653 handle it.
16654 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
16655 (context_switch): Check inferior_ptid == null_ptid before calling
16656 inferior_thread().
16657 (get_inferior_stop_soon): Pass down target.
16658 (wait_one): Rename to ...
16659 (poll_one_curr_target): ... this.
16660 (struct wait_one_event): New.
16661 (wait_one): New.
16662 (stop_all_threads): Adjust.
16663 (handle_no_resumed, handle_inferior_event): Adjust to consider the
16664 event's target.
16665 (switch_back_to_stepped_thread): Also consider target.
16666 (print_stop_event): Update.
16667 (normal_stop): Update. Also consider the resume target.
16668 * infrun.h (wait_for_inferior): Remove declaration.
16669 (user_visible_resume_target): New declaration.
16670 (get_last_target_status, set_last_target_status): New
16671 process_stratum_target parameter.
16672 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16673 process_stratum_target parameter, and use it.
16674 (clear_inline_frame_state (thread_info*)): New.
16675 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16676 process_stratum_target parameter.
16677 (clear_inline_frame_state (thread_info*)): Declare.
16678 * linux-fork.c (delete_checkpoint_command): Pass target down to
16679 find_thread_ptid.
16680 (checkpoint_command): Adjust.
16681 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
16682 instead of just tweaking inferior_ptid.
16683 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
16684 (exit_lwp): Pass target down to find_thread_ptid.
16685 (attach_proc_task_lwp_callback): Pass target down to
16686 add_thread/set_running/set_executing.
16687 (linux_nat_target::attach): Pass target down to
16688 thread_change_ptid.
16689 (get_detach_signal): Pass target down to find_thread_ptid.
16690 Consider last target status's target.
16691 (linux_resume_one_lwp_throw, resume_lwp)
16692 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
16693 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
16694 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
16695 (linux_nat_target::async_wait_fd): New.
16696 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
16697 target down.
16698 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
16699 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
16700 * linux-thread-db.c (struct thread_db_info::process_target): New
16701 field.
16702 (add_thread_db_info): Save target.
16703 (get_thread_db_info): New process_stratum_target parameter. Also
16704 match target.
16705 (delete_thread_db_info): New process_stratum_target parameter.
16706 Also match target.
16707 (thread_from_lwp): Adjust to pass down target.
16708 (thread_db_notice_clone): Pass down target.
16709 (check_thread_db_callback): Pass down target.
16710 (try_thread_db_load_1): Always push the thread_db target.
16711 (try_thread_db_load, record_thread): Pass target down.
16712 (thread_db_target::detach): Pass target down. Always unpush the
16713 thread_db target.
16714 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
16715 target down. Always unpush the thread_db target.
16716 (find_new_threads_callback, thread_db_find_new_threads_2)
16717 (thread_db_target::update_thread_list): Pass target down.
16718 (thread_db_target::pid_to_str): Pass current inferior down.
16719 (thread_db_target::get_thread_local_address): Pass target down.
16720 (thread_db_target::resume, maintenance_check_libthread_db): Pass
16721 target down.
16722 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
16723 * procfs.c (procfs_target::procfs_init_inferior): Declare.
16724 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
16725 (procfs_init_inferior): Rename to ...
16726 (procfs_target::procfs_init_inferior): ... this and adjust.
16727 (procfs_target::create_inferior, procfs_notice_thread)
16728 (procfs_do_thread_registers): Adjust.
16729 * ppc-fbsd-tdep.c: Include "inferior.h".
16730 (ppcfbsd_get_thread_local_address): Pass down target.
16731 * proc-service.c (ps_xfer_memory): Switch current inferior and
16732 program space as well.
16733 (get_ps_regcache): Pass target down.
16734 * process-stratum-target.c
16735 (process_stratum_target::thread_address_space)
16736 (process_stratum_target::thread_architecture): Pass target down.
16737 * process-stratum-target.h
16738 (process_stratum_target::threads_executing): New field.
16739 (as_process_stratum_target): New.
16740 * ravenscar-thread.c
16741 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
16742 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
16743 down.
16744 * record-btrace.c (record_btrace_target::info_record): Adjust.
16745 (record_btrace_target::record_method)
16746 (record_btrace_target::record_is_replaying)
16747 (record_btrace_target::fetch_registers)
16748 (get_thread_current_frame_id, record_btrace_target::resume)
16749 (record_btrace_target::wait, record_btrace_target::stop): Pass
16750 target down.
16751 * record-full.c (record_full_wait_1): Switch to event thread.
16752 Pass target down.
16753 * regcache.c (regcache::regcache)
16754 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
16755 process_stratum_target parameter and handle it.
16756 (current_thread_target): New global.
16757 (get_thread_regcache): Add process_stratum_target parameter and
16758 handle it. Switch inferior before calling target method.
16759 (get_thread_regcache): Pass target down.
16760 (get_thread_regcache_for_ptid): Pass target down.
16761 (registers_changed_ptid): Add process_stratum_target parameter and
16762 handle it.
16763 (registers_changed_thread, registers_changed): Pass target down.
16764 (test_get_thread_arch_aspace_regcache): New.
16765 (current_regcache_test): Define a couple local test_target_ops
16766 instances and use them for testing.
16767 (readwrite_regcache): Pass process_stratum_target parameter.
16768 (cooked_read_test, cooked_write_test): Pass mock_target down.
16769 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
16770 (get_thread_arch_aspace_regcache): Add process_stratum_target
16771 parameter.
16772 (regcache::target): New method.
16773 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
16774 (regcache::registers_changed_ptid): Add process_stratum_target
16775 parameter.
16776 (regcache::m_target): New field.
16777 (registers_changed_ptid): Add process_stratum_target parameter.
16778 * remote.c (remote_state::supports_vCont_probed): New field.
16779 (remote_target::async_wait_fd): New method.
16780 (remote_unpush_and_throw): Add remote_target parameter.
16781 (get_current_remote_target): Adjust.
16782 (remote_target::remote_add_inferior): Push target.
16783 (remote_target::remote_add_thread)
16784 (remote_target::remote_notice_new_inferior)
16785 (get_remote_thread_info): Pass target down.
16786 (remote_target::update_thread_list): Skip threads of inferiors
16787 bound to other targets. (remote_target::close): Don't discard
16788 inferiors. (remote_target::add_current_inferior_and_thread)
16789 (remote_target::process_initial_stop_replies)
16790 (remote_target::start_remote)
16791 (remote_target::remote_serial_quit_handler): Pass down target.
16792 (remote_target::remote_unpush_target): New remote_target
16793 parameter. Unpush the target from all inferiors.
16794 (remote_target::remote_unpush_and_throw): New remote_target
16795 parameter. Pass it down.
16796 (remote_target::open_1): Check whether the current inferior has
16797 execution instead of checking whether any inferior is live. Pass
16798 target down.
16799 (remote_target::remote_detach_1): Pass down target. Use
16800 remote_unpush_target.
16801 (extended_remote_target::attach): Pass down target.
16802 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
16803 (remote_target::append_resumption): Pass down target.
16804 (remote_target::append_pending_thread_resumptions)
16805 (remote_target::remote_resume_with_hc, remote_target::resume)
16806 (remote_target::commit_resume): Pass down target.
16807 (remote_target::remote_stop_ns): Check supports_vCont_probed.
16808 (remote_target::interrupt_query)
16809 (remote_target::remove_new_fork_children)
16810 (remote_target::check_pending_events_prevent_wildcard_vcont)
16811 (remote_target::remote_parse_stop_reply)
16812 (remote_target::process_stop_reply): Pass down target.
16813 (first_remote_resumed_thread): New remote_target parameter. Pass
16814 it down.
16815 (remote_target::wait_as): Pass down target.
16816 (unpush_and_perror): New remote_target parameter. Pass it down.
16817 (remote_target::readchar, remote_target::remote_serial_write)
16818 (remote_target::getpkt_or_notif_sane_1)
16819 (remote_target::kill_new_fork_children, remote_target::kill): Pass
16820 down target.
16821 (remote_target::mourn_inferior): Pass down target. Use
16822 remote_unpush_target.
16823 (remote_target::core_of_thread)
16824 (remote_target::remote_btrace_maybe_reopen): Pass down target.
16825 (remote_target::pid_to_exec_file)
16826 (remote_target::thread_handle_to_thread_info): Pass down target.
16827 (remote_target::async_wait_fd): New.
16828 * riscv-fbsd-tdep.c: Include "inferior.h".
16829 (riscv_fbsd_get_thread_local_address): Pass down target.
16830 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
16831 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
16832 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
16833 Adjust.
16834 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
16835 * solib-svr4.c (enable_break): Pass down target.
16836 * spu-multiarch.c (parse_spufs_run): Pass down target.
16837 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
16838 * target-delegates.c: Regenerate.
16839 * target.c (g_target_stack): Delete.
16840 (current_top_target): Return the current inferior's top target.
16841 (target_has_execution_1): Refer to the passed-in inferior's top
16842 target.
16843 (target_supports_terminal_ours): Check whether the initial
16844 inferior was already created.
16845 (decref_target): New.
16846 (target_stack::push): Incref/decref the target.
16847 (push_target, push_target, unpush_target): Adjust.
16848 (target_stack::unpush): Defref target.
16849 (target_is_pushed): Return bool. Adjust to refer to the current
16850 inferior's target stack.
16851 (dispose_inferior): Delete, and inline parts ...
16852 (target_preopen): ... here. Only dispose of the current inferior.
16853 (target_detach): Hold strong target reference while detaching.
16854 Pass target down.
16855 (target_thread_name): Add assertion.
16856 (target_resume): Pass down target.
16857 (target_ops::beneath, find_target_at): Adjust to refer to the
16858 current inferior's target stack.
16859 (get_dummy_target): New.
16860 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
16861 has a thread running.
16862 (initialize_targets): Rename to ...
16863 (_initialize_target): ... this.
16864 * target.h: Include "gdbsupport/refcounted-object.h".
16865 (struct target_ops): Inherit refcounted_object.
16866 (target_ops::shortname, target_ops::longname): Make const.
16867 (target_ops::async_wait_fd): New method.
16868 (decref_target): Declare.
16869 (struct target_ops_ref_policy): New.
16870 (target_ops_ref): New typedef.
16871 (get_dummy_target): Declare function.
16872 (target_is_pushed): Return bool.
16873 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
16874 (all_matching_threads_iterator::all_matching_threads_iterator):
16875 Handle filter target.
16876 * thread-iter.h (struct all_matching_threads_iterator, struct
16877 all_matching_threads_range, class all_non_exited_threads_range):
16878 Filter by target too. Remove explicit.
16879 * thread.c (threads_executing): Delete.
16880 (inferior_thread): Pass down current inferior.
16881 (clear_thread_inferior_resources): Pass down thread pointer
16882 instead of ptid_t.
16883 (add_thread_silent, add_thread_with_info, add_thread): Add
16884 process_stratum_target parameter. Use it for thread and inferior
16885 searches.
16886 (is_current_thread): New.
16887 (thread_info::deletable): Use it.
16888 (find_thread_ptid, thread_count, in_thread_list)
16889 (thread_change_ptid, set_resumed, set_running): New
16890 process_stratum_target parameter. Pass it down.
16891 (set_executing): New process_stratum_target parameter. Pass it
16892 down. Adjust reference to 'threads_executing'.
16893 (threads_are_executing): New process_stratum_target parameter.
16894 Adjust reference to 'threads_executing'.
16895 (set_stop_requested, finish_thread_state): New
16896 process_stratum_target parameter. Pass it down.
16897 (switch_to_thread): Also match inferior.
16898 (switch_to_thread): New process_stratum_target parameter. Pass it
16899 down.
16900 (update_threads_executing): Reimplement.
16901 * top.c (quit_force): Pop targets from all inferior.
16902 (gdb_init): Don't call initialize_targets.
16903 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
16904 Declare.
16905 (windows_add_thread, windows_delete_thread): Adjust.
16906 (get_windows_debug_event): Rename to ...
16907 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
16908 * tracefile-tfile.c (tfile_target_open): Pass down target.
16909 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
16910 Forward declare.
16911 (switch_to_thread): Add process_stratum_target parameter.
16912 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
16913 parameter. Use it.
16914 (mi_on_resume): Pass target down.
16915 * nat/fork-inferior.c (startup_inferior): Add
16916 process_stratum_target parameter. Pass it down.
16917 * nat/fork-inferior.h (startup_inferior): Add
16918 process_stratum_target parameter.
16919 * python/py-threadevent.c (py_get_event_thread): Pass target down.
16920
75c6c844
PA
169212020-01-10 Pedro Alves <palves@redhat.com>
16922
16923 * remote.c (remote_target::start_remote): Don't set inferior_ptid
16924 directly. Instead find the first thread in the thread list and
16925 use switch_to_thread.
16926
78f2c40a
PA
169272020-01-10 Pedro Alves <palves@redhat.com>
16928
16929 * remote.c (remote_target::remote_add_inferior): Don't bind a
16930 process to the current inferior if the current inferior is already
16931 bound to a process.
16932
e7af6c70
TBA
169332020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16934 Pedro Alves <palves@redhat.com>
16935
16936 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
16937 If no process is specified, return null_ptid instead of
16938 inferior_ptid.
16939 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
16940 TARGET_WAITKIND_SIGNALLED with no pid.
16941
31ba933e
PA
169422020-01-10 Pedro Alves <palves@redhat.com>
16943
16944 * remote.c (first_remote_resumed_thread): New.
16945 (remote_target::wait_as): Use it as default event_ptid instead of
16946 inferior_ptid.
16947
735fc2ca
PA
169482020-01-10 Pedro Alves <palves@redhat.com>
16949
16950 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
16951
c17e02e1
PA
169522020-01-10 Pedro Alves <palves@redhat.com>
16953
16954 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
16955 not -1.
16956
ab1ddbcf
PA
169572020-01-10 Pedro Alves <palves@redhat.com>
16958
16959 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
16960 ptid to get_last_target_status.
16961 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
16962 ptid to get_last_target_status.
16963 * infcmd.c (continue_command): Don't pass a target_waitstatus to
16964 get_last_target_status.
16965 (info_program_command): Don't pass a target_waitstatus to
16966 get_last_target_status.
16967 * infrun.c (init_wait_for_inferior): Use
16968 nullify_last_target_wait_ptid.
16969 (get_last_target_status): Handle nullptr arguments.
16970 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
16971 (print_stop_event): Don't pass a ptid to get_last_target_status.
16972 (normal_stop): Don't pass a ptid to get_last_target_status.
16973 * infrun.h (get_last_target_status, set_last_target_status): Move
16974 comments here and update.
16975 (nullify_last_target_wait_ptid): Declare.
16976 * linux-fork.c (fork_load_infrun_state): Remove local extern
16977 declaration of nullify_last_target_wait_ptid.
16978 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
16979 to get_last_target_status.
16980
f3f8ece4
PA
169812020-01-10 Pedro Alves <palves@redhat.com>
16982
16983 * gdbthread.h (scoped_restore_current_thread)
16984 <dont_restore, restore, m_dont_restore>: Declare.
16985 * thread.c (thread_alive): Add assertion. Return bool.
16986 (switch_to_thread_if_alive): New.
16987 (prune_threads): Switch inferior/thread.
16988 (print_thread_info_1): Switch thread before calling target methods.
16989 (scoped_restore_current_thread::restore): New, factored out from
16990 ...
16991 (scoped_restore_current_thread::~scoped_restore_current_thread):
16992 ... this.
16993 (scoped_restore_current_thread::scoped_restore_current_thread):
16994 Add assertion.
16995 (thread_apply_all_command, thread_select): Use
16996 switch_to_thread_if_alive.
16997 * infrun.c (proceed, restart_threads, handle_signal_stop)
16998 (switch_back_to_stepped_thread): Switch current thread before
16999 calling target methods.
17000
db2d40f7
PA
170012020-01-10 Pedro Alves <palves@redhat.com>
17002
17003 * inferior.c (switch_to_inferior_no_thread): New function,
17004 factored out from ...
17005 (inferior_command): ... here.
17006 * inferior.h (switch_to_inferior_no_thread): Declare.
17007 * mi/mi-main.c (run_one_inferior): Use
17008 switch_to_inferior_no_thread.
17009
bd420a2d
PA
170102020-01-10 Pedro Alves <palves@redhat.com>
17011
17012 * infcmd.c (kill_command): Remove dead code.
17013
ddf5db90
PA
170142020-01-10 Pedro Alves <palves@redhat.com>
17015
17016 * remote.c (remote_target::mourn_inferior): No longer check
17017 whether the target is running.
17018
5018ce90
PA
170192020-01-10 Pedro Alves <palves@redhat.com>
17020
17021 * corelow.c (core_target::has_execution): Change parameter type to
17022 inferior pointer.
17023 * inferior.c (number_of_live_inferiors): Use
17024 inferior::has_execution instead of target_has_execution_1.
17025 * inferior.h (inferior::has_execution): New.
17026 * linux-thread-db.c (thread_db_target::update_thread_list): Use
17027 inferior::has_execution instead of target_has_execution_1.
17028 * process-stratum-target.c
17029 (process_stratum_target::has_execution): Change parameter type to
17030 inferior pointer. Check the inferior's PID instead of
17031 inferior_ptid.
17032 * process-stratum-target.h
17033 (process_stratum_target::has_execution): Change parameter type to
17034 inferior pointer.
17035 * record-full.c (record_full_core_target::has_execution): Change
17036 parameter type to inferior pointer.
17037 * target.c (target_has_execution_1): Change parameter type to
17038 inferior pointer.
17039 (target_has_execution_current): Adjust.
17040 * target.h (target_ops::has_execution): Change parameter type to
17041 inferior pointer.
17042 (target_has_execution_1): Change parameter type to inferior
17043 pointer. Change return type to bool.
17044 * tracefile.h (tracefile_target::has_execution): Change parameter
17045 type to inferior pointer.
17046
74375d18
PA
170472020-01-10 Pedro Alves <palves@redhat.com>
17048
17049 * exceptions.c (print_flush): Remove current_top_target() check.
17050
acdf84a6
PA
170512020-01-10 Pedro Alves <palves@redhat.com>
17052
17053 * remote.c (show_remote_exec_file): Show the current inferior's
17054 exec-file instead of the command variable's value.
17055
ec506636
PA
170562020-01-10 Pedro Alves <palves@redhat.com>
17057
17058 * record-full.c (record_full_resume_ptid): New global.
17059 (record_full_target::resume): Set it.
17060 (record_full_wait_1): Use record_full_resume_ptid instead of
17061 inferior_ptid.
17062
873657b9
PA
170632020-01-10 Pedro Alves <palves@redhat.com>
17064
17065 * gdbthread.h (scoped_restore_current_thread)
17066 <dont_restore, restore, m_dont_restore>: Declare.
17067 * thread.c (thread_alive): Add assertion. Return bool.
17068 (switch_to_thread_if_alive): New.
17069 (prune_threads): Switch inferior/thread.
17070 (print_thread_info_1): Switch thread before calling target methods.
17071 (scoped_restore_current_thread::restore): New, factored out from
17072 ...
17073 (scoped_restore_current_thread::~scoped_restore_current_thread):
17074 ... this.
17075 (scoped_restore_current_thread::scoped_restore_current_thread):
17076 Add assertion.
17077 (thread_apply_all_command, thread_select): Use
17078 switch_to_thread_if_alive.
17079
7f0ae84c
GB
170802020-01-10 George Barrett <bob@bob131.so>
17081
17082 * stap-probe.c (stap_modify_semaphore): Don't check for null
17083 semaphores.
17084 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
17085 for null semaphores.
17086
f5a7c406
AB
170872020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17088
17089 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
17090 all source windows, and maintain horizontal scroll status while
17091 doing so.
17092
9ae6bf64
TT
170932020-01-09 Tom Tromey <tom@tromey.com>
17094
17095 PR tui/18932:
17096 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
17097 update_source_window, not print_source_lines.
17098
b2efe70c
AB
170992020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17100
17101 * tui/tui.c (tui_enable): Register tui hooks after calling
17102 tui_display_main.
17103
5f23a082
CB
171042020-01-09 Christian Biesinger <cbiesinger@google.com>
17105
17106 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
17107
3061113b
SM
171082020-01-08 Simon Marchi <simon.marchi@efficios.com>
17109
17110 * thread.c (print_thread_info_1): Fix indentation.
17111
57d75002
CB
171122020-01-09 Christian Biesinger <cbiesinger@google.com>
17113
17114 * symtab.c (general_symbol_info::compute_and_set_names): Move the
17115 unique_xmalloc_ptr outside the if to always free the demangled name.
17116
6a053cb1
TT
171172020-01-08 Tom Tromey <tromey@adacore.com>
17118
17119 * xcoffread.c (enter_line_range, read_xcoff_symtab)
17120 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
17121 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
17122 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
17123 Remove.
17124 (section_offsets): New typedef.
17125 * symtab.c (fixup_section, get_msymbol_address): Update.
17126 * symmisc.c (dump_msymbols): Update.
17127 * symfile.h (relative_addr_info_to_section_offsets)
17128 (symfile_map_offsets_to_segments): Update.
17129 * symfile.c (build_section_addr_info_from_objfile)
17130 (init_objfile_sect_indices): Update.
17131 (struct place_section_arg): Change type of "offsets".
17132 (place_section): Update.
17133 (relative_addr_info_to_section_offsets): Change type of
17134 "section_offsets". Remove "num_sections" parameter.
17135 (default_symfile_offsets, syms_from_objfile_1)
17136 (set_objfile_default_section_offset): Update.
17137 (reread_symbols): No need to preserve section offsets by hand.
17138 (symfile_map_offsets_to_segments): Change type of "offsets".
17139 * stap-probe.c (relocate_address): Update.
17140 * stabsread.h (process_one_symbol): Update.
17141 * solib-target.c (struct lm_info_target) <offsets>: Change type.
17142 (solib_target_relocate_section_addresses): Update.
17143 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
17144 Update.
17145 * solib-frv.c (frv_relocate_main_executable): Update.
17146 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
17147 * solib-aix.c (solib_aix_get_section_offsets): Change return
17148 type.
17149 (solib_aix_solib_create_inferior_hook): Update.
17150 * remote.c (remote_target::get_offsets): Update.
17151 * psymtab.c (find_pc_sect_psymtab): Update.
17152 * psympriv.h (struct partial_symbol) <address, text_low,
17153 text_high>: Update.
17154 * objfiles.h (obj_section_offset): Update.
17155 (struct objfile) <section_offsets>: Change type.
17156 <num_sections>: Remove.
17157 (objfile_relocate): Update.
17158 * objfiles.c (entry_point_address_query): Update
17159 (relocate_one_symbol): Change type of "section_offsets".
17160 (objfile_relocate1, objfile_relocate1): Change type of
17161 "new_offsets".
17162 (objfile_rebase1): Update.
17163 * mipsread.c (mipscoff_symfile_read): Update.
17164 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
17165 parameter.
17166 * mdebugread.c (parse_symbol): Change type of "section_offsets".
17167 (parse_external, psymtab_to_symtab_1): Update.
17168 * machoread.c (macho_symfile_offsets): Update.
17169 * ia64-tdep.c (ia64_find_unwind_table): Update.
17170 * hppa-tdep.c (read_unwind_info): Update.
17171 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
17172 * dwarf2read.c (create_addrmap_from_index)
17173 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
17174 (process_psymtab_comp_unit_reader, add_partial_symbol)
17175 (add_partial_subprogram, process_full_comp_unit)
17176 (read_file_scope, read_func_scope, read_lexical_block_scope)
17177 (read_call_site_scope, dwarf2_rnglists_process)
17178 (dwarf2_ranges_process, dwarf2_ranges_read)
17179 (dwarf_decode_lines_1, var_decode_location, new_symbol)
17180 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
17181 Update.
17182 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
17183 Update.
17184 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
17185 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
17186 (process_one_symbol): Change type of "section_offsets".
17187 * ctfread.c (get_objfile_text_range): Update.
17188 * coffread.c (coff_symtab_read, enter_linenos)
17189 (process_coff_symbol): Update.
17190 * coff-pe-read.c (add_pe_forwarded_sym): Update.
17191 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
17192
456e800a
TT
171932020-01-08 Tom Tromey <tromey@adacore.com>
17194
17195 * dwarf2read.c (parse_macro_definition): Use std::string.
17196 (parse_macro_definition): Likewise.
17197
6dfa2fc2
TT
171982020-01-08 Tom Tromey <tromey@adacore.com>
17199
17200 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
17201 (ATTR_ALLOC_CHUNK): Remove.
17202
421d1616
TT
172032020-01-08 Tom Tromey <tromey@adacore.com>
17204
17205 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
17206
43816ebc
TT
172072020-01-08 Tom Tromey <tromey@adacore.com>
17208
17209 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
17210 (dwarf2_compute_name, open_dwo_file): Likewise.
17211 (process_enumeration_scope): Use std::vector.
17212 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
17213 (partial_die_info::fixup, dwarf2_start_subfile)
17214 (guess_full_die_structure_name, dwarf2_name): Likewise.
17215 (determine_prefix): Update.
17216 (guess_full_die_structure_name): Make return type const.
17217 (partial_die_full_name): Return unique_xmalloc_ptr.
17218 (DW_FIELD_ALLOC_CHUNK): Remove.
17219
4212d509
TT
172202020-01-07 Tom Tromey <tromey@adacore.com>
17221
17222 PR build/24937:
17223 * stap-probe.c (class stap_static_probe_ops): Add constructor.
17224
06a6207a
JT
172252020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17226
17227 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
17228
153d79c4
AB
172292020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
17230
17231 * stack.c (print_frame_info): Move disassemble_next_line code
17232 inside source_print block.
17233
66182876
EZ
172342020-01-06 Eli Zaretskii <eliz@gnu.org>
17235
17236 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
17237 gdb/signals.h, as we are now using native signal symbols.
17238
cbfa8581
SV
172392020-01-06 Shahab Vahedi <shahab@synopsys.com>
17240
17241 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
17242 overflow by an early check of content vs threshold.
aac66a4c 17243 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
17244 Likewise.
17245
3f602821
EZ
172462020-01-06 Eli Zaretskii <eliz@gnu.org>
17247
17248 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
17249
a08c904d
JT
172502020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17251
17252 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
17253 export table if no section contains it's RVA.
17254
89a65580
EZ
172552020-01-06 Eli Zaretskii <eliz@gnu.org>
17256
17257 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
17258
8b7fcda2
HD
172592020-01-06 Hannes Domani <ssbssa@yahoo.de>
17260
17261 * source.c (print_source_lines_base): Set last_line_listed.
17262
a61b4f69
SV
172632020-01-06 Shahab Vahedi <shahab@synopsys.com>
17264
17265 * tui/tui-disasm.c: Remove trailing spaces.
17266
559e7e50
EZ
172672020-01-06 Eli Zaretskii <eliz@gnu.org>
17268 Pedro Alves <palves@redhat.com>
17269
17270 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
17271 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
17272 (windows_gdb_signal_to_target): New function, uses the above
17273 enumeration to convert GDB internal signal codes to equivalent
17274 Windows codes.
17275 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
17276 * windows-nat.c: Include "gdb_wait.h".
17277 (get_windows_debug_event): Extract the fatal exception from the
17278 exit status and convert to the equivalent Posix signal number.
17279 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
17280 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
17281 * gdbsupport/gdb_wait.c: New file, implements
17282 windows_status_to_termsig.
17283 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
17284 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
17285
f2302a34
AB
172862020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
17287
17288 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
17289 show_layout.
17290
6a5206eb
LM
172912020-01-05 Luis Machado <luis.machado@linaro.org>
17292
17293 * aarch64-linux-nat.c
17294 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
17295 and bfd_mach_aarch64.
17296
6ec1d75e
PW
172972020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17298
17299 * ui-file.c (stdio_file::can_emit_style_escape)
17300 (tee_file::can_emit_style_escape): Ensure style is used also on
17301 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
17302 to gdb_stdout.
17303 * main.c (set_gdb_data_directory): Use file style to output the
17304 warning that the given pathname is not a directory.
17305 * top.c (show_history_filename, gdb_safe_append_history)
17306 (show_gdb_datadir): Use file style.
17307
44f81a76
HD
173082020-01-03 Hannes Domani <ssbssa@yahoo.de>
17309
17310 * solib-target.c (struct lm_info_target):
17311 Change offsets to be a unique_xmalloc_ptr.
17312 (solib_target_relocate_section_addresses): Update.
17313
25057eb0
HD
173142020-01-03 Hannes Domani <ssbssa@yahoo.de>
17315
17316 * windows-nat.c (windows_clear_solib): Free so_list linked list.
17317
6e2118f5
BE
173182020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
17319
17320 * MAINTAINERS (Write After Approval): Add myself.
17321
8133c7dc
LM
173222020-01-02 Luis Machado <luis.machado@linaro.org>
17323
17324 * proc-service.c (get_ps_regcache): Remove reference to obsolete
17325 Cell BE architecture.
17326 * target.h (struct target_ops) <thread_architecture>: Likewise.
17327
48189bec
HD
173282020-01-01 Hannes Domani <ssbssa@yahoo.de>
17329
17330 * Makefile.in: Use INSTALL_PROGRAM_ENV.
17331
ead1063b
HD
173322020-01-01 Hannes Domani <ssbssa@yahoo.de>
17333
17334 * MAINTAINERS (Write After Approval): Add myself.
17335
e5d78223
JB
173362020-01-01 Joel Brobecker <brobecker@adacore.com>
17337
17338 * gdbarch.sh: Update copyright year range of generated files.
17339
b811d2c2
JB
173402020-01-01 Joel Brobecker <brobecker@adacore.com>
17341
17342 Update copyright year range in all GDB files.
17343
5f4def5c
JB
173442020-01-01 Joel Brobecker <brobecker@adacore.com>
17345
17346 * copyright.py: Convert to Python 3.
17347
51fd4002
JB
173482020-01-01 Joel Brobecker <brobecker@adacore.com>
17349
17350 * copyright.py: Adapt after move of gnulib directory from gdb
17351 directory to toplevel directory.
17352
5fb651f2
JB
173532020-01-01 Joel Brobecker <brobecker@adacore.com>
17354
17355 * copyright.py (main): Exit if run from the wrong directory.
17356
5dd8bf88
JB
173572020-01-01 Joel Brobecker <brobecker@adacore.com>
17358
17359 * top.c (print_gdb_version): Change copyright year to 2020.
17360
9f71dacb 173612020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 17362
9f71dacb 17363 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 17364
9f71dacb 17365For older changes see ChangeLog-2019.
c906108c
SS
17366\f
17367Local Variables:
17368mode: change-log
17369left-margin: 8
17370fill-column: 74
17371version-control: never
57da7796 17372coding: utf-8
c906108c 17373End:
This page took 3.151372 seconds and 4 git commands to generate.