gdb/README: Fix the URL of the MPFR website (now https).
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
2c20a601
JB
12020-11-24 Joel Brobecker <brobecker@adacore.com>
2
3 * README: Fix the URL of the MPFR library.
4
c609df64
JB
52020-11-24 Joel Brobecker <brobecker@adacore.com>
6
7 * README: Document the --with-libgmp-prefix configure option.
8
fa123c32
JB
92020-11-24 Joel Brobecker <brobecker@adacore.com>
10
11 * NEWS: Add entry documenting support for DWARF-based fixed
12 point types.
13
0fb8bb02
JB
142020-11-24 Joel Brobecker <brobecker@adacore.com>
15
16 * NEWS: Document that building GDB now requires GMP.
17
4afa9fd9
JB
182020-11-24 Joel Brobecker <brobecker@adacore.com>
19
20 * typeprint.c (print_type_scalar): Add handling of
21 TYPE_CODE_FIXED_POINT.
22
af619ce9
JB
232020-11-24 Joel Brobecker <brobecker@adacore.com>
24
25 * valarith.c (fixed_point_binop): Replace the
26 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
27 users accordingly.
28
e6fcee3a
JB
292020-11-24 Joel Brobecker <brobecker@adacore.com>
30
31 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
32 replacing fixed_point_scaling_factor. All callers updated
33 throughout this project.
34 (fixed_point_scaling_factor): Delete declaration.
35 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
36 fixed_point_scaling_factor. Adjust implementation accordingly.
37
d19937a7
JB
382020-11-24 Joel Brobecker <brobecker@adacore.com>
39
40 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
41 replacing the fixed_point_type_base_type function. All callers
42 updated throughout this project.
43 (fixed_point_type_base_type): Remove declaration.
44 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
45 fixed_point_type_base_type. Adjust implementation accordingly.
46
2a12c336
JB
472020-11-24 Joel Brobecker <brobecker@adacore.com>
48
49 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
50 New methods.
51 (INIT_FIXED_POINT_SPECIFIC): Adjust.
52 (TYPE_FIXED_POINT_INFO): Delete macro.
53 (allocate_fixed_point_type_info): Change return type to void.
54 * gdbtypes.c (copy_type_recursive): Replace the use of
55 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
56 (fixed_point_scaling_factor): Likewise.
57 (allocate_fixed_point_type_info): Change return type to void.
58 Adjust implementation accordingly.
59 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
60 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
61
c9f0b43f
JB
622020-11-24 Joel Brobecker <brobecker@adacore.com>
63
64 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
65 into one single gdb::array_view parameter.
66 (gdb_mpz::write): Likewise.
67 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
68 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
69 into one single gdb::array_view parameter.
70 Adjust implementation accordingly.
71 (gdb_mpz::write): Likewise.
72 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
73 * unittests/gmp-utils-selftests.c: Adapt following changes above.
74 * valarith.c, valops.c, valprint.c, value.c: Likewise.
75
987b6703
JB
762020-11-24 Joel Brobecker <brobecker@adacore.com>
77
78 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
79 Change return type to std::string. Update all callers.
80 * gmp-utils.c (gmp_string_printf): Likewise.
81
4fbb7cce
JB
822020-11-24 Joel Brobecker <brobecker@adacore.com>
83
84 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
85 instead of mpq_set_ui to initialize our GMP rational.
86
d6ab69dd
TV
872020-11-23 Tom de Vries <tdevries@suse.de>
88
89 * debuginfod-support.c (debuginfod_source_query)
90 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
91
dab72643
TT
922020-11-21 Tom Tromey <tom@tromey.com>
93
94 * breakpoint.c (watchpoint_exp_is_const): Return bool.
95
c0ad05d5
SM
962020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
97
98 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
99 Pass 2.0 to pow.
100 (gdb_mpz_write_all_from_small): Likewise.
101
a43b29c9
SM
1022020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
103
104 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
105 of abs.
106
ae41200b
NA
1072020-11-20 Nick Alcock <nick.alcock@oracle.com>
108
109 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
110 ctf_arc_open_by_name.
111
139633c3
NA
1122020-11-20 Nick Alcock <nick.alcock@oracle.com>
113
114 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
115 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
116
cbbcd7a7
PA
1172020-11-20 Pedro Alves <pedro@palves.net>
118
119 * language.c (language_arch_info::lookup_primitive_type): Use
120 gdb::function_view instead of gdb::function.
121 (template language_lookup_primitive_type): Rename to ...
122 (language_lookup_primitive_type_1): ... this, and make static.
123 (language_lookup_primitive_type(const struct language_defn *,
124 struct gdbarch *, const char *): Make non-template.
125 (language_lookup_primitive_type(const struct language_defn *,
126 struct gdbarch *, std::function<bool (struct type *)>): Make
127 non-template and use gdb::function_view.
128 * language.h (language_arch_info::lookup_primitive_type): Use
129 gdb::function_view instead of std::function.
130 (language_lookup_primitive_type): No longer template.
131 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
132 lambda instead of a std::function.
133
d5ef21c3
AA
1342020-11-19 Andreas Arnez <arnez@linux.ibm.com>
135
136 PR tdep/26916
137 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
138 and STOCFH.
139
a5adb8f3
SM
1402020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
141
142 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
143
70125a45
SM
1442020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
145
146 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
147 in `loop_cb` parameter.
148 * gdbarch.c: Re-generate.
149 * gdbarch.h: Re-generate.
150 * arch-utils.c (default_read_core_file_mappings): Remove `other`
151 parameter.
152 * arch-utils.h (default_read_core_file_mappings): Likewise.
153 * corelow.c (core_target::build_file_mappings): Likewise.
154 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
155 (linux_core_info_proc_mappings): Likewise.
156
a5c641b5
AB
1572020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
158
159 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
160 * NEWS: Mention new options.
161 * f-array-walker.h: New file.
162 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
163 (repack_array_slices): New static global.
164 (show_repack_array_slices): New function.
165 (fortran_array_slicing_debug): New static global.
166 (show_fortran_array_slicing_debug): New function.
167 (value_f90_subarray): Delete.
168 (skip_undetermined_arglist): Delete.
169 (class fortran_array_repacker_base_impl): New class.
170 (class fortran_lazy_array_repacker_impl): New class.
171 (class fortran_array_repacker_impl): New class.
172 (fortran_value_subarray): Complete rewrite.
173 (set_fortran_list): New static global.
174 (show_fortran_list): Likewise.
175 (_initialize_f_language): Register new commands.
176 (fortran_adjust_dynamic_array_base_address_hack): New function.
177 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
178 Declare.
179 * f-valprint.c: Include 'f-array-walker.h'.
180 (class fortran_array_printer_impl): New class.
181 (f77_print_array_1): Delete.
182 (f77_print_array): Delete.
183 (fortran_print_array): New.
184 (f_value_print_inner): Update to call fortran_print_array.
185 * gdbtypes.c: Include 'f-lang.h'.
186 (resolve_dynamic_type_internal): Call
187 fortran_adjust_dynamic_array_base_address_hack.
188
a15a5258
AB
1892020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
190
191 * breakpoint.c (struct watch_options): New struct.
192 (watch_option_defs): New static global.
193 (make_watch_options_def_group): New function.
194 (watch_maybe_just_location): Convert option parsing.
195 (watch_command_completer): New function.
196 (_initialize_breakpoint): Build help text using options mechanism.
197
2e362716
AB
1982020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
199
200 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
201 (watch_command_1): Update parameter types. Convert locals to
202 bool.
203 (watch_command_wrapper): Change parameter type.
204 (watch_maybe_just_location): Change locals to bool.
205 (rwatch_command_wrapper): Update parameter type.
206 (awatch_command_wrapper): Update parameter type.
207 * breakpoint.h (watch_command_wrapper): Change parameter type.
208 (rwatch_command_wrapper): Update parameter type.
209 (awatch_command_wrapper): Update parameter type.
210 * eval.c (fetch_subexp_value): Change parameter type.
211 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
212 'false' not '0'.
213 * value.h (fetch_subexp_value): Change parameter type in
214 declaration.
215
b3ff61f8
AB
2162020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
217
218 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
219 skip_spaces.
220
5b7d45d3
KS
2212020-11-18 Keith Seitz <keiths@redhat.com>
222
223 * linux-tdep.c (dump_note_entry_p): Return true instead of
224 checking `filename'.
225
c44191f8
TV
2262020-11-18 Tom de Vries <tdevries@suse.de>
227
228 * debuginfod-support.c (debuginfod_source_query)
229 (debuginfod_debuginfo_query): Also do early exit if
230 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
231
5d8254e1
TV
2322020-11-18 Tom de Vries <tdevries@suse.de>
233
234 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
235 warning.
236
584903d3
SM
2372020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
238
239 * gdbtypes.h (get_array_bounds): Return bool, adjust some
240 callers. Move doc here.
241 * gdbtypes.c (get_array_bounds): Return bool
242
6f2643db
AB
2432020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
244
245 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
246 assert.
247 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
248 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
249 case to the default.
250
037d7135
AB
2512020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
252
253 * printcmd.c: Include 'safe-ctype.c'.
254 (skip_over_slash_fmt): New function.
255 (print_command_completer): Call skip_over_slash_fmt.
256 (display_and_x_command_completer): New function.
257 (_initialize_printcmd): Add command completion for 'x' and
258 'display'.
259
2b3cb400
PA
2602020-11-16 Pedro Alves <pedro@palves.net>
261
262 * frame.c (get_prev_frame): Move get_frame_id call from here ...
263 (get_prev_frame_always_1): ... to here.
264 * inline-frame.c (inline_frame_this_id): Mention
265 get_prev_frame_always_1 in comment.
266
b74dbc20
JB
2672020-11-15 Joel Brobecker <brobecker@adacore.com>
268
269 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
270 handling.
271 (value_less): Add fixed-point handling.
272
0a12719e
JB
2732020-11-15 Joel Brobecker <brobecker@adacore.com>
274
275 * eval.c (binop_promote): Add fixed-point type handling.
276 * valarith.c (fixed_point_binop): New function.
277 (scalar_binop): Add fixed-point type handling.
278 (value_neg): Add fixed-point type handling.
279 * valops.c (value_cast_to_fixed_point): New function.
280 (value_cast): Add fixed-point type handling.
281
0c9150e4
JB
2822020-11-15 Joel Brobecker <brobecker@adacore.com>
283
284 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
285 range types.
286 * c-typeprint.c (c_type_print_varspec_prefix)
287 (c_type_print_varspec_suffix, c_type_print_base_1): Add
288 TYPE_CODE_FIXED_POINT handling.
289 * p-typeprint.c (pascal_type_print_varspec_prefix)
290 (pascal_type_print_varspec_suffix): Likewise.
291 * typeprint.c (print_type_fixed_point): New function.
292 * typeprint.h (print_type_fixed_point): Add declaration.
293
b26daff9
JB
2942020-11-15 Joel Brobecker <brobecker@adacore.com>
295
296 * printcmd.c (print_scalar_formatted): Add fixed-point type
297 handling when options->format is set.
298
09584414
JB
2992020-11-15 Joel Brobecker <brobecker@adacore.com>
300
301 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
302 * dwarf2/read.c (get_dwarf2_rational_constant)
303 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
304 (has_zero_over_zero_small_attribute): New functions.
305 read_base_type, set_die_type): Add fixed-point type handling.
306 * gdb-gdb.py.in: Add fixed-point type handling.
307 * gdbtypes.c: #include "gmp-utils.h".
308 (create_range_type, set_type_code): Add fixed-point type handling.
309 (init_fixed_point_type): New function.
310 (is_integral_type, is_scalar_type): Add fixed-point type handling.
311 (print_fixed_point_type_info): New function.
312 (recursive_dump_type, copy_type_recursive): Add fixed-point type
313 handling.
314 (fixed_point_type_storage): New typedef.
315 (fixed_point_objfile_key): New static global.
316 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
317 (fixed_point_type_base_type, fixed_point_scaling_factor): New
318 functions.
319 * gdbtypes.h: #include "gmp-utils.h".
320 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
321 (union type_specific) <fixed_point_info>: New field.
322 (struct fixed_point_type_info): New struct.
323 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
324 (init_fixed_point_type, is_fixed_point_type)
325 (fixed_point_type_base_type, fixed_point_scaling_factor)
326 (allocate_fixed_point_type_info): Add declarations.
327 * valprint.c (generic_val_print_fixed_point): New function.
328 (generic_value_print): Add fixed-point type handling.
329 * value.c (value_as_address, unpack_long): Add fixed-point type
330 handling.
331
e55c6530
JB
3322020-11-15 Joel Brobecker <brobecker@adacore.com>
333
334 * utils.h (uinteger_pow): Add declaration.
335 * utils.c (uinteger_pow): Moved here (without changes)...
336 * valarith.c (uinteger_pow): ... from here.
337
b34c74ab
JB
3382020-11-15 Joel Brobecker <brobecker@adacore.com>
339
40d9d2fd 340 * gmp-utils.h, gmp-utils.c: New file.
b34c74ab
JB
341 * unittests/gmp-utils-selftests.c: New file.
342 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
343 unittests/gmp-utils-selftests.c.
344 (COMMON_SFILES) Add gmp-utils.c.
345 (HFILES_NO_SRCDIR): Add gmp-utils.h.
346
1b4ac058
JB
3472020-11-15 Joel Brobecker <brobecker@adacore.com>
348
349 * configure.ac: Generate an error if a usable GMP library
350 could not be found.
351 * configure: Regenerate.
352
2c947d9b
JB
3532020-11-15 Joel Brobecker <brobecker@adacore.com>
354
355 * configure.ac: Add support for --with-libgmp-prefix.
356 * Makefile.in (LIBGMP): New variable.
357 (CLIBS): Include $(LIBGMP).
358 * configure, config.in: Regenerate
359
9dd02fc0
AB
3602020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
361
362 PR cli/26879
363 * f-exp.y (COMPLETE): New token.
364 (exp): Two new rules for tab-completion.
365 (saw_name_at_eof): New static global.
366 (last_was_structop): Likewise.
367 (yylex): Set new variables, and return COMPLETE token at the end
368 of the input stream in some cases.
369
758cb810
TT
3702020-11-14 Tom Tromey <tom@tromey.com>
371
372 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
373
749065b7
TT
3742020-11-14 Tom Tromey <tom@tromey.com>
375
376 * opencl-lang.c (opencl_component_ref): Make "comps" const.
377
2c5b1849
SM
3782020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
379
380 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
381
e8b2f0d9
TT
3822020-11-13 Tom Tromey <tom@tromey.com>
383
384 * c-lang.c (convert_ucn, convert_octal, convert_hex)
385 (convert_escape, parse_one_string): Constify.
386
25f4c262
KS
3872020-11-13 Keith Seitz <keiths@redhat.com>
388
389 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
390 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
391 outside of ELF segments" warning for debugin
392
9d3ab915
KS
3932020-11-13 Keith Seitz <keiths@redhat.com>
394
395 PR gdb/23034
396 * elfread.c (elf_symfile_segments): Output a BFD file name
397 for the "Loadable section ... outside of ELF segments" warning.
398
9ecab40c
SM
3992020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
400
401 PR gdb/26835
402 * arm-tdep.c (class arm_instruction_reader): New.
403 (target_arm_instruction_reader): New.
404 (arm_analyze_prologue): Add instruction reader parameter and use
405 it. Use arm_expand_immediate.
406 (class target_arm_instruction_reader): Adjust.
407 (arm_skip_prologue): Adjust.
408 (arm_expand_immediate): New.
409 (arm_scan_prologue): Adjust.
410 (arm_analyze_prologue_test): New.
411 (class test_arm_instruction_reader): New.
412
5a7cf527
AB
4132020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
414
415 * f-lang.c (fortran_argument_convert): Add declaration. Add
416 header comment, taken from f-lang.h. Make static.
417 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
418 (fortran_argument_convert): Delete declaration.
419
7bea47f0
AB
4202020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
421
422 * ada-exp.y (find_primitive_type): Make parameter const.
423 * ada-lang.c (enum ada_primitive_types): Delete.
424 (ada_language::language_arch_info): Update.
425 * c-lang.c (enum c_primitive_types): Delete.
426 (c_language_arch_info): Update.
427 (enum cplus_primitive_types): Delete.
428 (cplus_language::language_arch_info): Update.
429 * d-lang.c (enum d_primitive_types): Delete.
430 (d_language::language_arch_info): Update.
431 * f-lang.c (enum f_primitive_types): Delete.
432 (f_language::language_arch_info): Update.
433 * go-lang.c (enum go_primitive_types): Delete.
434 (go_language::language_arch_info): Update.
435 * language.c (auto_or_unknown_language::language_arch_info):
436 Update.
437 (language_gdbarch_post_init): Use obstack_new, use array indexing.
438 (language_string_char_type): Add header comment, call function in
439 language_arch_info.
440 (language_bool_type): Likewise
441 (language_arch_info::bool_type): Define.
442 (language_lookup_primitive_type_1): Delete.
443 (language_lookup_primitive_type): Rewrite as a templated function
444 to call function in language_arch_info, then instantiate twice.
445 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
446 (language_arch_info::lookup_primitive_type_and_symbol): Define.
447 (language_arch_info::lookup_primitive_type): Define twice with
448 different signatures.
449 (language_arch_info::lookup_primitive_type_as_symbol): Define.
450 (language_lookup_primitive_type_as_symbol): Rewrite to call a
451 member function in language_arch_info.
452 * language.h (language_arch_info): Complete rewrite.
453 (language_lookup_primitive_type): Make templated.
454 * m2-lang.c (enum m2_primitive_types): Delete.
455 (m2_language::language_arch_info): Update.
456 * opencl-lang.c (OCL_P_TYPE): Delete.
457 (enum opencl_primitive_types): Delete.
458 (opencl_type_data): Delete.
459 (builtin_opencl_type): Delete.
460 (lookup_opencl_vector_type): Update.
461 (opencl_language::language_arch_info): Update, lots of content
462 moved from...
463 (build_opencl_types): ...here. This function is now deleted.
464 (_initialize_opencl_language): Delete.
465 * p-lang.c (enum pascal_primitive_types): Delete.
466 (pascal_language::language_arch_info): Update.
467 * rust-lang.c (enum rust_primitive_types): Delete.
468 (rust_language::language_arch_info): Update.
469
bf6e5d01
SM
4702020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
471
472 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
473 dwarf2_queue_guard.
474
1350c3b4
SM
4752020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
476
477 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
478 comment.
479
6f738b01
SM
4802020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
481
482 * dwarf2/read.c (dwarf_read_debug_printf,
483 dwarf_read_debug_printf_v): New macros, use throughout the file.
484
10c19fad
SV
4852020-11-12 Shahab Vahedi <shahab@synopsys.com>
486
487 * arc-linux-tdep.c (collect_register): Populate "eret" by
488 "pc" value from the regcache when asked for "pc" value.
489
1f2624a3
TT
4902020-11-12 Tom Tromey <tom@tromey.com>
491
492 PR rust/26799:
493 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
494 exist.
495
ab33b152
AB
4962020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
497
498 * features/Makefile (XMLTOC): Add rx.xml.
499 (FEATURE_XMLFILES): Remove rx.xml.
500 (FEATURE_CFILES rule): Pass '-single-feature' flag.
501 * features/rx.c: Regenerate.
502 * features/rx.xml: Wrap in `target` tags, and reindent.
503 * target-descriptions.c (struct maint_print_c_tdesc_options): New
504 structure.
505 (maint_print_c_tdesc_opt_def): New typedef.
506 (maint_print_c_tdesc_opt_defs): New static global.
507 (make_maint_print_c_tdesc_options_def_group): New function.
508 (maint_print_c_tdesc_cmd): Make use of command line flags, only
509 print single feature C file for target descriptions containing a
510 single feature.
511 (maint_print_c_tdesc_cmd_completer): New function.
512 (_initialize_target_descriptions): Update call to register command
513 completer, and include command line flag in help text.
514
550820e1
AB
5152020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
516
517 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
518 numbers.
519 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
520 enum values.
521
baf20f76
TT
5222020-11-10 Tom Tromey <tom@tromey.com>
523
524 * value.h (internalvar_name): Update.
525 * value.c (internalvar_name): Make return type const.
526
caaece0e
TT
5272020-11-10 Tom Tromey <tom@tromey.com>
528
529 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
530 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
531 const.
532
8e20b4be
TT
5332020-11-10 Tom Tromey <tom@tromey.com>
534
535 * objc-lang.h (value_nsstring): Update.
536 * objc-lang.c (value_nsstring): Make "ptr" const.
537
86775fab
AB
5382020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
539
540 * expprint.c (print_subexp_funcall): Increment expression position
541 after reading argument count.
542 * f-lang.c (print_subexp_f): Skip over opcode before calling
543 common function.
544 (dump_subexp_body_f): Likewise.
545
3fed4c0b
RG
5462020-11-06 Romain Geissler <romain.geissler@amadeus.com>
547
548 PR python/26832
549 * configure: Regenerate.
550 * configure.ac: Check for python modules ctypes instead of
551 itertools.
552
ac3d4064
PA
5532020-11-06 Pedro Alves <pedro@palves.net>
554
555 * macroexp.c (struct macro_buffer): Split in two classes. Add
556 uses adjusted.
557 (struct shared_macro_buffer): New, factored out from struct
558 macro_buffer.
559 (struct growable_macro_buffer): New, factored out from struct
560 macro_buffer.
561 (set_token, get_comment, get_identifier, get_pp_number)
562 (get_character_constant, get_string_literal, get_punctuator)
563 (get_next_token_for_substitution): Constify parameters.
564 (substitute_args): Constify locals.
565
606decb2
TT
5662020-11-05 Tom Tromey <tom@tromey.com>
567
568 * dwarf2/read.c (read_cutu_die_from_dwo)
569 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
570 (build_type_psymtabs_1): Update.
571 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
572 parameter.
573 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
574 Don't read section. Add assert.
575
9c91c725
TT
5762020-11-04 Tom Tromey <tromey@adacore.com>
577
578 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
579
8d9fd3a1
TT
5802020-11-04 Tom Tromey <tromey@adacore.com>
581
582 * ada-typeprint.c (ada_print_type): Handle __T types.
583
d8f62e84
TT
5842020-11-04 Tom Tromey <tromey@adacore.com>
585
586 * dwarf2/read.c (add_partial_symbol, process_die):
587 Handle DW_TAG_array_type.
588 (is_type_tag_for_partial): Add "lang" parameter.
589 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
590
7ff5b937
TT
5912020-11-04 Tom Tromey <tromey@adacore.com>
592
593 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
594
10f6a3ad
TT
5952020-11-04 Tom Tromey <tromey@adacore.com>
596
597 * dwarf2/read.c (read_array_type): Only apply stride to innermost
598 array.
599
b72795a8
TT
6002020-11-04 Tom Tromey <tromey@adacore.com>
601
602 * gdbtypes.c (update_static_array_size): Handle bit stride.
603
24aa1b02
TT
6042020-11-04 Tom Tromey <tromey@adacore.com>
605
606 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
607
c9a28cbe
TT
6082020-11-04 Tom Tromey <tromey@adacore.com>
609
610 * ada-lang.c (ada_is_any_packed_array_type): New function.
611 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
612
57567375
TT
6132020-11-04 Tom Tromey <tromey@adacore.com>
614
615 * dwarf2/read.c (recognize_bound_expression)
616 (quirk_ada_thick_pointer): New functions.
617 (read_array_type): Call quirk_ada_thick_pointer.
618 (set_die_type): Add "skip_data_location" parameter.
619 (quirk_ada_thick_pointer): New function.
620 (process_structure_scope): Call quirk_ada_thick_pointer.
621 * ada-lang.c (ada_is_unconstrained_packed_array_type)
622 (decode_packed_array_bitsize): Handle thick pointers without
623 parallel types.
624 (ada_is_gnat_encoded_packed_array_type): Rename from
625 ada_is_packed_array_type.
626 (ada_is_constrained_packed_array_type): Update.
627 * ada-valprint.c (ada_val_print_gnat_array): Remove.
628 (ada_value_print_1): Use ada_get_decoded_value.
629
a7400e44
TT
6302020-11-04 Tom Tromey <tromey@adacore.com>
631
632 * ada-lang.c (recursively_update_array_bitsize): New function.
633 (decode_constrained_packed_array_type): Call it.
634
75fd6a26
TT
6352020-11-04 Tom Tromey <tromey@adacore.com>
636
637 * ada-lang.c (to_fixed_array_type): Error if
638 decode_constrained_packed_array_type returns NULL.
639
93f9561e
TT
6402020-11-04 Tom Tromey <tromey@adacore.com>
641
642 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
643
257e02d8
TT
6442020-11-02 Tom Tromey <tromey@adacore.com>
645
646 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
647 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
648 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
649 * amd64-ravenscar-thread.c: New file.
650 * amd64-ravenscar-thread.h: New file.
651 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
652 * configure.tgt (amd64_tobjs): Add ravenscar objects.
653
74d877e5
AB
6542020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
655
656 * main.c (execute_cmdargs): New function.
657 (captured_main_1): Make use of execute_cmdargs.
658
64aaad63
AB
6592020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
660
661 * NEWS: Mention changes to config file search path.
662 * main.c
663
5b3d3560
TT
6642020-11-02 Tom Tromey <tromey@adacore.com>
665
666 * python/python.c: Consolidate two HAVE_PYTHON blocks.
667 (python_GdbModuleDef): Move earlier. Now static.
668 (do_start_initialization): Consolidate some IS_PY3K blocks.
669
dda83cd7
SM
6702020-11-02 Simon Marchi <simon.marchi@efficios.com>
671
672 * aarch64-linux-tdep.c: Fix indentation.
673 * aarch64-ravenscar-thread.c: Fix indentation.
674 * aarch64-tdep.c: Fix indentation.
675 * aarch64-tdep.h: Fix indentation.
676 * ada-lang.c: Fix indentation.
677 * ada-lang.h: Fix indentation.
678 * ada-tasks.c: Fix indentation.
679 * ada-typeprint.c: Fix indentation.
680 * ada-valprint.c: Fix indentation.
681 * ada-varobj.c: Fix indentation.
682 * addrmap.c: Fix indentation.
683 * addrmap.h: Fix indentation.
684 * agent.c: Fix indentation.
685 * aix-thread.c: Fix indentation.
686 * alpha-bsd-nat.c: Fix indentation.
687 * alpha-linux-tdep.c: Fix indentation.
688 * alpha-mdebug-tdep.c: Fix indentation.
689 * alpha-nbsd-tdep.c: Fix indentation.
690 * alpha-obsd-tdep.c: Fix indentation.
691 * alpha-tdep.c: Fix indentation.
692 * amd64-bsd-nat.c: Fix indentation.
693 * amd64-darwin-tdep.c: Fix indentation.
694 * amd64-linux-nat.c: Fix indentation.
695 * amd64-linux-tdep.c: Fix indentation.
696 * amd64-nat.c: Fix indentation.
697 * amd64-obsd-tdep.c: Fix indentation.
698 * amd64-tdep.c: Fix indentation.
699 * amd64-windows-tdep.c: Fix indentation.
700 * annotate.c: Fix indentation.
701 * arc-tdep.c: Fix indentation.
702 * arch-utils.c: Fix indentation.
703 * arch/arm-get-next-pcs.c: Fix indentation.
704 * arch/arm.c: Fix indentation.
705 * arm-linux-nat.c: Fix indentation.
706 * arm-linux-tdep.c: Fix indentation.
707 * arm-nbsd-tdep.c: Fix indentation.
708 * arm-pikeos-tdep.c: Fix indentation.
709 * arm-tdep.c: Fix indentation.
710 * arm-tdep.h: Fix indentation.
711 * arm-wince-tdep.c: Fix indentation.
712 * auto-load.c: Fix indentation.
713 * auxv.c: Fix indentation.
714 * avr-tdep.c: Fix indentation.
715 * ax-gdb.c: Fix indentation.
716 * ax-general.c: Fix indentation.
717 * bfin-linux-tdep.c: Fix indentation.
718 * block.c: Fix indentation.
719 * block.h: Fix indentation.
720 * blockframe.c: Fix indentation.
721 * bpf-tdep.c: Fix indentation.
722 * break-catch-sig.c: Fix indentation.
723 * break-catch-syscall.c: Fix indentation.
724 * break-catch-throw.c: Fix indentation.
725 * breakpoint.c: Fix indentation.
726 * breakpoint.h: Fix indentation.
727 * bsd-uthread.c: Fix indentation.
728 * btrace.c: Fix indentation.
729 * build-id.c: Fix indentation.
730 * buildsym-legacy.h: Fix indentation.
731 * buildsym.c: Fix indentation.
732 * c-typeprint.c: Fix indentation.
733 * c-valprint.c: Fix indentation.
734 * c-varobj.c: Fix indentation.
735 * charset.c: Fix indentation.
736 * cli/cli-cmds.c: Fix indentation.
737 * cli/cli-decode.c: Fix indentation.
738 * cli/cli-decode.h: Fix indentation.
739 * cli/cli-script.c: Fix indentation.
740 * cli/cli-setshow.c: Fix indentation.
741 * coff-pe-read.c: Fix indentation.
742 * coffread.c: Fix indentation.
743 * compile/compile-cplus-types.c: Fix indentation.
744 * compile/compile-object-load.c: Fix indentation.
745 * compile/compile-object-run.c: Fix indentation.
746 * completer.c: Fix indentation.
747 * corefile.c: Fix indentation.
748 * corelow.c: Fix indentation.
749 * cp-abi.h: Fix indentation.
750 * cp-namespace.c: Fix indentation.
751 * cp-support.c: Fix indentation.
752 * cp-valprint.c: Fix indentation.
753 * cris-linux-tdep.c: Fix indentation.
754 * cris-tdep.c: Fix indentation.
755 * darwin-nat-info.c: Fix indentation.
756 * darwin-nat.c: Fix indentation.
757 * darwin-nat.h: Fix indentation.
758 * dbxread.c: Fix indentation.
759 * dcache.c: Fix indentation.
760 * disasm.c: Fix indentation.
761 * dtrace-probe.c: Fix indentation.
762 * dwarf2/abbrev.c: Fix indentation.
763 * dwarf2/attribute.c: Fix indentation.
764 * dwarf2/expr.c: Fix indentation.
765 * dwarf2/frame.c: Fix indentation.
766 * dwarf2/index-cache.c: Fix indentation.
767 * dwarf2/index-write.c: Fix indentation.
768 * dwarf2/line-header.c: Fix indentation.
769 * dwarf2/loc.c: Fix indentation.
770 * dwarf2/macro.c: Fix indentation.
771 * dwarf2/read.c: Fix indentation.
772 * dwarf2/read.h: Fix indentation.
773 * elfread.c: Fix indentation.
774 * eval.c: Fix indentation.
775 * event-top.c: Fix indentation.
776 * exec.c: Fix indentation.
777 * exec.h: Fix indentation.
778 * expprint.c: Fix indentation.
779 * f-lang.c: Fix indentation.
780 * f-typeprint.c: Fix indentation.
781 * f-valprint.c: Fix indentation.
782 * fbsd-nat.c: Fix indentation.
783 * fbsd-tdep.c: Fix indentation.
784 * findvar.c: Fix indentation.
785 * fork-child.c: Fix indentation.
786 * frame-unwind.c: Fix indentation.
787 * frame-unwind.h: Fix indentation.
788 * frame.c: Fix indentation.
789 * frv-linux-tdep.c: Fix indentation.
790 * frv-tdep.c: Fix indentation.
791 * frv-tdep.h: Fix indentation.
792 * ft32-tdep.c: Fix indentation.
793 * gcore.c: Fix indentation.
794 * gdb_bfd.c: Fix indentation.
795 * gdbarch.sh: Fix indentation.
796 * gdbarch.c: Re-generate
797 * gdbarch.h: Re-generate.
798 * gdbcore.h: Fix indentation.
799 * gdbthread.h: Fix indentation.
800 * gdbtypes.c: Fix indentation.
801 * gdbtypes.h: Fix indentation.
802 * glibc-tdep.c: Fix indentation.
803 * gnu-nat.c: Fix indentation.
804 * gnu-nat.h: Fix indentation.
805 * gnu-v2-abi.c: Fix indentation.
806 * gnu-v3-abi.c: Fix indentation.
807 * go32-nat.c: Fix indentation.
808 * guile/guile-internal.h: Fix indentation.
809 * guile/scm-cmd.c: Fix indentation.
810 * guile/scm-frame.c: Fix indentation.
811 * guile/scm-iterator.c: Fix indentation.
812 * guile/scm-math.c: Fix indentation.
813 * guile/scm-ports.c: Fix indentation.
814 * guile/scm-pretty-print.c: Fix indentation.
815 * guile/scm-value.c: Fix indentation.
816 * h8300-tdep.c: Fix indentation.
817 * hppa-linux-nat.c: Fix indentation.
818 * hppa-linux-tdep.c: Fix indentation.
819 * hppa-nbsd-nat.c: Fix indentation.
820 * hppa-nbsd-tdep.c: Fix indentation.
821 * hppa-obsd-nat.c: Fix indentation.
822 * hppa-tdep.c: Fix indentation.
823 * hppa-tdep.h: Fix indentation.
824 * i386-bsd-nat.c: Fix indentation.
825 * i386-darwin-nat.c: Fix indentation.
826 * i386-darwin-tdep.c: Fix indentation.
827 * i386-dicos-tdep.c: Fix indentation.
828 * i386-gnu-nat.c: Fix indentation.
829 * i386-linux-nat.c: Fix indentation.
830 * i386-linux-tdep.c: Fix indentation.
831 * i386-nto-tdep.c: Fix indentation.
832 * i386-obsd-tdep.c: Fix indentation.
833 * i386-sol2-nat.c: Fix indentation.
834 * i386-tdep.c: Fix indentation.
835 * i386-tdep.h: Fix indentation.
836 * i386-windows-tdep.c: Fix indentation.
837 * i387-tdep.c: Fix indentation.
838 * i387-tdep.h: Fix indentation.
839 * ia64-libunwind-tdep.c: Fix indentation.
840 * ia64-libunwind-tdep.h: Fix indentation.
841 * ia64-linux-nat.c: Fix indentation.
842 * ia64-linux-tdep.c: Fix indentation.
843 * ia64-tdep.c: Fix indentation.
844 * ia64-tdep.h: Fix indentation.
845 * ia64-vms-tdep.c: Fix indentation.
846 * infcall.c: Fix indentation.
847 * infcmd.c: Fix indentation.
848 * inferior.c: Fix indentation.
849 * infrun.c: Fix indentation.
850 * iq2000-tdep.c: Fix indentation.
851 * language.c: Fix indentation.
852 * linespec.c: Fix indentation.
853 * linux-fork.c: Fix indentation.
854 * linux-nat.c: Fix indentation.
855 * linux-tdep.c: Fix indentation.
856 * linux-thread-db.c: Fix indentation.
857 * lm32-tdep.c: Fix indentation.
858 * m2-lang.c: Fix indentation.
859 * m2-typeprint.c: Fix indentation.
860 * m2-valprint.c: Fix indentation.
861 * m32c-tdep.c: Fix indentation.
862 * m32r-linux-tdep.c: Fix indentation.
863 * m32r-tdep.c: Fix indentation.
864 * m68hc11-tdep.c: Fix indentation.
865 * m68k-bsd-nat.c: Fix indentation.
866 * m68k-linux-nat.c: Fix indentation.
867 * m68k-linux-tdep.c: Fix indentation.
868 * m68k-tdep.c: Fix indentation.
869 * machoread.c: Fix indentation.
870 * macrocmd.c: Fix indentation.
871 * macroexp.c: Fix indentation.
872 * macroscope.c: Fix indentation.
873 * macrotab.c: Fix indentation.
874 * macrotab.h: Fix indentation.
875 * main.c: Fix indentation.
876 * mdebugread.c: Fix indentation.
877 * mep-tdep.c: Fix indentation.
878 * mi/mi-cmd-catch.c: Fix indentation.
879 * mi/mi-cmd-disas.c: Fix indentation.
880 * mi/mi-cmd-env.c: Fix indentation.
881 * mi/mi-cmd-stack.c: Fix indentation.
882 * mi/mi-cmd-var.c: Fix indentation.
883 * mi/mi-cmds.c: Fix indentation.
884 * mi/mi-main.c: Fix indentation.
885 * mi/mi-parse.c: Fix indentation.
886 * microblaze-tdep.c: Fix indentation.
887 * minidebug.c: Fix indentation.
888 * minsyms.c: Fix indentation.
889 * mips-linux-nat.c: Fix indentation.
890 * mips-linux-tdep.c: Fix indentation.
891 * mips-nbsd-tdep.c: Fix indentation.
892 * mips-tdep.c: Fix indentation.
893 * mn10300-linux-tdep.c: Fix indentation.
894 * mn10300-tdep.c: Fix indentation.
895 * moxie-tdep.c: Fix indentation.
896 * msp430-tdep.c: Fix indentation.
897 * namespace.h: Fix indentation.
898 * nat/fork-inferior.c: Fix indentation.
899 * nat/gdb_ptrace.h: Fix indentation.
900 * nat/linux-namespaces.c: Fix indentation.
901 * nat/linux-osdata.c: Fix indentation.
902 * nat/netbsd-nat.c: Fix indentation.
903 * nat/x86-dregs.c: Fix indentation.
904 * nbsd-nat.c: Fix indentation.
905 * nbsd-tdep.c: Fix indentation.
906 * nios2-linux-tdep.c: Fix indentation.
907 * nios2-tdep.c: Fix indentation.
908 * nto-procfs.c: Fix indentation.
909 * nto-tdep.c: Fix indentation.
910 * objfiles.c: Fix indentation.
911 * objfiles.h: Fix indentation.
912 * opencl-lang.c: Fix indentation.
913 * or1k-tdep.c: Fix indentation.
914 * osabi.c: Fix indentation.
915 * osabi.h: Fix indentation.
916 * osdata.c: Fix indentation.
917 * p-lang.c: Fix indentation.
918 * p-typeprint.c: Fix indentation.
919 * p-valprint.c: Fix indentation.
920 * parse.c: Fix indentation.
921 * ppc-linux-nat.c: Fix indentation.
922 * ppc-linux-tdep.c: Fix indentation.
923 * ppc-nbsd-nat.c: Fix indentation.
924 * ppc-nbsd-tdep.c: Fix indentation.
925 * ppc-obsd-nat.c: Fix indentation.
926 * ppc-ravenscar-thread.c: Fix indentation.
927 * ppc-sysv-tdep.c: Fix indentation.
928 * ppc64-tdep.c: Fix indentation.
929 * printcmd.c: Fix indentation.
930 * proc-api.c: Fix indentation.
931 * producer.c: Fix indentation.
932 * producer.h: Fix indentation.
933 * prologue-value.c: Fix indentation.
934 * prologue-value.h: Fix indentation.
935 * psymtab.c: Fix indentation.
936 * python/py-arch.c: Fix indentation.
937 * python/py-bpevent.c: Fix indentation.
938 * python/py-event.c: Fix indentation.
939 * python/py-event.h: Fix indentation.
940 * python/py-finishbreakpoint.c: Fix indentation.
941 * python/py-frame.c: Fix indentation.
942 * python/py-framefilter.c: Fix indentation.
943 * python/py-inferior.c: Fix indentation.
944 * python/py-infthread.c: Fix indentation.
945 * python/py-objfile.c: Fix indentation.
946 * python/py-prettyprint.c: Fix indentation.
947 * python/py-registers.c: Fix indentation.
948 * python/py-signalevent.c: Fix indentation.
949 * python/py-stopevent.c: Fix indentation.
950 * python/py-stopevent.h: Fix indentation.
951 * python/py-threadevent.c: Fix indentation.
952 * python/py-tui.c: Fix indentation.
953 * python/py-unwind.c: Fix indentation.
954 * python/py-value.c: Fix indentation.
955 * python/py-xmethods.c: Fix indentation.
956 * python/python-internal.h: Fix indentation.
957 * python/python.c: Fix indentation.
958 * ravenscar-thread.c: Fix indentation.
959 * record-btrace.c: Fix indentation.
960 * record-full.c: Fix indentation.
961 * record.c: Fix indentation.
962 * reggroups.c: Fix indentation.
963 * regset.h: Fix indentation.
964 * remote-fileio.c: Fix indentation.
965 * remote.c: Fix indentation.
966 * reverse.c: Fix indentation.
967 * riscv-linux-tdep.c: Fix indentation.
968 * riscv-ravenscar-thread.c: Fix indentation.
969 * riscv-tdep.c: Fix indentation.
970 * rl78-tdep.c: Fix indentation.
971 * rs6000-aix-tdep.c: Fix indentation.
972 * rs6000-lynx178-tdep.c: Fix indentation.
973 * rs6000-nat.c: Fix indentation.
974 * rs6000-tdep.c: Fix indentation.
975 * rust-lang.c: Fix indentation.
976 * rx-tdep.c: Fix indentation.
977 * s12z-tdep.c: Fix indentation.
978 * s390-linux-tdep.c: Fix indentation.
979 * score-tdep.c: Fix indentation.
980 * ser-base.c: Fix indentation.
981 * ser-mingw.c: Fix indentation.
982 * ser-uds.c: Fix indentation.
983 * ser-unix.c: Fix indentation.
984 * serial.c: Fix indentation.
985 * sh-linux-tdep.c: Fix indentation.
986 * sh-nbsd-tdep.c: Fix indentation.
987 * sh-tdep.c: Fix indentation.
988 * skip.c: Fix indentation.
989 * sol-thread.c: Fix indentation.
990 * solib-aix.c: Fix indentation.
991 * solib-darwin.c: Fix indentation.
992 * solib-frv.c: Fix indentation.
993 * solib-svr4.c: Fix indentation.
994 * solib.c: Fix indentation.
995 * source.c: Fix indentation.
996 * sparc-linux-tdep.c: Fix indentation.
997 * sparc-nbsd-tdep.c: Fix indentation.
998 * sparc-obsd-tdep.c: Fix indentation.
999 * sparc-ravenscar-thread.c: Fix indentation.
1000 * sparc-tdep.c: Fix indentation.
1001 * sparc64-linux-tdep.c: Fix indentation.
1002 * sparc64-nbsd-tdep.c: Fix indentation.
1003 * sparc64-obsd-tdep.c: Fix indentation.
1004 * sparc64-tdep.c: Fix indentation.
1005 * stabsread.c: Fix indentation.
1006 * stack.c: Fix indentation.
1007 * stap-probe.c: Fix indentation.
1008 * stubs/ia64vms-stub.c: Fix indentation.
1009 * stubs/m32r-stub.c: Fix indentation.
1010 * stubs/m68k-stub.c: Fix indentation.
1011 * stubs/sh-stub.c: Fix indentation.
1012 * stubs/sparc-stub.c: Fix indentation.
1013 * symfile-mem.c: Fix indentation.
1014 * symfile.c: Fix indentation.
1015 * symfile.h: Fix indentation.
1016 * symmisc.c: Fix indentation.
1017 * symtab.c: Fix indentation.
1018 * symtab.h: Fix indentation.
1019 * target-float.c: Fix indentation.
1020 * target.c: Fix indentation.
1021 * target.h: Fix indentation.
1022 * tic6x-tdep.c: Fix indentation.
1023 * tilegx-linux-tdep.c: Fix indentation.
1024 * tilegx-tdep.c: Fix indentation.
1025 * top.c: Fix indentation.
1026 * tracefile-tfile.c: Fix indentation.
1027 * tracepoint.c: Fix indentation.
1028 * tui/tui-disasm.c: Fix indentation.
1029 * tui/tui-io.c: Fix indentation.
1030 * tui/tui-regs.c: Fix indentation.
1031 * tui/tui-stack.c: Fix indentation.
1032 * tui/tui-win.c: Fix indentation.
1033 * tui/tui-winsource.c: Fix indentation.
1034 * tui/tui.c: Fix indentation.
1035 * typeprint.c: Fix indentation.
1036 * ui-out.h: Fix indentation.
1037 * unittests/copy_bitwise-selftests.c: Fix indentation.
1038 * unittests/memory-map-selftests.c: Fix indentation.
1039 * utils.c: Fix indentation.
1040 * v850-tdep.c: Fix indentation.
1041 * valarith.c: Fix indentation.
1042 * valops.c: Fix indentation.
1043 * valprint.c: Fix indentation.
1044 * valprint.h: Fix indentation.
1045 * value.c: Fix indentation.
1046 * value.h: Fix indentation.
1047 * varobj.c: Fix indentation.
1048 * vax-tdep.c: Fix indentation.
1049 * windows-nat.c: Fix indentation.
1050 * windows-tdep.c: Fix indentation.
1051 * xcoffread.c: Fix indentation.
1052 * xml-syscall.c: Fix indentation.
1053 * xml-tdesc.c: Fix indentation.
1054 * xstormy16-tdep.c: Fix indentation.
1055 * xtensa-config.c: Fix indentation.
1056 * xtensa-linux-nat.c: Fix indentation.
1057 * xtensa-linux-tdep.c: Fix indentation.
1058 * xtensa-tdep.c: Fix indentation.
1059
e1f57067
AB
10602020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1061 Craig Blackmore <craig.blackmore@embecosm.com>
1062
1063 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
1064 as an unsigned value.
1065
ae7754b2
TT
10662020-11-01 Tom Tromey <tom@tromey.com>
1067
1068 * dbxread.c (dbx_end_psymtab): Update.
1069 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1070 (build_type_psymtabs_reader): Update.
1071 * xcoffread.c (xcoff_end_psymtab): Update.
1072 * ctfread.c (scan_partial_symbols): Update.
1073 * psymtab.c (sort_pst_symbols): Remove.
1074 (partial_symtab::end): Rename from end_psymtab_common. Inline
1075 sort_pst_symbols.
1076 * psympriv.h (struct partial_symtab) <end>: New method.
1077 (end_psymtab_common): Don't declare.
1078
0684bb51
TT
10792020-11-01 Tom Tromey <tom@tromey.com>
1080
1081 * symmisc.c (count_psyms): New function.
1082 (print_objfile_statistics): Use it.
1083 * psymtab.c (append_psymbol_to_list): Remove.
1084 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
1085 * objfiles.h (struct objstats) <n_psyms>: Remove.
1086
089002bb
TT
10872020-11-01 Tom Tromey <tom@tromey.com>
1088
1089 * dbxread.c (dbx_end_psymtab): Update.
1090 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
1091 (build_type_psymtabs_reader): Update.
1092 * xcoffread.c (xcoff_end_psymtab): Update.
1093 * ctfread.c (scan_partial_symbols): Update.
1094 * psympriv.h (end_psymtab_common): Update.
1095 * psymtab.c (end_psymtab_common): Remove objfile parameter.
1096 (sort_pst_symbols): Likewise.
1097
525454d6
TT
10982020-11-01 Tom Tromey <tom@tromey.com>
1099
1100 * dbxread.c (dbx_symfile_read): Update.
1101 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1102 * xcoffread.c (xcoff_initial_scan): Update.
1103 * psympriv.h (init_psymbol_list): Don't declare.
1104 * psymtab.c (init_psymbol_list): Remove.
1105
60bd1d53
JB
11062020-11-01 Joel Brobecker <brobecker@adacore.com>
1107
1108 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
1109 gnat_encoded_fixed_type_info. Update all callers.
1110
db99d0d0
JB
11112020-11-01 Joel Brobecker <brobecker@adacore.com>
1112
1113 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
1114 line too long.
1115
75f24e86
JB
11162020-11-01 Joel Brobecker <brobecker@adacore.com>
1117
1118 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
1119 cast_from_fixed. Update all callers.
1120 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
1121 Update all callers.
1122 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
1123 Update all callers.
1124 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
1125 ada_scaling_factor.
1126 * ada-typeprint.c: Replace call to ada_scaling_factor by call
1127 to print_gnat_encoded_fixed_point_type.
1128 * ada-valprint.c: Likewise.
1129
4f0469cd
AB
11302020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1131
1132 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
1133 (debug_prefixed_printf): Add check of debug_displaced flag.
1134 * linux-nat.c (linux_nat_debug_printf): Add check of
1135 debug_linux_nat flag.
1136
17417fb0
SM
11372020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1138
1139 * infrun.c (infrun_debug_printf_1): Remove.
1140 (displaced_debug_printf_1): Remove.
1141 (stop_all_threads): Use debug_prefixed_printf.
1142 * infrun.h (infrun_debug_printf_1): Remove.
1143 (infrun_debug_printf): Use debug_prefixed_printf.
1144 (displaced_debug_printf_1): Remove.
1145 (displaced_debug_printf): Use debug_prefixed_printf.
1146 * linux-nat.c (linux_nat_debug_printf_1): Remove.
1147 (linux_nat_debug_printf): Use debug_prefixed_printf.
1148
ad6dba1c
SM
11492020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1150
1151 * configure: Re-generate.
1152 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
1153 AC_LANG_PROGRAM.
1154
b6fb30ed
SM
11552020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1156
1157 * configure: Re-generate.
1158
5164c117
SM
11592020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1160
1161 * configure: Re-generate.
1162
864ca435
SM
11632020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1164
1165 * configure: Re-generate.
1166
b9442ec1
SM
11672020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1168
1169 * configure: Re-generate.
1170
294f2697
SM
11712020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1172
1173 * acinclude.m4: Modernize.
1174 * configure: Re-generate.
1175
5593a99a
SM
11762020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1177
1178 * configure.ac: Modernize.
1179 * configure: Re-generate.
1180
e41fda1d
SM
11812020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1182
1183 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
1184 * configure: Re-generate.
1185 * configure.ac: Remove AM_PROG_CC_STDC.
1186
91e1a0ed
SM
11872020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1188
1189 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
1190 AC_CANONICAL_SYSTEM.
1191 * configure: Re-generate.
1192
136821d9
SM
11932020-10-30 Simon Marchi <simon.marchi@efficios.com>
1194
1195 * infrun.h (displaced_debug_printf): New macro. Replace
1196 displaced debug prints throughout to use it.
1197 (displaced_debug_printf_1): New declaration.
1198 (displaced_step_dump_bytes): Return string, remove ui_file
1199 parameter, update all callers.
1200 * infrun.c (displaced_debug_printf_1): New function.
1201 (displaced_step_dump_bytes): Return string, remove ui_file
1202 parameter
1203
aa2045e7
SM
12042020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
1205
1206 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
1207
b1ec2735
TT
12082020-10-30 Tom Tromey <tromey@adacore.com>
1209
1210 * Makefile.in (stamp-init): Depend on config.status.
1211
b78b3a29
TBA
12122020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1213
1214 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
1215
d70bdd3c
PA
12162020-10-30 Pedro Alves <pedro@palves.net>
1217
1218 * thread.c (lookup_selected_frame): Move ...
1219 * frame.c (lookup_selected_frame): ... here.
1220
79952e69
PA
12212020-10-30 Pedro Alves <pedro@palves.net>
1222
1223 * blockframe.c (block_innermost_frame): Use get_selected_frame.
1224 * frame.c
1225 (scoped_restore_selected_frame::scoped_restore_selected_frame):
1226 Use save_selected_frame. Save language as well.
1227 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
1228 Use restore_selected_frame, and restore language as well.
1229 (selected_frame_id, selected_frame_level): New.
1230 (selected_frame): Update comments.
1231 (save_selected_frame, restore_selected_frame): New.
1232 (get_selected_frame): Use lookup_selected_frame.
1233 (get_selected_frame_if_set): Delete.
1234 (select_frame): Record selected_frame_level and selected_frame_id.
1235 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
1236 fields.
1237 (get_selected_frame): Make 'message' parameter optional.
1238 (get_selected_frame_if_set): Delete declaration.
1239 (select_frame): Update comments.
1240 (save_selected_frame, restore_selected_frame)
1241 (lookup_selected_frame): Declare.
1242 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
1243 * infrun.c (struct infcall_control_state) <selected_frame_level>:
1244 New field.
1245 (save_infcall_control_state): Use save_selected_frame.
1246 (restore_selected_frame): Delete.
1247 (restore_infcall_control_state): Use restore_selected_frame.
1248 * stack.c (select_frame_command_core, frame_command_core): Use
1249 get_selected_frame.
1250 * thread.c (restore_selected_frame): Rename to ...
1251 (lookup_selected_frame): ... this and make extern. Select the
1252 current frame if the frame level is -1.
1253 (scoped_restore_current_thread::restore): Also restore the
1254 language.
1255 (scoped_restore_current_thread::~scoped_restore_current_thread):
1256 Don't try/catch.
1257 (scoped_restore_current_thread::scoped_restore_current_thread):
1258 Save the language as well. Use save_selected_frame.
1259
58103c33
SM
12602020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1261
1262 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
1263 documentation.
1264 * gdbarch.h: Re-generate.
1265
40a53766
SM
12662020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1267
1268 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
1269 parameter.
1270 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
1271 Likewise.
1272 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1273 Likewise.
1274 * arch-utils.c (default_displaced_step_hw_singlestep):
1275 Likewise.
1276 * arch-utils.h (default_displaced_step_hw_singlestep):
1277 Likewise.
1278 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
1279 Likewise.
1280 * s390-tdep.c (s390_displaced_step_hw_singlestep):
1281 Likewise.
1282 * gdbarch.c: Re-generate.
1283 * gdbarch.h: Re-generate.
1284 * infrun.c (resume_1): Adjust.
1285
8407f91b
TT
12862020-10-29 Tom Tromey <tom@tromey.com>
1287
1288 * progspace.c (program_space::~program_space): Don't call
1289 exec_close.
1290
5008b3b2
TT
12912020-10-29 Tom Tromey <tom@tromey.com>
1292
1293 * exec.c (exec_target::close): Don't change current program
1294 space.
1295
d9eebde0
TT
12962020-10-29 Tom Tromey <tom@tromey.com>
1297
1298 * symfile.c (add_symbol_file_command): Update.
1299 * exec.c (program_space::add_target_sections): Rename.
1300 * symfile-mem.c (symbol_file_add_from_memory): Update.
1301 * progspace.h (struct program_space) <add_target_sections>:
1302 Declare new overload.
1303 * exec.h (add_target_sections_of_objfile): Don't declare.
1304
3769e227
TT
13052020-10-29 Tom Tromey <tom@tromey.com>
1306
1307 * solib.c (solib_map_sections): Update.
1308 * exec.c (program_space::add_target_sections): Now a method.
1309 (exec_file_attach): Update.
1310 * exec.h (add_target_sections): Don't declare.
1311 * progspace.h (struct program_space) <add_target_sections>:
1312 Declare.
1313
2a3f84af
TT
13142020-10-29 Tom Tromey <tom@tromey.com>
1315
1316 * progspace.h (struct program_space) <remove_target_sections>:
1317 Declare.
1318 * exec.c (program_space::remove_target_sections): Now a method.
1319 * exec.h (remove_target_sections): Don't declare.
1320
004eecfd
TT
13212020-10-29 Tom Tromey <tom@tromey.com>
1322
1323 * inferior.c (delete_inferior): Update.
1324 * progspace.c (program_space::empty): Rename from
1325 program_space_empty_p. Return bool.
1326 * progspace.h (struct program_space) <empty>: New method.
1327 (program_space_empty_p): Don't declare.
1328
e39fb971
TT
13292020-10-29 Tom Tromey <tom@tromey.com>
1330
1331 * progspace.c (program_space::~program_space): Don't call
1332 clear_program_space_solib_cache.
1333 (program_space::clear_solib_cache): Rename from
1334 clear_solib_cache.
1335 * solib.c (handle_solib_event): Update.
1336 * progspace.h (struct program_space) <clear_solib_cache>: New
1337 method.
1338 (clear_program_space_solib_cache): Don't declare.
1339
a42d7dd8
TT
13402020-10-29 Tom Tromey <tom@tromey.com>
1341
1342 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1343 * target.c (info_target_command): Update.
1344 * symfile.c (syms_from_objfile_1, finish_new_objfile)
1345 (symbol_file_clear, reread_symbols): Update.
1346 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
1347 * stabsread.c (scan_file_globals): Update.
1348 * solib.c (update_solib_list): Update.
1349 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
1350 (svr4_fetch_objfile_link_map, enable_break)
1351 (svr4_relocate_main_executable)
1352 (svr4_iterate_over_objfiles_in_search_order): Update.
1353 * solib-frv.c (lm_base, enable_break)
1354 (frv_relocate_main_executable): Update.
1355 (main_got, frv_fdpic_find_canonical_descriptor): Update.
1356 (frv_fetch_objfile_link_map): Update.
1357 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
1358 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
1359 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
1360 * remote.c (remote_target::get_offsets): Update.
1361 (remote_target::start_remote)
1362 (extended_remote_target::post_attach): Update.
1363 * objfiles.c (entry_point_address_query): Update.
1364 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
1365 * minsyms.c (get_symbol_leading_char): Update.
1366 * frame.c (inside_main_func): Update.
1367 * progspace.h (symfile_objfile): Remove macro.
1368
19f6550e
TT
13692020-10-29 Tom Tromey <tom@tromey.com>
1370
1371 * exec.c (exec_file_attach): Update.
1372 * progspace.c (program_space::exec_close): Update.
1373 * progspace.h (struct program_space) <ebfd>: Now a
1374 gdb_bfd_ref_ptr.
1375 <set_exec_bfd>: Change argument type.
1376 <exec_bfd>: Update.
1377
7e10abd1
TT
13782020-10-29 Tom Tromey <tom@tromey.com>
1379
1380 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1381 * symfile.c (reread_symbols): Update.
1382 * symfile-mem.c (add_symbol_file_from_memory_command)
1383 (add_vsyscall_page): Update.
1384 * source-cache.c (source_cache::get_plain_source_lines): Update.
1385 * solib-svr4.c (find_program_interpreter, elf_locate_base)
1386 (svr4_current_sos_direct, svr4_exec_displacement)
1387 (svr4_relocate_main_executable): Update.
1388 (svr4_iterate_over_objfiles_in_search_order): Update.
1389 * solib-frv.c (enable_break2, enable_break): Update.
1390 * solib-dsbt.c (lm_base, enable_break): Update.
1391 * solib-darwin.c (find_program_interpreter)
1392 (darwin_solib_create_inferior_hook): Update.
1393 * sol-thread.c (rw_common, ps_pdmodel): Update.
1394 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
1395 * remote.c (compare_sections_command)
1396 (remote_target::trace_set_readonly_regions): Update.
1397 * remote-sim.c (get_sim_inferior_data)
1398 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
1399 (gdbsim_target_open, gdbsim_target::files_info): Update.
1400 * exec.h (exec_bfd): Remove macro.
1401 * progspace.c (initialize_progspace): Update.
1402 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
1403 Update.
1404 * nto-procfs.c (nto_procfs_target::post_attach)
1405 (nto_procfs_target::create_inferior): Update.
1406 * maint.c (maintenance_info_sections): Update.
1407 * linux-thread-db.c (thread_db_target::get_thread_local_address):
1408 Update.
1409 * infcmd.c (post_create_inferior): Update.
1410 * gcore.c (default_gcore_arch, default_gcore_target): Update.
1411 (objfile_find_memory_regions): Update.
1412 * exec.c (validate_exec_file, exec_file_attach)
1413 (exec_read_partial_read_only, print_section_info): Update.
1414 * corelow.c (core_target_open): Update.
1415 * corefile.c (reopen_exec_file, validate_files): Update.
1416 * arm-tdep.c (gdb_print_insn_arm): Update.
1417 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
1418 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
1419 methods.
1420
b55221ab
TT
14212020-10-29 Tom Tromey <tom@tromey.com>
1422
1423 * progspace.h (current_target_sections): Remove macro.
1424 * solib-svr4.c (scan_dyntag): Update.
1425 * solib-dsbt.c (scan_dyntag): Update.
1426 * exec.c (exec_target::close): Update.
1427 (add_target_sections, add_target_sections_of_objfile)
1428 (remove_target_sections, exec_target::get_section_table)
1429 (exec_target::files_info, set_section_command)
1430 (exec_set_section_address, exec_target::has_memory)
1431 (exec_target::has_memory): Update.
1432
5a36e715
TT
14332020-10-29 Tom Tromey <tom@tromey.com>
1434
1435 * source-cache.c (source_cache::get_plain_source_lines): Use
1436 current_program_space.
1437 * corefile.c (reopen_exec_file): Use current_program_space.
1438 * exec.c (exec_file_attach): Use current_program_space.
1439 * exec.h (exec_bfd_mtime): Remove.
1440
784c8592
TT
14412020-10-29 Tom Tromey <tom@tromey.com>
1442
1443 * gcore.c (default_gcore_mach): Remove.
1444 (create_gcore_bfd): Update.
1445
8a4f1402
TT
14462020-10-29 Tom Tromey <tom@tromey.com>
1447
1448 * progspace.c (program_space::exec_close): New method, from
1449 exec_close in exec.c.
1450 * exec.c (exec_close): Move to progspace.c.
1451 (exec_target::close, exec_file_attach): Update.
1452 * progspace.h (struct program_space) <exec_close>: Declare
1453 method.
1454
c20cb686
TT
14552020-10-29 Tom Tromey <tom@tromey.com>
1456
1457 * progspace.h (struct program_space) <exec_filename>: Rename from
1458 pspace_exec_filename. Now a unique_xmalloc_ptr.
1459 * inferior.c (print_selected_inferior): Update.
1460 (print_inferior): Update.
1461 * mi/mi-main.c (print_one_inferior): Update.
1462 * exec.h (exec_filename): Remove macro.
1463 * corefile.c (get_exec_file): Update.
1464 * exec.c (exec_close): Update.
1465 (exec_file_attach): Update.
1466 * progspace.c (clone_program_space): Update.
1467 (print_program_space): Update.
1468
6be2a9ab
TT
14692020-10-29 Tom Tromey <tom@tromey.com>
1470
1471 * target-section.h (struct target_section): Add constructor.
1472 * exec.c (build_section_table, add_target_sections_of_objfile):
1473 Update.
1474 * corelow.c (core_target::build_file_mappings): Update.
1475
cfaa8f76
TBA
14762020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1477
1478 PR gdb/19318
1479 * inferior.c (detach_inferior_command): Restore the current thread.
1480 (kill_inferior_command): Ditto.
1481
1b00ef06
TV
14822020-10-28 Tom de Vries <tdevries@suse.de>
1483
1484 PR symtab/26772
1485 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
1486 map, check it in the "best match" loop.
1487
7f40ce1a
SM
14882020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1489
1490 * m32c-tdep.c: Remove unused includes.
1491
5eb9e3f5
SM
14922020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1493
1494 * xtensa-tdep.c: Remove includes.
1495
b1d4d8d1
TBA
14962020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1497
1498 * breakpoint.c (struct condition_command_opts): New struct.
1499 (condition_command_option_defs): New static global.
1500 (make_condition_command_options_def_group): New function.
1501 (condition_completer): Update to consider the '-force' flag.
1502 (condition_command): Use gdb::option for the '-force' flag.
1503
bd24c5d6
TV
15042020-10-27 Tom de Vries <tdevries@suse.de>
1505
1506 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
1507 symbols in section check.
1508
61eb46a4
TV
15092020-10-27 Tom de Vries <tdevries@suse.de>
1510
1511 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
1512
733d554a
TBA
15132020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1514
1515 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
1516 * breakpoint.c: Update the help text of the 'condition' and 'break'
1517 commands.
1518 (set_breakpoint_condition): Take a new bool parameter
1519 to control whether condition definition should be forced even when
1520 the condition expression is invalid in all of the current locations.
1521 (condition_command): Update the call to 'set_breakpoint_condition'.
1522 (find_condition_and_thread): Take the "-force-condition" flag into
1523 account.
1524 * linespec.c (linespec_keywords): Add "-force-condition" as an
1525 element.
1526 (FORCE_KEYWORD_INDEX): New #define.
1527 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
1528 as a keyword.
1529 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
1530 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
1531 * python/py-breakpoint.c (bppy_set_condition): Ditto.
1532 * NEWS: Mention the changes to the 'break' and 'condition' commands.
1533
b5fa468f
TBA
15342020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1535
1536 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
1537 * breakpoint.c (set_breakpoint_location_condition): New function.
1538 (set_breakpoint_condition): Disable a breakpoint location if parsing
1539 the condition string gives an error.
1540 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
1541 (build_target_condition_list): Ditto.
1542 (build_target_command_list): Ditto.
1543 (build_bpstat_chain): Ditto.
1544 (print_one_breakpoint_location): Ditto.
1545 (print_one_breakpoint): Ditto.
1546 (breakpoint_1): Ditto.
1547 (bp_location::bp_location): Ditto.
1548 (locations_are_equal): Ditto.
1549 (update_breakpoint_locations): Ditto.
1550 (enable_disable_bp_num_loc): Ditto.
1551 (init_breakpoint_sal): Use set_breakpoint_location_condition.
1552 (find_condition_and_thread_for_sals): New static function.
1553 (create_breakpoint): Call find_condition_and_thread_for_sals.
1554 (location_to_sals): Call find_condition_and_thread_for_sals instead
1555 of find_condition_and_thread.
1556
1c47ec3e
TV
15572020-10-26 Tom de Vries <tdevries@suse.de>
1558
1559 * dwarf2/read.c (process_full_comp_unit): Call
1560 dwarf2_find_base_address.
1561
6390859c
TT
15622020-10-26 Tom Tromey <tromey@adacore.com>
1563
1564 * gdbtypes.c (create_range_type): Revert previous patch. Add
1565 comment.
1566
d744f0f9
PA
15672020-10-26 Pedro Alves <pedro@palves.net>
1568
1569 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
1570 (my_waitpid): Use gdb::handle_eintr.
1571
006811bc
SM
15722020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
1573
1574 * acinclude.m4: Update ptrace.m4 path.
1575 * ptrace.m4: Moved to gdbsupport.
1576
c75e31a1
SM
15772020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1578
1579 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
1580 instead of target_gdbarch.
1581
32495661
SM
15822020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1583
1584 * jit.c (jit_reader_load_command): Pass current inferior.
1585 (jit_inferior_init): Change parameter type to inferior, use it.
1586 (jit_inferior_created): Remove.
1587 (jit_inferior_created_hook): Pass inferior parameter down.
1588 (_initialize_jit): Use jit_inferior_created_hook instead of
1589 jit_inferior_created.
1590 * jit.h (jit_inferior_created_hook): Add inferior parameter.
1591 * infrun.c (follow_exec): Pass inferior to
1592 jit_inferior_created_hook.
1593
3f66685e
SM
15942020-10-24 Simon Marchi <simon.marchi@efficios.com>
1595
1596 * linux-thread-db.c (check_pid_namespace_match): Add inferior
1597 parameter and use it.
1598 (thread_db_inferior_created): Pass inferior argument.
1599
a0ff652f
SM
16002020-10-24 Simon Marchi <simon.marchi@efficios.com>
1601
1602 * aix-thread.c (aix_thread_inferior_created): Add inferior
1603 parameter.
1604 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
1605 * dummy-frame.c (cleanup_dummy_frames): Likewise.
1606 * jit.c (jit_inferior_created): Likewise.
1607 * linux-thread-db.c (thread_db_inferior_created): Likewise.
1608 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
1609 * observable.h (inferior_created): Likewise.
1610 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1611 * symfile-mem.c (add_vsyscall_page): Likewise.
1612 * infcmd.c (post_create_inferior): Pass inferior argument.
1613
3c67532c
JB
16142020-10-24 Joel Brobecker <brobecker@adacore.com>
1615
1616 GDB 10.1 released.
1617
8747316e
JB
16182020-10-23 Joel Brobecker <brobecker@adacore.com>
1619
1620 * ada-typeprint.c (ada_print_type): Remove superfluous second call
1621 to ada_check_typedef.
1622
1a0ea399
AB
16232020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1624
1625 * f-exp.y (f_parse): Rename to...
1626 (f_language::parser): ...this.
1627 * f-lang.c (f_get_encoding): Rename to...
1628 (f_language::get_encoding): ...this.
1629 (f_op_print_tab): Rename to...
1630 (f_language::op_print_tab): ...this.
1631 (exp_descriptor_f): Rename to...
1632 (f_language::exp_descriptor_tab): ...this.
1633 (class f_language): Moved to f-lang.h.
1634 (f_language::language_arch_info): New function, moved out of class
1635 declaration.
1636 (f_language::search_name_hash): Likewise.
1637 (f_language::lookup_symbol_nonlocal): Likewise.
1638 (f_language::get_symbol_name_matcher_inner): Likewise.
1639 * f-lang.h: Add 'valprint.h' include.
1640 (class f_language): Moved here from f-lang.c.
1641 * f-typeprint.c (f_type_print_args): Delete commented out
1642 declaration.
1643 (f_print_typedef): Rename to...
1644 (f_language::print_typedef): ...this.
1645 (f_print_type): Rename to...
1646 (f_language::print_type): ...this.
1647 (f_type_print_varspec_prefix): Delete declaration and rename to...
1648 (f_language::f_type_print_varspec_prefix): ...this.
1649 (f_type_print_varspec_suffix): Delete declaration and rename to...
1650 (f_language::f_type_print_varspec_suffix): ...this.
1651 (f_type_print_base): Delete declaration and rename to...
1652 (f_language::f_type_print_base): ...this.
1653 * f-valprint.c (f_value_print_inner): Rename to...
1654 (f_language::value_print_inner): ...this.
1655 * parse.c: Delete 'f-lang.h' include.
1656
88cefd9b
AB
16572020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1658
1659 * language.h (language_defn::print_type): Add variable names in
1660 declaration, and update header comment.
1661
5399db93
AB
16622020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1663
1664 * ada-lang.c (ada_language::demangle): Rename to...
1665 (ada_language::demangle_symbol): ...this.
1666 * c-lang.c (cplus_language::demangle): Rename to...
1667 (cplus_language::demangle_symbol): ...this.
1668 * d-lang.c (d_language::demangle): Rename to...
1669 (d_language::demangle_symbol): ...this.
1670 * f-lang.c (f_language::demangle): Rename to...
1671 (f_language::demangle_symbol): ...this.
1672 * go-lang.c (go_language::demangle): Rename to...
1673 (go_language::demangle_symbol): ...this.
1674 * language.c (language_demangle): Update call to demangle_symbol.
1675 (auto_or_unknown_language::demangle): Rename to...
1676 (auto_or_unknown_language::demangle_symbol): ...this.
1677 * language.h (language_defn::demangle): Rename to...
1678 (language_defn::demangle_symbol): ...this.
1679 * objc-lang.c (objc_language::demangle): Rename to...
1680 (objc_language::demangle_symbol): ...this.
1681 * rust-lang.c (rust_language::demangle): Rename to...
1682 (rust_language::demangle_symbol): ...this.
1683
4b2f86ef
AB
16842020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1685
1686 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
1687 (iterate_over_file_blocks): Replace use of macro with the macros
1688 definition.
1689
e74b39de
AB
16902020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1691
1692 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
1693 * valprint.c (maybe_print_array_index): Replace use of macro with
1694 the macros definition.
1695
00c696a6
AB
16962020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1697
1698 * ada-lang.c (ada_language::print_array_index): Call value_print
1699 directly.
1700 * language.c (language_defn::print_array_index): Likewise.
1701 * language.h (LA_VALUE_PRINT): Delete.
1702 * valprint.c (value_print): Call value_print on the
1703 current_language directly.
1704
d3b67c56
AB
17052020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1706
1707 * language.h (LA_PRINT_TYPEDEF): Delete.
1708 * typeprint.c (typedef_print): Call print_typedef directly on the
1709 current_language object.
1710
790e2a12
AB
17112020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1712
1713 * m2-exp.y (m2_parse): Rename to...
1714 (m2_language::parser): ...this. Update function signature.
1715 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
1716 (m2_op_print): Rename to...
1717 (m2_language::op_print_tab): ...this, and make const.
1718 (exp_descriptor_modula2): Rename to...
1719 (m2_language::exp_descriptor_modula2): ...this.
1720 (class m2_language): Move to m2-lang.h.
1721 (m2_language::language_arch_info): New function, moved out of
1722 class declaration.
1723 (m2_language::printchar): New function, body from m2_printchar.
1724 (m2_language::printstr): New function, moved out of class
1725 declaration.
1726 (m2_language::emitchar): Likewise.
1727 * m2-lang.h (m2_parse): Delete declaration.
1728 (m2_print_typedef): Delete declaration.
1729 (m2_value_print_inner): Delete declaration.
1730 (class m2_language): Class declaration moved from m2-lang.c,
1731 larger functions are left in m2-lang.c.
1732 * m2-typeprint.c (m2_print_typedef): Rename to...
1733 (m2_language::print_typedef): ...this, and update function
1734 signature.
1735 * m2-valprint.c (m2_value_print_inner): Rename to...
1736 (m2_language::value_print_inner): ...this, replace use of
1737 LA_PRINT_STRING with a direct call to printstr member function,
1738 and update recursive call.
1739
b01175fc
AB
17402020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1741
1742 * language.c (default_is_string_type_p): Delete, implementation
1743 moved into auto_or_unknown_language::is_string_type_p.
1744 (unk_op_print_tab): Moved into
1745 auto_or_unknown_language::opcode_print_table.
1746 (unknown_language_arch_info): Delete, implementation moved into
1747 auto_or_unknown_language::language_arch_info.
1748 (class auto_or_unknown_language): New class, member functions
1749 copied from unknown_language class, with some updates.
1750 (class unknown_language): Most member functions moved into
1751 auto_or_unknown_language class. Inherit from
1752 auto_or_unknown_language class.
1753 (class auto_language): Inherit from auto_or_unknown_language.
1754 Delete most member functions.
1755
1a97fe8c
HD
17562020-10-22 Hannes Domani <ssbssa@yahoo.de>
1757
1758 * stabsread.c (read_member_functions): Remove gdb_assert.
1759
6b9d0dfd
HD
17602020-10-22 Hannes Domani <ssbssa@yahoo.de>
1761
1762 * gdbtypes.c (init_complex_type): Check target type name.
1763
4b4bb603
SM
17642020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1765
1766 * target-debug.h (target_debug_print_struct_target_ops_p):
1767 Remove.
1768 (target_debug_print_async_callback_ftype_p): Remove.
1769 (target_debug_print_struct_trace_state_variable_p): Remove.
1770 (target_debug_print_struct_traceframe_info_p): Remove.
1771 (target_debug_print_VEC__btrace_block_s__pp): Remove.
1772 (target_debug_print_enum_btrace_format): Remove.
1773 (target_debug_print_enum_info_proc_what): Remove.
1774 (target_debug_print_thread_info_pp): Remove.
1775
24f5300a
SM
17762020-10-22 Simon Marchi <simon.marchi@efficios.com>
1777
1778 * target.h (struct target_ops) <make_corefile_notes>:
1779 Change return type to unique pointer.
1780 * target.c (dummy_make_corefile_notes): Likewise.
1781 * exec.c (struct exec_target) <make_corefile_notes>:
1782 Likewise.
1783 (exec_target::make_corefile_notes): Likewise.
1784 * procfs.c (class procfs_target) <make_corefile_notes>:
1785 Likewise.
1786 (procfs_do_thread_registers): Adjust to unique pointer.
1787 (struct procfs_corefile_thread_data): Add constructor.
1788 <note_data>: Change type to unique pointer.
1789 (procfs_corefile_thread_callback): Adjust to unique pointer.
1790 (procfs_target::make_corefile_notes): Change return type to
1791 unique pointer.
1792 * target-delegates.c: Re-generate.
1793 * gcore.c (write_gcore_file_1): Adjust.
1794 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
1795 New.
1796
5fb4027f
TV
17972020-10-22 Tom de Vries <tdevries@suse.de>
1798
1799 * block.c (find_block_in_blockvector): Make sure the returned block
1800 contains pc.
1801
4a636814
SM
18022020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1803
1804 PR gdb/26693
1805 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
1806 parameter.
1807 (load_cu): Pass existing CU.
1808 (process_imported_unit_die): Likewise.
1809 (follow_die_offset): Likewise.
1810
1bd57575
LM
18112020-10-22 Luis Machado <luis.machado@linaro.org>
1812
1813 * corelow.c (core_target::xfer_partial): Also check for an empty
1814 m_core_unavailable_mappings vector.
1815
6b4c676c
AB
18162020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1817
1818 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
1819 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
1820 * f-exp.y (arglist): Allow for a series of subranges.
1821 (subrange): Add cases for subranges with strides.
1822 * f-lang.c (value_f90_subarray): Catch use of array strides and
1823 throw an error.
1824 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
1825
f2d8e4c5
AB
18262020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1827
1828 * expprint.c (print_subexp_standard): Change enum range_type to
1829 range_flag and rename variables to match.
1830 (dump_subexp_body_standard): Likewise.
1831 * expression.h (enum range_type): Rename to...
1832 (enum range_flag): ...this.
1833 (range_types): Rename to...
1834 (range_flags): ...this.
1835 * f-lang.c (value_f90_subarray): Change enum range_type to
1836 range_flag and rename variables to match.
1837 * parse.c (operator_length_standard): Likewise.
1838 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
1839 range_type to range_flag.
1840 * rust-lang.c (rust_evaluate_funcall): Likewise.
1841 (rust_range): Likewise.
1842 (rust_compute_range): Likewise.
1843 (rust_subscript): Likewise.
1844
2f1b18db
AB
18452020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1846
1847 * expprint.c (print_subexp_standard): Update to reflect changes to
1848 enum range_type.
1849 (dump_subexp_body_standard): Likewise.
1850 * expression.h (enum range_type): Convert to a bit field enum, and
1851 make the enum unsigned.
1852 * f-exp.y (subrange): Update to reflect changes to enum
1853 range_type.
1854 * f-lang.c (value_f90_subarray): Likewise.
1855 * parse.c (operator_length_standard): Likewise.
1856 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
1857 * rust-lang.c (rust_range): Likewise.
1858 (rust_compute_range): Likewise.
1859 (rust_subscript): Likewise.
1860
a46d1843
SM
18612020-10-21 Simon Marchi <simon.marchi@efficios.com>
1862
1863 * infrun.c (displaced_step_in_progress_thread): Fix comment.
1864 (displaced_step_in_progress): Fix comment.
1865
c21f37a8
SM
18662020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1867
1868 * gdbarch.sh (make_corefile_notes): Return unique pointer.
1869 * gdbarch.c: Re-generate.
1870 * gdbarch.h: Re-generate.
1871 * gcore.c (write_gcore_file_1): Adjust.
1872 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
1873 constructor.
1874 <note_data>: Change type to unique pointer.
1875 <abort_iteration>: Change type to bool.
1876 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
1877 (fbsd_collect_thread_registers): Return void, adjust.
1878 (struct fbsd_corefile_thread_data): Add construtor.
1879 <note_data>: Change type to unique pointer.
1880 (fbsd_corefile_thread): Adjust.
1881 (fbsd_make_corefile_notes): Return unique pointer, adjust.
1882 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
1883 to unique pointer, adjust.
1884 (struct linux_collect_regset_section_cb_data): Add constructor.
1885 <note_data>: Change type to unique pointer.
1886 <abort_iteration>: Change type to bool.
1887 (linux_collect_thread_registers): Return void, adjust.
1888 (struct linux_corefile_thread_data): Add constructor.
1889 <note_data>: Change type to unique pointer.
1890 (linux_corefile_thread): Adjust.
1891 (linux_make_corefile_notes): Return unique pointer, adjust.
1892
07fbbd01
SM
18932020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1894
1895 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
1896 * gdbarch.c: Re-generate.
1897 * gdbarch.h: Re-generate.
1898 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
1899 bool.
1900 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1901 Likewise.
1902 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
1903 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
1904 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
1905 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
1906
39535193
SM
19072020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1908
1909 * gdbarch.sh: Make generated predicates return bool.
1910 * gdbarch.c: Re-generate.
1911 * gdbarch.h: Re-generate.
1912
ad523d01
TT
19132020-10-20 Tom Tromey <tom@tromey.com>
1914
1915 * varobj-iter.h (struct varobj_item): Remove typedef.
1916
c4464ade
SM
19172020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1918
1919 * infrun.c (currently_stepping): Change int to bool
1920 (maybe_software_singlestep): Likewise.
1921 (show_stop_on_solib_events): Likewise.
1922 (stepping_past_nonsteppable_watchpoint): Likewise.
1923 (displaced_step_in_progress_any_inferior): Likewise.
1924 (displaced_step_in_progress_thread): Likewise.
1925 (keep_going_stepped_thread): Likewise.
1926 (thread_still_needs_step_over): Likewise.
1927 (start_step_over): Likewise.
1928 (do_target_resume): Likewise.
1929 (resume_1): Likewise.
1930 (clear_proceed_status): Likewise.
1931 (thread_still_needs_step_over_bp): Likewise.
1932 (proceed): Likewise.
1933 (switch_back_to_stepped_thread): Likewise.
1934 (adjust_pc_after_break): Likewise.
1935 (stepped_in_from): Likewise.
1936 (handle_stop_requested): Likewise.
1937 (handle_syscall_event): Likewise.
1938 (handle_no_resumed): Likewise.
1939 (handle_inferior_event): Likewise.
1940 (finish_step_over): Likewise.
1941 (handle_signal_stop): Likewise.
1942 (process_event_stop_test): Likewise.
1943
2eb20436
SM
19442020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1945
1946 * infrun.c (get_displaced_stepping_state): Fix comment.
1947
e0c45ded
AS
19482020-10-20 Andreas Schwab <schwab@linux-m68k.org>
1949
1950 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
1951
22cc388e
TT
19522020-10-19 Tom Tromey <tromey@adacore.com>
1953
1954 PR tui/26719
1955 * tui/tui-winsource.h (struct tui_source_window_base)
1956 <refresh_window>: Rename from refresh_pad.
1957 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
1958 Rename from refresh_pad.
1959 (tui_source_window_base::show_source_content)
1960 (tui_source_window_base::do_scroll_horizontal): Update.
1961
3c6eb4d4
TBA
19622020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1963
1964 * thread.c (_initialize_thread): Fine-tune the help text of
1965 'info threads'.
1966
26703721
TBA
19672020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1968
1969 * frame.c: Remove the unused 'uinteger_option_def' type alias.
1970
61c26be8
MS
19712020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
1972
1973 * breakpoint.c (handle_jit_event): Add an argument, change how
1974 `jit_event_handler` is called.
1975
932539d7
TT
19762020-10-17 Tom Tromey <tom@tromey.com>
1977
1978 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
1979 (scan_xcoff_symtab): Update.
1980 * psymtab.h (class psymtab_storage) <global_psymbols,
1981 static_psymbols, current_global_psymbols,
1982 current_static_psymbols>: Remove.
1983 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
1984 (match_partial_symbol, lookup_partial_symbol): Update.
1985 (print_partial_symbols): Change parameters.
1986 (dump_psymtab, recursively_search_psymtabs)
1987 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
1988 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
1989 (concat): Remove.
1990 (end_psymtab_common): Simplify.
1991 (append_psymbol_to_list): Change parameters.
1992 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
1993 (init_psymbol_list): Simplify.
1994 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
1995 * psympriv.h (struct partial_symtab) <empty>: New method.
1996 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
1997 Remove.
1998 <global_psymbols, static_psymbols>: New members.
1999 <add_psymbol>: New methods.
2000 (add_psymbol_to_list): Don't declare.
2001 (psymbol_placement): Move earlier.
2002 * mdebugread.c (parse_partial_symbols): Update.
2003 (handle_psymbol_enumerators): Change parameters.
2004 (mdebug_expand_psymtab): Update.
2005 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2006 (add_partial_symbol): Update.
2007 * dwarf2/index-write.c (write_psymbols): Change parameters.
2008 (write_one_signatured_type): Update.
2009 (recursively_count_psymbols): Update.
2010 (recursively_write_psymbols): Update.
2011 (class debug_names) <recursively_write_psymbols>: Update.
2012 <write_psymbols>: Change parameters.
2013 <write_one_signatured_type>: Update.
2014 * dbxread.c (read_dbx_symtab): Update.
2015 (dbx_end_psymtab): Use partial_symtab::empty.
2016 * ctfread.c (struct ctf_context) <pst>: New member.
2017 (create_partial_symtab): Set it.
2018 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
2019 (scan_partial_symbols): Use the psymtab's context. Update.
2020
cfabbd35
TT
20212020-10-17 Tom Tromey <tom@tromey.com>
2022
2023 * valprint.c (generic_value_print): Remove comment.
2024 * m2-valprint.c (m2_value_print_inner): Remove comment.
2025 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
2026 type.
2027
520596f2
TV
20282020-10-17 Tom de Vries <tdevries@suse.de>
2029
2030 PR symtab/26317
2031 * source.c (select_source_symtab): Handling sal.symtab == NULL for
2032 symbol main.
2033
76547ab3
TV
20342020-10-14 Tom de Vries <tdevries@suse.de>
2035
2036 PR gdb/26733
2037 * solib.c (solib_contains_address_p): Handle
2038 'solib->sections == nullptr'.
2039
d3a07122
SM
20402020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2041
2042 PR gdb/26642
2043 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
2044 target can't do async.
2045 * target.c (target_wait): Assert that we don't pass
2046 TARGET_WNOHANG to a target that can't async.
2047
1b71cfcf
KR
20482020-10-13 Kamil Rytarowski <n54@gmx.com>
2049
2050 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
2051 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
2052 * alpha-bsd-nat.c: Adjust include.
2053 * alpha-bsd-tdep.h: Adjust comment.
2054 * alpha-nbsd-tdep.c: Rename to ...
2055 * alpha-netbsd-tdep.c: ... this, adjust include.
2056 * amd64-nbsd-nat.c: Rename to ...
2057 * amd64-netbsd-nat.c: ... this, adjust include.
2058 * amd64-nbsd-tdep.c: Rename to ...
2059 * amd64-netbsd-tdep.c: ... this, adjust include.
2060 * amd64-tdep.h: Adjust include.
2061 * arm-nbsd-nat.c: Rename to ...
2062 * arm-netbsd-nat.c: ... this, adjust include.
2063 * arm-nbsd-tdep.c: Rename to ...
2064 * arm-netbsd-tdep.c: ... this, adjust include.
2065 * arm-nbsd-tdep.h: Rename to ...
2066 * arm-netbsd-tdep.h: ... this, adjust include.
2067 * configure.nat: Adjust file lists.
2068 * configure.tgt: Likewise.
2069 * hppa-nbsd-nat.c: Rename to ...
2070 * hppa-netbsd-nat.c: ... this, adjust include.
2071 * hppa-nbsd-tdep.c: Rename to ...
2072 * hppa-netbsd-tdep.c: ... this, adjust include.
2073 * i386-nbsd-nat.c: Rename to ...
2074 * i386-netbsd-nat.c: ... this, adjust include.
2075 * i386-nbsd-tdep.c: Rename to ...
2076 * i386-netbsd-tdep.c: ... this, adjust include.
2077 * m68k-bsd-nat.c: Adjust include.
2078 * mips-nbsd-nat.c: Rename to ...
2079 * mips-netbsd-nat.c: ... this, adjust include.
2080 * mips-nbsd-tdep.c: Rename to ...
2081 * mips-netbsd-tdep.c: ... this, adjust include.
2082 * mips-nbsd-tdep.h: Rename to ...
2083 * mips-netbsd-tdep.h: ... this.
2084 * nbsd-nat.c: Rename to ...
2085 * netbsd-nat.c: ... this, adjust include.
2086 * nbsd-nat.h: Rename to ...
2087 * netbsd-nat.h: ... this, adjust include.
2088 * nbsd-tdep.c: Rename to ...
2089 * netbsd-tdep.c: ... this, adjust include.
2090 * nbsd-tdep.h: Rename to ...
2091 * netbsd-tdep.h: ... this.
2092 * ppc-nbsd-nat.c: Rename to ...
2093 * ppc-netbsd-nat.c: ... this, adjust include.
2094 * ppc-nbsd-tdep.c: Rename to ...
2095 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
2096 * ppc-nbsd-tdep.h: Rename to ...
2097 * ppc-netbsd-tdep.h: ... this.
2098 * sh-nbsd-nat.c: Rename to ...
2099 * sh-netbsd-nat.c: ... this, adjust include.
2100 * sh-nbsd-tdep.c: Rename to ...
2101 * sh-netbsd-tdep.c: ... this, adjust include.
2102 * sparc-nbsd-nat.c: Rename to ...
2103 * sparc-netbsd-nat.c: ... this.
2104 * sparc-nbsd-tdep.c: Rename to ...
2105 * sparc-netbsd-tdep.c: ... this, adjust include.
2106 * sparc64-nbsd-nat.c: Rename to ...
2107 * sparc64-netbsd-nat.c: ... this.
2108 * sparc64-nbsd-tdep.c: Rename to ...
2109 * sparc64-netbsd-tdep.c: ... this, adjust include.
2110 * sparc64-tdep.h: Adjust comment.
2111 * vax-bsd-nat.c: Adjust include.
2112 * vax-nbsd-tdep.c: Rename to ...
2113 * vax-netbsd-tdep.c: ... this, adjust include.
2114
d7a78e5c
TT
21152020-10-12 Tom Tromey <tom@tromey.com>
2116
2117 * target.h (struct target_ops) <get_section_table>: Update.
2118 (target_get_section_table): Update.
2119 * target.c (target_get_section_table, target_section_by_addr)
2120 (memory_xfer_partial_1): Update.
2121 * target-section.h (target_section_table): Now an alias.
2122 * target-delegates.c: Rebuild.
2123 * target-debug.h (target_debug_print_target_section_table_p):
2124 Rename from target_debug_print_struct_target_section_table_p.
2125 * symfile.c (build_section_addr_info_from_section_table): Update.
2126 * solib.c (solib_map_sections, solib_contains_address_p): Update.
2127 * solib-svr4.c (scan_dyntag): Update.
2128 * solib-dsbt.c (scan_dyntag): Update.
2129 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2130 Update.
2131 * record-full.c (record_full_core_target::xfer_partial): Update.
2132 * progspace.h (struct program_space) <target_sections>: Update.
2133 * exec.h (print_section_info): Update.
2134 * exec.c (exec_target::close, build_section_table)
2135 (add_target_sections, add_target_sections_of_objfile)
2136 (remove_target_sections, exec_on_vfork)
2137 (section_table_available_memory)
2138 (section_table_xfer_memory_partial)
2139 (exec_target::get_section_table, exec_target::xfer_partial)
2140 (print_section_info, set_section_command)
2141 (exec_set_section_address, exec_target::has_memory): Update.
2142 * corelow.c (core_target::build_file_mappings)
2143 (core_target::xfer_partial, core_target::info_proc_mappings)
2144 (core_target::info_proc_mappings): Update.
2145 * bfd-target.c (class target_bfd): Update
2146
eda214ce
TT
21472020-10-12 Tom Tromey <tom@tromey.com>
2148
2149 * progspace.c (program_space::~program_space): Don't call
2150 clear_section_table.
2151 * exec.h (clear_section_table): Don't declare.
2152 * exec.c (exec_target::close): Update.
2153 (clear_section_table): Remove.
2154
91840ee3
TT
21552020-10-12 Tom Tromey <tom@tromey.com>
2156
2157 * exec.c (add_target_sections_of_objfile): Simplify.
2158
2d128614
TT
21592020-10-12 Tom Tromey <tom@tromey.com>
2160
2161 * solib.c (solib_map_sections): Update.
2162 * record-full.c (record_full_core_open_1): Update.
2163 * exec.h (build_section_table): Return a target_section_table.
2164 * exec.c (exec_file_attach): Update.
2165 (build_section_table): Return a target_section_table.
2166 * corelow.c (core_target::core_target): Update.
2167 * bfd-target.c (target_bfd::target_bfd): Update.
2168
bb2a6777
TT
21692020-10-12 Tom Tromey <tom@tromey.com>
2170
2171 * target.c (target_section_by_addr, memory_xfer_partial_1):
2172 Update.
2173 * target-section.h (struct target_section_table): Use
2174 std::vector.
2175 * symfile.h (build_section_addr_info_from_section_table): Take a
2176 target_section_table.
2177 * symfile.c (build_section_addr_info_from_section_table): Take a
2178 target_section_table.
2179 * solist.h (struct so_list) <sections>: Change type.
2180 <sections_end>: Remove.
2181 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
2182 (solib_contains_address_p): Update.
2183 * solib-svr4.c (scan_dyntag): Update.
2184 * solib-dsbt.c (scan_dyntag): Update.
2185 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2186 Update.
2187 * record-full.c (record_full_core_start, record_full_core_end):
2188 Remove.
2189 (record_full_core_sections): New global.
2190 (record_full_core_open_1, record_full_core_target::xfer_partial):
2191 Update.
2192 * exec.h (build_section_table, section_table_xfer_memory_partial)
2193 (add_target_sections): Take a target_section_table.
2194 * exec.c (exec_file_attach, clear_section_table): Update.
2195 (resize_section_table): Remove.
2196 (build_section_table, add_target_sections): Take a
2197 target_section_table.
2198 (add_target_sections_of_objfile, remove_target_sections)
2199 (exec_on_vfork): Update.
2200 (section_table_available_memory): Take a target_section_table.
2201 (section_table_read_available_memory): Update.
2202 (section_table_xfer_memory_partial): Take a target_section_table.
2203 (print_section_info, set_section_command)
2204 (exec_set_section_address, exec_target::has_memory): Update.
2205 * corelow.c (class core_target) <m_core_section_table,
2206 m_core_file_mappings>: Remove braces.
2207 <~core_target>: Remove.
2208 (core_target::core_target): Update.
2209 (core_target::~core_target): Remove.
2210 (core_target::build_file_mappings)
2211 (core_target::xfer_memory_via_mappings)
2212 (core_target::xfer_partial, core_target::info_proc_mappings):
2213 Update.
2214 * bfd-target.c (target_bfd::xfer_partial): Update.
2215 (target_bfd::target_bfd): Update.
2216 (target_bfd::~target_bfd): Remove.
2217
7b466b10
TT
22182020-10-12 Tom Tromey <tom@tromey.com>
2219
2220 * target.h (struct target_section, struct target_section_table):
2221 Move to target-section.h.
2222 * target-section.h: New file.
2223
87a37e5e
PA
22242020-10-12 Pedro Alves <pedro@palves.net>
2225
2226 PR exp/26602
2227 * valops.c (struct struct_field_searcher): New.
2228 (update_search_result): Rename to ...
2229 (struct_field_searcher::update_result): ... this. Simplify
2230 prototype. Record all found fields.
2231 (do_search_struct_field): Rename to ...
2232 (struct_field_searcher::search): ... this. Simplify prototype.
2233 Maintain stack of visited baseclass path. Call update_result for
2234 fields too. Keep searching fields in baseclasses instead of
2235 stopping at the first found field.
2236 (search_struct_field): Use struct_field_searcher. When looking
2237 for fields, report ambiguous access attempts.
2238
9370fd51
AB
22392020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
2240
2241 * frame.c (inside_main_func): Check full symbols as well as
2242 minimal symbols.
2243
59c8a30b
JB
22442020-10-09 Joel Brobecker <brobecker@adacore.com>
2245
2246 * ada-lang.c (advance_wild_match): Rewrite the function's
2247 description. Change the type of target0, t0 and t1 to char.
2248
7c184d33
TT
22492020-10-09 Tom Tromey <tromey@adacore.com>
2250
2251 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
2252
5c4258f4
TT
22532020-10-09 Tom Tromey <tromey@adacore.com>
2254
2255 * ada-lang.h (ada_encode): Return std::string.
2256 * ada-lang.c (ada_encode_1): Return std::string.
2257 (ada_encode): Likewise.
2258 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
2259 Update.
2260 * ada-exp.y (block_lookup, write_var_or_type): Update.
2261
3d87245c
HD
22622020-10-09 Hannes Domani <ssbssa@yahoo.de>
2263
2264 PR exp/26714
2265 * printcmd.c (print_formatted): Handle void results as
2266 unformatted prints.
2267
bbb826f5
AB
22682020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2269
2270 * arch/aarch32.c (aarch32_create_target_description): Release the
2271 target_desc_up as late as possible.
2272 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2273 * arch/amd64.c (amd64_create_target_description): Likewise.
2274 * arch/arc.c (arc_create_target_description): Return a
2275 target_desc_up, don't release it.
2276 * arch/arc.h (arc_create_target_description): Update declaration.
2277 (arc_lookup_target_description): Move target_desc_up into the
2278 cache, and return a borrowed pointer.
2279 * arch/arm.c (arm_create_target_description): Release the
2280 target_desc_up as late as possible.
2281 * arch/i386.c (i386_create_target_description): Likewise.
2282 * arch/riscv.h (riscv_create_target_description): Update
2283 declaration to match definition.
2284 * arch/tic6x.c (tic6x_create_target_description): Release the
2285 target_desc_up as late as possible.
2286
361cb219
AB
22872020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2288
2289 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
2290 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
2291
f5c4b229
JV
22922020-10-09 Jan Vrany <jan.vrany@labware.com>
2293
2294 * source.c (directory_command): Notify observers that "directories"
2295 parameter has changed.
2296
b2701685
TT
22972020-10-08 Tom Tromey <tom@tromey.com>
2298
2299 * cli/cli-cmds.c (print_disassembly): Style function name and
2300 addresses. Add _() wrappers.
2301
ada508b6
SV
23022020-10-08 Shahab Vahedi <shahab@synopsys.com>
2303
2304 * NEWS: Mention ARC support in GDBserver.
2305
51a948fd
AB
23062020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
2307
2308 * arch/aarch32.c (aarch32_create_target_description): Release
2309 unique_ptr returned from allocate_target_description.
2310 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2311 * arch/amd64.c (amd64_create_target_description): Likewise.
2312 * arch/arc.c (arc_create_target_description): Likewise.
2313 * arch/arm.c (arm_create_target_description): Likewise.
2314 * arch/i386.c (i386_create_target_description): Likewise.
2315 * arch/riscv.c (riscv_create_target_description): Update return
2316 type. Handle allocate_target_description returning a unique_ptr.
2317 (riscv_lookup_target_description): Update to handle unique_ptr.
2318 * arch/tic6x.c (tic6x_create_target_description): Release
2319 unique_ptr returned from allocate_target_description.
2320 * features/microblaze-with-stack-protect.c: Regenerate.
2321 * features/microblaze.c: Regenerate.
2322 * features/mips-dsp-linux.c: Regenerate.
2323 * features/mips-linux.c: Regenerate.
2324 * features/mips64-dsp-linux.c: Regenerate.
2325 * features/mips64-linux.c: Regenerate.
2326 * features/nds32.c: Regenerate.
2327 * features/nios2.c: Regenerate.
2328 * features/or1k.c: Regenerate.
2329 * features/rs6000/powerpc-32.c: Regenerate.
2330 * features/rs6000/powerpc-32l.c: Regenerate.
2331 * features/rs6000/powerpc-403.c: Regenerate.
2332 * features/rs6000/powerpc-403gc.c: Regenerate.
2333 * features/rs6000/powerpc-405.c: Regenerate.
2334 * features/rs6000/powerpc-505.c: Regenerate.
2335 * features/rs6000/powerpc-601.c: Regenerate.
2336 * features/rs6000/powerpc-602.c: Regenerate.
2337 * features/rs6000/powerpc-603.c: Regenerate.
2338 * features/rs6000/powerpc-604.c: Regenerate.
2339 * features/rs6000/powerpc-64.c: Regenerate.
2340 * features/rs6000/powerpc-64l.c: Regenerate.
2341 * features/rs6000/powerpc-7400.c: Regenerate.
2342 * features/rs6000/powerpc-750.c: Regenerate.
2343 * features/rs6000/powerpc-860.c: Regenerate.
2344 * features/rs6000/powerpc-altivec32.c: Regenerate.
2345 * features/rs6000/powerpc-altivec32l.c: Regenerate.
2346 * features/rs6000/powerpc-altivec64.c: Regenerate.
2347 * features/rs6000/powerpc-altivec64l.c: Regenerate.
2348 * features/rs6000/powerpc-e500.c: Regenerate.
2349 * features/rs6000/powerpc-e500l.c: Regenerate.
2350 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
2351 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
2352 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
2353 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
2354 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
2355 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
2356 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
2357 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
2358 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
2359 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
2360 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
2361 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
2362 * features/rs6000/powerpc-vsx32.c: Regenerate.
2363 * features/rs6000/powerpc-vsx32l.c: Regenerate.
2364 * features/rs6000/powerpc-vsx64.c: Regenerate.
2365 * features/rs6000/powerpc-vsx64l.c: Regenerate.
2366 * features/rs6000/rs6000.c: Regenerate.
2367 * features/rx.c: Regenerate.
2368 * features/s390-gs-linux64.c: Regenerate.
2369 * features/s390-linux32.c: Regenerate.
2370 * features/s390-linux32v1.c: Regenerate.
2371 * features/s390-linux32v2.c: Regenerate.
2372 * features/s390-linux64.c: Regenerate.
2373 * features/s390-linux64v1.c: Regenerate.
2374 * features/s390-linux64v2.c: Regenerate.
2375 * features/s390-te-linux64.c: Regenerate.
2376 * features/s390-tevx-linux64.c: Regenerate.
2377 * features/s390-vx-linux64.c: Regenerate.
2378 * features/s390x-gs-linux64.c: Regenerate.
2379 * features/s390x-linux64.c: Regenerate.
2380 * features/s390x-linux64v1.c: Regenerate.
2381 * features/s390x-linux64v2.c: Regenerate.
2382 * features/s390x-te-linux64.c: Regenerate.
2383 * features/s390x-tevx-linux64.c: Regenerate.
2384 * features/s390x-vx-linux64.c: Regenerate.
2385 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
2386 from allocate_target_description.
2387 * target-descriptions.c (allocate_target_description): Update
2388 return type.
2389 (print_c_tdesc::visit_pre): Release unique_ptr returned from
2390 allocate_target_description.
2391
485c47e5
TT
23922020-10-07 Tom Tromey <tromey@adacore.com>
2393
2394 * unittests/search-memory-selftests.c: New file.
2395 * Makefile.in (SELFTESTS_SRCS): Add
2396 unittests/search-memory-selftests.c.
2397
3a135a91
TT
23982020-10-07 Tom Tromey <tromey@adacore.com>
2399
2400 PR gdb/16930:
2401 * findcmd.c (_initialize_mem_search): Mention that the range is
2402 inclusive.
2403
4a72de73
TT
24042020-10-07 Tom Tromey <tromey@adacore.com>
2405
2406 * target.h (simple_search_memory): Don't declare.
2407 * target.c (simple_search_memory): Move to gdbsupport.
2408 (default_search_memory): Update.
2409 * remote.c (remote_target::search_memory): Update.
2410
a038ffd8
SM
24112020-10-07 Simon Marchi <simon.marchi@efficios.com>
2412
2413 * Makefile.in (COMPILE): Add CXXFLAGS.
2414 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
2415 (check-headers): Add CXXFLAGS.
2416
cc463201
AK
24172020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
2418
2419 * arc-linux-tdep.h: New file.
2420 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
2421 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
2422 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
2423 arc_linux_gregset, arc_linux_v2_regset,
2424 arc_linux_iterate_over_regset_sections,
2425 arc_linux_core_read_description): Implement.
2426 (arc_linux_init_osabi): Set iterate_over_regset_sections.
2427 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
2428 (arc_gdbarch_features_create): Add.
2429 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
2430
e4bd363f
SV
24312020-10-07 Shahab Vahedi <shahab@synopsys.com>
2432
2433 * arch/arc.h: Rename "arc_gdbarch_features" to
2434 "arc_arch_features".
2435 * arc-tdep.h: Likewise.
2436 * arc-tdep.c: Likewise.
2437
b68bef99
TBA
24382020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2439
2440 * infcmd.c (attach_command): Remove the redundant call to
2441 `clear_proceed_status`.
2442
4641551a
KR
24432020-10-07 Kamil Rytarowski <n54@gmx.com>
2444
2445 * nat/netbsd-nat.c (write_memory, read_memory): Update.
2446
91e5e8db
KR
24472020-10-07 Kamil Rytarowski <n54@gmx.com>
2448
2449 * nat/netbsd-nat.c (write_memory, read_memory): Add.
2450 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
2451 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
2452
64c03bdb
SM
24532020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
2454
2455 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
2456 (_initialize_break_catch_sig): Don't allocate array.
2457
31a8f60f
AB
24582020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
2459
2460 * symtab.c (find_pc_line): Return unmapped addresses when the
2461 requested address is also unmapped.
2462
9e6dbd8b
SM
24632020-10-05 Simon Marchi <simon.marchi@efficios.com>
2464
2465 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
2466 tui/tui-out.h.
2467
a1d217e8
SM
24682020-10-05 Simon Marchi <simon.marchi@efficios.com>
2469
2470 * amd64-windows-tdep.c (amd64_windows_return_value): Use
2471 type::is_vector instead of TYPE_VECTOR.
2472
7d144117
SM
24732020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
2474
2475 * auto-load.c (auto_load_objfile_script_1): Don't use
2476 debugfile_holder as temporary variable when stripping drive
2477 letter.
2478
cd096ec8
HD
24792020-10-05 Hannes Domani <ssbssa@yahoo.de>
2480
2481 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
2482 Add TYPE_CODE_COMPLEX.
2483 (amd64_windows_return_value): Fix types returned via XMM0.
2484
b58e7f72
AH
24852020-10-05 Alan Hayward <alan.hayward@arm.com>
2486
2487 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
2488 AArch64/ARM maintainers.
2489
8d378f27
SM
24902020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
2491
2492 * NEWS: Mention set/show debug event-loop.
2493
d5519913
TT
24942020-10-02 Tom Tromey <tromey@adacore.com>
2495
2496 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
2497 REG_EXTENDED.
2498
18b67edc
SM
24992020-10-02 Simon Marchi <simon.marchi@efficios.com>
2500
2501 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
2502 * procfs.c (procfs_inferior_created): Remove.
2503 (_initialize_procfs): Don't register procfs_inferior_created.
2504
6b01403b
SM
25052020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2506
2507 * async-event.c (invoke_async_signal_handlers): Add debug
2508 print.
2509 (check_async_event_handlers): Likewise.
2510 * event-top.c (show_debug_event_loop): New function.
2511 (_initialize_event_top): Register "set debug event-loop"
2512 setting.
2513
ba988419
SM
25142020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2515
2516 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
2517 * debug.h: Remove.
2518 * infrun.c: Include gdbsupport/common-debug.h.
2519 * linux-nat.c: Likewise.
2520
db20ebdf
SM
25212020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2522
2523 * async-event.h (create_async_signal_handler): Add name
2524 parameter.
2525 (create_async_event_handler): Likewise.
2526 * async-event.c (struct async_signal_handler) <name>: New field.
2527 (struct async_event_handler) <name>: New field.
2528 (create_async_signal_handler): Assign name.
2529 (create_async_event_handler): Assign name.
2530 * event-top.c (async_init_signals): Pass name when creating
2531 handler.
2532 * infrun.c (_initialize_infrun): Likewise.
2533 * record-btrace.c (record_btrace_push_target): Likewise.
2534 * record-full.c (record_full_open): Likewise.
2535 * remote-notif.c (remote_notif_state_allocate): Likewise.
2536 * remote.c (remote_target::open_1): Likewise.
2537 * tui/tui-win.c (tui_initialize_win): Likewise.
2538
2554f6f5
SM
25392020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2540
2541 * async-event.c (initialize_async_signal_handlers): Pass name to
2542 add_file_handler
2543 * event-top.c (ui_register_input_event_handler): Likewise.
2544 * linux-nat.c (linux_nat_target::async): Likewise.
2545 * run-on-main-thread.c (_initialize_run_on_main_thread):
2546 Likewise
2547 * ser-base.c (reschedule): Likewise.
2548 (ser_base_async): Likewise.
2549 * tui/tui-io.c: Likewise.
2550 * top.h (struct ui) <num>: New field.
2551 * top.c (highest_ui_num): New variable.
2552 (ui::ui): Initialize num.
2553
a7aba266
SM
25542020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2555
2556 * observable.h <inferior_created>: Remove parameters. Update all
2557 listeners.
2558 * inferior.h (post_create_inferior): Remove target parameter.
2559 Update all callers.
2560
048fde1e 25612020-10-02 Nitika Achra <Nitika.Achra@amd.com>
2562
2563 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
2564 and DW_MACRO_undef_strx.
2565 (dwarf_decode_macros): Likewise
2566 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
2567 which is the value of DW_AT_str_offsets_base.
2568 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
2569 str_offsets_base.
2570
064280be
KR
25712020-10-01 Kamil Rytarowski <n54@gmx.com>
2572
2573 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
2574
6ff33035
KR
25752020-10-01 Kamil Rytarowski <n54@gmx.com>
2576
2577 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
2578 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
2579
1eb6eb79
KR
25802020-10-01 Kamil Rytarowski <n54@gmx.com>
2581
2582 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
2583
95eb9e54
TV
25842020-09-30 Tom de Vries <tdevries@suse.de>
2585
2586 PR symtab/26683
2587 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
2588
cae21f8e
TT
25892020-09-30 Tom Tromey <tromey@adacore.com>
2590
2591 * dwarf2/read.c (handle_variant): Use constant_value.
2592
529908cb
TT
25932020-09-29 Tom Tromey <tom@tromey.com>
2594
2595 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
2596 (read_file_scope, dwarf2_get_pc_bounds)
2597 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
2598 (read_structure_type, handle_struct_member_die)
2599 (read_enumeration_type, read_array_type, read_set_type)
2600 (read_tag_pointer_type, read_tag_reference_type)
2601 (read_subroutine_type, read_base_type, read_subrange_type)
2602 (read_full_die_1, partial_die_info::read)
2603 (partial_die_info::read, by, new_symbol)
2604 (dwarf2_const_value_data, dwarf2_const_value_attr)
2605 (dump_die_shallow, dwarf2_fetch_constant_bytes)
2606 (prepare_one_comp_unit): Update.
2607 * dwarf2/attribute.h (DW_UNSND): Remove.
2608
c45bc3f8
TT
26092020-09-29 Tom Tromey <tom@tromey.com>
2610
2611 * dwarf2/read.c (read_func_scope, prototyped_function_p)
2612 (read_subroutine_type, partial_die_info::read)
2613 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
2614 (dwarf2_add_member_fn): Update.
2615 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
2616 * dwarf2/attribute.c (attribute::as_boolean): New method.
2617
23dca5c3
TT
26182020-09-29 Tom Tromey <tom@tromey.com>
2619
2620 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
2621 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
2622 method.
2623 * dwarf2/attribute.c (attribute::as_virtuality): New method.
2624
52c14d11
TT
26252020-09-29 Tom Tromey <tom@tromey.com>
2626
2627 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
2628 the attribute's form.
2629
e8e5c158
TT
26302020-09-29 Tom Tromey <tom@tromey.com>
2631
2632 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
2633 (dwarf2_add_member_fn): Update.
2634 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
2635 * dwarf2/attribute.c (attribute::defaulted): New method, from
2636 is_valid_DW_AT_defaulted.
2637
d4df075e
TT
26382020-09-29 Tom Tromey <tom@tromey.com>
2639
2640 * dwarf2/read.c (dw2_get_file_names_reader)
2641 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
2642 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
2643 (dwarf2_symbol_mark_computed): Use as_unsigned.
2644 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
2645 method.
2646 <form_is_section_offset>: Update comment.
2647
bf23a268
TT
26482020-09-29 Tom Tromey <tom@tromey.com>
2649
2650 * dwarf2/read.c (dwarf2_access_attribute): Rename from
2651 dwarf2_default_access_attribute. Look up attribute.
2652 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
2653 Update.
2654
7a5f294d
TT
26552020-09-29 Tom Tromey <tom@tromey.com>
2656
2657 * dwarf2/read.c (skip_one_die): Update.
2658 (read_full_die_1): Change how reprocessing is done.
2659 (partial_die_info::read): Update.
2660 (read_attribute_value): Remove need_reprocess parameter.
2661 (read_attribute): Likewise.
2662 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
2663 New method.
2664
36d378cf
TT
26652020-09-29 Tom Tromey <tom@tromey.com>
2666
2667 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
2668 (dwarf2_const_value_attr, dump_die_shallow)
2669 (dwarf2_fetch_constant_bytes): Update.
2670 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
2671 comment.
2672 <set_address>: New method.
2673 (DW_ADDR): Remove.
2674 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
2675 (attribute::as_string, attribute::as_address): Add assert.
2676
fe56917a
TT
26772020-09-29 Tom Tromey <tom@tromey.com>
2678
2679 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
2680 (read_attribute_reprocess, read_attribute_value): Update.
2681 (read_attribute): Clear requires_reprocessing.
2682 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
2683 form_requires_reprocessing>: New methods.
2684 <string_init>: Clear requires_reprocessing.
2685 <set_unsigned_reprocess>: New method.
2686 <name>: Shrink by one bit.
2687 <requires_reprocessing>: New member.
2688 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
2689 method.
2690
414ad644
TT
26912020-09-29 Tom Tromey <tom@tromey.com>
2692
2693 * dwarf2/read.c (read_attribute_value): Update.
2694 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
2695 set_unsigned>: New methods.
2696 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
2697
1bc397c5
TT
26982020-09-29 Tom Tromey <tom@tromey.com>
2699
2700 * dwarf2/read.c (get_alignment, read_array_order)
2701 (read_attribute_value, dwarf2_const_value_attr)
2702 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
2703 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
2704 New methods.
2705 (DW_SND): Remove.
2706
630ed6b9
TT
27072020-09-29 Tom Tromey <tom@tromey.com>
2708
2709 * dwarf2/read.c (read_attribute_value, lookup_die_type)
2710 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
2711 Update.
2712 * dwarf2/attribute.h (struct attribute) <as_signature,
2713 set_signature>: New methods.
2714 (DW_SIGNATURE): Remove.
2715
9d2246fc
TT
27162020-09-29 Tom Tromey <tom@tromey.com>
2717
2718 * dwarf2/read.c (read_call_site_scope)
2719 (handle_data_member_location, dwarf2_add_member_fn)
2720 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2721 (partial_die_info::read, read_attribute_value)
2722 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
2723 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
2724 (dwarf2_symbol_mark_computed): Update.
2725 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
2726 methods.
2727 (DW_BLOCK): Remove.
2728 * dwarf2/attribute.c (attribute::form_is_block): Add
2729 DW_FORM_data16.
2730
c6481205
TT
27312020-09-29 Tom Tromey <tom@tromey.com>
2732
2733 * dwarf2/read.c (read_cutu_die_from_dwo)
2734 (read_attribute_reprocess, read_attribute_value, read_attribute)
2735 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
2736 (dwarf2_fetch_constant_bytes): Update.
2737 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
2738 <set_string_noncanonical, set_string_canonical>: New methods.
2739 <string_is_canonical>: Update comment.
2740 <canonical_string_p>: Add assert.
2741 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
2742 * dwarf2/attribute.c (attribute::form_is_string): New method.
2743 (attribute::string): Use it.
2744
3b64bf15
TT
27452020-09-29 Tom Tromey <tom@tromey.com>
2746
2747 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
2748 (dump_die_shallow): Use canonical_string_p.
2749 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
2750 method.
2751
2c830f54
TT
27522020-09-29 Tom Tromey <tom@tromey.com>
2753
2754 * dwarf2/read.c (partial_die_info::read)
2755 (dwarf2_const_value_attr, anonymous_struct_prefix, )
2756 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
2757 attribute::as_string.
2758
6c412691
TT
27592020-09-29 Tom Tromey <tom@tromey.com>
2760
2761 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
2762 DW_ADDR.
2763 (attribute::string): Don't use DW_STRING.
2764 (attribute::get_ref_die_offset): Don't use DW_UNSND.
2765 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
2766
95f982e5
TT
27672020-09-29 Tom Tromey <tom@tromey.com>
2768
2769 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
2770 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
2771 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
2772 * dwarf2/attribute.h (struct attribute): Rename methods.
2773 * dwarf2/attribute.c (attribute::as_address): Rename from
2774 value_as_address.
2775 (attribute::as_string): Rename from value_as_string.
2776
f800b00e
TT
27772020-09-29 Tom Tromey <tom@tromey.com>
2778
2779 * dwarf2/read.c (partial_die_info::read) <case
2780 DW_AT_linkage_name>: Use value_as_string.
2781 (dwarf2_string_attr): Use value_as_string.
2782 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
2783 method.
2784 * dwarf2/attribute.c (attribute::value_as_string): New method.
2785
de38d64a
PA
27862020-09-29 Pedro Alves <pedro@palves.net>
2787
2788 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
2789 defined before using '#pragma GCC diagnostic' instead of checking
2790 __clang__.
2791
9aed480c
TT
27922020-09-28 Tom Tromey <tom@tromey.com>
2793
2794 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
2795 (handle_signal_stop): Update.
2796 * procfs.c (procfs_target::insert_watchpoint): Update.
2797 * target.h (target_have_steppable_watchpoint): Now a function.
2798
8a3ecb79
TT
27992020-09-28 Tom Tromey <tom@tromey.com>
2800
2801 * infrun.c (set_schedlock_func): Update.
2802 * target.h (target_can_lock_scheduler): Now a function.
2803
55f6301a
TT
28042020-09-28 Tom Tromey <tom@tromey.com>
2805
2806 * inferior.h (class inferior) <has_execution>: Update.
2807 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2808 * valops.c (find_function_in_inferior)
2809 (value_allocate_space_in_inferior): Update.
2810 * top.c (kill_or_detach): Update.
2811 * target.c (target_preopen, set_target_permissions): Update.
2812 (target_has_execution_current): Remove.
2813 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
2814 Update.
2815 * solib.c (update_solib_list, reload_shared_libraries): Update.
2816 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
2817 * solib-dsbt.c (enable_break): Update.
2818 * score-tdep.c (score7_fetch_inst): Update.
2819 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
2820 Update.
2821 * remote.c (remote_target::start_remote)
2822 (remote_target::remote_check_symbols, remote_target::open_1)
2823 (remote_target::remote_detach_1, remote_target::verify_memory)
2824 (remote_target::xfer_partial, remote_target::read_description)
2825 (remote_target::get_min_fast_tracepoint_insn_len): Update.
2826 * record-full.c (record_full_open_1): Update.
2827 * record-btrace.c (record_btrace_target_open): Update.
2828 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2829 (value_nsstring): Update.
2830 * linux-thread-db.c (add_thread_db_info)
2831 (thread_db_find_new_threads_silently, check_thread_db_callback)
2832 (try_thread_db_load_1, record_thread): Update.
2833 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
2834 Update.
2835 * linux-fork.c (checkpoint_command): Update.
2836 * infrun.c (set_non_stop, set_observer_mode)
2837 (check_multi_target_resumption, for_each_just_stopped_thread)
2838 (maybe_remove_breakpoints, normal_stop)
2839 (class infcall_suspend_state): Update.
2840 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
2841 (info_program_command, attach_command): Update.
2842 * infcall.c (call_function_by_hand_dummy): Update.
2843 * inf-loop.c (inferior_event_handler): Update.
2844 * gcore.c (gcore_command, derive_heap_segment): Update.
2845 * exec.c (exec_file_command): Update.
2846 * eval.c (evaluate_subexp): Update.
2847 * compile/compile.c (compile_to_object): Update.
2848 * cli/cli-dump.c (restore_command): Update.
2849 * breakpoint.c (update_watchpoint)
2850 (update_inserted_breakpoint_locations)
2851 (insert_breakpoint_locations, get_bpstat_thread): Update.
2852 * target.h (target_has_execution): Remove macro.
2853 (target_has_execution_current): Don't declare.
2854 (target_has_execution): Rename from target_has_execution_1. Add
2855 argument default.
2856
05374cfd
TT
28572020-09-28 Tom Tromey <tom@tromey.com>
2858
2859 * mi/mi-main.c (exec_reverse_continue)
2860 (mi_cmd_list_target_features): Update.
2861 * infrun.c (set_exec_direction_func): Update.
2862 * target.c (default_execution_direction): Update.
2863 * reverse.c (exec_reverse_once): Update.
2864 * target.h (target_can_execute_reverse): Now a function.
2865
9dccd06e
TT
28662020-09-28 Tom Tromey <tom@tromey.com>
2867
2868 * tui/tui-regs.c (tui_get_register)
2869 (tui_data_window::show_registers): Update.
2870 * thread.c (scoped_restore_current_thread::restore)
2871 (scoped_restore_current_thread::scoped_restore_current_thread):
2872 Update.
2873 * regcache-dump.c (regcache_print): Update.
2874 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2875 Update.
2876 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
2877 * mep-tdep.c (current_me_module, current_options): Update.
2878 * linux-thread-db.c (thread_db_load): Update.
2879 * infcmd.c (registers_info, info_vector_command)
2880 (info_float_command): Update.
2881 * ia64-tdep.c (ia64_frame_prev_register)
2882 (ia64_sigtramp_frame_prev_register): Update.
2883 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
2884 * gcore.c (derive_stack_segment): Update.
2885 * frame.c (get_current_frame, has_stack_frames): Update.
2886 * findvar.c (language_defn::read_var_value): Update.
2887 * arm-tdep.c (arm_pc_is_thumb): Update.
2888 * target.c (target_has_registers): Rename from
2889 target_has_registers_1.
2890 * target.h (target_has_registers): Remove macro.
2891 (target_has_registers): Rename from target_has_registers_1.
2892
841de120
TT
28932020-09-28 Tom Tromey <tom@tromey.com>
2894
2895 * windows-tdep.c (tlb_make_value): Update.
2896 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2897 * thread.c (scoped_restore_current_thread::restore)
2898 (scoped_restore_current_thread::scoped_restore_current_thread)
2899 (thread_command): Update.
2900 * stack.c (backtrace_command_1, frame_apply_level_command)
2901 (frame_apply_all_command, frame_apply_command): Update.
2902 * infrun.c (siginfo_make_value, restore_infcall_control_state):
2903 Update.
2904 * gcore.c (derive_stack_segment): Update.
2905 * frame.c (get_current_frame, has_stack_frames): Update.
2906 * auxv.c (info_auxv_command): Update.
2907 * ada-tasks.c (ada_build_task_list): Update.
2908 * target.c (target_has_stack): Rename from target_has_stack_1.
2909 * target.h (target_has_stack): Remove macro.
2910 (target_has_stack): Rename from target_has_stack_1.
2911
a739972c
TT
29122020-09-28 Tom Tromey <tom@tromey.com>
2913
2914 * target.c (target_has_memory): Rename from target_has_memory_1.
2915 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2916 * thread.c (scoped_restore_current_thread::restore)
2917 (scoped_restore_current_thread::scoped_restore_current_thread):
2918 Update.
2919 * frame.c (get_current_frame, has_stack_frames): Update.
2920 * target.h (target_has_memory): Remove macro.
2921 (target_has_memory): Rename from target_has_memory_1.
2922
5b8a4776
TT
29232020-09-28 Tom Tromey <tom@tromey.com>
2924
2925 * target.c (target_has_all_memory_1): Remove.
2926 * target.h (target_has_all_memory): Remove define.
2927 (target_has_all_memory_1): Don't declare.
2928
bd356ec6
SM
29292020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2930
2931 * ser-base.c: Adjust comments formatting.
2932
2c72d5e5
TT
29332020-09-27 Tom Tromey <tom@tromey.com>
2934
2935 PR tui/25342:
2936 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
2937
35a98237
TT
29382020-09-27 Tom Tromey <tom@tromey.com>
2939
2940 PR tui/25342:
2941 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
2942
9e820dec
TT
29432020-09-27 Tom Tromey <tom@tromey.com>
2944
2945 * unittests/tui-selftests.c: Update.
2946 * tui/tui-winsource.h (struct tui_source_window_base)
2947 <extra_margin, show_line_number, refresh_pad>: New methods.
2948 <m_max_length, m_pad>: New members.
2949 (tui_copy_source_line): Update.
2950 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
2951 first_col, line_width, ndigits parameters. Add length.
2952 (tui_source_window_base::show_source_line): Write to pad. Line
2953 number now 0-based.
2954 (tui_source_window_base::refresh_pad): New method.
2955 (tui_source_window_base::show_source_content): Write to pad. Call
2956 refresh_pad.
2957 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
2958 not refill.
2959 (tui_source_window_base::update_exec_info): Call
2960 show_line_number.
2961 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
2962 method.
2963 <m_digits>: New member.
2964 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
2965 and m_max_length.
2966 (tui_source_window::show_line_number): New method.
2967 * tui/tui-io.h (tui_puts): Fix comment.
2968 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
2969 m_max_length.
2970
c15c15c8
TT
29712020-09-27 Tom Tromey <tom@tromey.com>
2972
2973 * tui/tui-winsource.c
2974 (tui_source_window_base::set_is_exec_point_at): Don't call
2975 show_source_line.
2976
149830c1
TT
29772020-09-27 Tom Tromey <tom@tromey.com>
2978
2979 * python/py-tui.c (class tui_py_window) <refresh_window>: New
2980 method.
2981 <erase>: Update.
2982 <cursor_x, cursor_y>: Remove.
2983 <m_inner_window>: New member.
2984 (tui_py_window::rerender): Create inner window.
2985 (tui_py_window::output): Write to inner window.
2986
8f9929bb
GR
29872020-09-26 Gareth Rees <grees@undo.io> (tiny change)
2988
2989 PR python/26586
2990 * cli/cli-script.c (execute_control_commands): don't set
2991 instream to nullptr here as this breaks the from_tty argument
2992 to gdb.execute in Python.
2993 (execute_user_command): set instream to nullptr here instead.
2994
956bdb59
SM
29952020-09-25 Simon Marchi <simon.marchi@efficios.com>
2996
2997 * infrun.h (infrun_debug_printf): Fix formatting.
2998 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
2999
3b93626b
SJ
30002020-09-25 Saagar Jha <saagar@saagarjha.com>
3001
3002 * compile/compile-object-load.h (struct munmap_list): Add
3003 explicitly-defined move constructor.
3004
b551a89f
TT
30052020-09-24 Tom Tromey <tromey@adacore.com>
3006
3007 PR tui/26638:
3008 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
3009 method.
3010 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
3011 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
3012 (tui_prev_win): Rewrite.
3013
99bb393f
HD
30142020-09-23 Hannes Domani <ssbssa@yahoo.de>
3015
3016 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
3017 in WOW64 processes as SIGINT.
3018 * nat/windows-nat.h: Make wow64_process a shared variable.
3019 * windows-nat.c: Remove static wow64_process variable.
3020
20a5fcbd
TT
30212020-09-23 Tom Tromey <tom@tromey.com>
3022
3023 PR symtab/25470:
3024 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
3025 offset and bit size.
3026 * printcmd.c (print_scalar_formatted): Handle zero-length
3027 integer.
3028 (print_scalar_formatted): Use bit_size_differs_p.
3029 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
3030 constant.
3031 (union type_specific): <int_stuff>: New member.
3032 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
3033 methods.
3034 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
3035 TYPE_SPECIFIC_FIELD.
3036 (recursive_dump_type, copy_type_recursive): Update.
3037 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
3038 DW_AT_data_bit_offset.
3039
bac51ab7
TT
30402020-09-23 Tom Tromey <tom@tromey.com>
3041
3042 * utils.h (class gdb_argv): Add move operators.
3043 <append>: New methods.
3044 * compile/compile.c (build_argc_argv): Remove.
3045 (compile_args_argc): Remove.
3046 (compile_args_argv): Change type.
3047 (set_compile_args): Simplify.
3048 (append_args): Remove.
3049 (filter_args): Remove argcp parameter.
3050 (get_args): Return gdb_argv. Simplify.
3051 (compile_to_object): Update.
3052
92677124
TT
30532020-09-23 Tom Tromey <tom@tromey.com>
3054
3055 * compile/compile-object-run.c (do_module_cleanup)
3056 <~do_module_cleanup> :Remove.
3057 (do_module_cleanup): Update.
3058 * compile/compile-object-load.h (struct munmap_list): Add move
3059 assignment operator.
3060 <source_file>: Now a std::string.
3061 <munmap_list>: Rename. No longer a pointer.
3062 * compile/compile-object-load.c (struct setup_sections_data): Add
3063 constructor.
3064 <setup_one_section>: Declare.
3065 <munmap_list>: Move earlier.
3066 <m_bfd>: New member.
3067 <m_last_size, m_last_section_first, m_last_prot,
3068 m_last_max_alignment>: Rename, add initializers where needed.
3069 (setup_sections_data::setup_one_section): Rename from
3070 setup_sections. Update.
3071 (compile_object_load): Update. Don't use bfd_map_over_sections.
3072
e616f60a
TT
30732020-09-23 Tom Tromey <tom@tromey.com>
3074
3075 * compile/compile-object-run.c (struct do_module_cleanup): Add
3076 parameters to constructor. Update destructor.
3077 <source_file, scope, scope_data, out_value_type, out_value_addr,
3078 munmap_list_head, objfile_name_string>: Remove.
3079 <module>: New member.
3080 (do_module_cleanup): Update.
3081 (compile_object_run): Update.
3082
e947a848
TT
30832020-09-23 Tom Tromey <tom@tromey.com>
3084
3085 * compile/compile.c (eval_compile_command): Update.
3086 * compile/compile-object-run.h (compile_object_run): Take a
3087 compile_module_up.
3088 * compile/compile-object-run.c (compile_object_run): Take a
3089 compile_module_up.
3090 * compile/compile-object-load.h (struct compile_module): Add
3091 constructor, destructor.
3092 (compile_module_up): New typedef.
3093 (compile_object_load): Return compile_object_up.
3094 * compile/compile-object-load.c (compile_object_load): Return
3095 compile_module_up.
3096
0dbf6ee6
TT
30972020-09-23 Tom Tromey <tom@tromey.com>
3098
3099 * compile/compile-object-run.c (struct do_module_cleanup): Add
3100 constructor, destructor.
3101 <objfile_name_string>: Don't use struct hack.
3102 (do_module_cleanup): Use delete.
3103 (compile_object_run): Use new.
3104
ebe824f5
TT
31052020-09-23 Tom Tromey <tom@tromey.com>
3106
3107 * compile/compile-cplus-types.c
3108 (compile_cplus_convert_struct_or_union): Use std::vector.
3109 (compile_cplus_convert_func): Likewise.
3110 * compile/compile-c-types.c (convert_func): Use std::vector.
3111
5dd918d9
TT
31122020-09-21 Tom Tromey <tromey@adacore.com>
3113
3114 * sparc-tdep.c (sparc32_skip_prologue): Use
3115 skip_prologue_using_sal.
3116
5486c517
TT
31172020-09-19 Tom Tromey <tom@tromey.com>
3118
3119 * symfile.c (add_section_size_callback): Remove.
3120 (load_one_section): Rename from load_section_callback. Change
3121 parameters.
3122 (generic_load): Use foreach.
3123
8a6bb1d1
TT
31242020-09-19 Tom Tromey <tom@tromey.com>
3125
3126 * exec.c (add_to_section_table): Remove.
3127 (build_section_table): Use foreach.
3128
08f93a1a
TT
31292020-09-19 Tom Tromey <tom@tromey.com>
3130
3131 * elfread.c (elf_locate_sections): Change parameters.
3132 (elf_symfile_read): Use foreach.
3133
03cd72b8
TT
31342020-09-19 Tom Tromey <tom@tromey.com>
3135
3136 * cli/cli-dump.c (struct callback_data): Remove.
3137 (restore_one_section): Rename from restore_section_callback.
3138 Change parameters.
3139 (restore_binary_file): Change parameters.
3140 (restore_command): Use foreach.
3141
f4f2b85f
TT
31422020-09-19 Tom Tromey <tom@tromey.com>
3143
3144 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
3145 (gcore_copy_callback): Likewise.
3146 (gcore_memory_sections): Use foreach.
3147
b35c1d1c
TT
31482020-09-19 Tom Tromey <tom@tromey.com>
3149
3150 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
3151 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
3152 parameters.
3153 (generic_elf_osabi_sniffer): Use foreach.
3154 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
3155 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
3156
5bb6e9dd
TT
31572020-09-19 Tom Tromey <tom@tromey.com>
3158
3159 * dwarf2/read.c (locate_dwz_sections): Change parameters.
3160 (dwarf2_get_dwz_file): Use foreach.
3161 (dwarf2_locate_dwo_sections): Change parameters.
3162 (open_and_init_dwo_file): Use foreach.
3163 (dwarf2_locate_common_dwp_sections): Change parameters.
3164 (open_and_init_dwp_file): Use foreach.
3165
ad7277da
TT
31662020-09-19 Tom Tromey <tom@tromey.com>
3167
3168 * symfile.h: (find_lowest_section): Don't declare.
3169 * symfile.c (find_lowest_section): Now static. Change
3170 parameters.
3171 (struct place_section_arg): Remove.
3172 (place_section): Change parameters.
3173 (addr_info_make_relative): Use foreach.
3174 (symfile_dummy_outputs): Remove.
3175 (default_symfile_relocate): Use foreach.
3176
cb814f2e
TT
31772020-09-19 Tom Tromey <tom@tromey.com>
3178
3179 * objfiles.c (add_to_objfile_sections): Rename from
3180 add_to_objfile_sections_full.
3181 (add_to_objfile_sections): Remove.
3182 (build_objfile_section_table): Use foreach.
3183
3cabfd26
TT
31842020-09-19 Tom Tromey <tom@tromey.com>
3185
3186 * stap-probe.c (get_stap_base_address_1): Remove.
3187 (get_stap_base_address): Use foreach.
3188
1ce51eb5
TT
31892020-09-19 Tom Tromey <tom@tromey.com>
3190
3191 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
3192 parameters.
3193 (gdb_bfd_close_or_warn): Use foreach.
3194
a190fabb
TT
31952020-09-19 Tom Tromey <tom@tromey.com>
3196
3197 * corelow.c (add_to_thread_list): Change parameters.
3198 (core_target_open): Use foreach.
3199
cafb0d81
TT
32002020-09-19 Tom Tromey <tom@tromey.com>
3201
3202 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
3203 existing function.
3204
c8d5abea
AB
32052020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3206
3207 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
3208 for arrays.
3209
6d816919
AB
32102020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3211
3212 * eval.c: Remove 'f-lang.h' include.
3213 (value_f90_subarray): Moved to f-lang.c.
3214 (eval_call): Renamed to...
3215 (evaluate_subexp_do_call): ...this, is no longer static, header
3216 comment moved into header file.
3217 (evaluate_funcall): Update call to eval_call.
3218 (skip_undetermined_arglist): Moved to f-lang.c.
3219 (fortran_value_subarray): Likewise.
3220 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3221 moved to evaluate_subexp_f.
3222 (calc_f77_array_dims): Moved to f-lang.c
3223 * expprint.c (print_subexp_funcall): New function.
3224 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3225 moved to print_subexp_f, OP_FUNCALL uses new function.
3226 (dump_subexp_body_funcall): New function.
3227 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
3228 moved to dump_subexp_f, OP_FUNCALL uses new function.
3229 * expression.h (evaluate_subexp_do_call): Declare.
3230 * f-lang.c (value_f90_subarray): Moved from eval.c.
3231 (skip_undetermined_arglist): Likewise.
3232 (calc_f77_array_dims): Likewise.
3233 (fortran_value_subarray): Likewise.
3234 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
3235 (operator_length_f): Likewise.
3236 (print_subexp_f): Likewise.
3237 (dump_subexp_body_f): Likewise.
3238 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
3239 declaration of this operation to here.
3240 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
3241 support moved to operator_length_f.
3242 * parser-defs.h (dump_subexp_body_funcall): Declare.
3243 (print_subexp_funcall): Declare.
3244 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
3245 fortran-operator.def.
3246
8c37706a
AB
32472020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3248
3249 * eval.c (fortran_value_subarray): New function, content is taken
3250 from...
3251 (evaluate_subexp_standard): ...here, in two places. Now arrays
3252 and strings both call the new function.
3253 (calc_f77_array_dims): Add header comment, handle strings.
3254
14f9473c
VC
32552020-09-18 Victor Collod <vcollod@nvidia.com>
3256
3257 PR gdb/26635
3258 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
3259 (i386_analyze_prologue): Call i386_skip_endbr.
3260
b60cea74
TT
32612020-09-18 Tom Tromey <tromey@adacore.com>
3262
3263 * windows-nat.c (struct windows_nat_target) <wait>: Update.
3264 (windows_nat_target::wait): Update.
3265 * target/wait.h (enum target_wait_flag): New. Use
3266 DEF_ENUM_FLAGS_TYPE.
3267 * target/target.h (target_wait): Change type of options.
3268 * target.h (target_options_to_string, default_target_wait):
3269 Update.
3270 (struct target_ops) <wait>: Change type of options.
3271 * target.c (target_wait, default_target_wait, do_option): Change
3272 type of "options".
3273 (target_options_to_string): Likewise.
3274 * target-delegates.c: Rebuild.
3275 * target-debug.h (target_debug_print_target_wait_flags): Rename
3276 from target_debug_print_options.
3277 * sol-thread.c (class sol_thread_target) <wait>: Update.
3278 (sol_thread_target::wait): Update.
3279 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
3280 (rs6000_nat_target::wait): Update.
3281 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
3282 Update.
3283 (remote_target::wait_ns, remote_target::wait_as): Change type of
3284 "options".
3285 (remote_target::wait): Update.
3286 * remote-sim.c (struct gdbsim_target) <wait>: Update.
3287 (gdbsim_target::wait): Update.
3288 * record-full.c (class record_full_base_target) <wait>: Update.
3289 (record_full_wait_1): Change type of "options".
3290 (record_full_base_target::wait): Update.
3291 * record-btrace.c (class record_btrace_target) <wait>: Update.
3292 (record_btrace_target::wait): Update.
3293 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
3294 Update.
3295 (ravenscar_thread_target::wait): Update.
3296 * procfs.c (class procfs_target) <wait>: Update.
3297 (procfs_target::wait): Update.
3298 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
3299 * obsd-nat.c (obsd_nat_target::wait): Update.
3300 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
3301 (nto_procfs_target::wait): Update.
3302 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
3303 * nbsd-nat.c (nbsd_wait): Change type of "options".
3304 (nbsd_nat_target::wait): Update.
3305 * linux-thread-db.c (class thread_db_target) <wait>: Update.
3306 (thread_db_target::wait): Update.
3307 * linux-nat.h (class linux_nat_target) <wait>: Update.
3308 * linux-nat.c (linux_nat_target::wait): Update.
3309 (linux_nat_wait_1): Update.
3310 * infrun.c (do_target_wait_1, do_target_wait): Change type of
3311 "options".
3312 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
3313 * inf-ptrace.c (inf_ptrace_target::wait): Update.
3314 * go32-nat.c (struct go32_nat_target) <wait>: Update.
3315 (go32_nat_target::wait): Update.
3316 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
3317 * gnu-nat.c (gnu_nat_target::wait): Update.
3318 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
3319 * fbsd-nat.c (fbsd_nat_target::wait): Update.
3320 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
3321 * darwin-nat.c (darwin_nat_target::wait): Update.
3322 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
3323 (bsd_uthread_target::wait): Update.
3324 * aix-thread.c (class aix_thread_target) <wait>: Update.
3325 (aix_thread_target::wait): Update.
3326
0295dde6
AB
33272020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
3328
3329 * compile/compile-object-run.c (create_copied_type_recursive): New
3330 function.
3331 (compile_object_run): Use new function.
3332
d3483b43
JT
33332020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
3334
3335 * NEWS: Mention x86_64 Cygwin core file support.
3336
e7d612ad
JT
33372020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3338
3339 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
3340 (core_process_module_section): Handle NOTE_INFO_MODULE64.
3341
aff9d387
JT
33422020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3343
62a5151b
JT
3344 * windows-tdep.h: Add prototypes.
3345 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
3346 (i386_windows_core_pid_to_str): Move and rename ...
3347 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
3348 (windows_core_pid_to_str): ... and here.
3349 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
3350
33512020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
3352 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
3353 (amd64_windows_init_abi_common): ... and register.
3354
7d155da3
JT
33552020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3356
3357 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
3358 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
3359
e8ef12b9
PA
33602020-09-18 Pedro Alves <pedro@palves.net>
3361
3362 PR gdb/26631
3363 * thread.c (thread_find_command): Switch inferior before calling
3364 target methods.
3365
c1e1314d
TT
33662020-09-17 Tom Tromey <tromey@adacore.com>
3367
3368 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
3369 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
3370 (tdesc_arch_data_up): New typedef.
3371 (tdesc_use_registers, tdesc_data_alloc): Update.
3372 (tdesc_data_cleanup): Don't declare.
3373 * target-descriptions.c (tdesc_data_alloc): Return a
3374 tdesc_arch_data_up.
3375 (tdesc_arch_data_deleter::operator()): Rename from
3376 tdesc_data_cleanup. Change argument type.
3377 (tdesc_use_registers): Change early_data to an rvalue reference.
3378 (tdesc_use_registers): Don't use delete.
3379 * sparc-tdep.c (sparc32_gdbarch_init): Update.
3380 * s390-tdep.c (s390_gdbarch_init): Update.
3381 * rx-tdep.c (rx_gdbarch_init): Update.
3382 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3383 * riscv-tdep.c (riscv_gdbarch_init): Update.
3384 * or1k-tdep.c (or1k_gdbarch_init): Update.
3385 * nios2-tdep.c (nios2_gdbarch_init): Update.
3386 * nds32-tdep.c (nds32_gdbarch_init): Update.
3387 * mips-tdep.c (mips_gdbarch_init): Update.
3388 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
3389 * m68k-tdep.c (m68k_gdbarch_init): Update.
3390 * i386-tdep.c (i386_gdbarch_init): Update.
3391 * arm-tdep.c (arm_gdbarch_init): Update.
3392 * arc-tdep.c (arc_tdesc_init): Update.
3393 (arc_gdbarch_init): Update.
3394 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
3395
0363df3d
HD
33962020-09-17 Hannes Domani <ssbssa@yahoo.de>
3397
3398 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
3399 for WOW64 processes.
3400
280a9412
TT
34012020-09-17 Tom Tromey <tom@tromey.com>
3402
3403 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
3404
6108fd18
TT
34052020-09-17 Tom Tromey <tom@tromey.com>
3406
3407 * value.c (preserve_values): Update.
3408 * python/py-type.c (save_objfile_types): Update.
3409 * guile/scm-type.c (save_objfile_types): Update.
3410 * gdbtypes.h (create_copied_types_hash): Return htab_up.
3411 * gdbtypes.c (create_copied_types_hash): Return htab_up.
3412 * compile/compile-object-run.c (compile_object_run): Update.
3413
fa9b1164
TT
34142020-09-17 Tom Tromey <tom@tromey.com>
3415
3416 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
3417 Remove.
3418 <m_table>: Now htab_up.
3419 * typeprint.c (typedef_hash_table::recursively_update)
3420 (typedef_hash_table::add_template_parameters)
3421 (typedef_hash_table::typedef_hash_table): Update.
3422 (typedef_hash_table::~typedef_hash_table): Remove.
3423 (typedef_hash_table::typedef_hash_table)
3424 (typedef_hash_table::find_global_typedef)
3425 (typedef_hash_table::find_typedef): Update.
3426
eb53f105
TT
34272020-09-17 Tom Tromey <tom@tromey.com>
3428
3429 * target-descriptions.c (tdesc_use_registers): Use htab_up.
3430
7a8a5d47
TT
34312020-09-17 Tom Tromey <tom@tromey.com>
3432
3433 * linespec.c (class decode_compound_collector)
3434 <~decode_compound_collector>: Remove.
3435 <m_unique_syms>: Now htab_up.
3436 (decode_compound_collector::operator ()): Update.
3437 (class symtab_collector) <~symtab_collector>: Remove.
3438 <m_symtab_table>: Now htab_up.
3439 (symtab_collector::operator ()): Update.
3440
99032cfc
TT
34412020-09-17 Tom Tromey <tom@tromey.com>
3442
3443 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
3444 (filename_seen_cache::clear): Update.
3445 (~filename_seen_cache): Remove.
3446 (filename_seen_cache::seen): Update.
3447 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
3448 htab_up.
3449 <~filename_seen_cache>: Remove.
3450 <traverse>: Update.
3451
32580f6d
TT
34522020-09-17 Tom Tromey <tom@tromey.com>
3453
3454 * completer.c (completion_tracker::discard_completions)
3455 (completion_tracker::~completion_tracker)
3456 (completion_tracker::maybe_add_completion)
3457 (completion_tracker::remove_completion)
3458 (completion_tracker::recompute_lowest_common_denominator)
3459 (completion_tracker::build_completion_result): Update.
3460 * completer.h (class completion_tracker) <have_completions>:
3461 Update.
3462 <m_entries_hash>: Now htab_up.
3463
c1fb9836
TT
34642020-09-17 Tom Tromey <tom@tromey.com>
3465
3466 * breakpoint.c (ambiguous_names_p): Use htab_up.
3467
88f07206
TT
34682020-09-17 Tom Tromey <tom@tromey.com>
3469
3470 * auto-load.c (struct auto_load_pspace_info)
3471 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
3472 <loaded_script_files, loaded_script_texts>: Change type to
3473 htab_up.
3474 (~auto_load_pspace_info) Remove.
3475 (init_loaded_scripts_info, maybe_add_script_file)
3476 (maybe_add_script_text, auto_load_info_scripts): Update.
3477
9519b2ee
TT
34782020-09-17 Tom Tromey <tromey@adacore.com>
3479
3480 * c-exp.y (name_obstack): Now static.
3481
d2cd4113
CC
34822020-09-17 Chungyi Chi <demonic@csie.io>
3483
3484 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
3485
b650a282
SM
34862020-09-16 Simon Marchi <simon.marchi@efficios.com>
3487
3488 * breakpoint.h (init_catchpoint): Change int parameter to bool.
3489 (add_solib_catchpoint): Likewise.
3490 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
3491 to bool.
3492 (add_solib_catchpoint): Change int parameter/variable to bool.
3493 (catch_load_or_unload): Likewise.
3494 (init_catchpoint): Likewise.
3495 (create_fork_vfork_event_catchpoint): Likewise.
3496 (catch_fork_command_1): Likewise.
3497 (catch_exec_command_1): Likewise.
3498
4d0bcfcf
SM
34992020-09-16 Simon Marchi <simon.marchi@efficios.com>
3500
3501 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
3502 Change instance_flags to m_instance_flags.
3503
fe830662
TT
35042020-09-16 Tom Tromey <tromey@adacore.com>
3505
3506 PR gdb/26598:
3507 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
3508
fe5ddfc3
JB
35092020-09-16 John Baldwin <jhb@FreeBSD.org>
3510
3511 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
3512 PL_FLAG_EXEC.
3513 (fbsd_nat_target::insert_exec_catchpoint)
3514 (fbsd_nat_target::remove_exec_catchpoint): Always define.
3515 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
3516 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
3517
e911c666
JB
35182020-09-16 John Baldwin <jhb@FreeBSD.org>
3519
3520 * configure.ac: Remove check for kinfo_getvmmap().
3521 * configure, config.in: Regenerate.
3522 * fbsd-nat.c (fbsd_read_mapping): Remove
3523 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
3524 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
3525 kinfo_get_vmmap() are always present.
3526
1f17d372
JB
35272020-09-16 John Baldwin <jhb@FreeBSD.org>
3528
3529 * fbsd-nat.c: Always include support for
3530 TARGET_OBJECT_SIGNAL_INFO.
3531
bcb1da7f
JB
35322020-09-16 John Baldwin <jhb@FreeBSD.org>
3533
3534 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
3535 sysctl and remove procfs fallback.
3536
5515f729
JB
35372020-09-16 John Baldwin <jhb@FreeBSD.org>
3538
3539 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
3540 * fbsd-nat.h: Likewise.
3541
da1df1db
TBA
35422020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3543
3544 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
3545 argument.
3546
0e25e767
AB
35472020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3548
3549 * ada-lang.c (ada_language_data): Delete.
3550 (ada_language): Remove references to ada_language_data.
3551 * c-lang.c (c_language_data): Delete.
3552 (c_language): Remove references to c_language_data.
3553 (cplus_language_data): Delete.
3554 (cplus_language): Remove references to cplus_language_data.
3555 (asm_language_data): Delete.
3556 (asm_language): Remove references to asm_language_data.
3557 (minimal_language_data): Delete.
3558 (minimal_language): Remove references to minimal_language_data.
3559 * d-lang.c (d_language_data): Delete.
3560 (d_language): Remove references to d_language_data.
3561 * f-lang.c (f_language_data): Delete.
3562 (f_language): Remove references to f_language_data.
3563 * go-lang.c (go_language_data): Delete.
3564 (go_language): Remove references to go_language_data.
3565 * language.c (unknown_language_data): Delete.
3566 (unknown_language): Remove references to unknown_language_data.
3567 (auto_language_data): Delete.
3568 (auto_language): Remove references to auto_language_data.
3569 * language.h (language_data): Delete struct.
3570 (language_defn): No longer inherit from language_data.
3571 * m2-lang.c (m2_language_data): Delete.
3572 (m2_language): Remove references to m2_language_data.
3573 * objc-lang.c (objc_language_data): Delete.
3574 (objc_language): Remove references to objc_language_data.
3575 * opencl-lang.c (opencl_language_data): Delete.
3576 (opencl_language): Remove references to opencl_language_data.
3577 * p-lang.c (pascal_language_data): Delete.
3578 (pascal_language): Remove references to pascal_language_data.
3579 * rust-lang.c (rust_language_data): Delete.
3580 (rust_language): Remove references to rust_language_data.
3581
b7c6e27d
AB
35822020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3583
3584 * ada-lang.c (ada_language_data): Remove la_op_print_tab
3585 initializer.
3586 (ada_language::opcode_print_table): New member function.
3587 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
3588 (c_language::opcode_print_table): New member function.
3589 (cplus_language_data): Remove la_op_print_tab initializer.
3590 (cplus_language::opcode_print_table): New member function.
3591 (asm_language_data): Remove la_op_print_tab initializer.
3592 (asm_language::opcode_print_table): New member function.
3593 (minimal_language_data): Remove la_op_print_tab initializer.
3594 (minimal_language::opcode_print_table): New member function.
3595 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
3596 (d_language::opcode_print_table): New member function.
3597 * expprint.c (print_subexp_standard): Update call to
3598 opcode_print_table.
3599 (op_string): Likewise.
3600 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
3601 (f_language::opcode_print_table): New member function.
3602 * go-lang.c (go_language_data): Remove la_op_print_tab
3603 initializer.
3604 (go_language::opcode_print_table): New member function.
3605 * language.c (unknown_language_data): Remove la_op_print_tab
3606 initializer.
3607 (unknown_language::opcode_print_table): New member function.
3608 (auto_language_data): Remove la_op_print_tab initializer.
3609 (auto_language::opcode_print_table): New member function.
3610 * language.h (language_data): Remove la_op_print_tab field.
3611 (language_defn::opcode_print_table): Declare new member function.
3612 * m2-lang.c (m2_language_data): Remove la_op_print_tab
3613 initializer.
3614 (m2_language::opcode_print_table): New member function.
3615 * objc-lang.c (objc_language_data): Remove la_op_print_tab
3616 initializer.
3617 (objc_language::opcode_print_table): New member function.
3618 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
3619 initializer.
3620 (opencl_language::opcode_print_table): New member function.
3621 * p-lang.c (pascal_language_data): Remove la_op_print_tab
3622 initializer.
3623 (pascal_language::opcode_print_table): New member function.
3624 * rust-lang.c (rust_language_data): Remove la_op_print_tab
3625 initializer.
3626 (rust_language::opcode_print_table): New member function.
3627
5aba6ebe
AB
36282020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3629
3630 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
3631 (ada_language::expression_ops): New member function.
3632 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
3633 (c_language::expression_ops): New member function.
3634 (cplus_language_data): Remove la_exp_desc initializer.
3635 (cplus_language::expression_ops): New member function.
3636 (asm_language_data): Remove la_exp_desc initializer.
3637 (asm_language::expression_ops): New member function.
3638 (minimal_language_data): Remove la_exp_desc initializer.
3639 (minimal_language::expression_ops): New member function.
3640 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
3641 (d_language::expression_ops): New member function.
3642 * eval.c (evaluate_subexp): Update call to expression_ops.
3643 * expprint.c (print_subexp): Likewise.
3644 (op_name): Likewise.
3645 (dump_subexp_body): Likewise.
3646 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
3647 (f_language::expression_ops): New member function.
3648 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
3649 (go_language::expression_ops): New member function.
3650 * language.c (language_defn::expression_ops): New function.
3651 (unknown_language_data): Remove la_exp_desc initializer.
3652 (auto_language_data): Likewise.
3653 * language.h (language_data): Remove la_exp_desc field.
3654 (language_defn::expression_ops): Declare new member function.
3655 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
3656 (m2_language::expression_ops): New member function.
3657 * objc-lang.c (objc_language_data): Remove la_exp_desc
3658 initializer.
3659 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
3660 initializer.
3661 (opencl_language::expression_ops): New member function.
3662 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
3663 * parse.c (operator_length): Update call to expression_ops.
3664 (exp_iterate): Likewise.
3665 * rust-lang.c (rust_language_data): Remove la_exp_desc
3666 initializer.
3667 (ruse_language::expression_ops): New member function.
3668
b63a3f3f
AB
36692020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3670
3671 * ada-lang.c (ada_language_data): Remove la_varobj_ops
3672 initializer.
3673 (ada_language::varobj_ops): New member function.
3674 * c-lang.c (c_language_data): Remove la_varobj_ops
3675 initializer.
3676 (cplus_language_data): Likewise.
3677 (cplus_language::varobj_ops): New member function.
3678 (asm_language_data): Remove la_varobj_ops initializer.
3679 (minimal_language_data): Likewise.
3680 * d-lang.c (d_language_data): Likewise.
3681 * f-lang.c (f_language_data): Likewise.
3682 * go-lang.c (go_language_data): Likewise.
3683 * language.c (language_defn::varobj_ops): New function.
3684 (unknown_language_data): Remove la_varobj_ops
3685 initializer.
3686 (auto_language_data): Likewise.
3687 * language.h (language_data): Remove la_varobj_ops field.
3688 (language_defn::varobj_ops): Declare new member function.
3689 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
3690 * objc-lang.c (objc_language_data): Likewise.
3691 * opencl-lang.c (opencl_language_data): Likewise.
3692 * p-lang.c (pascal_language_data): Likewise.
3693 * rust-lang.c (rust_language_data): Likewise.
3694 * varobj.c (varobj_create): Update call to varobj_ops.
3695 * varobj.h (default_varobj_ops): Delete define.
3696
1ac14a04
AB
36972020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3698
3699 * ada-lang.c (ada_language_data): Remove la_macro_expansion
3700 initializer.
3701 * c-lang.c (c_language_data): Likewise.
3702 (c_language::macro_expansion): New member function.
3703 (cplus_language_data): Likewise.
3704 (cplus_language::macro_expansion): New member function.
3705 (asm_language_data): Likewise.
3706 (asm_language::macro_expansion): New member function.
3707 (minimal_language_data): Likewise.
3708 (minimal_language::macro_expansion): New member function.
3709 * d-lang.c (d_language_data): Remove la_macro_expansion
3710 initializer.
3711 * f-lang.c (f_language_data): Likewise.
3712 * go-lang.c (go_language_data): Likewise.
3713 * language.c (unknown_language_data): Likewise.
3714 (auto_language_data): Likewise.
3715 * language.h (language_data): Remove la_macro_expansion field.
3716 (language_defn::macro_expansion): New member function.
3717 * m2-lang.c (m2_language_data): Remove la_macro_expansion
3718 initializer.
3719 * objc-lang.c (objc_language_data): Likewise.
3720 (objc_language::macro_expansion): New member function.
3721 * opencl-lang.c (opencl_language_data): Likewise.
3722 (opencl_language::macro_expansion): New member function.
3723 * p-lang.c (pascal_language_data): Remove la_macro_expansion
3724 initializer.
3725 * rust-lang.c (rust_language_data): Likewise.
3726 * symtab.c (default_collect_symbol_completion_matches_break_on):
3727 Update call to macro_expansion.
3728
3a3440fb
AB
37292020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3730
3731 * ada-lang.c (ada_language_data): Remove la_array_ordering
3732 initializer.
3733 * c-lang.c (c_language_data): Likewise.
3734 (cplus_language_data): Likewise.
3735 (asm_language_data): Likewise.
3736 (minimal_language_data): Likewise.
3737 * d-lang.c (d_language_data): Likewise.
3738 * dwarf2/read.c (read_array_order): Update for call to
3739 array_ordering.
3740 * f-lang.c (f_language_data): Remove la_array_ordering
3741 initializer.
3742 (f_language::array_ordering): New member function.
3743 * go-lang.c (go_language_data): Remove la_array_ordering
3744 initializer.
3745 * language.c (unknown_language_data): Likewise.
3746 (auto_language_data): Likewise.
3747 * language.h (language_data): Delete la_array_ordering field.
3748 (language_defn::array_ordering): New member function.
3749 * m2-lang.c (m2_language_data): Remove la_array_ordering
3750 initializer.
3751 * objc-lang.c (objc_language_data): Likewise.
3752 * opencl-lang.c (opencl_language_data): Likewise.
3753 * p-lang.c (pascal_language_data): Likewise.
3754 * rust-lang.c (rust_language_data): Likewise.
3755
0d201fa4
AB
37562020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3757
3758 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
3759 initializer.
3760 * c-lang.c (c_language_data): Likewise.
3761 (cplus_language_data): Likewise.
3762 (asm_language_data): Likewise.
3763 (minimal_language_data): Likewise.
3764 * d-lang.c (d_language_data): Likewise.
3765 * f-lang.c (f_language_data): Likewise.
3766 (f_language::case_sensitivity): New member function.
3767 * go-lang.c (go_language_data): Remove la_case_sensitivity
3768 initializer.
3769 * language.c (enum case_mode): Moved here from language.h.
3770 (case_mode): Make static.
3771 (show_case_command): Update for case_sensitivity being a method.
3772 (set_case_command): Likewise.
3773 (set_range_case): Likewise.
3774 (unknown_language_data): Remove la_case_sensitivity initializer.
3775 (auto_language_data): Likewise.
3776 * language.h (case_mode): Delete, move enum declaration to
3777 language.c.
3778 (language_data): Delete la_case_sensitivity field.
3779 (language_defn::case_sensitivity): New member function.
3780 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
3781 initializer.
3782 * objc-lang.c (objc_language_data): Likewise.
3783 * opencl-lang.c (opencl_language_data): Likewise.
3784 * p-lang.c (pascal_language_data): Likewise.
3785 * rust-lang.c (rust_language_data): Likewise.
3786
efdf6a73
AB
37872020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3788
3789 * ada-lang.c (ada_language_data): Remove la_range_check
3790 initializer.
3791 * c-lang.c (c_language_data): Likewise.
3792 (cplus_language_data): Likewise.
3793 (asm_language_data): Likewise.
3794 (minimal_language_data): Likewise.
3795 * d-lang.c (d_language_data): Likewise.
3796 * f-lang.c (f_language_data): Likewise.
3797 (f_language::range_checking_on_by_default): New member function.
3798 * go-lang.c (go_language_data): Remove la_range_check initializer.
3799 * language.c (enum range_mode): Moved here from language.h.
3800 (range_mode): Made static.
3801 (show_range_command): Update to use
3802 range_checking_on_by_default.
3803 (set_range_command): Likewise.
3804 (set_range_case): Likewise.
3805 (unknown_language_data): Remove la_range_check initializer.
3806 (auto_language_data): Likewise.
3807 * language.h (range_mode): Delete. Enum definition moved to
3808 language.c.
3809 (language_data): Remove la_range_check field.
3810 (language_defn::range_checking_on_by_default): New member
3811 function.
3812 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
3813 (m2_language::range_checking_on_by_default): New member function.
3814 * objc-lang.c (objc_language_data): Remove la_range_check
3815 initializer.
3816 * opencl-lang.c (opencl_language_data): Likewise.
3817 * p-lang.c (pascal_language_data): Likewise.
3818 (pascal_language::range_checking_on_by_default): New member
3819 function.
3820 * rust-lang.c (rust_language_data): Remove la_range_check
3821 initializer.
3822 (rust_language::range_checking_on_by_default): New member
3823 function.
3824
bf92aec5
AB
38252020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3826
3827 * dwarf2/read.c (dwarf2_physname): Remove special case for
3828 language_go.
3829 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
3830 member function.
3831
d3355e4d
AB
38322020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3833
3834 * ada-lang.c (ada_language_data): Remove
3835 la_store_sym_names_in_linkage_form_p initializer.
3836 (ada_language::store_sym_names_in_linkage_form_p): New member
3837 function.
3838 * c-lang.c (c_language_data): Remove
3839 la_store_sym_names_in_linkage_form_p initializer.
3840 (c_language::store_sym_names_in_linkage_form_p): New member
3841 function.
3842 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
3843 initializer.
3844 (asm_language_data): Likewise.
3845 (asm_language::store_sym_names_in_linkage_form_p): New member
3846 function.
3847 (minimal_language_data): Remove
3848 la_store_sym_names_in_linkage_form_p initializer.
3849 (minimal_language::store_sym_names_in_linkage_form_p): New member
3850 function.
3851 * d-lang.c (d_language_data): Remove
3852 la_store_sym_names_in_linkage_form_p initializer.
3853 * dwarf2/read.c (dwarf2_physname): Update call to
3854 store_sym_names_in_linkage_form_p.
3855 * f-lang.c (f_language_data): Remove
3856 la_store_sym_names_in_linkage_form_p initializer.
3857 * go-lang.c (go_language_data): Remove
3858 la_store_sym_names_in_linkage_form_p initializer.
3859 * language.c (unknown_language_data): Remove
3860 la_store_sym_names_in_linkage_form_p initializer.
3861 (unknown_language::store_sym_names_in_linkage_form_p): New member
3862 function.
3863 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
3864 initializer.
3865 (auto_language::store_sym_names_in_linkage_form_p): New member
3866 function.
3867 * language.h (language_data): Remove
3868 la_store_sym_names_in_linkage_form_p member variable.
3869 (language_defn::store_sym_names_in_linkage_form_p): New member
3870 function.
3871 * m2-lang.c (m2_language_data): Remove
3872 la_store_sym_names_in_linkage_form_p initializer.
3873 * objc-lang.c (objc_language_data): Likewise.
3874 * opencl-lang.c (opencl_language_data): Likewise.
3875 * p-lang.c (pascal_language_data): Likewise.
3876 * rust-lang.c (rust_language_data): Likewise.
3877
22c12a6c
AB
38782020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3879
3880 * ada-lang.c (ada_language_data): Remove string_lower_bound
3881 initializer.
3882 * c-lang.c (c_language_data): Likewise.
3883 (cplus_language_data): Likewise.
3884 (asm_language_data): Likewise.
3885 (minimal_language_data): Likewise.
3886 * d-lang.c (d_language_data): Likewise.
3887 * f-lang.c (f_language_data): Likewise.
3888 * go-lang.c (go_language_data): Likewise.
3889 * language.c (unknown_language_data): Likewise.
3890 (auto_language_data): Likewise.
3891 * language.h (language_data): Remove string_lower_bound field.
3892 (language_defn::string_lower_bound): New member function.
3893 * m2-lang.c (m2_language_data): Remove string_lower_bound
3894 initializer.
3895 (m2_language::string_lower_bound): New member function.
3896 * objc-lang.c (objc_language_data): Remove string_lower_bound
3897 initializer.
3898 * opencl-lang.c (opencl_language_data): Likewise.
3899 * p-lang.c (pascal_language_data): Likewise.
3900 * rust-lang.c (rust_language_data): Likewise.
3901 * valops.c (value_cstring): Update call to string_lower_bound.
3902 (value_string): Likewise.
3903 * value.c (allocate_repeated_value): Likewise.
3904
1c236ddd
AB
39052020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3906
3907 * valops.c (value_repeat): Fix incorrect argument name in comment.
3908
67bd3fd5
AB
39092020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3910
3911 * ada-lang.c (ada_language_data): Remove c_style_arrays
3912 initializer.
3913 (ada_language::c_style_arrays_p): New member fuction.
3914 * c-lang.c (c_language_data): Remove c_style_arrays
3915 initializer.
3916 (cplus_language_data): Likewise.
3917 (asm_language_data): Likewise.
3918 (minimal_language_data): Likewise.
3919 * d-lang.c (d_language_data): Likewise.
3920 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
3921 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
3922 (f_language::c_style_arrays_p): New member function.
3923 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
3924 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
3925 * language.c (unknown_language_data): Remove c_style_arrays
3926 initializer.
3927 (auto_language_data): Likewise.
3928 * language.h (language_data): Remove c_style_arrays field.
3929 (language_defn::c_style_arrays_p): New member function.
3930 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
3931 (m2_language::c_style_arrays_p): New member function.
3932 * objc-lang.c (objc_language_data): Remove c_style_arrays
3933 initializer.
3934 * opencl-lang.c (opencl_language_data): Likewise.
3935 * p-lang.c (pascal_language_data): Likewise.
3936 * rust-lang.c (rust_language_data): Likewise.
3937 * valarith.c (value_subscript): Update call to c_style_arrays_p,
3938 and update local variable to a bool.
3939 * valops.c (value_cast): Update call to c_style_arrays_p.
3940 (value_array): Likewise.
3941 * value.c (coerce_array): Likewise.
3942
85967615
AB
39432020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3944
3945 * ada-lang.c (ada_language_data): Remove la_language initializer.
3946 * c-lang.c (c_language_data): Likewise.
3947 (cplus_language_data): Likewise.
3948 (asm_language_data): Likewise.
3949 (minimal_language_data): Likewise.
3950 * d-lang.c (d_language_data): Likewise.
3951 * f-lang.c (f_language_data): Likewise.
3952 * go-lang.c (go_language_data): Likewise.
3953 * language.c (unknown_language_data): Likewise.
3954 (auto_language_data): Likewise.
3955 * language.h (language_data): Remove la_language field.
3956 (language_defn::language_defn): Initialise la_language field.
3957 (language_defn::la_language): New member variable.
3958 * m2-lang.c (m2_language_data): Remove la_language field.
3959 * objc-lang.c (objc_language_data): Likewise.
3960 * opencl-lang.c (opencl_language_data): Likewise.
3961 * p-lang.c (pascal_language_data): Likewise.
3962 * rust-lang.c (rust_language_data): Likewise.
3963
e171d6f1
AB
39642020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3965
3966 * ada-lang.c (ada_extensions): Delete, moved into
3967 ada_language::filename_extensions.
3968 (ada_language_data): Remove la_filename_extensions initializer.
3969 (ada_language::filename_extensions): New member function.
3970 * c-lang.c (c_extensions): Delete, moved into
3971 c_language::filename_extensions.
3972 (c_language_data): Remove la_filename_extensions initializer.
3973 (c_language::filename_extensions): New member function.
3974 (cplus_extensions): Delete, moved into
3975 cplus_language::filename_extensions.
3976 (cplus_language_data): Remove la_filename_extensions initializer.
3977 (cplus_language::filename_extensions): New member function.
3978 (asm_extensions): Delete, moved into
3979 asm_language::filename_extensions.
3980 (asm_language_data): Remove la_filename_extensions initializer.
3981 (asm_language::filename_extensions): New member function.
3982 (minimal_language_data): Remove la_filename_extensions
3983 initializer.
3984 * d-lang.c (d_extensions): Delete, moved into
3985 d_language::filename_extensions.
3986 (d_language_data): Remove la_filename_extensions initializer.
3987 (d_language::filename_extensions): New member function.
3988 * f-lang.c (f_extensions): Delete, moved into
3989 f_language::filename_extensions.
3990 (f_language_data): Remove la_filename_extensions initializer.
3991 (f_language::filename_extensions): New member function.
3992 * go-lang.c (go_language_data): Remove la_filename_extensions
3993 initializer.
3994 * language.c (add_set_language_command): Update now that
3995 filename_extensions returns a vector.
3996 (unknown_language_data): Remove la_filename_extensions
3997 initializer.
3998 (auto_language_data): Likewise.
3999 * language.h (language_data): Remove la_filename_extensions field.
4000 (language_defn::filename_extensions): New member function.
4001 * m2-lang.c (m2_language_data): Remove la_filename_extensions
4002 initializer.
4003 * objc-lang.c (objc_extensions): Delete, moved into
4004 objc_language::filename_extensions.
4005 (objc_language_data): Remove la_filename_extensions initializer.
4006 (objc_language::filename_extensions): New member function.
4007 * opencl-lang.c (opencl_language_data): Remove
4008 la_filename_extensions initializer.
4009 * p-lang.c (pascal_extensions): Delete, moved into
4010 pascal_language::filename_extensions.
4011 (pascal_language_data): Remove la_filename_extensions initializer.
4012 (pascal_language::filename_extensions): New member function.
4013 * rust-lang.c (rust_extensions): Delete, moved into
4014 rust_language::filename_extensions.
4015 (rust_language_data): Remove la_filename_extensions initializer.
4016 (rust_language::filename_extensions): New member function.
4017 * symfile.c (add_filename_language): Add new assert.
4018
6f7664a9
AB
40192020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4020
4021 * ada-lang.c (ada_language_data): Remove la_name and
4022 la_natural_name initializers.
4023 (ada_language::name): New member function.
4024 (ada_language::natural_name): New member function.
4025 * c-lang.c (c_language_data): Remove la_name and
4026 la_natural_name initializers.
4027 (c_language::name): New member function.
4028 (c_language::natural_name): New member function.
4029 (cplus_language_data): Remove la_name and
4030 la_natural_name initializers.
4031 (cplus_language::name): New member function.
4032 (cplus_language::natural_name): New member function.
4033 (asm_language_data): Remove la_name and
4034 la_natural_name initializers.
4035 (asm_language::name): New member function.
4036 (asm_language::natural_name): New member function.
4037 (minimal_language_data): Remove la_name and
4038 la_natural_name initializers.
4039 (minimal_language::name): New member function.
4040 (minimal_language::natural_name): New member function.
4041 * compile/compile.c (compile_to_object): Update call to
4042 lanugage_defn::name.
4043 * d-lang.c (d_language_data): Remove la_name and
4044 la_natural_name initializers.
4045 (d_language::name): New member function.
4046 (d_language::natural_name): New member function.
4047 * expprint.c (print_subexp_standard): Update call to
4048 language_defn::name.
4049 (dump_raw_expression): Likewise
4050 (dump_prefix_expression): Likewise.
4051 * f-lang.c (f_language_data): Remove la_name and
4052 la_natural_name initializers.
4053 (f_language::name): New member function.
4054 (f_language::natural_name): New member function.
4055 * go-lang.c (go_language_data): Remove la_name and
4056 la_natural_name initializers.
4057 (go_language::name): New member function.
4058 (go_language::natural_name): New member function.
4059 * language.c (show_language_command): Update call to
4060 language_defn::name.
4061 (set_language_command): Likewise.
4062 (language_enum): Likewise.
4063 (language_str): Likewise.
4064 (add_set_language_command): Likewise, use
4065 language_defn::natural_name in the doc string.
4066 (unknown_language_data): Remove la_name and
4067 la_natural_name initializers.
4068 (unknown_language::name): New member function.
4069 (unknown_language::natural_name): New member function.
4070 (auto_language_data): Remove la_name and
4071 la_natural_name initializers.
4072 (auto_language::name): New member function.
4073 (auto_language::natural_name): New member function.
4074 (language_lookup_primitive_type_as_symbol): Update call to
4075 language_defn::name.
4076 * language.h (language_data): Remove la_name and la_natural_name
4077 member variables.
4078 (language_defn::name): New member function.
4079 (language_defn::natural_name): New member function.
4080 * m2-lang.c (m2_language_data): Remove la_name and
4081 la_natural_name initializers.
4082 (m2_language::name): New member function.
4083 (m2_language::natural_name): New member function.
4084 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
4085 language_defn::natural_name.
4086 * objc-lang.c (objc_language_data): Remove la_name and
4087 la_natural_name initializers.
4088 (objc_language::name): New member function.
4089 (objc_language::natural_name): New member function.
4090 * opencl-lang.c (opencl_language_data): Remove la_name and
4091 la_natural_name initializers.
4092 (opencl_language::name): New member function.
4093 (opencl_language::natural_name): New member function.
4094 * p-lang.c (pascal_language_data): Remove la_name and
4095 la_natural_name initializers.
4096 (pascal_language::name): New member function.
4097 (pascal_language::natural_name): New member function.
4098 * rust-lang.c (rust_language_data): Remove la_name and
4099 la_natural_name initializers.
4100 (rust_language::name): New member function.
4101 (rust_language::natural_name): New member function.
4102 * symtab.c (lookup_language_this): Update call to
4103 language_defn::name.
4104
5bae7c4e
AB
41052020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4106
4107 * ada-lang.c (ada_language_data): Remove la_name_of_this
4108 initializer.
4109 * ax-gdb.c (gen_expr): Update call to name_of_this.
4110 * c-exp.y (classify_name): Likewise.
4111 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
4112 (cplus_language_data): Likewise.
4113 (cplus_language::name_of_this): New member function.
4114 (asm_language_data): Remove la_name_of_this initializer.
4115 (minimal_language_data): Likewise.
4116 * d-lang.c (d_language_data): Likewise.
4117 (d_language::name_of_this): New member function.
4118 * expprint.c (print_subexp_standard): Update call to name_of_this.
4119 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
4120 * go-lang.c (go_language_data): Likewise.
4121 * language.c (unknown_language_data): Likewise.
4122 (unknown_language::name_of_this): New member function.
4123 (auto_language_data): Remove la_name_of_this initializer.
4124 (auto_language::name_of_this): New member function.
4125 * language.h (language_data): Delete la_name_of_this member
4126 variable.
4127 (language_defn::name_of_this): New member function.
4128 * m2-lang.c (m2_language_data): Remove la_name_of_this
4129 initializer.
4130 * objc-lang.c (objc_language_data): Likewise.
4131 (objc_language::name_of_this): New member function.
4132 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
4133 initializer.
4134 * p-lang.c (pascal_language_data): Likewise.
4135 (pascal_language::name_of_this): New member function.
4136 * rust-lang.c (rust_language_data): Remove la_name_of_this
4137 initializer.
4138 * symtab.c (lookup_language_this): Update call to name_of_this.
4139 (lookup_symbol_aux): Likewise.
4140 * valops.c (value_of_this): Likewise.
4141
22e3f3ed
AB
41422020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4143
4144 * ada-lang.c (ada_language_data): Remove
4145 la_struct_too_deep_ellipsis initializer.
4146 (ada_language::struct_too_deep_ellipsis): New member function.
4147 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
4148 initializer.
4149 (cplus_language_data): Likewise.
4150 (asm_language_data): Likewise.
4151 (minimal_language_data): Likewise.
4152 * cp-valprint.c (cp_print_value): Update call to
4153 struct_too_deep_ellipsis.
4154 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
4155 initializer.
4156 * f-lang.c (f_language_data): Likewise.
4157 (f_language::struct_too_deep_ellipsis): New member function.
4158 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
4159 initializer.
4160 * language.c (unknown_language_data): Likewise.
4161 (auto_language_data): Likewise.
4162 * language.h (language_data): Delete la_struct_too_deep_ellipsis
4163 member variable.
4164 (language_defn::struct_too_deep_ellipsis): New member function.
4165 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
4166 initializer.Q
4167 * objc-lang.c (objc_language_data): Likewise.
4168 * opencl-lang.c (opencl_language_data): Likewise.
4169 * p-lang.c (pascal_language_data): Likewise.
4170 * rust-lang.c (rust_language_data): Likewise.
4171 * valprint.c (val_print_check_max_depth): Update call to
4172 struct_too_deep_ellipsis.
4173
ed29e1c7
FW
41742020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
4175
4176 * MAINTAINERS (Write After Approval): Add myself.
4177
12d8f940
TT
41782020-09-15 Tom Tromey <tom@tromey.com>
4179
4180 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
4181 Remove.
4182
6b5a7bc7
TT
41832020-09-15 Tom Tromey <tom@tromey.com>
4184
4185 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
4186 and TYPE_CODE_METHODPTR cases.
4187 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
4188 (c_value_print_inner): Update.
4189 * valprint.c (generic_value_print_memberptr): New function, from
4190 c_value_print_memberptr.
4191 (generic_value_print): Use it. Call cplus_print_method_ptr.
4192
47f0e2ff
TT
41932020-09-15 Tom Tromey <tromey@adacore.com>
4194
4195 * python/python-internal.h (PyInt_FromLong): Remove define.
4196 * python/py-value.c (convert_value_from_python): Use
4197 gdb_py_object_from_longest.
4198 * python/py-type.c (typy_get_code): Use
4199 gdb_py_object_from_longest.
4200 * python/py-symtab.c (salpy_get_line): Use
4201 gdb_py_object_from_longest.
4202 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
4203 gdb_py_object_from_longest.
4204 * python/py-record.c (recpy_gap_reason_code): Use
4205 gdb_py_object_from_longest.
4206 * python/py-record-btrace.c (recpy_bt_insn_size)
4207 (recpy_bt_func_level, btpy_list_count): Use
4208 gdb_py_object_from_longest.
4209 * python/py-infthread.c (gdbpy_create_ptid_object): Use
4210 gdb_py_object_from_longest. Fix error handling.
4211 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
4212 gdb_py_object_from_longest.
4213 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
4214 gdb_py_object_from_longest.
4215 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
4216 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
4217 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
4218
512116ce
TT
42192020-09-15 Tom Tromey <tromey@adacore.com>
4220
4221 * python/python.c (gdbpy_parameter_value): Use
4222 gdb_py_object_from_ulongest.
4223
4ab1029c
TT
42242020-09-15 Tom Tromey <tromey@adacore.com>
4225
4226 * python/py-infevents.c (create_register_changed_event_object):
4227 Use gdb_py_object_from_longest.
4228 * python/py-exitedevent.c (create_exited_event_object): Use
4229 gdb_py_object_from_longest.
4230
062534d4
TT
42312020-09-15 Tom Tromey <tromey@adacore.com>
4232
4233 * python/python.c (gdbpy_parameter_value): Use
4234 gdb_py_object_from_longest.
4235 * python/py-type.c (convert_field, typy_range): Use
4236 gdb_py_object_from_longest.
4237 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
4238 gdb_py_object_from_longest.
4239 * python/py-lazy-string.c (stpy_get_length): Use
4240 gdb_py_object_from_longest.
4241 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
4242 gdb_py_object_from_longest.
4243 * python/py-infevents.c (create_memory_changed_event_object): Use
4244 gdb_py_object_from_longest.
4245 * python/py-inferior.c (infpy_get_num): Use
4246 gdb_py_object_from_longest.
4247 (infpy_get_pid): Likewise.
4248
d1cab987
TT
42492020-09-15 Tom Tromey <tromey@adacore.com>
4250
4251 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
4252 defines.
4253 * python/py-value.c (valpy_long): Use
4254 gdb_py_object_from_ulongest.
4255 * python/py-symtab.c (salpy_get_pc): Use
4256 gdb_py_object_from_ulongest.
4257 (salpy_get_last): Likewise.
4258 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
4259 gdb_py_object_from_ulongest.
4260 * python/py-lazy-string.c (stpy_get_address): Use
4261 gdb_py_object_from_ulongest.
4262 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
4263 * python/py-arch.c (archpy_disassemble): Use
4264 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
4265 error handling.
4266
4bde49dc
TT
42672020-09-15 Tom Tromey <tromey@adacore.com>
4268
4269 * python/python-internal.h (gdb_py_long_from_longest): Remove
4270 defines.
4271 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
4272 * python/py-type.c (convert_field, typy_get_sizeof): Use
4273 gdb_py_object_from_longest.
4274 * python/py-record-btrace.c (btpy_list_index): Use
4275 gdb_py_object_from_longest.
4276
37431074
TT
42772020-09-15 Tom Tromey <tromey@adacore.com>
4278
4279 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
4280 * python/py-record.c (recpy_element_number): Use
4281 gdb_py_object_from_longest.
4282 (recpy_gap_number): Likewise.
4283
cbe25684
TT
42842020-09-15 Tom Tromey <tromey@adacore.com>
4285
4286 * top.c (ui::ui): Update.
4287 (highest_ui_num): Remove.
4288 * top.h (struct ui) <num>: Remove.
4289
db92ac45
TT
42902020-09-15 Tom Tromey <tromey@adacore.com>
4291
4292 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
4293 * ui-style.c (ansi_regex_text): Now array.
4294 * rust-exp.y (number_regex_text): Now array.
4295 * linespec.c (linespec_quote_characters): Now array.
4296 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
4297 Now arrays.
4298
d2b31b67
SM
42992020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4300
4301 * debuginfod-support.c (debuginfod_client_deleter): New.
4302 (debuginfod_client_up): New.
4303 (debuginfod_init): Return debuginfod_client_up.
4304 (debuginfod_source_query): Adjust.
4305 (debuginfod_debuginfo_query): Adjust.
4306
3246bd8e
SM
43072020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4308
4309 * debuginfod-support.c (debuginfod_source_query): Use
4310 make_unique_xstrdup.
4311
10242f36
SM
43122020-09-14 Simon Marchi <simon.marchi@efficios.com>
4313
4314 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
4315 with `type::instance_flags`.
4316
e1044e6a
MM
43172020-09-14 Michael Mullin <masmullin@gmail.com>
4318
4319 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
4320 Remove baton parameter.
4321
04902b09
PA
43222020-09-14 Pedro Alves <pedro@palves.net>
4323
4324 * Makefile.in (SELFTESTS_SRCS): Add
4325 unittests/enum-flags-selftests.c.
4326 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
4327 btrace_function_flags instead of enum btrace_function_flag.
4328 * compile/compile-c-types.c (convert_qualified): Use
4329 enum_flags::raw.
4330 * compile/compile-cplus-symbols.c (convert_one_symbol)
4331 (convert_symbol_bmsym):
4332 * compile/compile-cplus-types.c (compile_cplus_convert_method)
4333 (compile_cplus_convert_struct_or_union_methods)
4334 (compile_cplus_instance::convert_qualified_base):
4335 * go-exp.y (parse_string_or_char): Add cast to int.
4336 * unittests/enum-flags-selftests.c: New file.
4337 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
4338 type to btrace_thread_flags from btrace_thread_flag.
4339 (record_btrace_cancel_resume, record_btrace_step_thread): Change
4340 local's type to btrace_thread_flags from btrace_thread_flag. Add
4341 cast in DEBUG call.
4342
69896a2c
PA
43432020-09-14 Pedro Alves <pedro@palves.net>
4344
4345 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
4346 * gdbtypes.c (address_space_name_to_int): Rename to ...
4347 (address_space_name_to_type_instance_flags): ... this.
4348 (address_space_int_to_name): Rename to ...
4349 (address_space_type_instance_flags_to_name): ... this.
4350 * gdbtypes.h (address_space_name_to_int): Rename to ...
4351 (address_space_name_to_type_instance_flags): ... this.
4352 (address_space_int_to_name): Rename to ...
4353 (address_space_type_instance_flags_to_name): ... this.
4354 * type-stack.c (type_stack::insert): Adjust to rename.
4355 * type-stack.h (type_stack::insert): Likewise.
4356
314ad88d
PA
43572020-09-14 Pedro Alves <pedro@palves.net>
4358 Andrew Burgess <andrew.burgess@embecosm.com>
4359
4360 * avr-tdep.c (avr_address_class_type_flags): Return
4361 type_instance_flags.
4362 (avr_address_class_type_flags_to_name): Take a
4363 type_instance_flags.
4364 (avr_address_class_name_to_type_flags): Return bool and take a
4365 type_instance_flags.
4366 * d-lang.c (build_d_types): Use type::set_instance_flags.
4367 * ft32-tdep.c (ft32_address_class_type_flags): Return
4368 type_instance_flags.
4369 (ft32_address_class_type_flags_to_name): Take a
4370 type_instance_flags.
4371 (ft32_address_class_name_to_type_flags): Return bool and take a
4372 type_instance_flags.
4373 (ft32_gdbarch_init): Use type::set_instance_flags.
4374 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
4375 * gdbarch.h, gdbarch.c: Regenerate.
4376 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
4377 (address_class_name_to_type_flags): Use type_instance_flags and
4378 bool.
4379 * gdbtypes.c (address_space_name_to_int)
4380 (address_space_int_to_name, make_qualified_type): Use
4381 type_instance_flags.
4382 (make_qualified_type): Use type_instance_flags and
4383 type::set_instance_flags.
4384 (make_type_with_address_space, make_cv_type, make_vector_type)
4385 (check_typedef): Use type_instance_flags.
4386 (recursive_dump_type): Cast type_instance_flags to unsigned for
4387 printing.
4388 (copy_type_recursive): Use type::set_instance_flags.
4389 (gdbtypes_post_init): Use type::set_instance_flags.
4390 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
4391 <m_instance_flags>: ... this.
4392 <instance_flags, set_instance_flags>: New methods.
4393 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
4394 (SET_TYPE_INSTANCE_FLAGS): New.
4395 (address_space_name_to_int, address_space_int_to_name)
4396 (make_type_with_address_space): Pass flags using
4397 type_instance_flags instead of int.
4398 * stabsread.c (cleanup_undefined_types_noname): Use
4399 type::set_instance_flags.
4400 * s390-tdep.c (s390_address_class_type_flags): Return
4401 type_instance_flags.
4402 (s390_address_class_type_flags_to_name): Take a
4403 type_instance_flags.
4404 (s390_address_class_name_to_type_flags): Return bool and take a
4405 type_instance_flags.
4406 * type-stack.c (type_stack::follow_types): Use
4407 type_instance_flags.
4408 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
4409
27087b7f
TT
44102020-09-14 Tom Tromey <tromey@adacore.com>
4411
4412 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
4413 * x86-tdep.c (x86_is_thunk_register_name)
4414 (x86_in_indirect_branch_thunk): Update.
4415 * sparc64-tdep.c (sparc64_fpu_register_names)
4416 (sparc64_cp0_register_names, sparc64_register_names)
4417 (sparc64_pseudo_register_names): Now const.
4418 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
4419 cp0_registers_num>: Now const.
4420 * sparc-tdep.c (sparc_core_register_names)
4421 (sparc32_fpu_register_names, sparc32_cp0_register_names)
4422 (sparc32_pseudo_register_names): Now const.
4423 (validate_tdesc_registers): Update.
4424 * rust-lang.c (rust_extensions): Now const.
4425 * p-lang.c (p_extensions): Now const.
4426 * objc-lang.c (objc_extensions): Now const.
4427 * nto-tdep.c (nto_thread_state_str): Now const.
4428 * moxie-tdep.c (moxie_register_names): Now const.
4429 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
4430 Now const.
4431 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
4432 (mips_linux_reg_names): Now const.
4433 (mips_gdbarch_init): Update.
4434 * microblaze-tdep.c (microblaze_register_names): Now const.
4435 * m68k-tdep.c (m68k_register_names): Now const.
4436 * m32r-tdep.c (m32r_register_names): Now const.
4437 * ia64-tdep.c (ia64_register_names): Now const.
4438 * i386-tdep.h (struct gdbarch_tdep) <register_names,
4439 ymmh_register_names, ymm16h_regnum, mpx_register_names,
4440 k_register_names, zmmh_register_names, xmm_avx512_register_names,
4441 ymm_avx512_register_names, pkeys_register_names>: Now const.
4442 * i386-tdep.c (i386_register_names, i386_zmm_names)
4443 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
4444 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
4445 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
4446 * f-lang.c (f_extensions): Now const.
4447 * d-lang.c (d_extensions): Now const.
4448 * csky-tdep.c (csky_register_names): Now const.
4449 * charset.c (default_charset_names, charset_enum): Now const.
4450 (_initialize_charset): Update.
4451 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
4452 const.
4453 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
4454 (bsd_uthread_solib_loaded): Update.
4455 (bsd_uthread_state): Now const.
4456 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
4457 (amd64_ymm_avx512_names, amd64_ymmh_names)
4458 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
4459 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
4460 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
4461 (amd64_dword_names): Now const.
4462 * agent.c (can_use_agent_enum): Now const.
4463 * ada-tasks.c (task_states, long_task_states): Now const.
4464 * ada-lang.c (known_runtime_file_name_patterns)
4465 (known_auxiliary_function_name_patterns, attribute_names)
4466 (standard_exc, ada_extensions): Now const.
4467
89806626
SM
44682020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4469
4470 * bcache.h (struct bcache) <bcache>: Remove constructor.
4471 <m_hash_function, m_compare_function>: Remove.
4472 <~bcache>: Make virtual.
4473 <compare>: Remove static method, introduce virtual method.
4474 <default_hash>: Remove.
4475 <hash>: New virtual method.
4476 * bcache.c (bcache::expand_hash_table): Update.
4477 (bcache::insert): Update.
4478 (bcache::hash): New.
4479 (bcache::compare): Update comment and parameter names.
4480 * gdbtypes.c (types_deeply_equal): Update.
4481 * psymtab.h (struct psymbol_bcache): New struct.
4482 (class psymtab_storage) <psymtab_storage>: Make default.
4483 <psymbol_cache>: Change type to psymbol_bcache.
4484 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
4485 (psymbol_hash): Change to...
4486 (psymbol_bcache::hash): ... this.
4487 (psymbol_compare): Change to...
4488 (psymbol_bcache::compare): ... this.
4489
677c92fe
SM
44902020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4491
4492 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
4493 checking for initial lwp.
4494
3eba3a01
TT
44952020-09-14 Tom Tromey <tromey@adacore.com>
4496
4497 * m68k-tdep.c (m68k_extract_return_value): Use
4498 pointer_result_regnum.
4499 (m68k_store_return_value): Likewise.
4500 (m68k_reg_struct_return_p): Handle vectors and arrays.
4501 (m68k_return_value): Handle arrays.
4502 (m68k_svr4_return_value): Fix single-element aggregate handling.
4503 Handle long double. Adjust for embedded ABI.
4504 (m68k_svr4_init_abi): Set pointer_result_regnum.
4505 (m68k_embedded_init_abi): New function.
4506 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
4507 (m68k_osabi_sniffer): New function.
4508 (_initialize_m68k_tdep): Register osabi sniffer.
4509 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
4510 member.
4511
33f4dd48
SM
45122020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4513
4514 * xml-support.c (xml_fetch_content_from_file): Replace xfree
4515 with gdb::unique_xmalloc_ptr<char>.
4516
8400a90d
SM
45172020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4518
4519 * xml-support.h (xml_fetch_another): Change type to be a
4520 function_view.
4521 (xml_process_xincludes): Remove baton parameter.
4522 (xml_fetch_content_from_file): Change baton parameter to
4523 dirname.
4524 * xml-support.c (struct xinclude_parsing_data)
4525 <xinclude_parsing_data>: Remove baton parameter.
4526 <fetcher_baton>: Remove.
4527 (xinclude_start_include): Adjust.
4528 (xml_process_xincludes): Adjust.
4529 (xml_fetch_content_from_file): Replace baton parameter with
4530 dirname.
4531 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
4532 (xml_init_syscalls_info): Use a lambda.
4533 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
4534 (file_read_description_xml): Use a lambda.
4535 (fetch_available_features_from_target): Change baton parameter
4536 to target_ops.
4537 (target_read_description_xml): Use a lambda.
4538 (target_fetch_description_xml): Use a lambda.
4539 (string_read_description_xml): Update.
4540
04f5bab2
SM
45412020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4542
4543 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
4544 uses with type::endianity_is_not_default.
4545
db558e34
SM
45462020-09-14 Simon Marchi <simon.marchi@efficios.com>
4547
4548 * gdbtypes.h (struct type) <endianity_is_not_default,
4549 set_endianity_is_not_default>: New methods.
4550 (TYPE_ENDIANITY_NOT_DEFAULT): Use
4551 type::endianity_is_not_default, change all write call sites to
4552 use type::set_endianity_is_not_default.
4553
22c4c60c
SM
45542020-09-14 Simon Marchi <simon.marchi@efficios.com>
4555
4556 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
4557 uses with type::is_fixed_instance.
4558
9cdd0d12
SM
45592020-09-14 Simon Marchi <simon.marchi@efficios.com>
4560
4561 * gdbtypes.h (struct type) <is_fixed_instance,
4562 set_is_fixed_instance>: New methods.
4563 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
4564 write call sites to use type::set_is_fixed_instance.
4565
0becda7a
SM
45662020-09-14 Simon Marchi <simon.marchi@efficios.com>
4567
4568 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
4569 uses with type::is_gnu_ifunc.
4570
03cc7249
SM
45712020-09-14 Simon Marchi <simon.marchi@efficios.com>
4572
4573 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
4574 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
4575 use type::set_is_gnu_ifunc.
4576
3f46044c
SM
45772020-09-14 Simon Marchi <simon.marchi@efficios.com>
4578
4579 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
4580 uses with type::stub_is_supported.
4581
9baccff6
SM
45822020-09-14 Simon Marchi <simon.marchi@efficios.com>
4583
4584 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
4585 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
4586 use type::set_stub_is_supported.
4587
bd63c870
SM
45882020-09-14 Simon Marchi <simon.marchi@efficios.com>
4589
4590 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
4591 uses with type::is_vector.
4592
2062087b
SM
45932020-09-14 Simon Marchi <simon.marchi@efficios.com>
4594
4595 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
4596 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
4597 use type::set_is_vector.
4598
a409645d
SM
45992020-09-14 Simon Marchi <simon.marchi@efficios.com>
4600
4601 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
4602 uses with type::has_varargs.
4603
1d6286ed
SM
46042020-09-14 Simon Marchi <simon.marchi@efficios.com>
4605
4606 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
4607 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
4608 use type::set_has_varargs.
4609
7f9f399b
SM
46102020-09-14 Simon Marchi <simon.marchi@efficios.com>
4611
4612 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4613 uses with type::is_prototyped.
4614
27e69b7a
SM
46152020-09-14 Simon Marchi <simon.marchi@efficios.com>
4616
4617 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
4618 New methods.
4619 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
4620 call sites to use type::set_is_prototyped.
4621
d2183968
SM
46222020-09-14 Simon Marchi <simon.marchi@efficios.com>
4623
4624 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
4625 uses with type::target_is_stub.
4626
8f53807e
SM
46272020-09-14 Simon Marchi <simon.marchi@efficios.com>
4628
4629 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
4630 New methods.
4631 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
4632 sites to use type::set_target_is_stub.
4633
e46d3488
SM
46342020-09-14 Simon Marchi <simon.marchi@efficios.com>
4635
4636 * gdbtypes.h (TYPE_STUB): Remove, replace all
4637 uses with type::is_stub.
4638
b4b73759
SM
46392020-09-14 Simon Marchi <simon.marchi@efficios.com>
4640
4641 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
4642 (TYPE_STUB): Use type::is_stub, change all write call sites to
4643 use type::set_is_stub.
4644
20ce4123
SM
46452020-09-14 Simon Marchi <simon.marchi@efficios.com>
4646
4647 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
4648 type::has_no_signedness.
4649
15152a54
SM
46502020-09-14 Simon Marchi <simon.marchi@efficios.com>
4651
4652 * gdbtypes.h (struct type) <has_no_signedness,
4653 set_has_no_signedness>: New methods.
4654 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
4655 call sites to use type::set_has_no_signedness.
4656
c6d940a9
SM
46572020-09-14 Simon Marchi <simon.marchi@efficios.com>
4658
4659 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
4660 type::is_unsigned.
4661
653223d3
SM
46622020-09-14 Simon Marchi <simon.marchi@efficios.com>
4663
4664 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
4665 methods.
4666 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
4667 sites to use type::set_is_unsigned.
4668
55ea94da 46692020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 4670 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 4671
e851246a
SM
4672 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
4673 pointer and stack frame offset when unwinding.
55ea94da 4674
6791b117
PA
46752020-09-13 Pedro Alves <pedro@palves.net>
4676
4677 * NEWS: Document "-break-insert --qualified".
4678 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
4679
77f2120b
PA
46802020-09-13 Pedro Alves <pedro@palves.net>
4681
4682 * linespec.c (classify_mtype, compare_msyms): Delete.
4683 (search_minsyms_for_name): Remove classification logic. Instead
4684 filter out trampoline symbols if we also found an external
4685 function of the same name.
4686
ed6a896c
JB
46872020-09-13 Joel Brobecker <brobecker@adacore.com>
4688
4689 * NEWS: Create a new section for the next release branch.
4690 Rename the section of the current branch, now that it has
4691 been cut.
4692
32aea73e
JB
46932020-09-13 Joel Brobecker <brobecker@adacore.com>
4694
4695 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
4696 * version.in: Bump version to 11.0.50.DATE-git.
4697
8087c3fa
JB
46982020-09-12 Joel Brobecker <brobecker@adacore.com>
4699
4700 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
4701
2a67f09d
FW
47022020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
4703 Felix Willgerodt <Felix.Willgerodt@intel.com>
4704
4705 * gdbarch.sh: Added bfloat16 type.
4706 * gdbarch.c: Regenerated.
4707 * gdbarch.h: Regenerated.
4708 * gdbtypes.c (floatformats_bfloat16): New struct.
4709 (gdbtypes_post_init): Add builtin_bfloat16.
4710 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
4711 (floatformats_bfloat16): New struct.
4712 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
4713 (i386_ymm_type): Add field "v16_bfloat16"
4714 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
4715 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
4716 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
4717 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
4718 * features/i386/64bit-avx512.xml: Add bfloat16 type.
4719 * features/i386/64bit-avx512.c: Regenerated.
4720 * features/i386/64bit-sse.xml: Add bfloat16 type.
4721 * features/i386/64bit-sse.c: Regenerated.
4722
1347d111
FW
47232020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
4724
4725 * i386-tdep.c (i386_zmm_type): Fix field names.
4726 (i386_ymm_type): Fix field names.
4727
7a4e8e7d
TBA
47282020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4729
4730 * breakpoint.c: Fix typo in the help message of the
4731 "set breakpoint condition-evaluation" command.
4732
cf4ac4be
KR
47332020-09-10 Kamil Rytarowski <n54@gmx.com>
4734
4735 * nbsd-nat.c: Include "nat/netbsd-nat.h".
4736 * (nbsd_nat_target::pid_to_exec_file)
4737 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
4738 (nbsd_nat_target::post_startup_inferior)
4739 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
4740 (nbsd_add_threads): Switch local code to common gdb/nat functions.
4741 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
4742 * (nbsd_thread_lister): Remove.
4743
f404573e
KR
47442020-09-10 Kamil Rytarowski <n54@gmx.com>
4745
4746 * fork-inferior.c (startup_inferior): Avoid double free.
4747
1ccb2c17
KR
47482020-09-10 Kamil Rytarowski <n54@gmx.com>
4749
4750 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
4751 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
4752
feedfcc7
KR
47532020-09-10 Kamil Rytarowski <n54@gmx.com>
4754
4755 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
4756 * netbsd-nat.c: Include <sys/ptrace.h>.
4757 * (netbsd_nat::enable_proc_events): Add.
4758
c489f8c6
KR
47592020-09-10 Kamil Rytarowski <n54@gmx.com>
4760
4761 * netbsd-nat.h: Include "gdbsupport/function-view.h".
4762 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4763 (netbsd_nat::for_each_thread): Add.
4764 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
4765 "gdbsupport/common-debug.h".
4766 * (netbsd_nat::netbsd_thread_lister)
4767 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4768 (netbsd_nat::for_each_thread): Add.
4769
330662f6
KR
47702020-09-10 Kamil Rytarowski <n54@gmx.com>
4771
4772 * netbsd-nat.h: Include <unistd.h>.
4773 * (netbsd_nat::pid_to_exec_file): Add.
4774 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
4775 * (netbsd_nat::pid_to_exec_file) Add.
4776
70b67307
KR
47772020-09-10 Kamil Rytarowski <n54@gmx.com>
4778
4779 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
4780
99cf6da6
KR
47812020-09-10 Kamil Rytarowski <n54@gmx.com>
4782
4783 * netbsd-nat.h: New file.
4784 * netbsd-nat.c: Likewise.
4785
1b788fb6
TT
47862020-09-09 Tom Tromey <tromey@adacore.com>
4787
4788 * ada-lang.c (remove_extra_symbols): Do not increment when
4789 removing an element
4790
03b0a45f
TT
47912020-09-08 Tom Tromey <tromey@adacore.com>
4792
4793 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
4794
3cae4447
TT
47952020-09-08 Tom Tromey <tromey@adacore.com>
4796
4797 PR win32/25302:
4798 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
4799 (gdb_bfd_init_data): New function.
4800 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
4801
7f08fd51
TBA
48022020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4803
4804 * infrun.c (fetch_inferior_event): Use
4805 `switch_to_target_no_thread` to switch the target.
4806
3e6ff933
TT
48072020-09-06 Tom Tromey <tom@tromey.com>
4808
4809 * symfile.h (dwarf2_free_objfile): Don't declare.
4810
e56798df
AKS
48112020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4812
4813 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
4814 to match 16 byte real/complex type generated by Flang compiler.
4815
8f5c6526
TV
48162020-09-03 Tom de Vries <tdevries@suse.de>
4817
4818 PR breakpoint/26546
4819 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
4820 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
4821
c5065df0
SM
48222020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
4823
4824 * maint.c (index_digits): New function.
4825 (struct maint_print_section_data): Remove.
4826 (print_bfd_section_info): Remove print_data parameter, add arg
4827 and index_digits.
4828 (print_objfile_section_info): Likewise.
4829 (print_bfd_section_info_maybe_relocated): Likewise (plus
4830 objfile).
4831 (maintenance_info_sections): Adjust calls.
4832
02c6f3f1
TT
48332020-09-02 Tom Tromey <tromey@adacore.com>
4834
4835 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
4836 for null pointers.
4837 (ada_varobj_adjust_for_child_access): Special-case null pointers.
4838
ef5e5b0b
SM
48392020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
4840
4841 * bcache.h (struct bcache) <insert>: Change type of `added` to
4842 pointer to bool.
4843 * bcache.c (bcache::insert): Likewise.
4844 * gdbtypes.c (check_types_worklist): Adjust.
4845 * psymtab.c (add_psymbol_to_bcache): Adjust.
4846
973695d6
KB
48472020-08-31 Kevin Buettner <kevinb@redhat.com>
4848
4849 * corelow.c (unordered_set): Include.
4850 (class core_target): Add field 'm_core_unavailable_mappings'.
4851 (core_target::build_file_mappings): Print only one warning
4852 per inaccessible file. Add unavailable/broken mappings
4853 to m_core_unavailable_mappings.
4854 (core_target::xfer_partial): Call...
4855 (core_target::xfer_memory_via_mappings): New method.
4856
264fc0e2
SM
48572020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4858
4859 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
4860 type to bool.
4861
2de01bdb
SM
48622020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4863
4864 * dwarf2/read.c (struct field_info): Fix indentation.
4865
f3bd50f1
SM
48662020-08-31 Simon Marchi <simon.marchi@efficios.com>
4867
4868 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
4869 ordering in comment.
4870 * frame.c (frame_id_eq): Fix indentation.
4871
22b9b4b0
SL
48722020-08-31 Scott Linder <scott@scottlinder.com>
4873 Simon Marchi <simon.marchi@efficios.com>
4874
4875 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
4876 inline frame ids in outer frame.
4877
84154d16
SM
48782020-08-31 Simon Marchi <simon.marchi@efficios.com>
4879
4880 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
4881 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
4882 (outer_frame_id): Use FID_STACK_OUTER instead of
4883 FID_STACK_INVALID.
4884 (frame_id_p): Don't check for outer_frame_id.
4885
8efaf6b3
SM
48862020-08-31 Simon Marchi <simon.marchi@efficios.com>
4887
4888 * frame-unwind.c (frame_unwind_got_optimized): Don't set
4889 regnum/frame in value. Call allocate_value_lazy.
4890 * frame.c (frame_unwind_register_value): Use
4891 val_print_not_saved.
4892
fe1fe7ea
SM
48932020-08-31 Simon Marchi <simon.marchi@efficios.com>
4894
4895 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
4896
f7c7700d
PA
48972020-08-29 Pedro Alves <pedro@palves.net>
4898
4899 * progspace.c (print_program_space): Use all_inferiors. Switch to
4900 the inferior before calling target_pid_to_str.
4901
e0814aae
TT
49022020-08-28 Tom Tromey <tom@tromey.com>
4903
4904 * xcoffread.c (xcoff_end_psymtab): Update comment.
4905 * dbxread.c (dbx_end_psymtab): Update comment.
4906
626d2320
TV
49072020-08-28 Tom de Vries <tdevries@suse.de>
4908
4909 PR breakpoint/26544
4910 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
4911 event_location.
4912 (create_breakpoint): Same.
4913 (base_breakpoint_decode_location): Same.
4914 (bkpt_create_sals_from_location): Same.
4915 (bkpt_decode_location): Same.
4916 (bkpt_probe_create_sals_from_location): Same.
4917 (bkpt_probe_decode_location): Same.
4918 (tracepoint_create_sals_from_location): Same.
4919 (tracepoint_decode_location): Same.
4920 (tracepoint_probe_decode_location): Same.
4921 (strace_marker_create_sals_from_location): Same.
4922 (strace_marker_decode_location): Same.
4923 (create_sals_from_location_default): Same.
4924 (decode_location_default): Same.
4925 * breakpoint.h (struct breakpoint_ops): Same.
4926 (create_breakpoint): Same.
4927 * linespec.h (decode_line_full): Same.
4928 * linespec.c (decode_line_full): Same. Throw error if
4929 result.size () == 0.
4930
df631783
PA
49312020-08-27 Pedro Alves <pedro@palves.net>
4932
4933 PR gdb/26524
4934 * breakpoint.c (until_break_fsm) <location_breakpoint,
4935 caller_breakpoint>: Delete fields.
4936 <breakpoints>: New field.
4937 <until_break_fsm>: Adjust to save a breakpoint vector instead of
4938 two individual breakpoints.
4939 (until_break_fsm::should_stop): Loop over breakpoints in the
4940 breakpoint vector.
4941 (until_break_fsm::clean_up): Adjust to clear the breakpoints
4942 vector.
4943 (until_break_command): Handle location expanding into multiple
4944 sals.
4945
b2b38aa4
PA
49462020-08-27 Pedro Alves <pedro@palves.net>
4947
4948 PR gdb/26523
4949 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
4950 bp_until breakpoints user-specified locations. Update intro
4951 comment.
4952
b886559f
SM
49532020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
4954
4955 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
4956 gdb_bfd_sections): New.
4957 * maint.c (print_bfd_section_info): Change param type to
4958 maint_print_section_data.
4959 (print_objfile_section_info): Likewise.
4960 (print_bfd_section_info_maybe_relocated): Likewise.
4961 (maintenance_info_sections): Use gdb_bfd_sections.
4962
4c6e63bf
SV
49632020-08-25 Shahab Vahedi <shahab@synopsys.com>
4964
4965 * MAINTAINERS: Add ARC target and maintainer.
4966
8d7f0635
AK
49672020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
4968
4969 * configure.tgt: ARC support for GNU/Linux.
4970 * Makefile.in (ALL_TARGET_OBJS): Likewise.
4971 * arc-linux-tdep.c: New file.
4972 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
4973 * arc-tdep.c (arc_write_pc): Use it.
4974
fdd8731b
SV
49752020-08-25 Shahab Vahedi <shahab@synopsys.com>
4976
4977 * arc-tdep.c (arc_check_for_hardware_loop): New.
4978 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
4979
22459524
SV
49802020-08-25 Shahab Vahedi <shahab@synopsys.com>
4981
4982 * arc-tdep.h: Include "gdbarch.h".
4983
995d3a19
SV
49842020-08-25 Shahab Vahedi <shahab@synopsys.com>
4985
4986 * arch/arc.h
4987 (arc_gdbarch_features): New class to stir the selection of target XML.
4988 (arc_create_target_description): Use FEATURES to choose XML target.
4989 (arc_lookup_target_description): Use arc_create_target_description
4990 to create _new_ target descriptions or return the already created
4991 ones if the FEATURES is the same.
4992 * arch/arc.c: Implementation of prototypes described above.
4993 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
4994 (arc_gdbarch_features_init): Initialize the FEATURES struct.
4995 * arc-tdep.c (*_feature_name): Make feature names consistent.
4996 (arc_register_feature): A new struct to hold information about
4997 registers of a particular target/feature.
4998 (arc_check_tdesc_feature): Check if XML provides registers in
4999 compliance with ARC_REGISTER_FEATURE structs.
5000 (arc_update_acc_reg_names): Add aliases for r58 and r59.
5001 (determine_*_reg_feature_set): Which feature name to look for.
5002 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
5003 (mach_type_to_arc_isa): Convert from a set of binutils machine types
5004 to expected ISA enums to be used in arc_gdbarch_features structs.
5005 * features/Makefile (FEATURE_XMLFILES): Add new files.
5006 * gdb/features/arc/v1-aux.c: New file.
5007 * gdb/features/arc/v1-aux.xml: Likewise.
5008 * gdb/features/arc/v1-core.c: Likewise.
5009 * gdb/features/arc/v1-core.xml: Likewise.
5010 * gdb/features/arc/v2-aux.c: Likewise.
5011 * gdb/features/arc/v2-aux.xml: Likewise.
5012 * gdb/features/arc/v2-core.c: Likewise.
5013 * gdb/features/arc/v2-core.xml: Likewise.
5014 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
5015
3945d2d7
GM
50162020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
5017 Andrew Burgess <andrew.burgess@embecosm.com>
5018
5019 PR m2/26372
fc5d6901 5020 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
5021 an assert. Remove single element array indexing pattern as the
5022 MULTI_SUBSCRIPT support will handle this case too.
5023
2677f2d3
SM
50242020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
5025
5026 * value.h (valprint_check_validity): Move declaration from
5027 here...
5028 * valprint.h (valprint_check_validity): ... to here.
5029
c426fddb
SM
50302020-08-24 Simon Marchi <simon.marchi@efficios.com>
5031
5032 * debug.h: New file.
5033 * debug.c (debug_prefixed_vprintf): New function.
5034 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
5035 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
5036
1eb8556f
SM
50372020-08-24 Simon Marchi <simon.marchi@efficios.com>
5038
5039 * infrun.h (infrun_debug_printf_1): New function declaration.
5040 (infrun_debug_printf): New macro.
5041 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
5042 throughout.
5043 (infrun_debug_printf): New function.
5044 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
5045 (handle_jit_event): Likewise.
5046
b8fff44e
MW
50472020-08-21 Mark Wielaard <mark@klomp.org>
5048
5049 * ada-lex.l: Extend register warnings diagnostics comment for g++.
5050
d19c3068
SM
50512020-08-22 Simon Marchi <simon.marchi@efficios.com>
5052
5053 * frame.c (enum class frame_id_status): New.
5054 (struct frame_info) <this_id::p>: Change type to frame_id_status.
5055 (fprintf_frame): Update.
5056 (compute_frame_id): Set frame id status to "computing" on entry.
5057 Set it back to "not_computed" on failure and to "computed" on
5058 success.
5059 (get_frame_id): Assert the frame id is not being computed.
5060 (create_sentinel_frame): Use frame_id_status::COMPUTED.
5061 (create_new_frame): Likewise.
5062 (frame_cleanup_after_sniffer): Update assert.
5063
b70e516e
SM
50642020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5065
5066 * regcache.c (pid_ptid_regcache_map): New type.
5067 (target_ptid_regcache_map): Remove.
5068 (target_pid_ptid_regcache_map): New type.
5069 (regcaches): Change type to target_pid_ptid_regcache_map.
5070 (get_thread_arch_aspace_regcache): Update.
5071 (regcache_thread_ptid_changed): Update, handle pid-like ptid
5072 case.
5073 (regcaches_size): Update.
5074 (regcache_count): Update.
5075 (registers_changed_ptid_target_pid_test): New.
5076 (_initialize_regcache): Register new test.
5077
cdd9148a
SM
50782020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5079
5080 * regcache.c (regcache_count): New.
5081 (struct regcache_test_data): New.
5082 (regcache_test_data_up): New.
5083 (populate_regcaches_for_test): New.
5084 (regcaches_test): Remove.
5085 (get_thread_arch_aspace_regcache_test): New.
5086 (registers_changed_ptid_all_test): New.
5087 (registers_changed_ptid_target_test): New.
5088 (registers_changed_ptid_target_ptid_test): New.
5089 (regcache_thread_ptid_changed): Remove regcache_count lambda.
5090 (_initialize_regcache): Register new tests.
5091
dd125343
SM
50922020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5093
5094 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
5095 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
5096 gdbarch and aspace parameter. Use current inferior's aspace.
5097 Validate regcache's arch value.
5098 (regcaches_test): Update.
5099
3ee93972
SM
51002020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5101
5102 * regcache.c (regcaches_test): Call registers_changed.
5103
33bf4c5c
TBA
51042020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5105
5106 * infrun.c (process_event_stop_test): Fix typo "breapoint".
5107
c2fd7fae
AKS
51082020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5109
5110 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
5111 to find the end of prologue for flang compiled binaries.
5112 * arm-tdep.c (arm_skip_prologue): Likewise.
5113 * i386-tdep.c (i386_skip_prologue): Likewise.
5114 * producer.c (producer_is_llvm): New function.
5115 (producer_parsing_tests): Added new tests for clang/flang.
5116 * producer.h (producer_is_llvm): New declaration.
5117
9327494e
SM
51182020-08-18 Simon Marchi <simon.marchi@efficios.com>
5119
5120 * linux-nat.c (linux_nat_debug_printf): New function.
5121 (linux_nat_debug_printf_1): New macro. Use throughout the file.
5122
d138725a
AM
51232020-08-18 Aaron Merey <amerey@redhat.com>
5124
5125 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
5126 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
5127 (CLIBS): Add DEBUGINFOD_LIBS.
5128
f9b11e6b
ST
51292020-08-17 Sergei Trofimovich <siarheit@google.com>
5130
5131 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
5132 'gdbarch_num_regs'.
5133
3ae7ab99
TT
51342020-08-17 Tom Tromey <tromey@adacore.com>
5135
5136 * ada-varobj.c (ada_varobj_decode_var): Handle case where
5137 ada_get_decoded_value returns NULL.
5138
b017825f
TT
51392020-08-17 Tom Tromey <tromey@adacore.com>
5140
5141 * python/py-inferior.c (infpy_search_memory): Use
5142 gdb_py_object_from_ulongest.
5143 * python/py-infevents.c (create_inferior_call_event_object)
5144 (create_memory_changed_event_object): Use
5145 gdb_py_object_from_ulongest.
5146 * python/py-linetable.c (ltpy_entry_get_pc): Use
5147 gdb_py_object_from_ulongest.
5148
7635cf79
SM
51492020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5150
5151 * loc.c (class symbol_needs_eval_context): Fix indentation.
5152
f54be24b
SM
51532020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5154
5155 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
5156 bool.
5157
53d5a2a5
TV
51582020-08-17 Tom de Vries <tdevries@suse.de>
5159
5160 PR gdb/26393
5161 * gdbtypes.c (dump_dynamic_prop): New function.
5162 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
5163
547ce8f0
TV
51642020-08-15 Tom de Vries <tdevries@suse.de>
5165
5166 PR backtrace/26390
5167 * stack.c (print_frame_args): Temporarily set the selected
5168 frame to FRAME while printing the frame's arguments.
5169
6ea815e7
PFC
51702020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5171
5172 PR breakpoints/26385
5173 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
5174 Always clear watchpoint with PTRACE_SET_DEBUGREG.
5175
6e562fa3
PFC
51762020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5177
5178 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
5179 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
5180 and >= to check return value instead of == -1 and != -1.
5181
d369b608
SM
51822020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
5183
5184 * utils.h (class gdb_argv) <as_array_view>: New method.
5185 * utils.c (gdb_argv_as_array_view_test): New.
5186 (_initialize_utils): Register selftest.
5187 * maint.c (maintenance_selftest): Use the new method.
5188
b31488a3
KR
51892020-08-13 Kamil Rytarowski <n54@gmx.com>
5190
5191 * target.h (supports_dumpcore, dumpcore): New
5192 function declarations.
5193 * target.c (supports_dumpcore, dumpcore): New
5194 functions.
5195 * target-delegates.c: Rebuild.
5196 * gcore.c (gcore_command): Use target_supports_dumpcore ()
5197 and target_dumpcore ().
5198
002a3166
AM
51992020-08-13 Aaron Merey <amerey@redhat.com>
5200
5201 * debuginfod-support.c: Replace global variables with user_data.
5202
ece5bc8a
SM
52032020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
5204
5205 * maint.c (maintenance_selftest): Split args and pass array_view
5206 to run_tests.
5207
6d8a0a5e
LM
52082020-08-12 Luis Machado <luis.machado@linaro.org>
5209
5210 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
5211 type's length.
5212 Use %s and pulongest to print the length.
5213
7cf663a9
PA
52142020-08-12 Pedro Alves <palves@redhat.com>
5215
5216 * NEWS: Move "Multi-target debugging support" item to the
5217 "Changes since GDB 9" section.
5218
27c7b875
PA
52192020-08-12 Pedro Alves <palves@redhat.com>
5220
5221 PR gdb/26336
5222 * progspace.c (program_space::remove_objfile): Invalidate the
5223 frame cache.
5224
1796a2a1
TV
52252020-08-11 Tom de Vries <tdevries@suse.de>
5226
5227 * MAINTAINERS: Mark ms1 as deleted.
5228
f8e3fe0d
LM
52292020-08-10 Luis Machado <luis.machado@linaro.org>
5230
5231 PR gdb/26310
5232
5233 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
5234 act accordingly.
5235 (aarch64_analyze_prologue_test): Add more unit tests to exercise
5236 movz/str/stur/stp skipping behavior.
5237
cc308722
LM
52382020-08-10 Luis Machado <luis.machado@linaro.org>
5239
5240 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
5241 struct user_sve_header instead of struct sve_context.
5242
041d9819
SM
52432020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
5244
5245 * read.h (dwarf2_fetch_die_loc_sect_off,
5246 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
5247 `void *` parameter with function_view.
5248 * read.c (dwarf2_fetch_die_loc_sect_off,
5249 dwarf2_fetch_die_loc_cu_off): Likewise.
5250 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
5251 (per_cu_dwarf_call): Adjust.
5252 (get_frame_address_in_block_wrapper): Remove.
5253 (indirect_synthetic_pointer): Adjust.
5254 (get_ax_pc): Remove.
5255 (dwarf2_compile_expr_to_ax): Adjust.
5256
38f8aa06
TV
52572020-08-08 Tom de Vries <tdevries@suse.de>
5258
5259 PR build/26344
5260 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
5261 constructor.
5262 * regcache.c (get_thread_arch_aspace_regcache): Same.
5263
a52b3ae2
TT
52642020-08-07 Tom Tromey <tromey@adacore.com>
5265
5266 * ravenscar-thread.c
5267 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
5268 New method.
5269 (ravenscar_thread_target::wait): Check
5270 runtime_initialized.
5271 (ravenscar_thread_target::prepare_to_store)
5272 (ravenscar_thread_target::stopped_by_sw_breakpoint)
5273 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5274 (ravenscar_thread_target::stopped_by_watchpoint)
5275 (ravenscar_thread_target::stopped_data_address)
5276 (ravenscar_thread_target::core_of_thread): Use
5277 scoped_restore_current_thread and
5278 set_base_thread_from_ravenscar_task.
5279
0e29517d
TT
52802020-08-07 Tom Tromey <tromey@adacore.com>
5281
5282 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
5283
592f9bd7
TT
52842020-08-07 Tom Tromey <tromey@adacore.com>
5285
5286 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
5287 update_inferior_ptid before update_thread_list.
5288 (temporarily_change_regcache_ptid): New class.
5289 (ravenscar_thread_target::fetch_registers)
5290 (ravenscar_thread_target::store_registers)
5291 (ravenscar_thread_target::prepare_to_store): Use base thread when
5292 forwarding operation.
5293
39e2018a
TT
52942020-08-07 Tom Tromey <tromey@adacore.com>
5295
5296 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
5297 "is_pid" case.
5298
2080266b
TT
52992020-08-07 Tom Tromey <tromey@adacore.com>
5300
5301 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
5302 New methods.
5303 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
5304 first.
5305 (ravenscar_thread_target::add_thread): Rename from
5306 ravenscar_add_thread.
5307 (ravenscar_thread_target::update_thread_list): Use a lambda.
5308 (ravenscar_thread_target::xfer_partial): New method.
5309
78c02f21
TT
53102020-08-07 Tom Tromey <tromey@adacore.com>
5311
5312 * ada-lang.h (ada_task_list_iterator_ftype): Now a
5313 gdb::function_view.
5314 (iterate_over_live_ada_tasks): Change type of argument.
5315 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
5316 of argument.
5317
d5d833af
TT
53182020-08-07 Tom Tromey <tromey@adacore.com>
5319
5320 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
5321 Remove.
5322 (ravenscar_thread_target::extra_thread_info): Remove.
5323 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
5324 defer to target beneath for non-Ravenscar threads.
5325
a8ac85bb
TT
53262020-08-07 Tom Tromey <tromey@adacore.com>
5327
5328 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
5329 get_base_thread_from_ravenscar_task>: Now methods.
5330 <m_cpu_map>: New member.
5331 (ravenscar_thread_target::get_thread_base_cpu): Rename from
5332 ravenscar_get_thread_base_cpu. Check m_cpu_map.
5333 (ravenscar_thread_target::task_is_currently_active): Update.
5334 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
5335 Now a method.
5336 (ravenscar_thread_target::add_active_thread): Put initial thread
5337 into the m_cpu_map.
5338
550ab58d
TT
53392020-08-07 Tom Tromey <tromey@adacore.com>
5340
5341 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
5342 event_ptid.
5343
e9546579
TT
53442020-08-07 Tom Tromey <tromey@adacore.com>
5345
5346 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
5347 runtime_initialized.
5348
3d4470e5
TT
53492020-08-07 Tom Tromey <tromey@adacore.com>
5350
5351 * ravenscar-thread.c (ravenscar_thread_target): Don't call
5352 add_active_thread.
5353 (ravenscar_thread_target::add_active_thread): Now public.
5354 (ravenscar_inferior_created): Call add_active_thread after pushing
5355 the target.
5356
888bdb2b
SM
53572020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
5358
5359 * regcache.c (ptid_regcache_map): New type.
5360 (target_ptid_regcache_map): New type.
5361 (regcaches): Change type to target_ptid_regcache_map.
5362 (get_thread_arch_aspace_regcache): Update to regcaches' new
5363 type.
5364 (regcache_thread_ptid_changed): Likewise.
5365 (registers_changed_ptid): Likewise.
5366 (regcaches_size): Likewise.
5367 (regcaches_test): Update.
5368 (regcache_thread_ptid_changed): Update.
5369 * regcache.h (regcache_up): New type.
5370 * gdbsupport/ptid.h (hash_ptid): New struct.
5371
b161a60d
SM
53722020-08-07 Simon Marchi <simon.marchi@efficios.com>
5373
5374 * observable.h (thread_ptid_changed): Add parameter
5375 `process_stratum_target *`.
5376 * infrun.c (infrun_thread_ptid_changed): Add parameter
5377 `process_stratum_target *` and use it.
5378 (selftests): New namespace.
5379 (infrun_thread_ptid_changed): New function.
5380 (_initialize_infrun): Register selftest.
5381 * regcache.c (regcache_thread_ptid_changed): Add parameter
5382 `process_stratum_target *` and use it.
5383 (regcache_thread_ptid_changed): New function.
5384 (_initialize_regcache): Register selftest.
5385 * thread.c (thread_change_ptid): Pass target to
5386 thread_ptid_changed observable.
5387
d2854d8d
CT
53882020-08-06 Caroline Tice <cmtice@google.com>
5389
fe4c3d43
SM
5390 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
5391 (struct dwp_sections): Update field comments. Add loclists and
5392 rnglists fields.
5393 (struct virtual_v2_dwo_sections): Rename struct to
5394 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
5395 size & offset fields for loclists and rnglists.
5396 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
5397 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
5398 skipping dummy type units.
5399 (create_dwp_hash_table): Update the large comment above the function to
5400 discuss Version 5 DWP files as well, with references. Update all the
5401 version checks in the function to check for version 5 as well. Add new
5402 section at the end to create dwp hash table for version 5.
5403 (create_dwp_v2_section): Rename function to
5404 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
5405 Add V5 to error message text.
5406 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
5407 into calls to create_dwp_v2_or_v5_section.
5408 (create_dwo_unit_in_dwp_v5): New function.
5409 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
5410 check for version2; add else clause to handle version 5.
5411 (open_and_init_dwo_file): Add code to check dwarf version & only call
5412 create_debug_types_hash_table (with sections.types) if version is not 5;
5413 else call create_debug_type_hash_table, with sections.info.
5414 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
5415 version 5.
5416 (dwarf2_locate_v5_dwp_sections): New function.
5417 (open_and_init_dwp_file): Add else-if clause for version 5 to call
5418 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 5419
159ed7d9
SM
54202020-08-06 Simon Marchi <simon.marchi@efficios.com>
5421
5422 * regcache.h (class regcache): Remove friend
5423 registers_changed_ptid.
5424 <regcache_thread_ptid_changed>: Remove.
5425 <regcaches>: Remove.
5426 * regcache.c (regcache::regcaches): Rename to...
5427 (regcaches): ... this. Make static.
5428 (get_thread_arch_aspace_regcache): Update.
5429 (regcache::regcache_thread_ptid_changed): Rename to...
5430 (regcache_thread_ptid_changed): ... this. Update.
5431 (class regcache_access): Remove.
5432 (regcaches_test): Update.
5433 (_initialize_regcache): Update.
5434 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
5435 <forward_list>.
5436
174981ae
SM
54372020-08-06 Simon Marchi <simon.marchi@efficios.com>
5438
5439 * regcache.h (class regcache) <current_regcache>: Rename to...
5440 <regcaches>: ... this. Move doc here.
5441 * regcache.c (regcache::current_regcache) Rename to...
5442 (regcache::regcaches): ... this. Move doc to header.
5443 (get_thread_arch_aspace_regcache): Update.
5444 (regcache::regcache_thread_ptid_changed): Update.
5445 (registers_changed_ptid): Update.
5446 (class regcache_access) <current_regcache_size>: Rename to...
5447 <regcaches_size>: ... this.
5448 (current_regcache_test): Rename to...
5449 (regcaches_test): ... this.
5450 (_initialize_regcache): Update.
5451
ed908db6
VC
54522020-08-06 Victor Collod <vcollod@nvidia.com>
5453
5454 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
5455
b5582ab7
KB
54562020-08-05 Kevin Buettner <kevinb@redhat.com>
5457
5458 * corelow.c (core_target::build_file_mappings): Don't output
5459 null pathname in warning.
5460
ea946b86
SM
54612020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
5462
5463 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
5464 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
5465 gdb.dwarf2/dw2-single-line-discriminators.exp,
5466 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
5467
57d02173
TT
54682020-08-05 Tom Tromey <tromey@adacore.com>
5469
5470 PR rust/26197:
5471 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
5472 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
5473 Fix off-by-one and type size errors in ordinary case.
5474
5555c86d
TV
54752020-08-05 Tom de Vries <tdevries@suse.de>
5476
5477 * gdbtypes.c (type_not_allocated, type_not_associated): Use
5478 "prop->const_val () == 0" instead of "prop->const_val () != 0".
5479
97916bfe
SM
54802020-08-04 Simon Marchi <simon.marchi@efficios.com>
5481
5482 * frame.h (frame_id_p): Return bool.
5483 (frame_id_artificial_p): Return bool.
5484 (frame_id_eq): Return bool.
5485 (has_stack_frames): Return bool.
5486 (get_selected_frame): Fix typo in comment.
5487 (get_frame_pc_if_available): Return bool.
5488 (get_frame_address_in_block_if_available): Return bool.
5489 (get_frame_func_if_available): Return bool.
5490 (read_frame_register_unsigned): Return bool.
5491 (get_frame_register_bytes): Return bool.
5492 (safe_frame_unwind_memory): Return bool.
5493 (deprecated_frame_register_read): Return bool.
5494 (frame_unwinder_is): Return bool.
5495 * frame.c (struct frame_info) <prev_arch::p>: Change type to
5496 bool.
5497 <this_id::p>: Likewise.
5498 <prev_p>: Likewise.
5499 (frame_stash_add): Return bool.
5500 (get_frame_id): Use bool.
5501 (frame_id_build_special) Use bool.
5502 (frame_id_build_unavailable_stack): Use bool.
5503 (frame_id_build): Use bool.
5504 (frame_id_p): Return bool, use true/false instead of 1/0.
5505 (frame_id_artificial_p): Likewise.
5506 (frame_id_eq): Likewise.
5507 (frame_id_inner): Likewise.
5508 (get_frame_func_if_available): Likewise.
5509 (read_frame_register_unsigned): Likewise.
5510 (deprecated_frame_register_read): Likewise.
5511 (get_frame_register_bytes): Likewise.
5512 (has_stack_frames): Likewise.
5513 (inside_main_func): Likewise.
5514 (inside_entry_func): Likewise.
5515 (get_frame_pc_if_available): Likewise.
5516 (get_frame_address_in_block_if_available): Likewise.
5517 (frame_unwinder_is): Likewise.
5518 (safe_frame_unwind_memory): Likewise.
5519 (frame_unwind_arch): Likewise.
5520
fedfee88
SM
55212020-08-04 Simon Marchi <simon.marchi@efficios.com>
5522
5523 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
5524 type to cached_copy_status.
5525 (fprintf_frame): Adjust.
5526 (get_frame_func_if_available): Adjust.
5527 (frame_cleanup_after_sniffer): Adjust.
5528
6cfa9b59
MW
55292020-08-04 Mark Wielaard <mark@klomp.org>
5530
5531 * MAINTAINERS (Write After Approval): Update email address.
5532
66d6346b
SM
55332020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5534
5535 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
5536 dynamic_prop::const_val.
5537
8a6d5e35
SM
55382020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5539
5540 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
5541 dynamic_prop::kind.
5542
51d6067d
SM
55432020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5544
5545 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
5546
b26e2ae7
JM
55472020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
5548
5549 * configure.tgt: Set gdb_sim for bpf-*-* targets.
5550
39791af2
JM
55512020-08-04 Weimin Pan <weimin.pan@oracle.com>
5552 Jose E. Marchesi <jose.marchesi@oracle.com>
5553
5554 * configure.tgt: Add entry for bpf-*-*.
5555 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
5556 (ALLDEPFILES): Add bpf-tdep.c.
5557 * bpf-tdep.c: New file.
5558 * MAINTAINERS: Add bpf target and maintainer.
5559 * NEWS: Mention the support for the new target.
5560
521894aa
TV
55612020-08-04 Tom de Vries <tdevries@suse.de>
5562
5563 PR symtab/23270
5564 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
5565 Error.
5566
5d6356e9
JB
55672020-08-03 John Baldwin <jhb@FreeBSD.org>
5568
5569 * syscalls/freebsd.xml: Regenerate.
5570
0cf82b81
JB
55712020-08-03 John Baldwin <jhb@FreeBSD.org>
5572
5573 * syscalls/update-freebsd.sh: Fix usage and year range.
5574
8f34b746
TV
55752020-08-03 Tom de Vries <tdevries@suse.de>
5576
5577 PR symtab/26333
5578 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
5579 DW_LNE_lo_user/DW_LNE_hi_user range.
5580
5e500d33
SM
55812020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
5582
5583 PR ada/26318
5584 * ada-lang.c (ada_modulus): Return 0 if property is not of const
5585 kind.
5586
78319c15
TBA
55872020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5588
5589 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
5590
4c55e970
TBA
55912020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5592
5593 * breakpoint.c (set_breakpoint_condition): Update the condition
5594 expressions after checking that the input condition string parses
5595 successfully and does not contain junk at the end.
5596
1e620590
TBA
55972020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5598
5599 * breakpoint.c (set_breakpoint_condition): Update the
5600 condition string after parsing the new condition successfully.
5601
c8693053
RO
56022020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5603
5604 * proc-api.c (_STRUCTURED_PROC): Don't define.
5605 * proc-events.c: Likewise.
5606 * proc-flags.c: Likewise.
5607 * proc-why.c: Likewise.
5608 * procfs.c: Likewise.
5609
5610 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
5611 * configure, config.in: Regenerate.
5612
5a99adb8
TV
56132020-07-30 Tom de Vries <tdevries@suse.de>
5614
5615 PR build/26320
5616 * ui-style.h (struct ui_file_style::color): Wrap m_value and
5617 m_red/m_green/m_blue in a union.
5618
8ba83e91
TV
56192020-07-29 Tom de Vries <tdevries@suse.de>
5620
5621 PR tdep/26280
5622 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
5623
f75a0693
AB
56242020-07-28 Tom Tromey <tromey@adacore.com>
5625
5626 PR symtab/26270:
5627 * symtab.h (find_pc_partial_function_sym): Declare.
5628 * cli/cli-cmds.c (disassemble_command): Use
5629 find_pc_partial_function_sym. Check asm_demangle.
5630 * blockframe.c (cache_pc_function_sym): New global.
5631 (cache_pc_function_name): Remove.
5632 (clear_pc_function_cache): Update.
5633 (find_pc_partial_function_sym): New function, from
5634 find_pc_partial_function.
5635 (find_pc_partial_function): Rewrite using
5636 find_pc_partial_function_sym.
5637
16f3242c
TT
56382020-07-28 Tom Tromey <tromey@adacore.com>
5639
5640 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
5641 help. Add usage.
5642
4888741a
TT
56432020-07-28 Tom Tromey <tromey@adacore.com>
5644
5645 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
5646 <DW_OP_GNU_variable_value>: Cast to address type.
5647
4d46f402
KR
56482020-07-28 Kamil Rytarowski <n54@gmx.com>
5649
5650 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
5651 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
5652 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
5653 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
5654 (nbsd_get_siginfo_type): New.
5655 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5656 (_initialize_nbsd_tdep): New.
5657
d70f978b
L
56582020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5659
5660 PR binutils/26301
5661 * configure: Regenerated.
5662
377170fa
L
56632020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5664
5665 PR binutils/26301
5666 * configure: Regenerated.
5667
43d5901d
AB
56682020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5669
5670 * python/py-frame.c: Remove 'user-regs.h' include.
5671 (frapy_read_register): Rewrite to make use of
5672 gdbpy_parse_register_id.
5673 * python/py-registers.c (gdbpy_parse_register_id): New function,
5674 moved here from python/py-unwind.c. Updated the return type, and
5675 also accepts register descriptor objects.
5676 * python/py-unwind.c: Remove 'user-regs.h' include.
5677 (pyuw_parse_register_id): Moved to python/py-registers.c.
5678 (unwind_infopy_add_saved_register): Update to use
5679 gdbpy_parse_register_id.
5680 (pending_framepy_read_register): Likewise.
5681 * python/python-internal.h (gdbpy_parse_register_id): Declare.
5682
14fa8fb3
AB
56832020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5684
5685 * python/py-registers.c: Add 'user-regs.h' include.
5686 (register_descriptor_iter_find): New function.
5687 (register_descriptor_iterator_object_methods): New static global
5688 methods array.
5689 (register_descriptor_iterator_object_type): Add pointer to methods
5690 array.
5691
ddce1758
JB
56922020-07-27 John Baldwin <jhb@FreeBSD.org>
5693
5694 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
5695 for all architectures on FreeBSD 11.3 and later.
5696
a4089f52
TT
56972020-07-27 Tom Tromey <tromey@adacore.com>
5698
5699 * gcore.h (load_corefile): Don't declare.
5700
95420d30
TV
57012020-07-27 Tom de Vries <tdevries@suse.de>
5702
5703 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
5704 * config.in: Regenerate.
5705 * configure: Regenerate.
5706
05a6b8c2
EZ
57072020-07-26 Eli Zaretskii <eliz@gnu.org>
5708
5709 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
5710 ws2tcpip.h. When checking whether socklen_t type is defined, use
5711 ws2tcpip.h if it is available and sys/socket.h isn't.
5712 * configure: Regenerate.
5713 * config.in: Regenerate.
5714
e79eb02f
AB
57152020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
5716
5717 PR fortran/23051
5718 PR fortran/26139
5719 * valops.c (value_ind): Pass address to
5720 readjust_indirect_value_type.
5721 * value.c (readjust_indirect_value_type): Make parameter
5722 non-const, and add extra address parameter. Resolve original type
5723 before using it.
5724 * value.h (readjust_indirect_value_type): Update function
5725 signature and comment.
5726
876518dd
TV
57272020-07-25 Tom de Vries <tdevries@suse.de>
5728
5729 PR symtab/26243
5730 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
5731 entries.
5732
f6720b1c
AM
57332020-07-24 Aaron Merey <amerey@redhat.com>
5734
5735 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
5736 * configure: Rebuild.
5737
513487e1
KB
57382020-07-23 Kevin Buettner <kevinb@redhat.com>
5739
5740 PR corefiles/26294
5741 * corelow.c (_initialize_corelow): Add period to help text
5742 for "maintenance print core-file-backed-mappings".
5743
e7bc9db8
PA
57442020-07-23 Pedro Alves <pedro@palves.net>
5745
5746 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
5747 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
5748 meanwhile.
5749 * frame.c (frame_cache_generation, get_frame_cache_generation):
5750 New.
5751 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
5752 (get_prev_frame_if_no_cycle): On exception, don't touch
5753 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
5754 * frame.h (get_frame_cache_generation): Declare.
5755
90fcc466
TV
57562020-07-23 Tom de Vries <tdevries@suse.de>
5757
5758 PR tui/26282
5759 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
5760 New default constructor.
5761
78344df7
AB
57622020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
5763
5764 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
5765 exclude non-statement entries.
5766
b089853a
KB
57672020-07-22 Kevin Buettner <kevinb@redhat.com>
5768
5769 * NEWS (New commands): Mention new command
5770 "maintenance print core-file-backed-mappings".
5771
09c2f5d4
KB
57722020-07-22 Kevin Buettner <kevinb@redhat.com>
5773
5774 * corelow.c (gdbcmd.h): Include.
5775 (core_target::info_proc_mappings): New method.
5776 (get_current_core_target): New function.
5777 (maintenance_print_core_file_backed_mappings): New function.
5778 (_initialize_corelow): Add core-file-backed-mappings to
5779 "maint print" commands.
5780
9c5ec5c2 57812020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 5782
9c5ec5c2
KB
5783 * linux-tdep.c (dump_note_entry_p): New function.
5784 (linux_dump_mapping_p_ftype): New typedef.
5785 (linux_find_memory_regions_full): Add new parameter,
5786 should_dump_mapping_p.
5787 (linux_find_memory_regions): Adjust call to
5788 linux_find_memory_regions_full.
5789 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
5790 call to linux_find_memory_regions_full.
5791
db082f59
KB
57922020-07-22 Kevin Buettner <kevinb@redhat.com>
5793
5794 * corelow.c (solist.h, unordered_map): Include.
5795 (class core_target): Add field m_core_file_mappings and
5796 method build_file_mappings.
5797 (core_target::core_target): Call build_file_mappings.
5798 (core_target::~core_target): Free memory associated with
5799 m_core_file_mappings.
5800 (core_target::build_file_mappings): New method.
5801 (core_target::xfer_partial): Use m_core_file_mappings
5802 for memory transfers.
5803 * linux-tdep.c (linux_read_core_file_mappings): New
5804 function.
5805 (linux_core_info_proc_mappings): Rewrite to use
5806 linux_read_core_file_mappings.
5807 (linux_init_abi): Register linux_read_core_file_mappings.
5808
7e183d27
KB
58092020-07-22 Kevin Buettner <kevinb@redhat.com>
5810
5811 * arch-utils.c (default_read_core_file_mappings): New function.
5812 * arch-utils.c (default_read_core_file_mappings): Declare.
5813 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
5814 * gdbarch.h, gdbarch.c: Regenerate.
5815
2735d421
KB
58162020-07-22 Kevin Buettner <kevinb@redhat.com>
5817
5818 PR corefiles/25631
5819 * corelow.c (core_target:xfer_partial): Revise
5820 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
5821 case after first checking the stratum beneath the core
5822 target.
5823 (has_all_memory): Return true.
5824 * target.c (raw_memory_xfer_partial): Revise comment
5825 regarding use of has_all_memory.
5826
e56cb451
KB
58272020-07-22 Kevin Buettner <kevinb@redhat.com>
5828
5829 * exec.h (section_table_xfer_memory): Revise declaration,
5830 replacing section name parameter with an optional callback
5831 predicate.
5832 * exec.c (section_table_xfer_memory): Likewise.
5833 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
5834 of section_table_xfer_memory.
5835
32fa152e
TT
58362020-07-22 Tom Tromey <tromey@adacore.com>
5837
5838 * mi/mi-cmd-stack.c (list_args_or_locals): Use
5839 lookup_symbol_search_name.
5840
a67a1c41
AB
58412020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5842
5843 * python/py-registers.c (gdbpy_register_object_data_init): Remove
5844 redundant local variable.
5845 (gdbpy_get_register_descriptor): Extract descriptor vector as a
5846 reference, not pointer, update code accordingly.
5847
a7b4ff4f
SM
58482020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5849 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5850
5851 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
5852 * jit.c (jit_breakpoint_re_set_internal): Use the
5853 `skip_jit_symbol_lookup` field.
5854
2340e834
SM
58552020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5856 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5857
5858 * jit.c (jit_read_descriptor): Define the descriptor address once,
5859 use twice.
5860 (jit_breakpoint_deleted): Move the declaration of the loop variable
5861 `iter` into the loop header.
5862 (jit_breakpoint_re_set_internal): Move the declaration of the local
5863 variable `objf_data` to the first point of definition.
5864 (jit_event_handler): Move the declaration of local variables
5865 `code_entry`, `entry_addr`, and `objf` to their first point of use.
5866 Rename `objf` to `jited`.
5867
c1072906
SM
58682020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5869
5870 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
5871 Remove.
5872 * jit.c (get_jiter_objfile_data): Update.
5873
c8474dc3
TBA
58742020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5875 Simon Marchi <simon.marchi@polymtl.ca>
5876
5877 * jit.c (struct jit_program_space_data): Remove.
5878 (jit_program_space_key): Remove.
5879 (jiter_objfile_data::~jiter_objfile_data): Remove program space
5880 stuff.
5881 (get_jit_program_space_data): Remove.
5882 (jit_breakpoint_deleted): Iterate on all of the program space's
5883 objfiles.
5884 (jit_inferior_init): Likewise.
5885 (jit_breakpoint_re_set_internal): Likewise. Also change return
5886 type to void.
5887 (jit_breakpoint_re_set): Pass current_program_space to
5888 jit_breakpoint_re_set_internal.
5889
77208eb7
SM
58902020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5891
5892 * jit.h (struct jiter_objfile_data) <cached_code_address,
5893 jit_breakpoint>: Move to here from ...
5894 * jit.c (jit_program_space_data): ... here.
5895 (jiter_objfile_data::~jiter_objfile_data): Update.
5896 (jit_breakpoint_deleted): Update.
5897 (jit_breakpoint_re_set_internal): Update.
5898
8c1c720f
SM
58992020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5900
5901 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
5902 checks.
5903 (jit_read_descriptor): Remove NULL check.
5904 (jit_event_handler): Add an assertion.
5905
0e74a041
SM
59062020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5907
5908 * jit.h (struct jit_objfile_data): Split into...
5909 (struct jiter_objfile_data): ... this ...
5910 (struct jited_objfile_data): ... and this.
5911 * objfiles.h (struct objfile) <jit_data>: Remove.
5912 <jiter_data, jited_data>: New fields.
5913 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
5914 (jiter_objfile_data::~jiter_objfile_data): ... this.
5915 (get_jit_objfile_data): Rename to ...
5916 (get_jiter_objfile_data): ... this.
5917 (add_objfile_entry): Update.
5918 (jit_read_descriptor): Use get_jiter_objfile_data.
5919 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
5920 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
5921 (jit_inferior_exit_hook): Use objfile's jited_data field.
5922
238b5c9f
SM
59232020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5924
5925 * jit.h: Forward-declare `struct minimal_symbol`.
5926 (struct jit_objfile_data): Migrate to here from jit.c; also add a
5927 constructor, destructor, and an objfile* field.
5928 * jit.c (jit_objfile_data): Remove.
5929 (struct jit_objfile_data): Migrate from here to jit.h.
5930 (jit_objfile_data::~jit_objfile_data): New destructor
5931 implementation with code moved from free_objfile_data.
5932 (free_objfile_data): Delete.
5933 (get_jit_objfile_data): Update to use the jit_data field of objfile.
5934 (jit_find_objf_with_entry_addr): Ditto.
5935 (jit_inferior_exit_hook): Ditto.
5936 (_initialize_jit): Remove the call to
5937 register_objfile_data_with_cleanup.
5938 * objfiles.h (struct objfile) <jit_data>: New field.
5939
fe053b9e
TBA
59402020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5941
5942 * jit.h: Forward-declare `struct objfile`.
5943 (jit_event_handler): Add a second parameter, the JITer objfile.
5944 * jit.c (jit_read_descriptor): Change the signature to take the
5945 JITer objfile as an argument instead of the jit_program_space_data.
5946 (jit_inferior_init): Update the call to jit_read_descriptor.
5947 (jit_event_handler): Use the new JITer objfile argument when calling
5948 jit_read_descriptor.
5949 * breakpoint.c (handle_jit_event): Update the call to
5950 jit_event_handler to pass the JITer objfile.
5951
4cec0c66
JB
59522020-07-21 John Baldwin <jhb@FreeBSD.org>
5953
5954 * gdbarch.c: Regenerate.
5955 * gdbarch.h: Regenerate.
5956 * gdbarch.sh (handle_segmentation_fault): Remove method.
5957 * infrun.c (handle_segmentation_fault): Remove.
5958 (print_signal_received_reason): Remove call to
5959 handle_segmentation_fault.
5960
0e42f66a
JB
59612020-07-21 John Baldwin <jhb@FreeBSD.org>
5962
5963 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5964 Rename to sparc64_linux_report_signal_info and add siggnal
5965 argument.
5966 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
5967 instead of sparc64_linux_handle_segmentation_fault.
5968
77bdfeb2
JB
59692020-07-21 John Baldwin <jhb@FreeBSD.org>
5970
5971 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
5972 i386_linux_report_signal_info instead of
5973 i386_linux_handle_segmentation_fault.
5974 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
5975 to i386_linux_report_signal_info and add siggnal argument.
5976 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
5977 of i386_linux_handle_segmentation_fault.
5978 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
5979 to i386_linux_report_signal_info and add siggnal argument.
5980
ad97bfc5
JB
59812020-07-21 John Baldwin <jhb@FreeBSD.org>
5982
5983 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
5984 hook if present.
5985
272bb05c
JB
59862020-07-21 John Baldwin <jhb@FreeBSD.org>
5987
5988 * gdbarch.c: Regenerate.
5989 * gdbarch.h: Regenerate.
5990 * gdbarch.sh (report_signal_info): New method.
5991 * infrun.c (print_signal_received_reason): Invoke gdbarch
5992 report_signal_info hook if present.
5993
baf8791e
AB
59942020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5995
5996 * python/py-registers.c : Add 'unordered_map' include.
5997 (gdbpy_new_reggroup): Renamed to...
5998 (gdbpy_get_reggroup): ...this. Update to only create register
5999 group descriptors when needed.
6000 (gdbpy_reggroup_iter_next): Update.
6001
f7306dac
AB
60022020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6003
6004 * python/py-registers.c (gdbpy_register_object_data): New static
6005 global.
6006 (gdbpy_register_object_data_init): New function.
6007 (gdbpy_new_register_descriptor): Renamed to...
6008 (gdbpy_get_register_descriptor): ...this, and update to reuse
6009 existing register descriptors where possible.
6010 (gdbpy_register_descriptor_iter_next): Update.
6011 (gdbpy_initialize_registers): Register new gdbarch data.
6012
05c309a8
SM
60132020-07-21 Simon Marchi <simon.marchi@efficios.com>
6014
6015 * linux-nat.c (stopped_pids): Make static.
6016
d1fd641e
SM
60172020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
6018
6019 PR ada/26235
6020 * gdbtypes.c (ada_discrete_type_low_bound,
6021 ada_discrete_type_high_bound): Handle undefined bounds.
6022
1de14d77
KR
60232020-07-21 Kamil Rytarowski <n54@gmx.com>
6024
6025 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
6026 declaration.
6027 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
6028 function.
6029
ed810cc7
JB
60302020-07-20 John Baldwin <jhb@FreeBSD.org>
6031
6032 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
6033 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
6034 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
6035 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
6036 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
6037 method.
6038
ae5369e7
LC
60392020-07-20 Ludovic Courtès <ludo@gnu.org>
6040
6041 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
6042 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
6043 which are deprecated in Guile 3.0.
6044 * configure.ac (try_guile_versions): Add "guile-3.0".
6045 * configure (try_guile_versions): Regenerate.
6046 * NEWS: Update entry.
6047
68cf161c
LC
60482020-07-20 Ludovic Courtès <ludo@gnu.org>
6049 Doug Evans <dje@google.com>
6050
6051 PR gdb/21104
6052 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
6053 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
6054 USING_GUILE_BEFORE_2_2.
6055 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
6056 Change type to 'scm_t_port_type *'.
6057 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
6058 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
6059 parameter and honor it. Update callers.
6060 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
6061 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
6062 functions.
6063 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
6064 USING_GUILE_BEFORE_2_2.
6065 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
6066 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
6067 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
6068 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
6069 and 'SCM_PORT_TYPE'.
6070 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
6071 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
6072 (gdbscm_memory_port_read, gdbscm_memory_port_write)
6073 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
6074 [!USING_GUILE_BEFORE_2_2]: New functions.
6075 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
6076 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
6077 'gdbscm_memory_port_read'.
6078 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
6079 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
6080 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
6081 function.
6082 (ioscm_init_memory_port): Remove.
6083 (ioscm_init_memory_port_stream): New function
6084 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
6085 function.
6086 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6087 Return scm_from_uint (0).
6088 (gdbscm_set_memory_port_read_buffer_size_x)
6089 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6090 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6091 Return scm_from_uint (0).
6092 (gdbscm_set_memory_port_write_buffer_size_x)
6093 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6094 * configure.ac (try_guile_versions): Add "guile-2.2".
6095 * configure: Regenerate.
6096 * NEWS: Add entry.
6097
aee91db3
TT
60982020-07-18 Tom Tromey <tom@tromey.com>
6099
6100 * linux-nat.c (linux_multi_process): Remove.
6101 (linux_nat_target::supports_multi_process): Return true.
6102
0e267416
AB
61032020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6104
6105 * arch/riscv.c (riscv_tdesc_cache): Change map type.
6106 (riscv_lookup_target_description): Return pointer out of
6107 unique_ptr.
6108 * target-descriptions.c (allocate_target_description): Add
6109 comment.
6110 (target_desc_deleter::operator()): Likewise.
6111 * target-descriptions.h (struct target_desc_deleter): Moved to
6112 gdbsupport/tdesc.h.
6113 (target_desc_up): Likewise.
6114
f80c8ec4
TT
61152020-07-17 Tom Tromey <tromey@adacore.com>
6116
6117 * linux-nat.c (linux_nat_target::supports_non_stop)
6118 (linux_nat_target::always_non_stop_p): Use "true".
6119 (linux_nat_target::supports_disable_randomization): Use "true" and
6120 "false".
6121
d0ce17d8
CT
61222020-07-16 Caroline Tice <cmtice@google.com>
6123
6124 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
6125 (RNGLIST_HEADER_SIZE64): New constant definition.
6126 (struct dwop_section_names): Add rnglists_dwo.
6127 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
6128 (struct loclist_header): Rename to 'loclists_rnglists_header'.
6129 (struct dwo_sections): Add rnglists field.
6130 (read_attribut_reprocess): Add tag parameter.
6131 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
6132 (cu_debug_rnglists_section): New function (decl & definition).
6133 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
6134 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
6135 die whose range is being checked; get rnglist section from
6136 cu_debug_rnglists_section, to get from either objfile or dwo file as
6137 appropriate. Add cases for DW_RLE_base_addressx,
6138 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
6139 the base address to DW_RLE_offset_pairs (not to all ranges), moving
6140 test inside if-condition and updating complaint message.
6141 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
6142 dwarf2_rnglists_process.
6143 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
6144 dwarf2_ranges_process.
6145 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
6146 need_ranges_base and update comment appropriately. Also pass die tag
6147 to dwarf2_ranges_read.
6148 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
6149 need_ranges_base and update comment appropriately. Also pass die tag
6150 to dwarf2_ranges_process.
6151 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
6152 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
6153 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
6154 need_ranges_base and update comment appropriately. Also pass die tag
6155 to read_attribute_reprocess and dwarf2_ranges_read.
6156 (read_loclist_header): Rename function to read_loclists_rnglists_header,
6157 and update function comment appropriately.
6158 (read_loclist_index): Call read_loclists_rnglists_header instead of
6159 read_loclist_header.
6160 (read_rnglist_index): New function.
6161 (read_attribute_reprocess): Add tag parameter. Add code for
6162 DW_FORM_rnglistx, passing tag to read_rnglist_index.
6163 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
6164
3dcc261c
AB
61652020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
6166
6167 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
6168 being resolved.
6169
ccb9eba6
AB
61702020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
6171
6172 * arch-utils.c (show_architecture): Update formatting of messages.
6173
cf88be68
SM
61742020-07-12 Simon Marchi <simon.marchi@efficios.com>
6175
6176 * gdbtypes.h (struct type) <bounds>: Handle array and string
6177 types.
6178 * ada-lang.c (assign_aggregate): Use type::bounds on
6179 array/string type.
6180 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
6181 * c-varobj.c (c_number_of_children): Likewise.
6182 (c_describe_child): Likewise.
6183 * eval.c (evaluate_subexp_for_sizeof): Likewise.
6184 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
6185 (f_type_print_base): Likewise.
6186 * f-valprint.c (f77_array_offset_tbl): Likewise.
6187 (f77_get_upperbound): Likewise.
6188 (f77_print_array_1): Likewise.
6189 * guile/scm-type.c (gdbscm_type_range): Likewise.
6190 * m2-typeprint.c (m2_array): Likewise.
6191 (m2_is_long_set_of_type): Likewise.
6192 * m2-valprint.c (get_long_set_bounds): Likewise.
6193 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
6194 * python/py-type.c (typy_range): Likewise.
6195 * rust-lang.c (rust_internal_print_type): Likewise.
6196 * type-stack.c (type_stack::follow_types): Likewise.
6197 * valarith.c (value_subscripted_rvalue): Likewise.
6198 * valops.c (value_cast): Likewise.
6199
509971ae
SM
62002020-07-12 Simon Marchi <simon.marchi@efficios.com>
6201
6202 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
6203 callers to use the equivalent accessor methods.
6204
107406b7
SM
62052020-07-12 Simon Marchi <simon.marchi@efficios.com>
6206
6207 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
6208 (struct type) <bit_stride>: New method.
6209 (TYPE_BIT_STRIDE): Remove.
6210 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
6211
bb789949
SM
62122020-07-12 Simon Marchi <simon.marchi@efficios.com>
6213
6214 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
6215 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
6216 callers to use the equivalent accessor methods instead.
6217
39498edb
SM
62182020-07-12 Simon Marchi <simon.marchi@efficios.com>
6219
6220 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
6221 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
6222 callers to use the equivalent accessor methods instead.
6223
3b606f38
SM
62242020-07-12 Simon Marchi <simon.marchi@efficios.com>
6225
6226 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
6227 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
6228 to use dynamic_prop::kind.
6229
064d9cb9
SM
62302020-07-12 Simon Marchi <simon.marchi@efficios.com>
6231
6232 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
6233 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
6234 to get the bound property's kind and check against
6235 PROP_UNDEFINED.
6236
5537ddd0
SM
62372020-07-12 Simon Marchi <simon.marchi@efficios.com>
6238
6239 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
6240 all callers to use type::range_bounds followed by
6241 dynamic_prop::{low,high}.
6242
8c2e4e06
SM
62432020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6244
6245 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
6246 const_val, set_const_val, baton, set_locexpr, set_loclist,
6247 set_addr_offset, variant_parts, set_variant_parts,
6248 original_type, set_original_type>: New methods.
6249 <kind>: Rename to...
6250 <m_kind>: ... this. Update all users to use the new methods
6251 instead.
6252 <data>: Rename to...
6253 <m_data>: ... this. Update all users to use the new methods
6254 instead.
6255
7c6f2712
SM
62562020-07-12 Simon Marchi <simon.marchi@efficios.com>
6257
6258 * gdbtypes.c (get_discrete_bounds): Return failure if
6259 the range type's bounds are not both defined and constant
6260 values.
6261 (get_array_bounds): Update comment. Remove undefined bound check.
6262
599088e3
SM
62632020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6264
6265 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
6266 the type::bounds method directly.
6267
c4dfcb36
SM
62682020-07-12 Simon Marchi <simon.marchi@efficios.com>
6269
6270 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
6271 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
6272 are used to set the range type's bounds to use set_bounds.
6273
0a278aa7
PW
62742020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6275
6276 * exec.c (_initialize_exec): Update exec-file-mismatch help.
6277
cce20f10
PA
62782020-07-10 Pedro Alves <pedro@palves.net>
6279
6280 * gdbthread.h (inferior_ref): Define.
6281 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
6282 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
6283 * thread.c
6284 (scoped_restore_current_thread::restore):
6285 Adjust to gdb::ref_ptr.
6286 (scoped_restore_current_thread::~scoped_restore_current_thread):
6287 Remove manual decref handling.
6288 (scoped_restore_current_thread::scoped_restore_current_thread):
6289 Adjust to use
6290 inferior_ref::new_reference/thread_info_ref::new_reference.
6291 Incref the thread before calling get_frame_id instead of after.
6292 Let TARGET_CLOSE_ERROR propagate.
6293
6d7aa592
PA
62942020-07-10 Pedro Alves <pedro@palves.net>
6295
6296 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
6297 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
6298 NOT_AVAILABLE_ERROR.
6299 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
6300 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
6301
b3e3a4c1
SM
63022020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6303 Pedro Alves <pedro@palves.net>
6304
6305 PR gdb/26199
6306 * infrun.c (threads_are_resumed_pending_p): Delete.
6307 (do_target_wait): Remove threads_are_executing and
6308 threads_are_resumed_pending_p checks from the inferior_matches
6309 lambda. Update comments.
6310
d6cc5d98
PA
63112020-07-10 Pedro Alves <pedro@palves.net>
6312
6313 PR gdb/26199
6314 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
6315 executing threads.
6316
7d3badc6
PA
63172020-07-10 Pedro Alves <pedro@palves.net>
6318
6319 PR gdb/26199
6320 * infrun.c (handle_no_resumed): Handle multiple targets.
6321
42bd97a6
PA
63222020-07-10 Pedro Alves <pedro@palves.net>
6323
6324 PR gdb/26199
6325 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
6326 target_is_async_p.
6327
43667cc6
PA
63282020-07-10 Pedro Alves <pedro@palves.net>
6329
6330 PR gdb/26199
6331 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
6332 threads, not all threads.
6333
96118d11
PA
63342020-07-10 Pedro Alves <pedro@palves.net>
6335
6336 PR gdb/26199
6337 * remote.c (remote_target::open_1): Pass remote target pointer as
6338 data to create_async_event_handler.
6339 (remote_async_inferior_event_handler): Mark async event handler
6340 before returning if the remote target still has either pending
6341 events or unacknowledged notifications.
6342
54904d81
JB
63432020-07-10 John Baldwin <jhb@FreeBSD.org>
6344
6345 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
6346 declaration.
6347 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
6348 function.
6349
f37e5866
JB
63502020-07-09 John Baldwin <jhb@FreeBSD.org>
6351
6352 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
6353 inferior_ptid.
6354
fc238d4a
JB
63552020-07-09 John Baldwin <jhb@FreeBSD.org>
6356
6357 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
6358 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
6359 AT_FREEBSD_PS_STRINGS.
6360
6e2469ff
HD
63612020-07-08 Hannes Domani <ssbssa@yahoo.de>
6362
6363 * auto-load.c (auto_load_objfile_script_1): Convert drive part
6364 of debugfile path on Windows.
6365
d1076c41
JB
63662020-07-08 John Baldwin <jhb@FreeBSD.org>
6367
6368 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
6369 argument to 'data'.
6370
15f3b077
TT
63712020-07-08 Tom Tromey <tromey@adacore.com>
6372
6373 * ada-lang.c (ada_exception_message_1): Use read_memory.
6374
9fc501fd
AB
63752020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6376
6377 PR python/22748
6378 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
6379 special handling for inline frames.
6380 * findvar.c (value_of_register_lazy): Skip inline frames when
6381 creating lazy register values.
6382 * frame.c (frame_id_computed_p): Delete definition.
6383 * frame.h (frame_id_computed_p): Delete declaration.
6384
64cb3757
AB
63852020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6386
6387 * NEWS: Mention additions to Python API.
6388 * python/py-arch.c (archpy_register_groups): New function.
6389 (arch_object_methods): Add 'register_groups' method.
6390 * python/py-registers.c (reggroup_iterator_object): New struct.
6391 (reggroup_object): New struct.
6392 (gdbpy_new_reggroup): New function.
6393 (gdbpy_reggroup_to_string): New function.
6394 (gdbpy_reggroup_name): New function.
6395 (gdbpy_reggroup_iter): New function.
6396 (gdbpy_reggroup_iter_next): New function.
6397 (gdbpy_new_reggroup_iterator): New function
6398 (gdbpy_initialize_registers): Register new types.
6399 (reggroup_iterator_object_type): Define new Python type.
6400 (gdbpy_reggroup_getset): New static global.
6401 (reggroup_object_type): Define new Python type.
6402 * python/python-internal.h
6403
0f767f94
AB
64042020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6405
6406 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
6407 * python/py-arch.c (archpy_registers): New function.
6408 (arch_object_methods): Add 'registers' method.
6409 * python/py-registers.c: New file.
6410 * python/python-internal.h
6411 (gdbpy_new_register_descriptor_iterator): Declare.
6412 (gdbpy_initialize_registers): Declare.
6413 * python/python.c (do_start_initialization): Call
6414 gdbpy_initialize_registers.
6415 * NEWS: Mention additions to the Python API.
6416
87dbc774
AB
64172020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6418
6419 * NEWS: Mention new Python API method.
6420 * python/py-unwind.c (pending_framepy_architecture): New function.
6421 (pending_frame_object_methods): Add architecture method.
6422
3bc98c0c
AB
64232020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6424
6425 * gdbarch.c: Regenerate.
6426 * gdbarch.h: Regenerate.
6427 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
6428 (gdbarch_data): Use internal_error for the case where
6429 deprecated_set_gdbarch_data was originally needed.
6430 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
6431 and use passed in obstack.
6432 (libunwind_frame_set_descr): Should no longer get back NULL from
6433 gdbarch_data.
6434 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
6435 type.
6436 * user-regs.c (user_regs_init): Update parameters, and use passed
6437 in obstack.
6438 (user_reg_add): Should no longer get back NULL from gdbarch_data.
6439 (_initialize_user_regs): Register as a pre-init gdbarch data type.
6440
d8cc8af6
TV
64412020-07-06 Tom de Vries <tdevries@suse.de>
6442
6443 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
6444 End-Of-Sequence in lte_is_less_than.
6445 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
6446 "gdb: Don't reorder line table entries too much when sorting".
6447
947f7597
TV
64482020-07-06 Tom de Vries <tdevries@suse.de>
6449
6450 PR tui/26205
6451 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
6452
1e7c1b22
TV
64532020-07-05 Tom de Vries <tdevries@suse.de>
6454
6455 PR build/26187
6456 * inferior.h (struct infcall_suspend_state_deleter): If available, use
6457 std::uncaught_exceptions instead of deprecated
6458 std::uncaught_exception.
6459
a36158ec
SM
64602020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6461
6462 * macroexp.h (macro_stringify): Return
6463 gdb::unique_xmalloc_ptr<char>.
6464 * macroexp.c (macro_stringify): Likewise.
6465 * macrotab.c (fixup_definition): Update.
6466
14d960c8
SM
64672020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6468
6469 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
6470 (lex_one_token): Update.
6471 * macroexp.c (struct macro_buffer) <release>: Return
6472 gdb::unique_xmalloc_ptr<char>.
6473 (macro_stringify): Update.
6474 (macro_expand): Update.
6475 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
6476 * macroexp.h (macro_expand_next): Likewise.
6477
211d5b1c
SM
64782020-07-02 Simon Marchi <simon.marchi@efficios.com>
6479
6480 * macroexp.h (macro_lookup_ftype): Remove.
6481 (macro_expand, macro_expand_once, macro_expand_next): Remove
6482 lookup function parameters, add scope parameter.
6483 * macroexp.c (scan, substitute_args, expand, maybe_expand,
6484 macro_expand, macro_expand_once, macro_expand_next): Likewise.
6485 * macroscope.h (standard_macro_lookup): Change parameter type
6486 to macro_scope.
6487 * macroscope.c (standard_macro_lookup): Likewise.
6488 * c-exp.y (lex_one_token): Update.
6489 * macrocmd.c (macro_expand_command): Likewise.
6490 (macro_expand_once_command): Likewise.
6491
b1a35af2
SM
64922020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6493
6494 * inf-loop.c (inferior_event_handler): Remove client_data param.
6495 * inf-loop.h (inferior_event_handler): Likewise.
6496 * infcmd.c (step_1): Adjust.
6497 * infrun.c (proceed): Adjust.
6498 (fetch_inferior_event): Remove client_data param.
6499 (infrun_async_inferior_event_handler): Adjust.
6500 * infrun.h (fetch_inferior_event): Remove `void *` param.
6501 * linux-nat.c (handle_target_event): Adjust.
6502 * record-btrace.c (record_btrace_handle_async_inferior_event):
6503 Adjust.
6504 * record-full.c (record_full_async_inferior_event_handler):
6505 Adjust.
6506 * remote.c (remote_async_inferior_event_handler): Adjust.
6507
1cdf9e33
TT
65082020-07-01 Tom Tromey <tom@tromey.com>
6509
6510 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
6511 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
6512
32c1e210
TT
65132020-07-01 Tom Tromey <tom@tromey.com>
6514
6515 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
6516 tui_gen_win_info.
6517 (tui_win_info::make_window): Merge with
6518 tui_gen_win_info::make_window.
6519 (tui_win_info::make_visible): Move from tui_gen_win_info.
6520 * tui/tui-win.c (tui_win_info::max_width): Move from
6521 tui_gen_win_info.
6522 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
6523 type.
6524 <window_factory>: Likewise.
6525 * tui/tui-layout.c (tui_win_info::resize): Move from
6526 tui_gen_win_info.
6527 (make_standard_window): Change return type.
6528 (get_locator_window, tui_get_window_by_name): Likewise.
6529 (tui_layout_window::apply): Remove a cast.
6530 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
6531 (struct tui_win_info): Merge with tui_gen_win_info.
6532 (struct tui_gen_win_info): Remove.
6533
a30cb6da
TT
65342020-07-01 Tom Tromey <tom@tromey.com>
6535
6536 * tui/tui-stack.h (struct tui_locator_window): Derive from
6537 tui_win_info.
6538 <do_scroll_horizontal, do_scroll_vertical>: New methods.
6539 <can_box>: New method.
6540
1eb2161f
TT
65412020-07-01 Tom Tromey <tom@tromey.com>
6542
6543 * tui/tui-stack.h (struct tui_locator_window): Remove body.
6544
7134f2eb
TT
65452020-07-01 Tom Tromey <tom@tromey.com>
6546
6547 * tui/tui-regs.c (tui_data_window::display_registers_from)
6548 (tui_data_window::display_registers_from)
6549 (tui_data_window::first_data_item_displayed)
6550 (tui_data_window::delete_data_content_windows): Update.
6551 (tui_data_window::refresh_window, tui_data_window::no_refresh):
6552 Remove.
6553 (tui_data_window::check_register_values): Update.
6554 (tui_data_item_window::rerender): Add parameters. Update.
6555 (tui_data_item_window::refresh_window): Remove.
6556 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
6557 virtual.
6558 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
6559 tui_gen_win_info.
6560 <refresh_window, max_height, min_height>: Remove.
6561 <rerender>: Add parameters.
6562 <x, y, visible>: New members.
6563 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
6564 <m_item_width>: New member.
6565
22b7b041
TT
65662020-07-01 Tom Tromey <tom@tromey.com>
6567
6568 * tui/tui-regs.c (tui_data_window::show_register_group)
6569 (tui_data_window::check_register_values): Update.
6570 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
6571 from item_no.
6572
c9753adb
TT
65732020-07-01 Tom Tromey <tom@tromey.com>
6574
6575 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
6576 useless "if".
6577
9ab26b4a
TT
65782020-07-01 Tom Tromey <tom@tromey.com>
6579
6580 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
6581 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
6582
e555083f
TT
65832020-07-01 Tom Tromey <tom@tromey.com>
6584
6585 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
6586 * tui/tui-winsource.h (enum tui_line_or_address_kind)
6587 (struct tui_line_or_address): Move from tui-data.h.
6588 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
6589 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
6590 (tui_cmd_window, tui_source_window_base, tui_source_window)
6591 (tui_disasm_window): Don't declare.
6592 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
6593 to tui-winsource.h.
6594 (SINGLE_KEY): Move to tui-stack.c.
6595
7a02bab7
TT
65962020-07-01 Tom Tromey <tom@tromey.com>
6597
6598 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
6599 std::string.
6600 * tui/tui-regs.c (class tab_expansion_file): New.
6601 (tab_expansion_file::write): New method.
6602 (tui_register_format): Change return type. Use
6603 tab_expansion_file.
6604 (tui_get_register, tui_data_window::display_registers_from)
6605 (tui_data_item_window::rerender): Update.
6606 * tui/tui-io.h (tui_expand_tabs): Don't declare.
6607 * tui/tui-io.c (tui_expand_tabs): Remove.
6608
ea68593b
TT
66092020-07-01 Tom Tromey <tom@tromey.com>
6610
6611 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
6612
a8caed5d
FS
66132020-07-01 Fangrui Song <maskray@google.com>
6614
6615 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
6616
9cdf9820
AKS
66172020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6618
6619 * dwarf2/read.c (set_die_type): Removed conditions to restrict
6620 forms for DW_AT_associated and DW_AT_allocated attributes,
6621 which is already checked in function attr_to_dynamic_prop.
6622
a1520ad8
TT
66232020-06-30 Tom Tromey <tromey@adacore.com>
6624
6625 * dwarf2/read.c (quirk_rust_enum): Correctly call
6626 alloc_rust_variant for default-less enum.
6627
5ac58899
TT
66282020-06-30 Tom Tromey <tromey@adacore.com>
6629
6630 PR build/26183:
6631 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
6632 gdb::to_string.
6633
19b187a9
SM
66342020-06-29 Simon Marchi <simon.marchi@efficios.com>
6635
6636 * gdbarch.sh (displaced_step_copy_insn): Update doc.
6637 * gdbarch.h: Re-generate.
6638
cd4c4c07
TT
66392020-06-28 Tom Tromey <tom@tromey.com>
6640
6641 * command.h (cmd_types): Remove.
6642 (cmd_type): Don't declare.
6643 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
6644 typedef.
6645 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
6646 * cli/cli-decode.c (cmd_type): Remove.
6647
05779d57
PA
66482020-06-27 Pedro Alves <palves@redhat.com>
6649
6650 * fork-child.c (prefork_hook): Adjust.
6651 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
6652 Delete.
6653 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
6654 * inferior.c (inferior::set_tty, inferior::tty): New methods.
6655 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
6656 Remove declarations.
6657 (struct inferior) <set_tty, tty>: New methods.
6658 (struct inferior) <terminal>: Rename to ...
6659 (struct inferior) <m_terminal>: ... this and make private.
6660 * main.c (captured_main_1): Adjust.
6661 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
6662 (mi_cmd_inferior_tty_show): Adjust.
6663 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
6664 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
6665
1776e3e5
NA
66662020-06-26 Nick Alcock <nick.alcock@oracle.com>
6667
6668 * configure.ac: Add --enable-libctf: handle --disable-static
6669 properly.
6670 * acinclude.m4: sinclude ../config/enable.m4.
6671 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
6672 (LIBCTF): Substitute in.
6673 (CTF_DEPS): New, likewise.
6674 (CLIBS): libctf needs symbols from libbfd: move earlier.
6675 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
6676 flags.
6677 * ctfread.c: Surround in ENABLE_LIBCTF.
6678 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
6679 * configure: Regenerate.
6680 * config.in: Likewise.
6681
58373b80
SM
66822020-06-25 Simon Marchi <simon.marchi@efficios.com>
6683
6684 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
6685
277474ee
SM
66862020-06-25 Simon Marchi <simon.marchi@efficios.com>
6687
6688 * inferior.h (struct inferior) <terminal>: Change type to
6689 gdb::unique_xmalloc_ptr<char>.
6690 * inferior.c (inferior::~inferior): Don't free inf->terminal.
6691 * infcmd.c (set_inferior_io_terminal): Don't free terminal
6692 field, adjust to unique pointer.
6693 (get_inferior_io_terminal): Adjust to unique pointer.
6694
6d74da72
AB
66952020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6696
6697 * riscv-tdep.c (riscv_print_registers_info): Loop over all
6698 registers, not just the known core set of registers.
6699
2e52d038
AB
67002020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6701
6702 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
6703 fflags, frm, and fcsr registers.
6704 (riscv_register_reggroup_p): Remove unknown CSRs from save and
6705 restore groups.
6706 (riscv_tdesc_unknown_reg): New function.
6707 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
6708 tdesc_use_registers.
6709 * riscv-tdep.h (struct gdbarch_tdep): Add
6710 unknown_csrs_first_regnum, unknown_csrs_count,
6711 duplicate_fflags_regnum, duplicate_frm_regnum, and
6712 duplicate_fcsr_regnum fields.
6713
be64fd07
AB
67142020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6715
6716 * target-descriptions.c (tdesc_use_registers): Add new parameter a
6717 callback, use the callback (when not null) to help number unknown
6718 registers.
6719 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
6720 (tdesc_use_registers): Add extra parameter to declaration.
6721
3b9fce96
AB
67222020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6723
6724 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
6725 in the file.
6726 (class riscv_pending_register_alias): Likewise.
6727 (riscv_register_feature::register_info): Change 'required_p' field
6728 to 'required', and change its type. Add 'check' member function.
6729 (riscv_register_feature::register_info::check): Define new member
6730 function.
6731 (riscv_xreg_feature): Change initialisation of 'required' field.
6732 (riscv_freg_feature): Likewise.
6733 (riscv_virtual_feature): Likewise.
6734 (riscv_csr_feature): Likewise.
6735 (riscv_check_tdesc_feature): Take extra parameter, the csr
6736 tdesc_feature, rewrite the function to use the new
6737 riscv_register_feature::register_info::check function.
6738 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
6739
865bad26
AB
67402020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6741
6742 * features/Makefile: Remove all references to the deleted files
6743 below.
6744 * features/riscv/32bit-csr.c: Deleted.
6745 * features/riscv/32bit-csr.xml: Deleted.
6746 * features/riscv/64bit-csr.c: Deleted.
6747 * features/riscv/64bit-csr.xml: Deleted.
6748 * features/riscv/rebuild-csr-xml.sh: Deleted.
6749
ed69cbc8
AB
67502020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6751
6752 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
6753 whitespace error for declaration of names member variable.
6754 (struct riscv_register_feature): Add new prefer_first_name member
6755 variable, and fix whitespace error in declaration of registers.
6756 (riscv_xreg_feature): Initialize prefer_first_name field.
6757 (riscv_freg_feature): Likewise.
6758 (riscv_virtual_feature): Likewise.
6759 (riscv_csr_feature): Likewise.
6760 (riscv_register_name): Expand on comments. Remove register name
6761 modifications for CSR and virtual registers.
6762
4445e8f5
AB
67632020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6764
6765 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
6766 errors.
6767
767a879e
AB
67682020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6769
6770 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
6771 riscv-opc.h.
6772 (class riscv_pending_register_alias): New class.
6773 (riscv_check_tdesc_feature): Take vector of pending aliases and
6774 populate it as appropriate.
6775 (riscv_setup_register_aliases): Delete.
6776 (riscv_gdbarch_init): Create vector of pending aliases and pass it
6777 to riscv_check_tdesc_feature in all cases. Use the vector to
6778 create the register aliases.
6779
bb6e55f3
RO
67802020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6781
6782 * sol2-tdep.c (sol2_static_transform_name): Remove.
6783 (sol2_init_abi): Don't register it.
6784 * gdbarch.sh (static_transform_name): Remove.
6785 * gdbarch.c, gdbarch.h: Regenerate.
6786
6787 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
6788 gdbarch_static_transform_name.
6789 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
6790 * stabsread.c (define_symbol) <'X'>: Remove.
6791 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
6792 handling.
6793 <'V'>: Likewise.
6794 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
6795 <'S'>: Remove call to gdbarch_static_transform_name.
6796
c6d36836
RO
67972020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6798
6799 * procfs.c (procfs_pre_trace): New function.
6800 (procfs_target::create_inferior): Pass it to fork_inferior.
6801
a7e6196b
RO
68022020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6803
6804 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
6805 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
6806 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
6807 sol2-tdep.o, sparc-sol2-tdep.o.
6808 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
6809 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
6810 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
6811 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
6812
d412e696
RO
68132020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6814
6815 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
6816 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
6817 Call sol2_init_abi.
6818 Remove calls to set_gdbarch_skip_solib_resolver,
6819 set_gdbarch_core_pid_to_str.
6820 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
6821 (i386_sol2_static_transform_name): Remove.
6822 (i386_sol2_init_abi): Call sol2_init_abi.
6823 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6824 set_gdbarch_static_transform_name,
6825 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6826 Use sol2_sigtramp_p.
6827 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
6828 (sol2_sigtramp_p): New function.
6829 (sol2_static_transform_name): New function.
6830 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
6831 (sol2_init_abi): New function.
6832 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
6833 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
6834 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
6835 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
6836 (sparc_sol2_static_transform_name): Remove.
6837 (sparc32_sol2_init_abi): Call sol2_init_abi.
6838 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6839 set_gdbarch_static_transform_name,
6840 set_gdbarch_skip_solib_resolver,
6841 set_gdbarch_core_pid_to_str.
6842 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
6843 (sparc_sol2_static_transform_name): Remove
6844 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
6845 call sol2_sigtramp_p.
6846 (sparc64_sol2_init_abi): Call sol2_init_abi.
6847 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6848 set_gdbarch_static_transform_name,
6849 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6850
a8654e7d
PW
68512020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6852
6853 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
6854 * exec.c (validate_exec_file): If from_tty, set both
6855 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
6856 * symfile.c (symbol_file_add_with_addrs): if always_confirm
6857 and from_tty, unconditionally ask a confirmation.
6858
caa7fd04
AB
68592020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6860
6861 * target-descriptions.c (tdesc_architecture_name): Protect against
6862 NULL pointer dereference.
6863 (maint_print_xml_tdesc_cmd): New function.
6864 (_initialize_target_descriptions): Register new 'maint print
6865 xml-tdesc' command and give it the filename completer.
6866 * NEWS: Mention new 'maint print xml-tdesc' command.
6867
fbf42f4e
AB
68682020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6869
6870 * target-descriptions.c (class tdesc_compatible_info): New class.
6871 (struct target_desc): Change type of compatible vector.
6872 (tdesc_compatible_p): Update for change in type of
6873 target_desc::compatible.
6874 (tdesc_compatible_info_list): New function.
6875 (tdesc_compatible_info_arch_name): New function.
6876 (tdesc_add_compatible): Update for change in type of
6877 target_desc::compatible.
6878 (print_c_tdesc::visit_pre): Likewise.
6879
20821f4e
AB
68802020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6881
6882 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
6883 whitespace to underscore.
6884 (maint_print_c_tdesc_cmd): Use fake filename for target
6885 descriptions that came from the target.
6886 (_initialize_target_descriptions): Add filename command completion
6887 for 'maint print c-tdesc'.
6888
1fb5ee62
SM
68892020-06-23 Simon Marchi <simon.marchi@efficios.com>
6890
6891 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
6892 lines.
6893
fc3ecb3e
SM
68942020-06-23 Simon Marchi <simon.marchi@efficios.com>
6895
6896 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
6897 lines.
6898 (dwarf2_find_location_expression): Likewise.
6899 (call_site_parameter_matches): Likewise.
6900 (dwarf2_compile_expr_to_ax): Likewise.
6901 (disassemble_dwarf_expression): Likewise.
6902 (loclist_describe_location): Likewise.
6903
236ef034
PA
69042020-06-23 Pedro Alves <palves@redhat.com>
6905
6906 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
6907 progspace-and-thread.h. Include scoped-mock-context.h instead.
6908 (register_to_value_test): Use scoped_mock_context.
6909 * regcache.c: Include "scoped-mock-context.h".
6910 (cooked_read_test): Don't error out if a target is already pushed.
6911 Use scoped_mock_context. Adjust.
6912 * scoped-mock-context.h: New file.
6913
39e7ecca
AB
69142020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6915
6916 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
6917 initializer.
6918 (ada_language::is_string_type_p): New member function.
6919 * c-lang.c (c_language_data): Delete la_is_string_type_p
6920 initializer.
6921 (cplus_language_data): Likewise.
6922 (asm_language_data): Likewise.
6923 (minimal_language_data): Likewise.
6924 * d-lang.c (d_language_data): Likewise.
6925 * f-lang.c (f_is_string_type_p): Delete function, implementation
6926 moved to f_language::is_string_type_p.
6927 (f_language_data): Delete la_is_string_type_p initializer.
6928 (f_language::is_string_type_p): New member function,
6929 implementation from f_is_string_type_p.
6930 * go-lang.c (go_is_string_type_p): Delete function, implementation
6931 moved to go_language::is_string_type_p.
6932 (go_language_data): Delete la_is_string_type_p initializer.
6933 (go_language::is_string_type_p): New member function,
6934 implementation from go_is_string_type_p.
6935 * language.c (language_defn::is_string_type_p): Define new member
6936 function.
6937 (default_is_string_type_p): Make static, add comment copied from
6938 header file.
6939 (unknown_language_data): Delete la_is_string_type_p initializer.
6940 (unknown_language::is_string_type_p): New member function.
6941 (auto_language_data): Delete la_is_string_type_p initializer.
6942 (auto_language::is_string_type_p): New member function.
6943 * language.h (language_data): Delete la_is_string_type_p field.
6944 (language_defn::is_string_type_p): Declare new function.
6945 (default_is_string_type_p): Delete desclaration, move comment to
6946 definition.
6947 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
6948 moved to m2_language::is_string_type_p.
6949 (m2_language_data): Delete la_is_string_type_p initializer.
6950 (m2_language::is_string_type_p): New member function,
6951 implementation from m2_is_string_type_p.
6952 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
6953 initializer.
6954 * opencl-lang.c (opencl_language_data): Likewise.
6955 * p-lang.c (pascal_is_string_type_p): Delete function,
6956 implementation moved to pascal_language::is_string_type_p.
6957 (pascal_language_data): Delete la_is_string_type_p initializer.
6958 (pascal_language::is_string_type_p): New member function,
6959 implementation from pascal_is_string_type_p.
6960 * rust-lang.c (rust_is_string_type_p): Delete function,
6961 implementation moved to rust_language::is_string_type_p.
6962 (rust_language_data): Delete la_is_string_type_p initializer.
6963 (rust_language::is_string_type_p): New member function,
6964 implementation from rust_is_string_type_p.
6965 * valprint.c (val_print_scalar_or_string_type_p): Update call to
6966 is_string_type_p.
6967
4ffc13fb
AB
69682020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6969
6970 * ada-lang.c (ada_language_data): Delete la_print_typedef
6971 initializer.
6972 (ada_language::print_typedef): New member function.
6973 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
6974 (cplus_language_data): Likewise.
6975 (asm_language_data): Likewise.
6976 (minimal_language_data): Likewise.
6977 * d-lang.c (d_language_data): Likewise.
6978 * f-lang.c (f_language_data): Likewise.
6979 (f_language::print_typedef): New member function.
6980 * go-lang.c (go_language_data): Delete la_print_typedef
6981 initializer.
6982 * language.c (language_defn::print_typedef): Define member
6983 function.
6984 (unknown_language_data): Delete la_print_typedef initializer.
6985 (unknown_language::print_typedef): New member function.
6986 (auto_language_data): Delete la_print_typedef initializer.
6987 (auto_language::print_typedef): New member function.
6988 * language.h (language_data): Delete la_print_typedef field.
6989 (language_defn::print_typedef): Declare new member function.
6990 (LA_PRINT_TYPEDEF): Update call to print_typedef.
6991 (default_print_typedef): Delete declaration.
6992 * m2-lang.c (m2_language_data): Delete la_print_typedef
6993 initializer.
6994 (m2_language::print_typedef): New member function.
6995 * objc-lang.c (objc_language_data): Delete la_print_typedef
6996 initializer.
6997 * opencl-lang.c (opencl_language_data): Likewise.
6998 * p-lang.c (pascal_language_data): Likewise.
6999 (pascal_language::print_typedef): New member function.
7000 * rust-lang.c (rust_print_typedef): Delete function,
7001 implementation moved to rust_language::print_typedef.
7002 (rust_language): Delete la_print_typedef initializer.
7003 (rust_language::print_typedef): New member function,
7004 implementation from rust_print_typedef.
7005 * typeprint.c (default_print_typedef): Delete.
7006
d711ee67
AB
70072020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7008
7009 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
7010 (ada_language::printstr): New member function.
7011 * c-lang.c (c_language_data): Delete la_printstr initializer.
7012 (cplus_language_data): Likewise.
7013 (asm_language_data): Likewise.
7014 (minimal_language_data): Likewise.
7015 * d-lang.c (d_language_data): Likewise.
7016 * f-lang.c (f_printstr): Rename to f_language::printstr.
7017 (f_language_data): Delete la_printstr initializer.
7018 (f_language::printstr): New member function, implementation from
7019 f_printstr.
7020 * go-lang.c (go_language_data): Delete la_printstr initializer.
7021 * language.c (language_defn::printstr): Define new member
7022 function.
7023 (unk_lang_printstr): Delete.
7024 (unknown_language_data): Delete la_printstr initializer.
7025 (unknown_language::printstr): New member function.
7026 (auto_language_data): Delete la_printstr initializer.
7027 (auto_language::printstr): New member function.
7028 * language.h (language_data): Delete la_printstr field.
7029 (language_defn::printstr): Declare new member function.
7030 (LA_PRINT_STRING): Update call to printstr.
7031 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
7032 (m2_language_data): Delete la_printstr initializer.
7033 (m2_language::printstr): New member function, implementation from
7034 m2_printstr.
7035 * objc-lang.c (objc_language_data): Delete la_printstr
7036 initializer.
7037 * opencl-lang.c (opencl_language_data): Likewise.
7038 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
7039 (pascal_language_data): Delete la_printstr initializer.
7040 (pascal_language::printstr): New member function, implementation
7041 from pascal_printstr.
7042 * p-lang.h (pascal_printstr): Delete declaration.
7043 * rust-lang.c (rust_printstr): Update header comment.
7044 (rust_language_data): Delete la_printstr initializer.
7045 (rust_language::printstr): New member function.
7046
52b50f2c
AB
70472020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7048
7049 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
7050 (ada_language::printchar): New member function.
7051 * c-lang.c (c_language_data): Delete la_printchar initializer.
7052 (cplus_language_data): Likewise.
7053 (asm_language_data): Likewise.
7054 (minimal_language_data): Likewise.
7055 * d-lang.c (d_language_data): Likewise.
7056 * f-lang.c (f_printchar): Rename to f_language::printchar.
7057 (f_language_data): Delete la_printchar initializer.
7058 (f_language::printchar): New member function, implementation from
7059 f_printchar.
7060 * go-lang.c (go_language_data): Delete la_printchar initializer.
7061 * language.c (unk_lang_printchar): Delete.
7062 (language_defn::printchar): Define new member function.
7063 (unknown_language_data): Delete la_printchar initializer.
7064 (unknown_language::printchar): New member function.
7065 (auto_language_data): Delete la_printchar initializer.
7066 (auto_language::printchar): New member function.
7067 * language.h (language_data): Delete la_printchar field.
7068 (language_defn::printchar): Declare new member function.
7069 (LA_PRINT_CHAR): Update call to printchar.
7070 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
7071 (m2_language::printchar): New member function.
7072 * objc-lang.c (objc_language_data): Delete la_printchar
7073 initializer.
7074 * opencl-lang.c (opencl_language_data): Likewise.
7075 * p-lang.c (pascal_language_data): Delete la_printchar
7076 initializer.
7077 (pascal_language::printchar): New member function.
7078 * rust-lang.c (rust_printchar): Rename to
7079 rust_language::printchar.
7080 (rust_language_data): Delete la_printchar initializer.
7081 (rust_language::printchar): New member function, implementation
7082 from rust_printchar.
7083
ec8cec5b
AB
70842020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7085
7086 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
7087 (ada_language_data): Delete la_emitchar initializer.
7088 (ada_language::emitchar): New member function, implementation from
7089 emit_char.
7090 * c-lang.c (c_language_data): Delete la_emitchar initializer.
7091 (cplus_language_data): Likewise.
7092 (asm_language_data): Likewise.
7093 (minimal_language_data): Likewise.
7094 * d-lang.c (d_language_data): Likewise.
7095 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
7096 (f_language_data): Delete la_emitchar initializer.
7097 (f_language::emitchar): New member function, implementation from
7098 f_emit_char.
7099 * go-lang.c (go_language_data): Delete la_emitchar initializer.
7100 * language.c (unk_lang_emit_char): Delete.
7101 (language_defn::emitchar): New member function definition.
7102 (unknown_language_data): Delete la_emitchar initializer.
7103 (unknown_language::emitchar): New member function.
7104 (auto_language_data): Delete la_emitchar initializer.
7105 (auto_language::emitchar): New member function.
7106 * language.h (language_data): Delete la_emitchar field.
7107 (language_defn::emitchar): New member field declaration.
7108 (LA_EMIT_CHAR): Update call to emitchar.
7109 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
7110 (m2_language_data): Delete la_emitchar initializer.
7111 (m2_language::emitchar): New member function, implementation from
7112 m2_emit_char.
7113 * objc-lang.c (objc_language_data): Delete la_emitchar
7114 initializer.
7115 * opencl-lang.c (opencl_language_data): Likewise.
7116 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
7117 (pascal_language_data): Delete la_emitchar initializer.
7118 (pascal_language::emitchar): New member function, implementation
7119 from pascal_emit_char.
7120 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
7121 (rust_language_data): Delete la_emitchar initializer.
7122 (rust_language::emitchar): New member function, implementation
7123 from rust_emitchar.
7124
1bf9c363
AB
71252020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7126
7127 * ada-lang.c (resolve): Rename to ada_language::post_parser.
7128 (ada_language_data): Delete la_post_parser initializer.
7129 (ada_language::post_parser): New member function.
7130 * c-lang.c (c_language_data): Delete la_post_parser initializer.
7131 (cplus_language_data): Likewise.
7132 (asm_language_data): Likewise.
7133 (minimal_language_data): Likewise.
7134 * d-lang.c (d_language_data): Likewise.
7135 * f-lang.c (f_language_data): Likewise.
7136 * go-lang.c (go_language_data): Likewise.
7137 * language.c (unknown_language_data): Likewise.
7138 (auto_language_data): Likewise.
7139 * language.h (language_data): Delete la_post_parser field.
7140 (language_defn::post_parser): New member function.
7141 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
7142 * objc-lang.c (objc_language_data): Likewise.
7143 * opencl-lang.c (opencl_language_data): Likewise.
7144 * p-lang.c (pascal_language_data): Likewise.
7145 * parse.c (parse_exp_in_context): Update call to post_parser.
7146 (null_post_parser): Delete definition.
7147 * parser-defs.h (null_post_parser): Delete declaration.
7148 * rust-lang.c (rust_language_data): Delete la_post_parser
7149 initializer.
7150
87afa652
AB
71512020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7152
7153 * ada-lang.c (parse): Rename to ada_language::parser.
7154 (ada_language_data): Delete la_parser initializer.
7155 (ada_language::parser): New member function, implementation from
7156 parse.
7157 * c-lang.c (c_language_data): Delete la_parser initializer.
7158 (cplus_language_data): Likewise.
7159 (asm_language_data): Likewise.
7160 (minimal_language_data): Likewise.
7161 * d-lang.c (d_language_data): Likewise.
7162 (d_language::parser): New member function.
7163 * f-lang.c (f_language_data): Delete la_parser initializer.
7164 (f_language::parser): New member function.
7165 * go-lang.c (go_language_data): Delete la_parser initializer.
7166 (go_language::parser): New member function.
7167 * language.c (unk_lang_parser): Delete.
7168 (language_defn::parser): Define new member function.
7169 (unknown_language_data): Delete la_parser initializer.
7170 (unknown_language::parser): New member function.
7171 (auto_language_data): Delete la_parser initializer.
7172 (auto_language::parser): New member function.
7173 * language.h (language_data): Delete la_parser field.
7174 (language_defn::parser): Declare new member function.
7175 * m2-lang.c (m2_language_data): Delete la_parser initializer.
7176 (m2_language::parser): New member function.
7177 * objc-lang.c (objc_language_data): Delete la_parser initializer.
7178 * opencl-lang.c (opencl_language_data): Likewise.
7179 * p-lang.c (pascal_language_data): Likewise.
7180 (pascal_language::parser): New member function.
7181 * parse.c (parse_exp_in_context): Update call to parser.
7182 * rust-lang.c (rust_language_data): Delete la_parser initializer.
7183 (rust_language::parser): New member function.
7184
37825800
AB
71852020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7186
7187 * top.c (print_gdb_configuration): Print --with-python-libdir
7188 configuration value.
7189
5b860c93
PW
71902020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7191
7192 * NEWS: Mention change to the alias command.
7193
cf00cd6f
PW
71942020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7195
7196 * cli/cli-cmds.c (lookup_cmd_for_default_args)
7197 (alias_command_completer)
7198 (make_alias_options_def_group): New functions.
7199 (alias_opts, alias_option_defs): New struct and array.
7200 (alias_usage_error): Update usage.
7201 (alias_command): Handles optional DEFAULT-ARGS... arguments.
7202 Use option framework.
7203 (_initialize_cli_cmds): Update alias command help.
7204 Update aliases command help.
7205 (show_user):
7206 Add NULL for new default_args lookup_cmd argument.
7207 (valid_command_p): Rename to validate_aliased_command.
7208 Add NULL for new default_args lookup_cmd argument. Verify that the
7209 aliased_command has no default args.
7210 * cli/cli-decode.c (help_cmd): Show aliases definitions.
7211 (lookup_cmd_1, lookup_cmd): New argument default_args.
7212 (add_alias_cmd):
7213 Add NULL for new default_args lookup_cmd argument.
7214 (print_help_for_command): Show default args under the layout
7215 alias some_alias = some_aliased_cmd some_alias_default_arg.
7216 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
7217 xfree default_args in destructor.
7218 * cli/cli-script.c (process_next_line, do_define_command):
7219 Add NULL for new default_args lookup_cmd argument.
7220 * command.h: Declare new default_args argument in lookup_cmd
7221 and lookup_cmd_1.
7222 * completer.c (complete_line_internal_1):
7223 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7224 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
7225 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
7226 Likewise.
7227 * infcmd.c (_initialize_infcmd): Likewise.
7228 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
7229 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
7230 * python/py-param.c (add_setshow_generic): Likewise.
7231 * remote.c (_initialize_remote): Likewise.
7232 * top.c (execute_command): Prepend default_args if command has some.
7233 (set_verbose):
7234 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7235 * tracepoint.c (validate_actionline, encode_actions_1):
7236 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7237
bd920864
TBA
72382020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7239
7240 * jit.c (jit_read_descriptor): Use bool as the return type.
7241 (jit_breakpoint_re_set_internal): Use bool as the return type.
7242 Invert the return value logic; return true if the jit breakpoint
7243 has been successfully initialized.
7244 (jit_inferior_init): Update the call to
7245 jit_breakpoint_re_set_internal.
7246
f8098322
PA
72472020-06-22 Pedro Alves <palves@redhat.com>
7248
7249 PR gdb/25939
7250 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
7251 Use the current inferior instead. Don't return
7252 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
7253 wait again.
7254 * sol-thread.c (sol_thread_target::wait): Don't reference
7255 inferior_ptid.
7256 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
7257 (sol_update_thread_list_callback): Use the current inferior's pid
7258 instead of inferior_ptid.
7259
196535a6
RO
72602020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7261
7262 * procfs.c: Cleanup many comments.
7263
7264 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
7265 (AFTER_WATCHFLAG): Replace by value.
7266
7267 (MAIN_PROC_NAME_FORMAT): Inline ...
7268 (create_procinfo): ... here.
7269
7270 (procfs_debug_inferior): Remove SYS_exec handling.
7271 (syscall_is_exec): Likewise.
7272 (procfs_set_exec_trap): Likewise.
7273
7274 (syscall_is_lwp_exit): Inline in callers.
7275 (syscall_is_exit): Likewise.
7276 (syscall_is_exec): Likewise.
7277 (syscall_is_lwp_create): Likewise.
7278
7279 (invalidate_cache): Remove #if 0 code.
7280
7281 (make_signal_thread_runnable): Remove.
7282 (procfs_target::resume): Remove #if 0 code.
7283
cf6f3e86
RO
72842020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7285
7286 PR gdb/25939
7287 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
7288 call ...
7289 (procfs_target::create_inferior): ... here.
7290
48e9cc84
PW
72912020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7292
7293 * exec.c (validate_exec_file): Ensure the build-id is up to
7294 date by calling reopen_exec_file (that checks file timestamp
7295 to decide to re-read the file).
7296
3922b302
PA
72972020-06-18 Pedro Alves <palves@redhat.com>
7298
7299 PR gdb/25412
7300 * gdbthread.h (delete_thread, delete_thread_silent)
7301 (find_thread_ptid): Update comments.
7302 * thread.c (current_thread_): New global.
7303 (is_current_thread): Move higher, and reimplement.
7304 (inferior_thread): Reimplement.
7305 (set_thread_exited): Use bool. Add assertions.
7306 (add_thread_silent): Simplify thread-reuse handling by always
7307 calling delete_thread.
7308 (delete_thread): Remove intro comment.
7309 (find_thread_ptid): Skip exited threads.
7310 (switch_to_thread_no_regs): Write to current_thread_.
7311 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
7312 INFERIOR_PTID. Clear current_thread_.
7313
6dbdab44
PA
73142020-06-18 Pedro Alves <palves@redhat.com>
7315
7316 * aix-thread.c (pd_update): Use switch_to_thread.
7317
2da4b788
PA
73182020-06-18 Pedro Alves <palves@redhat.com>
7319
7320 * ravenscar-thread.c (ravenscar_thread_target): Update.
7321 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
7322 (ravenscar_thread_target::add_active_thread): ... this. Don't
7323 set m_base_ptid here. Update to avoid referencing inferior_ptid.
7324 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
7325
50838d1b
PA
73262020-06-18 Pedro Alves <palves@redhat.com>
7327
7328 * nat/windows-nat.c (current_windows_thread): Remove.
7329 * nat/windows-nat.h (current_windows_thread): Remove.
7330 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
7331 Adjust.
7332 (display_selectors): Adjust to fetch the current
7333 windows_thread_info based on inferior_ptid.
7334 (fake_create_process): No longer write to current_windows_thread.
7335 (windows_nat_target::get_windows_debug_event):
7336 Don't set inferior_ptid or current_windows_thread.
7337 (windows_nat_target::wait): Adjust to not rely on
7338 current_windows_thread.
7339 (do_initial_windows_stuff): Now a method of windows_nat_target.
7340 Switch to the last_ptid thread.
7341 (windows_nat_target::attach): Adjust.
7342 (windows_nat_target::detach): Use switch_to_no_thread instead of
7343 writing to inferior_ptid directly.
7344 (windows_nat_target::create_inferior): Adjust.
7345
31ce04e9
PA
73462020-06-18 Pedro Alves <palves@redhat.com>
7347
7348 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
7349
1ee1a363
PA
73502020-06-18 Pedro Alves <palves@redhat.com>
7351
7352 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
7353 after creating it, instead of writing to inferior_ptid. Don't
7354 write to inferior_ptid.
7355
6d350754
PA
73562020-06-18 Pedro Alves <palves@redhat.com>
7357
7358 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
7359
5d971d48
PA
73602020-06-18 Pedro Alves <palves@redhat.com>
7361
7362 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
7363 it, instead of writing to inferior_ptid.
7364
86e57d1b
PA
73652020-06-18 Pedro Alves <palves@redhat.com>
7366
7367 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
7368 to inferior_ptid.
7369
f2e1c129
PA
73702020-06-18 Pedro Alves <palves@redhat.com>
7371
7372 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
7373 instead of writing to inferior_ptid directly.
7374
60db1b85
PA
73752020-06-18 Pedro Alves <palves@redhat.com>
7376
7377 * corelow.c (core_target::close): Use switch_to_no_thread instead
7378 of writing to inferior_ptid directly.
7379 (add_to_thread_list, core_target_open): Use switch_to_thread
7380 instead of writing to inferior_ptid directly.
7381
fe7d6a8d
PA
73822020-06-18 Pedro Alves <palves@redhat.com>
7383
7384 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
7385 inferior_ptid.
7386 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
7387 inferior_ptid.
7388 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
7389 inferior_ptid directly.
7390 (darwin_nat_target::init_thread_list): Switch to thread, instead
7391 of writing to inferior_ptid.
7392 (darwin_nat_target::attach): Don't write to inferior_ptid.
7393 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
7394
975f8708
PA
73952020-06-18 Pedro Alves <palves@redhat.com>
7396
7397 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
7398 thread.
7399 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
7400 Instead use switch_to_thread.
7401 (gnu_nat_target::detach): Use switch_to_no_thread
7402 instead of writing to inferior_ptid directly. Used passed-in
7403 inferior instead of looking up the inferior by pid.
7404
1a204730
PA
74052020-06-18 Pedro Alves <palves@redhat.com>
7406
7407 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
7408 inferior_ptid.
7409
ebe84f23
PA
74102020-06-18 Pedro Alves <palves@redhat.com>
7411
7412 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
7413 inferior_ptid.
7414 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
7415 thread.
7416 (nto_procfs_target::detach): Avoid referencing
7417 inferior_ptid. Use switch_to_no_thread instead of writing to
7418 inferior_ptid directly.
7419 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
7420 instead of writing to inferior_ptid directly.
7421 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
7422 to thread.
7423
191f02e5
PA
74242020-06-18 Pedro Alves <palves@redhat.com>
7425
7426 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
7427 after creating it, instead of writing to inferior_ptid.
7428 (gdbsim_target_open): Use switch_to_no_thread instead of writing
7429 to inferior_ptid directly.
7430 (gdbsim_target::wait): Don't write to inferior_ptid.
7431
0ac55310
PA
74322020-06-18 Pedro Alves <palves@redhat.com>
7433
7434 * remote.c (remote_target::remote_notice_new_inferior): Use
7435 switch_to_thread instead of writing to inferior_ptid directly.
7436 (remote_target::add_current_inferior_and_thread): Use
7437 switch_to_no_thread instead of writing to inferior_ptid directly.
7438 (extended_remote_target::attach): Use switch_to_inferior_no_thread
7439 and switch_to_thread instead of using set_current_inferior or
7440 writing to inferior_ptid directly.
7441
5233f39b
PA
74422020-06-18 Pedro Alves <palves@redhat.com>
7443
7444 * tracectf.c (ctf_target_open): Switch to added thread instead of
7445 writing to inferior_ptid directly.
7446 (ctf_target::close): Use switch_to_no_thread instead of writing to
7447 inferior_ptid directly.
7448
087e161b
PA
74492020-06-18 Pedro Alves <palves@redhat.com>
7450
7451 * tracefile-tfile.c (tfile_target_open): Don't write to
7452 inferior_ptid directly, instead switch to added thread.
7453 (tfile_target::close): Use switch_to_no_thread instead of writing
7454 to inferior_ptid directly.
7455
7fb43e53
PA
74562020-06-18 Pedro Alves <palves@redhat.com>
7457
7458 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
7459 (procfs_target::detach): Use switch_to_no_thread
7460 instead of writing to inferior_ptid directly.
7461 (do_attach): Change return type to void. Switch to the added
7462 thread.
7463 (procfs_target::create_inferior): Switch to the added thread.
7464 (procfs_do_thread_registers): Don't write to inferior_ptid.
7465
18493a00
PA
74662020-06-18 Pedro Alves <palves@redhat.com>
7467
7468 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
7469 of writing to inferior_ptid.
7470 (scoped_restore_exited_inferior): Delete.
7471 (handle_vfork_child_exec_or_exit): Simplify using
7472 scoped_restore_current_pspace_and_thread. Use switch_to_thread
7473 instead of writing to inferior_ptid.
7474 (THREAD_STOPPED_BY): Delete.
7475 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
7476 (thread_stopped_by_hw_breakpoint): Delete.
7477 (save_waitstatus): Use
7478 scoped_restore_current_thread+switch_to_thread, and call
7479 target_stopped_by_watchpoint instead of
7480 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
7481 instead of thread_stopped_by_sw_breakpoint, and
7482 target_stopped_by_hw_breakpoint instead of
7483 thread_stopped_by_hw_breakpoint.
7484 (handle_inferior_event)
7485 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
7486 inferior_ptid directly, nor
7487 set_current_inferior/set_current_program_space. Use
7488 switch_to_thread / switch_to_inferior_no_thread instead.
7489
a0776b13
PA
74902020-06-18 Pedro Alves <palves@redhat.com>
7491
7492 * target.c (generic_mourn_inferior): Use switch_to_no_thread
7493 instead of writing to inferior_ptid.
7494
6155c136
PA
74952020-06-18 Pedro Alves <palves@redhat.com>
7496
7497 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
7498 added thread.
7499 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
7500 to the added thread.
7501 (inf_ptrace_target::detach_success): Use switch_to_no_thread
7502 instead of writing to inferior_ptid.
7503
c5316fc6
PA
75042020-06-18 Pedro Alves <palves@redhat.com>
7505
7506 * gdbarch-selftests.c: Include "progspace-and-thread.h".
7507 (register_to_value_test): Mock a program_space too. Heap-allocate
7508 the address space. Don't write to inferior_ptid. Use
7509 switch_to_thread instead.
7510
8df01799
PA
75112020-06-18 Pedro Alves <palves@redhat.com>
7512
7513 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
7514 Delete.
7515 (find_signalled_thread()): New, factored out from
7516 linux_make_corefile_notes and adjusted to handle exited threads.
7517 (linux_make_corefile_notes): Adjust to use the new
7518 find_signalled_thread.
7519
41792d68
PA
75202020-06-18 Pedro Alves <palves@redhat.com>
7521
7522 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
7523 of saving/restoring inferior_ptid.
7524
612f258a
TT
75252020-06-17 Tom Tromey <tom@tromey.com>
7526
7527 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
7528 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
7529 declare.
7530 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
7531
efb763a5
SM
75322020-06-15 Simon Marchi <simon.marchi@efficios.com>
7533
7534 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
7535 of partial symtabs.
7536
2951f6c0
SM
75372020-06-17 Simon Marchi <simon.marchi@efficios.com>
7538
7539 * regformats/reg-arm.dat: Remove.
7540 * regformats/reg-bfin.dat: Remove.
7541 * regformats/reg-cris.dat: Remove.
7542 * regformats/reg-crisv32.dat: Remove.
7543 * regformats/reg-m32r.dat: Remove.
7544 * regformats/reg-tilegx.dat: Remove.
7545 * regformats/reg-tilegx32.dat: Remove.
7546
7d458ea5
SM
75472020-06-17 Simon Marchi <simon.marchi@efficios.com>
7548
7549 * features/Makefile (WHICH): Remove arm files.
7550 * regformats/arm/arm-with-iwmmxt.dat: Remove.
7551 * regformats/arm/arm-with-neon.dat: Remove.
7552 * regformats/arm/arm-with-vfpv2.dat: Remove.
7553 * regformats/arm/arm-with-vfpv3.dat: Remove.
7554
3af96c0d
SM
75552020-06-17 Simon Marchi <simon.marchi@efficios.com>
7556
7557 * features/Makefile (XMLTOC): Remove rx.xml.
7558
b25e22fd
PA
75592020-06-17 Pedro Alves <palves@redhat.com>
7560
7561 * gdbthread.h (thread_control_state) <trap_expected> Update
7562 comments.
7563
a78a19b1
AB
75642020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7565
7566 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
7567 ada_language::lookup_symbol_nonlocal.
7568 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
7569 (ada_language::lookup_symbol_nonlocal): New member function,
7570 implementation from ada_lookup_symbol_nonlocal.
7571 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
7572 initializer.
7573 (cplus_language_data): Delete la_lookup_symbol_nonlocal
7574 initializer.
7575 (cplus_language::lookup_symbol_nonlocal): New member function.
7576 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
7577 (minimal_language_data) Likewise.
7578 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
7579 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
7580 initializer.
7581 (d_language::lookup_symbol_nonlocal): New member function.
7582 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
7583 initializer.
7584 (f_language::lookup_symbol_nonlocal): New member function.
7585 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
7586 initializer.
7587 * language.c (unknown_language_data): Likewise.
7588 (auto_language_data): Likewise.
7589 * language.h (language_data): Delete la_lookup_symbol_nonlocal
7590 field.
7591 (language_defn::lookup_symbol_nonlocal): New member function.
7592 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
7593 initializer.
7594 * objc-lang.c (objc_language_data): Likewise.
7595 * opencl-lang.c (opencl_language_data): Likewise.
7596 * p-lang.c (pascal_language_data): Likewise.
7597 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
7598 rust_language::lookup_symbol_nonlocal.
7599 (rust_language_data): Delete la_lookup_symbol_nonlocal
7600 initializer.
7601 (rust_language::lookup_symbol_nonlocal): New member function,
7602 implementation from rust_lookup_symbol_nonlocal.
7603 * symtab.c (lookup_symbol_aux): Update call to
7604 lookup_symbol_nonlocal.
7605 (basic_lookup_symbol_nonlocal): Rename to...
7606 (language_defn::lookup_symbol_nonlocal): ...this, and update
7607 header comment. Remove language_defn parameter, and replace with
7608 uses of `this'.
7609 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
7610
ebe2334e
AB
76112020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7612
7613 * ada-lang.c (ada_language_data): Delete la_value_print_inner
7614 initializer.
7615 (ada_language::value_print_inner): New member function.
7616 * c-lang.c (c_language_data): Delete la_value_print_inner
7617 initializer.
7618 (cplus_language_data): Likewise.
7619 (asm_language_data): Likewise.
7620 (minimal_language_data): Likewise.
7621 * d-lang.c (d_language_data): Likewise.
7622 (d_language::value_print_inner): New member function.
7623 * f-lang.c (f_language_data): Delete la_value_print_inner
7624 initializer.
7625 (f_language::value_print_inner): New member function.
7626 * f-lang.h (f_value_print_innner): Rename to...
7627 (f_value_print_inner): ...this (note spelling of 'inner').
7628 * f-valprint.c (f_value_print_innner): Rename to...
7629 (f_value_print_inner): ...this (note spelling of 'inner').
7630 * go-lang.c (go_language_data): Delete la_value_print_inner
7631 initializer.
7632 (go_language::value_print_inner): New member function.
7633 * language.c (language_defn::value_print_inner): Define new member
7634 function.
7635 (unk_lang_value_print_inner): Delete.
7636 (unknown_language_data): Delete la_value_print_inner initializer.
7637 (unknown_language::value_print_inner): New member function.
7638 (auto_language_data): Delete la_value_print_inner initializer.
7639 (auto_language::value_print_inner): New member function.
7640 * language.h (language_data): Delete la_value_print_inner field.
7641 (language_defn::value_print_inner): Delcare new member function.
7642 * m2-lang.c (m2_language_data): Delete la_value_print_inner
7643 initializer.
7644 (m2_language::value_print_inner): New member function.
7645 * objc-lang.c (objc_language_data): Delete la_value_print_inner
7646 initializer.
7647 * opencl-lang.c (opencl_language_data): Likewise.
7648 * p-lang.c (pascal_language_data): Likewise.
7649 (pascal_language::value_print_inner): New member function.
7650 * rust-lang.c (rust_language_data): Delete la_value_print_inner
7651 initializer.
7652 (rust_language::value_print_inner): New member function.
7653 * valprint.c (do_val_print): Update call to value_print_inner.
7654
a1d1fa3e
AB
76552020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7656
7657 * ada-lang.c (ada_language_data): Delete la_value_print
7658 initializer.
7659 (ada_language::value_print): New member function.
7660 * c-lang.c (c_language_data): Delete la_value_print initializer.
7661 (cplus_language_data): Likewise.
7662 (asm_language_data): Likewise.
7663 (minimal_language_data): Likewise.
7664 * d-lang.c (d_language_data): Likewise.
7665 * f-lang.c (f_language_data): Likewise.
7666 * go-lang.c (go_language_data): Likewise.
7667 * language.c (unk_lang_value_print): Delete.
7668 (language_defn::value_print): Define new member function.
7669 (unknown_language_data): Delete la_value_print initializer.
7670 (unknown_language::value_print): New member function.
7671 (auto_language_data): Delete la_value_print initializer.
7672 (auto_language::value_print): New member function.
7673 * language.h (language_data): Delete la_value_print field.
7674 (language_defn::value_print): Declare new member function.
7675 (LA_VALUE_PRINT): Update call to value_print.
7676 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
7677 * objc-lang.c (objc_language_data): Likewise.
7678 * opencl-lang.c (opencl_language_data): Likewise.
7679 * p-lang.c (pascal_language_data): Likewise.
7680 (pascal_language::value_print): New member function.
7681 * rust-lang.c (rust_language_data): Delete la_value_print
7682 initializer.
7683
f16a9f57
AB
76842020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7685
7686 * ada-lang.c (ada_watch_location_expression): Rename to
7687 ada_language::watch_location_expression.
7688 (ada_language_data): Delete la_watch_location_expression
7689 initializer.
7690 (ada_language::watch_location_expression): New member function,
7691 implementation from ada_watch_location_expression.
7692 * breakpoint.c (watch_command_1): Update call to
7693 watch_location_expression.
7694 * c-lang.c (c_watch_location_expression): Rename to
7695 language_defn::watch_location_expression.
7696 (c_language_data): Delete la_watch_location_expression
7697 initializer.
7698 (cplus_language_data): Likewise.
7699 (asm_language_data): Likewise.
7700 (minimal_language_data): Likewise.
7701 * c-lang.h (c_watch_location_expression): Delete declaration.
7702 * d-lang.c (d_language_data): Delete la_watch_location_expression
7703 initializer.
7704 * f-lang.c (f_language_data): Likewise.
7705 * go-lang.c (go_language_data): Likewise.
7706 * language.c (language_defn::watch_location_expression): Member
7707 function implementation from c_watch_location_expression.
7708 (unknown_language_data): Delete la_watch_location_expression
7709 initializer.
7710 (auto_language_data): Likewise.
7711 * language.h (language_data): Delete la_watch_location_expression
7712 field.
7713 (language_defn::watch_location_expression): Declare new member
7714 function.
7715 * m2-lang.c (m2_language_data): Delete
7716 la_watch_location_expression initializer.
7717 * objc-lang.c (objc_language_data): Likewise.
7718 * opencl-lang.c (opencl_language_data): Likewise.
7719 * p-lang.c (pascal_language_data): Likewise.
7720 * rust-lang.c (rust_watch_location_expression): Rename to
7721 rust_language::watch_location_expression.
7722 (rust_language_data): Delete la_watch_location_expression
7723 initializer.
7724 (rust_language::watch_location_expression): New member function,
7725 implementation from rust_watch_location_expression.
7726
7e56227d
AB
77272020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7728
7729 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
7730 ada_language::collect_symbol_completion_matches.
7731 (ada_language_data): Delete la_collect_symbol_completion_matches
7732 initializer.
7733 (ada_language::collect_symbol_completion_matches): New member
7734 function, implementation from
7735 ada_collect_symbol_completion_matches.
7736 * c-lang.c (c_language_data): Delete
7737 la_collect_symbol_completion_matches initializer.
7738 (cplus_language_data): Likewise.
7739 (asm_language_data): Likewise.
7740 (minimal_language_data): Likewise.
7741 * d-lang.c (d_language_data): Likewise.
7742 * f-lang.c (f_collect_symbol_completion_matches): Rename to
7743 f_language::collect_symbol_completion_matches.
7744 (f_language_data): Delete la_collect_symbol_completion_matches
7745 initializer.
7746 (f_language::collect_symbol_completion_matches) New member
7747 function, implementation from f_collect_symbol_completion_matches.
7748 * go-lang.c (go_language_data): Delete
7749 la_collect_symbol_completion_matches initializer.
7750 * language.c (unknown_language_data): Likewise.
7751 (auto_language_data): Likewise.
7752 * language.h (language_data): Delete
7753 la_collect_symbol_completion_matches field.
7754 (language_defn::collect_symbol_completion_matches): New member
7755 function.
7756 * m2-lang.c (m2_language_data): Delete
7757 la_collect_symbol_completion_matches initializer.
7758 * objc-lang.c (objc_language_data): Likewise.
7759 * opencl-lang.c (opencl_language_data): Likewise.
7760 * p-lang.c (pascal_language_data): Likewise.
7761 * rust-lang.c (rust_language_data): Likewise.
7762 * symtab.c (default_collect_symbol_completion_matches): Delete.
7763 (collect_symbol_completion_matches): Update call to
7764 collect_symbol_completion_matches.
7765 (collect_symbol_completion_matches_type): Likewise.
7766 * symtab.h (default_collect_symbol_completion_matches): Delete
7767 declaration.
7768
53fc67f8
AB
77692020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7770
7771 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
7772 (ada_language_data): Delete la_word_break_characters initializer.
7773 (ada_language::word_break_characters): New member function.
7774 * c-lang.c (c_language_data): Delete la_word_break_characters
7775 initializer.
7776 (cplus_language_data): Likewise.
7777 (asm_language_data): Likewise.
7778 (minimal_language_data): Likewise.
7779 * completer.c: Update global comment.
7780 (advance_to_expression_complete_word_point): Update call to
7781 word_break_characters.
7782 (complete_files_symbols): Likewise.
7783 (complete_line_internal_1): Likewise.
7784 (default_completer_handle_brkchars): Likewise.
7785 (skip_quoted_chars): Likewise.
7786 * d-lang.c (d_language_data): Delete la_word_break_characters
7787 initializer.
7788 * f-lang.c (f_word_break_characters): Delete.
7789 (f_language_data): Delete la_word_break_characters initializer.
7790 (f_language::word_break_characters): New member function.
7791 * go-lang.c (go_language_data): Delete la_word_break_characters
7792 initializer.
7793 * language.c (unknown_language_data): Likewise.
7794 (auto_language_data): Likewise.
7795 * language.h (default_word_break_characters): Move declaration to
7796 earlier in the file.
7797 (language_data): Delete la_word_break_characters field.
7798 (language_defn::word_break_characters): New member function.
7799 * m2-lang.c (m2_language_data): Delete la_word_break_characters
7800 initializer.
7801 * objc-lang.c (objc_language_data): Likewise.
7802 * opencl-lang.c (opencl_language_data): Likewise.
7803 * p-lang.c (pascal_language_data): Likewise.
7804 * rust-lang.c (rust_language_data): Likewise.
7805
c9debfb9
AB
78062020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7807
7808 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
7809 (ada_language_data): Delete la_get_symbol_name_matcher
7810 initializer.
7811 (language_defn::get_symbol_name_matcher_inner): New member
7812 function.
7813 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
7814 initializer.
7815 (cplus_language_data): Likewise.
7816 (cplus_language::get_symbol_name_matcher_inner): New member
7817 function.
7818 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
7819 (minimal_language_data): Likewise.
7820 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
7821 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
7822 initializer.
7823 * dictionary.c (iter_match_first_hashed): Update call to
7824 get_symbol_name_matcher.
7825 (iter_match_next_hashed): Likewise.
7826 (iter_match_next_linear): Likewise.
7827 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
7828 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
7829 initializer.
7830 (f_language::get_symbol_name_matcher_inner): New member function.
7831 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
7832 initializer.
7833 * language.c (default_symbol_name_matcher): Update header comment,
7834 make static.
7835 (language_defn::get_symbol_name_matcher): New definition.
7836 (language_defn::get_symbol_name_matcher_inner): Likewise.
7837 (get_symbol_name_matcher): Delete.
7838 (unknown_language_data): Delete la_get_symbol_name_matcher
7839 initializer.
7840 (auto_language_data): Likewise.
7841 * language.h (language_data): Delete la_get_symbol_name_matcher
7842 field.
7843 (language_defn::get_symbol_name_matcher): New member function.
7844 (language_defn::get_symbol_name_matcher_inner): Likewise.
7845 (default_symbol_name_matcher): Delete declaration.
7846 * linespec.c (find_methods): Update call to
7847 get_symbol_name_matcher.
7848 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
7849 initializer.
7850 * minsyms.c (lookup_minimal_symbol): Update call to
7851 get_symbol_name_matcher.
7852 (iterate_over_minimal_symbols): Likewise.
7853 * objc-lang.c (objc_language_data): Delete
7854 la_get_symbol_name_matcher initializer.
7855 * opencl-lang.c (opencl_language_data): Likewise.
7856 * p-lang.c (pascal_language_data): Likewise.
7857 * psymtab.c (psymbol_name_matches): Update call to
7858 get_symbol_name_matcher.
7859 * rust-lang.c (rust_language_data): Delete
7860 la_get_symbol_name_matcher initializer.
7861 * symtab.c (symbol_matches_search_name): Update call to
7862 get_symbol_name_matcher.
7863 (compare_symbol_name): Likewise.
7864
9a49ad8c
AB
78652020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7866
7867 * ada-lang.c (ada_language_data): Delete la_compute_program
7868 initializer.
7869 * c-lang.c (c_language_data): Likewise.
7870 (c_language::compute_program): New member function.
7871 (cplus_language_data): Delete la_compute_program initializer.
7872 (cplus_language::compute_program): New member function.
7873 (asm_language_data): Delete la_compute_program initializer.
7874 (minimal_language_data): Likewise.
7875 * c-lang.h (c_compute_program): Update comment.
7876 (cplus_compute_program): Likewise.
7877 * compile/compile-c-support.c (c_compute_program): Likewise.
7878 (cplus_compute_program): Likewise.
7879 * compile/compile.c (compile_to_object): Update call to
7880 la_compute_program.
7881 * d-lang.c (d_language_data): Delete la_compute_program
7882 initializer.
7883 * f-lang.c (f_language_data): Likewise.
7884 * go-lang.c (go_language_data): Likewise.
7885 * language.c (unknown_language_data): Likewise.
7886 (auto_language_data): Likewise.
7887 * language.h (language_data): Delete la_compute_program field.
7888 (language_defn::compute_program): New member function.
7889 * m2-lang.c (m2_language_data): Delete la_compute_program
7890 initializer.
7891 * objc-lang.c (objc_language_data): Likewise.
7892 * opencl-lang.c (opencl_language_data): Likewise.
7893 * p-lang.c (pascal_language_data): Likewise.
7894 * rust-lang.c (rust_language_data): Likewise.
7895
eff93b4d
AB
78962020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7897
7898 * ada-lang.c (ada_language_data) Delete
7899 la_class_name_from_physname initializer.
7900 * c-lang.c (c_language_data): Likewise.
7901 (cplus_language_data): Likewise.
7902 (cplus_language::class_name_from_physname): New member function.
7903 (asm_language_data): Delete la_class_name_from_physname
7904 initializer.
7905 (minimal_language_data): Likewise.
7906 * d-lang.c (d_language_data): Likewise.
7907 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
7908 method on language_defn class.
7909 (guess_full_die_structure_name): Likewise.
7910 * f-lang.c (f_language_data): Delete la_class_name_from_physname
7911 initializer.
7912 * go-lang.c (go_language_data): Likewise.
7913 * language.c (language_class_name_from_physname): Delete.
7914 (unk_lang_class_name): Delete.
7915 (unknown_language_data): Delete la_class_name_from_physname
7916 initializer.
7917 (auto_language_data): Likewise.
7918 * language.h (language_data): Delete la_class_name_from_physname
7919 field.
7920 (language_defn::class_name_from_physname): New function.
7921 (language_class_name_from_physname): Delete declaration.
7922 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
7923 initializer.
7924 * objc-lang.c (objc_language_data): Likewise.
7925 * opencl-lang.c (opencl_language_data): Likewise.
7926 * p-lang.c (pascal_language_data): Likewise.
7927 * rust-lang.c (rust_language_data): Likewise.
7928
de543742
TT
79292020-06-16 Tom Tromey <tom@tromey.com>
7930
7931 * tui/tui-data.h (STATUS_NAME): New macro.
7932 * tui/tui-layout.c (tui_remove_some_windows)
7933 (initialize_known_windows, tui_register_window)
7934 (tui_layout_split::remove_windows, initialize_layouts)
7935 (tui_new_layout_command): Don't use hard-coded window names.
7936
a350efd4
TT
79372020-06-16 Tom Tromey <tom@tromey.com>
7938
7939 PR tui/25348:
7940 * tui/tui.c (tui_ensure_readline_initialized): Rename from
7941 tui_initialize_readline. Only run once. Call rl_initialize.
7942 * tui/tui.h (tui_ensure_readline_initialized): Rename from
7943 tui_initialize_readline.
7944 * tui/tui-io.c (tui_setup_io): Call
7945 tui_ensure_readline_initialized.
7946 * tui/tui-interp.c (tui_interp::init): Update.
7947
39ec0490
TT
79482020-06-16 Tom Tromey <tom@tromey.com>
7949
7950 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
7951 Also preserve the status window.
7952
d2d1ea20
TT
79532020-06-16 Tom Tromey <tom@tromey.com>
7954
7955 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
7956 where m_window==nullptr.
7957
66920317
TT
79582020-06-15 Tom Tromey <tromey@adacore.com>
7959
7960 * windows-nat.c (windows_nat::handle_output_debug_string):
7961 Update.
7962 (windows_nat::handle_ms_vc_exception): Update.
7963 * target.h (target_read_string): Change API.
7964 * target.c (target_read_string): Change API.
7965 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
7966 Update.
7967 * solib-frv.c (frv_current_sos): Update.
7968 * solib-dsbt.c (dsbt_current_sos): Update.
7969 * solib-darwin.c (darwin_current_sos): Update.
7970 * linux-thread-db.c (inferior_has_bug): Update.
7971 * expprint.c (print_subexp_standard): Update.
7972 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
7973 (ada_exception_message_1): Update.
7974
a5d871dd
TT
79752020-06-15 Tom Tromey <tromey@adacore.com>
7976
7977 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
7978
670e35fa
TT
79792020-06-15 Tom Tromey <tromey@adacore.com>
7980
7981 * valprint.c (read_string): Update comment.
7982 * target.c (MIN): Remove.
7983 (target_read_string): Rewrite.
7984
f5272a3b
TT
79852020-06-15 Tom Tromey <tromey@adacore.com>
7986
7987 * corefile.c (read_memory_string): Remove.
7988 * ada-valprint.c (ada_value_print_ptr): Update.
7989 * ada-lang.h (ada_tag_name): Change return type.
7990 * ada-lang.c (type_from_tag): Update.
7991 (ada_tag_name_from_tsd): Change return type. Use
7992 target_read_string.
7993 (ada_tag_name): Likewise.
7994 * gdbcore.h (read_memory_string): Don't declare.
7995
2c074f49
HD
79962020-06-14 Hannes Domani <ssbssa@yahoo.de>
7997
7998 * symtab.c (rbreak_command): Ignore Windows drive colon.
7999
6a17d503
SM
80002020-06-12 Simon Marchi <simon.marchi@efficios.com>
8001
8002 * NEWS: Mention removed GDBserver host support.
8003
453c733f
NC
80042020-06-12 Nelson Chu <nelson.chu@sifive.com>
8005
8006 * features/riscv/rebuild-csr-xml.sh: Updated.
8007
2b4e6a3f
TT
80082020-06-11 Tom Tromey <tom@tromey.com>
8009
8010 PR gdb/18318:
8011 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
8012
4412332f
JG
80132020-06-09 Jonny Grant <jg@jguk.org>
80142020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
8015
8016 * main.c (captured_main_1): Don't print new line after help.
8017 (print_gdb_help): add mailing list and IRC channel information
8018 to --help. Add new lines between items in the footer. Remove
8019 quotes around bug url.
8020
2f33032a
KS
80212020-06-11 Keith Seitz <keiths@redhat.com>
8022
8023 PR gdb/21356
8024 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
8025 Resolve typedefs for type length calculations.
8026
7ab96794
TV
80272020-06-10 Tom de Vries <tdevries@suse.de>
8028
8029 PR ada/24713
8030 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
8031 (write_psymbols): Enable .gdb_index for ada.
8032 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
8033 ada.
8034
e5f3ece2
TV
80352020-06-10 Tom de Vries <tdevries@suse.de>
8036
8037 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
8038 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
8039 namei" instead of "const char *name" argument.
8040 (dw2_map_matching_symbols): Use "offset_type namei" variant of
8041 dw2_symtab_iter_init.
8042
940da03e
SM
80432020-06-08 Simon Marchi <simon.marchi@efficios.com>
8044
8045 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
8046 to use type::field and field::type instead.
8047
b6cdac4b
SM
80482020-06-08 Simon Marchi <simon.marchi@efficios.com>
8049
8050 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
8051 to use field::type instead.
8052
5d14b6e5
SM
80532020-06-08 Simon Marchi <simon.marchi@efficios.com>
8054
8055 * gdbtypes.h (struct field) <type, set_type>: New methods.
8056 Rename `type` field to...
8057 <m_type>: ... this. Change references throughout to use type or
8058 set_type methods.
8059 (FIELD_TYPE): Use field::type. Change call sites that modify
8060 the field's type to use field::set_type instead.
8061
3d967001
SM
80622020-06-08 Simon Marchi <simon.marchi@efficios.com>
8063
8064 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
8065 to use type::index_type instead.
8066
262abc0d
SM
80672020-06-08 Simon Marchi <simon.marchi@efficios.com>
8068
8069 * gdbtypes.h (struct type) <index_type, set_index_type>: New
8070 methods.
8071 (TYPE_INDEX_TYPE): Use type::index_type.
8072 * gdbtypes.c (create_array_type_with_stride): Likewise.
8073
82836c92
TT
80742020-06-07 Tom Tromey <tom@tromey.com>
8075
8076 * valprint.c (generic_val_print_float): Remove "embedded_offset"
8077 parameter.
8078 (generic_value_print): Update.
8079
940dace9
AB
80802020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8081
8082 Revert commit 982a38f60b0.
8083 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
8084
982a38f6
AB
80852020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8086
8087 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
8088 avoid use after free.
8089
82f06518
TV
80902020-06-05 Tom de Vries <tdevries@suse.de>
8091
8092 * NEWS: Fix typos.
8093
f8c41851
SM
80942020-06-04 Simon Marchi <simon.marchi@efficios.com>
8095
8096 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
8097 the per_bfd object.
8098 (dwarf2_read_debug_names): Likewise.
8099 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
8100 object when re-using a per_bfd object with an index.
8101
f9b5d5ea
TV
81022020-06-03 Tom de Vries <tdevries@suse.de>
8103
8104 PR symtab/26046
8105 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
8106 children for C++.
8107 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
8108 DW_TAG_subprogram.
8109
f6eee2d0
AB
81102020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8111
8112 * ada-lang.c (ada_language_data): Delete skip_trampoline
8113 initializer.
8114 * c-lang.c (c_language_data): Likewise.
8115 (cplus_language_data): Likewise.
8116 (cplus_language::skip_trampoline): New member function.
8117 (asm_language_data): Delete skip_trampoline initializer.
8118 (minimal_language_data): Likewise.
8119 * d-lang.c (d_language_data): Likewise.
8120 * f-lang.c (f_language_data): Likewise.
8121 * go-lang.c (go_language_data): Likewise.
8122 * language.c (unk_lang_trampoline): Delete function.
8123 (skip_language_trampoline): Update.
8124 (unknown_language_data): Delete skip_trampoline initializer.
8125 (auto_language_data): Likewise.
8126 * language.h (language_data): Delete skip_trampoline field.
8127 (language_defn::skip_trampoline): New function.
8128 * m2-lang.c (m2_language_data): Delete skip_trampoline
8129 initializer.
8130 * objc-lang.c (objc_skip_trampoline): Delete function, move
8131 implementation to objc_language::skip_trampoline.
8132 (objc_language_data): Delete skip_trampoline initializer.
8133 (objc_language::skip_trampoline): New member function with
8134 implementation from objc_skip_trampoline.
8135 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
8136 initializer.
8137 * p-lang.c (pascal_language_data): Likewise.
8138 * rust-lang.c (rust_language_data): Likewise.
8139
0a50df5d
AB
81402020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8141
8142 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
8143 (ada_language::demangle): New member function.
8144 * c-lang.c (c_language_data): Delete la_demangle initializer.
8145 (cplus_language_data): Delete la_demangle initializer.
8146 (cplus_language::demangle): New member function.
8147 (asm_language_data): Delete la_demangle initializer.
8148 (minimal_language_data): Delete la_demangle initializer.
8149 * d-lang.c (d_language_data): Delete la_demangle initializer.
8150 (d_language::demangle): New member function.
8151 * f-lang.c (f_language_data): Delete la_demangle initializer.
8152 (f_language::demangle): New member function.
8153 * go-lang.c (go_language_data): Delete la_demangle initializer.
8154 (go_language::demangle): New member function.
8155 * language.c (language_demangle): Update.
8156 (unk_lang_demangle): Delete.
8157 (unknown_language_data): Delete la_demangle initializer.
8158 (unknown_language::demangle): New member function.
8159 (auto_language_data): Delete la_demangle initializer.
8160 (auto_language::demangle): New member function.
8161 * language.h (language_data): Delete la_demangle field.
8162 (language_defn::demangle): New function.
8163 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
8164 * objc-lang.c (objc_language_data): Delete la_demangle
8165 initializer.
8166 (objc_language::demangle): New member function.
8167 * opencl-lang.c (opencl_language_data): Delete la_demangle
8168 initializer.
8169 * p-lang.c (pascal_language_data): Likewise.
8170 * rust-lang.c (rust_language_data): Likewise.
8171 (rust_language::demangle): New member function.
8172
fbfb0a46
AB
81732020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8174
8175 * ada-lang.c (ada_language_data): Delete la_print_type
8176 initializer.
8177 (ada_language::print_type): New member function.
8178 * c-lang.c (c_language_data): Delete la_print_type initializer.
8179 (c_language::print_type): New member function.
8180 (cplus_language_data): Delete la_print_type initializer.
8181 (cplus_language::print_type): New member function.
8182 (asm_language_data): Delete la_print_type initializer.
8183 (asm_language::print_type): New member function.
8184 (minimal_language_data): Delete la_print_type initializer.
8185 (minimal_language::print_type): New member function.
8186 * d-lang.c (d_language_data): Delete la_print_type initializer.
8187 (d_language::print_type): New member function.
8188 * f-lang.c (f_language_data): Delete la_print_type initializer.
8189 (f_language::print_type): New member function.
8190 * go-lang.c (go_language_data): Delete la_print_type initializer.
8191 (go_language::print_type): New member function.
8192 * language.c (unk_lang_print_type): Delete.
8193 (unknown_language_data): Delete la_print_type initializer.
8194 (unknown_language::print_type): New member function.
8195 (auto_language_data): Delete la_print_type initializer.
8196 (auto_language::print_type): New member function.
8197 * language.h (language_data): Delete la_print_type field.
8198 (language_defn::print_type): New function.
8199 (LA_PRINT_TYPE): Update.
8200 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
8201 (m2_language::print_type): New member function.
8202 * objc-lang.c (objc_language_data): Delete la_print_type
8203 initializer.
8204 (objc_language::print_type): New member function.
8205 * opencl-lang.c (opencl_print_type): Delete, implementation moved
8206 to opencl_language::print_type.
8207 (opencl_language_data): Delete la_print_type initializer.
8208 (opencl_language::print_type): New member function, implementation
8209 from opencl_print_type.
8210 * p-lang.c (pascal_language_data): Delete la_print_type
8211 initializer.
8212 (pascal_language::print_type): New member function.
8213 * rust-lang.c (rust_print_type): Delete, implementation moved to
8214 rust_language::print_type.
8215 (rust_language_data): Delete la_print_type initializer.
8216 (rust_language::print_type): New member function, implementation
8217 from rust_print_type.
8218
6f827019
AB
82192020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8220
8221 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
8222 implementation moves to...
8223 (ada_language::sniff_from_mangled_name): ...here. Update return
8224 type.
8225 (ada_language_data): Delete la_sniff_from_mangled_name
8226 initializer.
8227 * c-lang.c (c_language_data): Likewise.
8228 (cplus_language_data): Likewise.
8229 (cplus_language::sniff_from_mangled_name): New member function,
8230 implementation taken from gdb_sniff_from_mangled_name.
8231 (asm_language_data): Delete la_sniff_from_mangled_name
8232 initializer.
8233 (minimal_language_data): Likewise.
8234 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
8235 implementation moves to cplus_language::sniff_from_mangled_name.
8236 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
8237 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
8238 moves to...
8239 (d_language::sniff_from_mangled_name): ...here.
8240 (d_language_data): Delete la_sniff_from_mangled_name initializer.
8241 * f-lang.c (f_language_data): Likewise.
8242 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
8243 moves to...
8244 (go_language::sniff_from_mangled_name): ...here.
8245 (go_language_data): Delete la_sniff_from_mangled_name initializer.
8246 * language.c (language_sniff_from_mangled_name): Delete.
8247 (unknown_language_data): Delete la_sniff_from_mangled_name
8248 initializer.
8249 (auto_language_data): Likewise.
8250 * language.h (language_data): Delete la_sniff_from_mangled_name
8251 field.
8252 (language_defn::sniff_from_mangled_name): New function.
8253 (language_sniff_from_mangled_name): Delete declaration.
8254 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
8255 field.
8256 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
8257 implementation moves to...
8258 (objc_language::sniff_from_mangled_name): ...here.
8259 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
8260 * opencl-lang.c (opencl_language_data): Likewise.
8261 * p-lang.c (pascal_language_data): Likewise.
8262 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
8263 implementation moves to...
8264 (rust_language::sniff_from_mangled_name): ...here.
8265 (rust_language_data): Delete la_sniff_from_mangled_name
8266 initializer.
8267 * symtab.c (symbol_find_demangled_name): Call
8268 sniff_from_mangled_name member function.
8269
fb8006fd
AB
82702020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8271
8272 * ada-lang.c (ada_language_data): Delete la_search_name_hash
8273 initializer.
8274 * c-lang.c (c_language_data): Likewise.
8275 (cplus_language_data): Likewise.
8276 (cplus_language::search_name_hash): New member function.
8277 (asm_language_data): Delete la_search_name_hash initializer.
8278 (minimal_language_data): Likewise.
8279 * d-lang.c (d_language_data): Likewise.
8280 * dictionary.c (default_search_name_hash): Rename to...
8281 (language_defn::search_name_hash): ...this.
8282 * f-lang.c (f_language_data): Likewise.
8283 (f_language::search_name_hash): New member function.
8284 * go-lang.c (go_language_data): Delete la_search_name_hash
8285 initializer.
8286 * language.c (unknown_language_data): Likewise.
8287 (auto_language_data): Likewise.
8288 * language.h (struct language_data): Delete la_search_name_hash
8289 field.
8290 (language_defn::search_name_hash): Declare new member function.
8291 (default_search_name_hash): Delete declaration.
8292 * m2-lang.c (m2_language_data): Delete la_search_name_hash
8293 initializer.
8294 * objc-lang.c (objc_language_data): Likewise.
8295 * opencl-lang.c (opencl_language_data): Likewise.
8296 * p-lang.c (pascal_language_data): Likewise.
8297 * rust-lang.c (rust_language_data): Likewise.
8298 * symtab.c (search_name_hash): Update call.
8299
8e25bafe
AB
83002020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8301
8302 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
8303 initializer.
8304 * c-lang.c (class compile_instance): Declare.
8305 (c_language_data): Delete la_get_compile_instance initializer.
8306 (c_language::get_compile_instance): New member function.
8307 (cplus_language_data): Delete la_get_compile_instance initializer.
8308 (cplus_language::get_compile_instance): New member function.
8309 (asm_language_data): Delete la_get_compile_instance initializer.
8310 (minimal_language_data): Likewise.
8311 * c-lang.h (c_get_compile_context): Update comment.
8312 (cplus_get_compile_context): Update comment.
8313 * compile/compile.c (compile_to_object): Update calls, don't rely
8314 on function pointer being NULL.
8315 * d-lang.c (d_language_data): Delete la_get_compile_instance
8316 initializer.
8317 * f-lang.c (f_language_data): Likewise.
8318 * go-lang.c (go_language_data): Likewise.
8319 * language.c (unknown_language_data): Likewise.
8320 (auto_language_data): Likewise.
8321 * language.h (language_data): Delete la_get_compile_instance field.
8322 (language_defn::get_compile_instance): New member function.
8323 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
8324 initializer.
8325 * objc-lang.c (objc_language_data): Likewise.
8326 * opencl-lang.c (opencl_language_data): Likewise.
8327 * p-lang.c (pascal_language_data): Likewise.
8328 * rust-lang.c (rust_language_data): Likewise.
8329
4009ee92
AB
83302020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8331
8332 * ada-lang.c (ada_add_all_symbols): Update comment.
8333 (ada_iterate_over_symbols): Delete, move implementation to...
8334 (ada_language::iterate_over_symbols): ...here, a new member
8335 function, rewrite to use range based for loop.
8336 (ada_language_data): Delete la_iterate_over_symbols initializer.
8337 * c-lang.c (c_language_data): Likewise.
8338 (cplus_language_data): Likewise.
8339 (asm_language_data): Likewise.
8340 (minimal_language_data): Likewise.
8341 * d-lang.c (d_language_data): Likewise.
8342 * f-lang.c (f_language_data): Likewise.
8343 * go-lang.c (go_language_data): Likewise.
8344 * language.c (unknown_language_data): Likewise.
8345 (auto_language_data): Likewise.
8346 * language.h (language_data): Delete la_iterate_over_symbols field.
8347 (language_defn::iterate_over_symbols): New member function.
8348 (LA_ITERATE_OVER_SYMBOLS): Update.
8349 * linespec.c (iterate_over_all_matching_symtabs): Update.
8350 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
8351 initializer.
8352 * objc-lang.c (objc_language_data): Likewise.
8353 * opencl-lang.c (opencl_language_data): Likewise.
8354 * p-lang.c (pascal_language_data): Likewise.
8355 * rust-lang.c (rust_language_data): Likewise.
8356
54f4ca46
AB
83572020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8358
8359 * ada-lang.c (ada_language_data): Delete
8360 la_lookup_transparent_type initializer.
8361 * c-lang.c (c_language_data): Likewise.
8362 (cplus_language_data): Likewise.
8363 (cplus_language::lookup_transparent_type): New member function.
8364 (asm_language_data): Delete la_lookup_transparent_type
8365 initializer.
8366 (minimal_language_data): Likewise.
8367 * d-lang.c (d_language_data): Likewise.
8368 * f-lang.c (f_language_data): Likewise.
8369 * go-lang.c (go_language_data): Likewise.
8370 * language.c (unknown_language_data): Likewise.
8371 (auto_language_data): Likewise.
8372 * language.h (struct language_data): Delete
8373 la_lookup_transparent_type field.
8374 (language_defn::lookup_transparent_type): New member function.
8375 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
8376 initializer.
8377 * objc-lang.c (objc_language_data): Likewise.
8378 * opencl-lang.c (opencl_language_data): Likewise.
8379 * p-lang.c (pascal_language_data): Likewise.
8380 * rust-lang.c (rust_language_data): Likewise.
8381 * symtab.c (symbol_matches_domain): Update call.
8382
1fb314aa
AB
83832020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8384
8385 * ada-lang.c (ada_language_arch_info): Delete function, move
8386 implementation to...
8387 (ada_language::language_arch_info): ...here, a new member
8388 function.
8389 (ada_language_data): Delete la_language_arch_info.
8390 * c-lang.c (c_language_data): Likewise.
8391 (c_language::language_arch_info): New member function.
8392 (cplus_language_arch_info): Delete function, move
8393 implementation to...
8394 (cplus_language::language_arch_info): ...here, a new member
8395 function.
8396 (cplus_language_data): Delete la_language_arch_info.
8397 (asm_language_data): Likewise.
8398 (asm_language::language_arch_info): New member function.
8399 (minimal_language_data): Delete la_language_arch_info.
8400 (minimal_language::language_arch_info): New member function.
8401 * d-lang.c (d_language_arch_info): Delete function, move
8402 implementation to...
8403 (d_language::language_arch_info): ...here, a new member
8404 function.
8405 (d_language_data): Delete la_language_arch_info.
8406 * f-lang.c (f_language_arch_info): Delete function, move
8407 implementation to...
8408 (f_language::language_arch_info): ...here, a new member
8409 function.
8410 (f_language_data): Delete la_language_arch_info.
8411 * go-lang.c (go_language_arch_info): Delete function, move
8412 implementation to...
8413 (go_language::language_arch_info): ...here, a new member
8414 function.
8415 (go_language_data): Delete la_language_arch_info.
8416 * language.c (unknown_language_data): Likewise.
8417 (unknown_language::language_arch_info): New member function.
8418 (auto_language_data): Delete la_language_arch_info.
8419 (auto_language::language_arch_info): New member function.
8420 (language_gdbarch_post_init): Update call to
8421 la_language_arch_info.
8422 * language.h (language_data): Delete la_language_arch_info
8423 function pointer.
8424 (language_defn::language_arch_info): New function.
8425 * m2-lang.c (m2_language_arch_info): Delete function, move
8426 implementation to...
8427 (m2_language::language_arch_info): ...here, a new member
8428 function.
8429 (m2_language_data): Delete la_language_arch_info.
8430 * objc-lang.c (objc_language_arch_info): Delete function, move
8431 implementation to...
8432 (objc_language::language_arch_info): ...here, a new member
8433 function.
8434 (objc_language_data): Delete la_language_arch_info.
8435 * opencl-lang.c (opencl_language_arch_info): Delete function, move
8436 implementation to...
8437 (opencl_language::language_arch_info): ...here, a new member
8438 function.
8439 (opencl_language_data): Delete la_language_arch_info.
8440 * p-lang.c (pascal_language_arch_info): Delete function, move
8441 implementation to...
8442 (pascal_language::language_arch_info): ...here, a new member
8443 function.
8444 (pascal_language_data): Delete la_language_arch_info.
8445 * rust-lang.c (rust_language_arch_info): Delete function, move
8446 implementation to...
8447 (rust_language::language_arch_info): ...here, a new member
8448 function.
8449 (rust_language_data): Delete la_language_arch_info.
8450
48448202
AB
84512020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8452
8453 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
8454 initializer.
8455 * c-lang.c (c_language_data): Likewise.
8456 (cplus_language_data): Likewise.
8457 (cplus_language::pass_by_reference_info): New method.
8458 (asm_language_data): Delete la_pass_by_reference initializer.
8459 (minimal_language_data): Likewise.
8460 * cp-abi.c (cp_pass_by_reference): Remove use of
8461 default_pass_by_reference.
8462 * d-lang.c (d_language_data): Likewise.
8463 * f-lang.c (f_language_data): Likewise.
8464 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
8465 default_pass_by_reference.
8466 * go-lang.c (go_language_data): Likewise.
8467 * language.c (language_pass_by_reference): Update.
8468 (default_pass_by_reference): Delete.
8469 (unknown_language_data): Delete la_pass_by_reference
8470 initializer.
8471 (auto_language_data): Likewise.
8472 * language.h (struct language_data): Delete la_pass_by_reference
8473 field.
8474 (language_defn::pass_by_reference_info): New member function.
8475 (default_pass_by_reference): Delete declaration.
8476 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
8477 initializer.
8478 * objc-lang.c (objc_language_data): Likewise.
8479 * opencl-lang.c (opencl_language_data): Likewise.
8480 * p-lang.c (pascal_language_data): Likewise.
8481 * rust-lang.c (rust_language_data): Likewise.
8482
15e5fd35
AB
84832020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8484
8485 * ada-lang.c (ada_read_var_value): Delete function, move
8486 implementation to...
8487 (ada_language::read_var_value): ...here.
8488 (ada_language_data): Delete la_read_var_value initializer.
8489 * c-lang.c (c_language_data): Likewise.
8490 (cplus_language_data): Likewise.
8491 (minimal_language_data): Likewise.
8492 * d-lang.c (d_language_data): Likewise.
8493 * f-lang.c (f_language_data): Likewise.
8494 * findvar.c (default_read_var_value): Rename to...
8495 (language_defn::read_var_value): ...this.
8496 * findvar.c (read_var_value): Update header comment, and change to
8497 call member function instead of function pointer.
8498 * go-lang.c (go_language_data): Likewise.
8499 * language.c (unknown_language_data): Delete la_read_var_value
8500 initializer.
8501 (auto_language_data): Likewise.
8502 * language.h (struct language_data): Delete la_read_var_value
8503 field.
8504 (language_defn::read_var_value): New member function.
8505 (default_read_var_value): Delete declaration.
8506 * m2-lang.c (m2_language_data): Delete la_read_var_value
8507 initializer.
8508 * objc-lang.c (objc_language_data): Likewise.
8509 * opencl-lang.c (opencl_language_data): Likewise.
8510 * p-lang.c (pascal_language_data): Likewise.
8511 * rust-lang.c (rust_language_data): Likewise.
8512 * value.h (default_read_var_value): Delete declaration.
8513
5bd40f2a
AB
85142020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8515
8516 * ada-lang.c (ada_print_array_index): Delete function, move
8517 implementation to...
8518 (ada_language::print_array_index): ...here.
8519 (ada_language_data): Delete la_print_array_index initializer.
8520 * c-lang.c (c_language_data): Likewise.
8521 (cplus_language_data): Likewise.
8522 (minimal_language_data): Likewise.
8523 * d-lang.c (d_language_data): Likewise.
8524 * f-lang.c (f_language_data): Likewise.
8525 * go-lang.c (go_language_data): Likewise.
8526 * language.c (default_print_array_index): Delete function, move
8527 implementation to...
8528 (language_defn::print_array_index): ...here.
8529 (unknown_language_data): Delete la_print_array_index initializer.
8530 (auto_language_data): Likewise.
8531 * language.h (struct language_data): Delete la_print_array_index
8532 field.
8533 (language_defn::print_array_index): New member function.
8534 (LA_PRINT_ARRAY_INDEX): Update.
8535 (default_print_array_index): Delete declaration.
8536 * m2-lang.c (m2_language_data): Delete la_print_array_index
8537 initializer.
8538 * objc-lang.c (objc_language_data): Likewise.
8539 * opencl-lang.c (opencl_language_data): Likewise.
8540 * p-lang.c (pascal_language_data): Likewise.
8541 * rust-lang.c (rust_language_data): Likewise.
8542
0874fd07
AB
85432020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8544
8545 * gdb/ada-lang.c (ada_language_defn): Convert to...
8546 (ada_language_data): ...this.
8547 (class ada_language): New class.
8548 (ada_language_defn): New static global.
8549 * gdb/c-lang.c (c_language_defn): Convert to...
8550 (c_language_data): ...this.
8551 (class c_language): New class.
8552 (c_language_defn): New static global.
8553 (cplus_language_defn): Convert to...
8554 (cplus_language_data): ...this.
8555 (class cplus_language): New class.
8556 (cplus_language_defn): New static global.
8557 (asm_language_defn): Convert to...
8558 (asm_language_data): ...this.
8559 (class asm_language): New class.
8560 (asm_language_defn): New static global.
8561 (minimal_language_defn): Convert to...
8562 (minimal_language_data): ...this.
8563 (class minimal_language): New class.
8564 (minimal_language_defn): New static global.
8565 * gdb/d-lang.c (d_language_defn): Convert to...
8566 (d_language_data): ...this.
8567 (class d_language): New class.
8568 (d_language_defn): New static global.
8569 * gdb/f-lang.c (f_language_defn): Convert to...
8570 (f_language_data): ...this.
8571 (class f_language): New class.
8572 (f_language_defn): New static global.
8573 * gdb/go-lang.c (go_language_defn): Convert to...
8574 (go_language_data): ...this.
8575 (class go_language): New class.
8576 (go_language_defn): New static global.
8577 * gdb/language.c (unknown_language_defn): Remove declaration.
8578 (current_language): Initialize to nullptr, real initialization is
8579 moved to _initialize_language.
8580 (languages): Delete global.
8581 (language_defn::languages): Define.
8582 (set_language_command): Use language_defn::languages.
8583 (set_language): Likewise.
8584 (range_error): Likewise.
8585 (language_enum): Likewise.
8586 (language_def): Likewise.
8587 (add_set_language_command): Use language_def::languages for the
8588 language list, and language_def to lookup language pointers.
8589 (skip_language_trampoline): Use language_defn::languages.
8590 (unknown_language_defn): Convert to...
8591 (unknown_language_data): ...this.
8592 (class unknown_language): New class.
8593 (unknown_language_defn): New static global.
8594 (auto_language_defn): Convert to...
8595 (auto_language_data): ...this.
8596 (class auto_language): New class.
8597 (auto_language_defn): New static global.
8598 (language_gdbarch_post_init): Use language_defn::languages.
8599 (_initialize_language): Initialize current_language.
8600 * gdb/language.h (struct language_defn): Rename to...
8601 (struct language_data): ...this.
8602 (struct language_defn): New.
8603 (auto_language_defn): Delete.
8604 (unknown_language_defn): Delete.
8605 (minimal_language_defn): Delete.
8606 (ada_language_defn): Delete.
8607 (asm_language_defn): Delete.
8608 (c_language_defn): Delete.
8609 (cplus_language_defn): Delete.
8610 (d_language_defn): Delete.
8611 (f_language_defn): Delete.
8612 (go_language_defn): Delete.
8613 (m2_language_defn): Delete.
8614 (objc_language_defn): Delete.
8615 (opencl_language_defn): Delete.
8616 (pascal_language_defn): Delete.
8617 (rust_language_defn): Delete.
8618 * gdb/m2-lang.c (m2_language_defn): Convert to...
8619 (m2_language_data): ...this.
8620 (class m2_language): New class.
8621 (m2_language_defn): New static global.
8622 * gdb/objc-lang.c (objc_language_defn): Convert to...
8623 (objc_language_data): ...this.
8624 (class objc_language): New class.
8625 (objc_language_defn): New static global.
8626 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
8627 (opencl_language_data): ...this.
8628 (class opencl_language): New class.
8629 (opencl_language_defn): New static global.
8630 * gdb/p-lang.c (pascal_language_defn): Convert to...
8631 (pascal_language_data): ...this.
8632 (class pascal_language): New class.
8633 (pascal_language_defn): New static global.
8634 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
8635 language pointer, update comment format.
8636 * gdb/rust-lang.c (rust_language_defn): Convert to...
8637 (rust_language_data): ...this.
8638 (class rust_language): New class.
8639 (rust_language_defn): New static global.
8640
1313c56e
AB
86412020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
8642
8643 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
8644 member variable.
8645 <m_stmt_at_address>: New member variable.
8646 (lnp_state_machine::record_line): Don't record some lines, update
8647 tracking of is_stmt at the same address.
8648 (lnp_state_machine::lnp_state_machine): Initialise new member
8649 variables.
8650
b7ed9f3d
ST
86512020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
8652
8653 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
8654 "-include gnu-nat-mig.h".
8655 * gnu-nat-mig.h: New file.
8656 * gnu-nat.c: Include "gnu-nat-mig.h".
8657 (exc_server, msg_reply_server, notify_server,
8658 process_reply_server): Remove declarations.
8659
14a8ad62
ST
86602020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8661
8662 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
8663 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
8664 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
8665 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
8666 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
8667 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
8668 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
8669 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
8670 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
8671 to gnu_nat_target class.
8672 * gnu-nat.c: Likewise.
8673 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
8674 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
8675 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
8676 object.
8677 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
8678 instead of `gnu_target'.
8679
0af5e106
ST
86802020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8681
8682 * i386-gnu-tdep.c: Include "gdbcore.h"
8683 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
8684 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
8685 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
8686 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
8687 i386_gnu_sigcontext_addr): New functions
8688 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
8689 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
8690 tdep.
8691
078f2fc9
ST
86922020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8693
8694 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
8695 before fork_inferior call. Avoid calling it if target_is_pushed returns
8696 true.
8697
53dff92c
ST
86982020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8699
8700 * gnu-nat.h (gnu_target): New variable declaration.
8701 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
8702 gnu_target.
8703 * gnu-nat.c (gnu_target): New variable.
8704 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
8705 add_thread_silent, and add_thread calls.
8706 (gnu_nat_target::create_inferior): Pass gnu_target to
8707 add_thread_silent, thread_change_ptid call.
8708 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
8709 call.
8710
5a8b8627
ST
87112020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8712
8713 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
8714 (gnu_nat_target::find_memory_regions): Remove unused
8715 `old_address' variable.
8716
366f550a
ST
87172020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8718
8719 * gnu-nat.c: Include "gdbarch.h".
8720
f14871bf
ST
87212020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8722
8723 * reply_mig_hack.awk (Error return): Cast function through
8724 void *, to bypass compiler function call check.
8725
c6887cfb
ST
87262020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8727
8728 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
8729 $(srcdir)/reply_mig_hack.awk.
8730
6930bffe
ST
87312020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8732
8733 * gnu-nat.h (gnu_debug_flag): Set type to bool.
8734
112c22ed
JG
87352020-05-30 Jonny Grant <jg@jguk.org>
8736
8737 * configure.ac (ACX_BUGURL): change bug URL to https.
8738
f68f85b5
PA
87392020-05-30 Pedro Alves <palves@redhat.com>
8740
8741 * cp-support.c (replace_typedefs_template): New.
8742 (replace_typedefs_qualified_name): Handle
8743 DEMANGLE_COMPONENT_TEMPLATE.
8744
976ca316
SM
87452020-05-29 Simon Marchi <simon.marchi@efficios.com>
8746
8747 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
8748 dwarf2/index-cache.h, dwarf2/index-write.c,
8749 dwarf2/index-write.h, dwarf2/line-header.c,
8750 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
8751 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
8752 variables and fields from `dwarf2_per_objfile` to just
8753 `per_objfile` throughout.
8754
989ade05
SM
87552020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
8756
8757 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8758 <push_dwarf_reg_entry_value>: Add comment.
8759
c47bae85
KB
87602020-05-28 Kevin Buettner <kevinb@redhat.com>
8761 Keith Seitz <keiths@redhat.com>
8762
8763 * python/python.c (do_start_initialization): Call PyEval_SaveThread
8764 instead of PyEval_ReleaseLock.
8765 (class gdbpy_gil): Move to earlier in file.
8766 (finalize_python): Set gdb_python_initialized.
8767 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
8768 when not initialized.
8769
44486dcf
SM
87702020-05-28 Simon Marchi <simon.marchi@efficios.com>
8771
8772 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8773 <push_dwarf_reg_entry_value>: Remove assert. Override
8774 per_objfile with caller_per_objfile.
8775
f030440d
TV
87762020-05-28 Tom de Vries <tdevries@suse.de>
8777
8778 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
8779 PR gold/15646 workaround to symbol kind "type".
8780
f0fbb768
TT
87812020-05-27 Tom Tromey <tromey@adacore.com>
8782
8783 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
8784
af0b2a3e
TT
87852020-05-27 Tom Tromey <tromey@adacore.com>
8786
8787 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
8788 Use htab_find_with_hash.
8789 <add_abbrev>: Remove "abbrev_number" parameter.
8790 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
8791 "abbrev_number" parameter. Use htab_find_slot_with_hash.
8792 (hash_abbrev): Add comment.
8793 (abbrev_table::lookup_abbrev): Move to header file.
8794 (abbrev_table::read): Update.
8795
7d00ffec
TT
87962020-05-27 Tom Tromey <tromey@adacore.com>
8797
8798 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
8799 method.
8800 <canonical_name>: New member.
8801 <raw_name>: Rename from "name".
8802 (partial_die_info): Initialize canonical_name.
8803 (scan_partial_symbols): Check raw_name.
8804 (partial_die_parent_scope, partial_die_full_name)
8805 (add_partial_symbol, add_partial_subprogram)
8806 (add_partial_enumeration, load_partial_dies): Use "name" method.
8807 (partial_die_info::name): New method.
8808 (partial_die_info::read, guess_partial_die_structure_name)
8809 (partial_die_info::fixup): Update.
8810
697bba18
TT
88112020-05-27 Tom Tromey <tromey@adacore.com>
8812
8813 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
8814 <get_ref_die_offset>: Inline.
8815 <get_ref_die_offset_complaint>: New method.
8816 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
8817 (attribute::get_ref_die_offset_complaint): Rename from
8818 get_ref_die_offset. Just issue complaint.
8819
c17ace43
HD
88202020-05-27 Hannes Domani <ssbssa@yahoo.de>
8821
8822 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
8823
96445f0b
HD
88242020-05-27 Hannes Domani <ssbssa@yahoo.de>
8825
8826 * exec.c (exec_file_attach): Use errno value of first openp failure.
8827
ac637ec3
HD
88282020-05-27 Hannes Domani <ssbssa@yahoo.de>
8829
8830 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
8831 Don't close thread handle.
8832
17ee85fc
TT
88332020-05-27 Tom Tromey <tom@tromey.com>
8834 Simon Marchi <simon.marchi@efficios.com>
8835
8836 * objfiles.h (struct objfile) <partial_symtabs>: Now a
8837 shared_ptr.
8838 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
8839 member.
8840 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
8841 dwarf2_per_bfd_objfile_data_key>: New globals.
8842 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
8843 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
8844 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
8845 shared.
8846 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
8847 short-circuit when sharing.
8848 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
8849 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
8850
39b16f87
SM
88512020-05-27 Simon Marchi <simon.marchi@efficios.com>
8852
8853 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
8854 to...
8855 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
8856 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
8857
fcf23d5b
SM
88582020-05-27 Simon Marchi <simon.marchi@efficios.com>
8859
8860 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
8861 build_name_components, find_name_components_bounds>:
8862 Add per_objfile parameter.
8863 (struct mapped_index) <symbol_name_at>: Likewise.
8864 (struct mapped_debug_names): Remove constructor.
8865 <dwarf2_per_objfile>: Remove field.
8866 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
8867 (mapped_index_base::find_name_components_bounds,
8868 mapped_index_base::build_name_components,
8869 dw2_expand_symtabs_matching_symbol): Likewise.
8870 (class mock_mapped_index) <symbol_name_at>: Likewise.
8871 (check_match): Likewise.
8872 (check_find_bounds_finds): Likewise.
8873 (test_mapped_index_find_name_component_bounds): Update.
8874 (CHECK_MATCH): Update.
8875 (dw2_expand_symtabs_matching): Update.
8876 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
8877 per_objfile parameter.
8878 <find_vec_in_debug_names>: Likewise.
8879 <m_per_objfile>: New field.
8880 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
8881 parameter.
8882 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
8883 (dw2_debug_names_iterator::next): Update.
8884 (dw2_debug_names_lookup_symbol): Update.
8885 (dw2_debug_names_expand_symtabs_for_function): Update.
8886 (dw2_debug_names_map_matching_symbols): Update.
8887 (dw2_debug_names_expand_symtabs_matching): Update.
8888 (dwarf2_read_debug_names): Update.
8889
7188ed02
SM
88902020-05-27 Simon Marchi <simon.marchi@efficios.com>
8891
8892 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
8893 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
8894 move to dwarf2_per_objfile.
8895 <read_in_chain>: Remove.
8896 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
8897 remove_all_cus, age_comp_units>: New methods.
8898 <m_dwarf2_cus>: New member.
8899 (struct dwarf2_per_cu_data) <cu>: Remove.
8900 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
8901 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
8902 moved to methods of dwarf2_per_objfile.
8903 (dwarf2_clear_marks): Remove.
8904 (dwarf2_queue_item::~dwarf2_queue_item): Update.
8905 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
8906 (dwarf2_per_bfd::free_cached_comp_units): Remove.
8907 (dwarf2_per_objfile::remove_all_cus): New.
8908 (class free_cached_comp_units) <~free_cached_comp_units>:
8909 Update.
8910 (load_cu): Update.
8911 (dw2_do_instantiate_symtab): Adjust.
8912 (fill_in_sig_entry_from_dwo_entry): Adjust.
8913 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8914 (cutu_reader::cutu_reader): Likewise.
8915 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
8916 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
8917 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
8918 and dwarf2_per_objfile::age_comp_units.
8919 (load_partial_comp_unit): Update.
8920 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
8921 (process_queue): Likewise.
8922 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
8923 backlink.
8924 (dwarf2_read_addr_index): Likewise.
8925 (follow_die_offset): Likewise.
8926 (dwarf2_fetch_die_loc_sect_off): Likewise.
8927 (dwarf2_fetch_constant_bytes): Likewise.
8928 (dwarf2_fetch_die_type_sect_off): Likewise.
8929 (follow_die_sig_1): Likewise.
8930 (load_full_type_unit): Likewise.
8931 (read_signatured_type): Likewise.
8932 (dwarf2_cu::dwarf2_cu): Don't set cu field.
8933 (dwarf2_cu::~dwarf2_cu): Remove.
8934 (dwarf2_per_objfile::get_cu): New.
8935 (dwarf2_per_objfile::set_cu): New.
8936 (age_cached_comp_units): Rename to...
8937 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
8938 to std::unordered_map.
8939 (free_one_cached_comp_unit): Rename to...
8940 (dwarf2_per_objfile::remove_cu): ... this. Adjust
8941 to std::unordered_map.
8942 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
8943 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
8944 a dwarf2_per_objfile in data.
8945 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
8946 (dwarf2_clear_marks): Remove.
8947
2e671100
SM
89482020-05-27 Simon Marchi <simon.marchi@efficios.com>
8949
8950 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
8951 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
8952 (init_tu_and_read_dwo_dies): Likewise.
8953 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
8954 (cutu_reader::cutu_reader): Likewise.
8955 (load_partial_comp_unit): Likewise.
8956 (process_psymtab_comp_unit): Update.
8957 (build_type_psymtabs_1): Update.
8958 (process_skeletonless_type_unit): Update.
8959 (load_full_comp_unit): Update.
8960 (find_partial_die): Update.
8961 (dwarf2_read_addr_index): Update.
8962 (read_signatured_type): Update.
8963
2e6a9f79
SM
89642020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8965
8966 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
8967 m_header_read_in>: New fields.
8968 <get_header>: New method.
8969 * dwarf2/read.c (per_cu_header_read_in): Remove.
8970 (dwarf2_per_cu_data::get_header): New.
8971 (dwarf2_per_cu_data::addr_size): Update.
8972 (dwarf2_per_cu_data::offset_size): Update.
8973 (dwarf2_per_cu_data::ref_addr_size): Update.
8974
1b555f17
SM
89752020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8976
8977 * dwarf2/read.c (load_cu): Return dwarf2_cu.
8978 (dw2_do_instantiate_symtab): Update.
8979 (queue_and_load_all_dwo_tus): Change parameter from
8980 dwarf2_per_cu_data to dwarf2_cu.
8981 (dwarf2_fetch_die_loc_sect_off): Update.
8982 (dwarf2_fetch_constant_bytes): Update.
8983 (dwarf2_fetch_die_type_sect_off): Update.
8984
8fc0b21d
SM
89852020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8986
8987 * dwarf2/read.c (process_full_comp_unit,
8988 process_full_type_unit): Remove per_cu, per_objfile paramters.
8989 Add dwarf2_cu parameter.
8990 (process_queue): Update.
8991
168c9250
SM
89922020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8993
8994 * dwarf2/read.c (create_cu_from_index_list): Replace
8995 dwarf2_per_objfile parameter with dwarf2_per_bfd.
8996 (create_cus_from_index_list): Likewise.
8997 (create_cus_from_index): Likewise.
8998 (create_signatured_type_table_from_index): Likewise.
8999 (create_cus_from_debug_names_list): Likewise.
9000 (create_cus_from_debug_names): Likewise.
9001 (dwarf2_read_gdb_index): Update.
9002 (dwarf2_read_debug_names): Update.
9003
e286671b
TT
90042020-05-27 Tom Tromey <tom@tromey.com>
9005 Simon Marchi <simon.marchi@efficios.com>
9006
9007 * dwarf2/read.h (struct dwarf2_per_objfile)
9008 <get_type_for_signatured_type, set_type_for_signatured_type>:
9009 New methods.
9010 <m_type_map>: New member.
9011 (struct signatured_type) <type>: Remove.
9012 * dwarf2/read.c
9013 (dwarf2_per_objfile::get_type_for_signatured_type,
9014 dwarf2_per_objfile::set_type_for_signatured_type): New.
9015 (get_signatured_type): Use new methods.
9016
8adb8487
TT
90172020-05-27 Tom Tromey <tom@tromey.com>
9018 Simon Marchi <simon.marchi@efficios.com>
9019
9020 * dwarf2/read.h (struct type_unit_group_unshareable): New.
9021 (struct dwarf2_per_objfile) <type_units>: New member.
9022 <get_type_unit_group_unshareable>: New method.
9023 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
9024 num_symtabs, symtabs>: Remove; move to
9025 type_unit_group_unshareable.
9026 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
9027 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
9028 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
9029
127bbf4b
SM
90302020-05-27 Simon Marchi <simon.marchi@efficios.com>
9031
9032 * dwarf2/read.h (struct dwarf2_per_cu_data):
9033 <dwarf2_per_objfile>: Remove.
9034 * dwarf2/read.c (create_cu_from_index_list): Don't assign
9035 dwarf2_per_objfile.
9036 (create_signatured_type_table_from_index): Likewise.
9037 (create_signatured_type_table_from_debug_names): Likewise.
9038 (create_debug_type_hash_table): Likewise.
9039 (fill_in_sig_entry_from_dwo_entry): Likewise.
9040 (create_type_unit_group): Likewise.
9041 (read_comp_units_from_section): Likewise.
9042 (create_cus_hash_table): Likewise.
9043
f6e649dd
SM
90442020-05-27 Simon Marchi <simon.marchi@efficios.com>
9045
9046 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
9047 dwarf2_per_cu_data::dwarf2_per_objfile.
9048 (compute_compunit_symtab_includes): Likewise.
9049 (dwarf2_cu::start_symtab): Likewise.
9050
aa66c379
SM
90512020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9052
9053 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
9054 parameter.
9055 * dwarf2/read.c (get_die_type_at_offset): Likewise.
9056 (read_namespace_alias): Update.
9057 (lookup_die_type): Update.
9058 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
9059 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
9060 Update.
9061 (disassemble_dwarf_expression): Update.
9062
120ce1b5
SM
90632020-05-27 Simon Marchi <simon.marchi@efficios.com>
9064
9065 * dwarf2/read.h (struct dwarf2_queue_item): Add
9066 dwarf2_per_objfile parameter, assign new parameter.
9067 <per_objfile>: New field.
9068 * dwarf2/read.c (free_one_cached_comp_unit): Add
9069 dwarf2_per_objfile parameter.
9070 (queue_comp_unit): Likewise.
9071 (dw2_do_instantiate_symtab): Update.
9072 (process_psymtab_comp_unit): Update.
9073 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
9074 (process_imported_unit_die): Update.
9075 (queue_and_load_dwo_tu): Update.
9076 (follow_die_offset): Update.
9077 (follow_die_sig_1): Update.
9078
9f47c707
SM
90792020-05-27 Simon Marchi <simon.marchi@efficios.com>
9080
9081 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
9082 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
9083 (read_call_site_scope): Assign per_objfile.
9084 (dwarf2_per_cu_data::objfile): Remove.
9085 * gdbtypes.h (struct call_site) <per_objfile>: New member.
9086 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
9087 dwarf2_per_objfile parameter.
9088 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
9089 dwarf2_per_objfile parameter.
9090 (dwarf_expr_reg_to_entry_parameter): Add output
9091 dwarf2_per_objfile parameter.
9092 (locexpr_get_frame_base): Update.
9093 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
9094 <push_dwarf_reg_entry_value>: Update.
9095 <call_site_to_target_addr>: Update.
9096 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
9097 parameter.
9098 (value_of_dwarf_reg_entry): Update.
9099 (rw_pieced_value): Update.
9100 (indirect_synthetic_pointer): Update.
9101 (dwarf2_evaluate_property): Update.
9102 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
9103 parameter.
9104 (locexpr_read_variable): Update.
9105 (locexpr_get_symbol_read_needs): Update.
9106 (loclist_read_variable): Update.
9107
14095eb3
SM
91082020-05-27 Simon Marchi <simon.marchi@efficios.com>
9109
9110 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9111 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9112 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9113 parameter.
9114 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9115 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9116 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9117 parameter.
9118 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
9119 sect_variable_value): Add dwarf2_per_objfile parameter.
9120 (class dwarf_evaluate_loc_desc) <dwarf_call,
9121 dwarf_variable_value>: Update.
9122 (fetch_const_value_from_synthetic_pointer): Add
9123 dwarf2_per_objfile parameter.
9124 (fetch_const_value_from_synthetic_pointer): Update.
9125 (coerced_pieced_ref): Update.
9126 (class symbol_needs_eval_context) <dwarf_call,
9127 dwarf_variable_value>: Update.
9128 (dwarf2_compile_expr_to_ax): Update.
9129
3c3cd3d4
SM
91302020-05-27 Simon Marchi <simon.marchi@efficios.com>
9131
9132 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
9133 parameter.
9134 (dwarf2_evaluate_loc_desc_full): Update.
9135
82ca3f51
SM
91362020-05-27 Simon Marchi <simon.marchi@efficios.com>
9137
9138 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
9139 parameter.
9140 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
9141 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
9142 dwarf2_per_objfile parameter.
9143 (decode_debug_loc_dwo_addresses): Likewise.
9144 (dwarf2_find_location_expression): Update.
9145 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
9146 (locexpr_describe_location_piece): Add dwarf2_per_objfile
9147 parameter.
9148 (disassemble_dwarf_expression): Add dwarf2_per_objfile
9149 parameter.
9150 (locexpr_describe_location_1): Likewise.
9151 (locexpr_describe_location): Update.
9152
4b167ea1
SM
91532020-05-27 Simon Marchi <simon.marchi@efficios.com>
9154
9155 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
9156 Remove.
9157 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
9158 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
9159 (dwarf2_compile_property_to_c): Update.
9160 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
9161 use text offset from objfile.
9162 (locexpr_tracepoint_var_ref): Update.
9163 (locexpr_generate_c_location): Update.
9164 (loclist_describe_location): Update.
9165 (loclist_tracepoint_var_ref): Update.
9166 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
9167 dwarf2_per_objfile parameter.
9168 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
9169 use text offset from objfile.
9170 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
9171
89b07335
SM
91722020-05-27 Simon Marchi <simon.marchi@efficios.com>
9173
9174 * dwarf2/expr.h (struct dwarf_expr_context)
9175 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
9176 <offset>: Remove.
9177 <per_objfile>: New member.
9178 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
9179 dwarf2_per_objfile parameter. Don't set offset, set
9180 per_objfile.
9181 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
9182 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
9183 a dwarf2_per_objfile object instead of an offset.
9184 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
9185 constructor.
9186 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
9187 to dwarf2_expr_executor constructor. Don't set offset.
9188 (dwarf2_fetch_cfa_info): Update.
9189 (struct dwarf2_frame_cache) <text_offset>: Remove.
9190 <per_objfile>: New field.
9191 (dwarf2_frame_cache): Update.
9192 (dwarf2_frame_prev_register): Update.
9193 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9194 <dwarf_evaluate_loc_desc>: Add constructor.
9195 (dwarf2_evaluate_loc_desc_full): Update.
9196 (dwarf2_locexpr_baton_eval): Update.
9197 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
9198 Add constructor.
9199 (dwarf2_loc_desc_get_symbol_read_needs): Update.
9200
293e7e51
SM
92012020-05-27 Simon Marchi <simon.marchi@efficios.com>
9202
9203 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
9204 addr_sized_int_type>: Move to dwarf2_cu.
9205 <int_type>: Move to dwarf2_per_objfile.
9206 (struct dwarf2_per_objfile) <int_type>: Move here.
9207 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
9208 addr_sized_int_type>: Move here.
9209 (read_func_scope): Update.
9210 (read_array_type): Update.
9211 (read_tag_string_type): Update.
9212 (attr_to_dynamic_prop): Update.
9213 (dwarf2_per_cu_data::int_type): Rename to...
9214 (dwarf2_per_objfile::int_type): ... this.
9215 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
9216 (dwarf2_cu::addr_sized_int_type): ... this.
9217 (read_subrange_type): Update.
9218 (dwarf2_per_cu_data::addr_type): Rename to...
9219 (dwarf2_cu::addr_type): ... this.
9220 (set_die_type): Update.
9221
64874a40
SM
92222020-05-27 Simon Marchi <simon.marchi@efficios.com>
9223
9224 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
9225 data through per_cu->cu.
9226
4ab09049
SM
92272020-05-27 Simon Marchi <simon.marchi@efficios.com>
9228
9229 * dwarf2/read.c (lookup_dwo_comp_unit): Change
9230 dwarf2_per_cu_data parameter fo dwarf2_cu.
9231 (lookup_dwo_type_unit): Likewise.
9232 (read_cutu_die_from_dwo): Likewise.
9233 (lookup_dwo_unit): Likewise.
9234 (open_and_init_dwo_file): Likewise.
9235 (lookup_dwo_cutu): Likewise.
9236 (lookup_dwo_comp_unit): Likewise.
9237 (lookup_dwo_type_unit): Likewise.
9238 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9239 (cutu_reader::cutu_reader): Update.
9240
47b14e86
SM
92412020-05-27 Simon Marchi <simon.marchi@efficios.com>
9242
9243 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
9244 parameter.
9245 (process_full_type_unit): Likewise.
9246 (process_queue): Update.
9247
43182c09
SM
92482020-05-27 Simon Marchi <simon.marchi@efficios.com>
9249
9250 * dwarf2/read.c (recursively_compute_inclusions): Add
9251 dwarf2_per_objfile parameter.
9252 (compute_compunit_symtab_includes): Likewise.
9253 (process_cu_includes): Update.
9254
7aa104c4
SM
92552020-05-27 Simon Marchi <simon.marchi@efficios.com>
9256
9257 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
9258 parameter.
9259 (create_type_unit_group): Update.
9260 (process_psymtab_comp_unit_reader): Update.
9261 (build_type_psymtabs_reader): Update.
9262
e3beb21d
SM
92632020-05-27 Simon Marchi <simon.marchi@efficios.com>
9264
9265 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
9266 object through m_this_cu->cu.
9267
d460f660
SM
92682020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9269
9270 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
9271 the info parameter.
9272 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
9273
ab432490
SM
92742020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9275
9276 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
9277 per_objfile parameter.
9278 (load_full_type_unit): Add per_objfile parameter.
9279 (read_signatured_type): Likewise.
9280 (load_full_comp_unit): Likewise.
9281 (load_cu): Likewise.
9282 (dw2_do_instantiate_symtab): Likewise.
9283 (dw2_get_file_names): Likewise.
9284 (dw2_map_symtabs_matching_filename): Update.
9285 (dw_expand_symtabs_matching_file_matcher): Update.
9286 (dw2_map_symbol_filenames): Update.
9287 (process_psymtab_comp_unit): Add per_objfile parameter.
9288 (build_type_psymtabs_1): Update.
9289 (process_skeletonless_type_unit): Update.
9290 (dwarf2_build_psymtabs_hard): Update.
9291 (load_partial_comp_unit): Add per_objfile parameter.
9292 (scan_partial_symbols): Update.
9293 (load_full_comp_unit): Add per_objfile parameter.
9294 (process_imported_unit_die): Update.
9295 (create_cus_hash_table): Update.
9296 (find_partial_die): Update.
9297 (dwarf2_read_addr_index): Update.
9298 (follow_die_offset): Update.
9299 (dwarf2_fetch_die_loc_sect_off): Update.
9300 (dwarf2_fetch_constant_bytes): Update.
9301 (dwarf2_fetch_die_type_sect_off): Update.
9302 (follow_die_sig_1): Update.
9303 (load_full_type_unit): Add per_objfile parameter.
9304 (read_signatured_type): Likewise.
9305
313bad1b
SM
93062020-05-27 Simon Marchi <simon.marchi@efficios.com>
9307
9308 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
9309 of objfile_name.
9310
c3699833
SM
93112020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9312
9313 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
9314 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9315 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
9316 field.
9317 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9318 (create_cus_from_index): Update.
9319 (dwarf2_read_gdb_index): Update.
9320 (create_cus_from_debug_names): Update.
9321 (dwarf2_read_debug_names): Update.
9322 (get_abbrev_section_for_cu): Update.
9323 (create_all_comp_units): Update.
9324 (read_attribute_value): Update.
9325 (get_debug_line_section): Update.
9326 * dwarf2/index-cache.c (index_cache::store): Update.
9327 * dwarf2/index-write.c (save_gdb_index_command): Update.
9328 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
9329
1859c670
SM
93302020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9331
9332 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
9333 member.
9334 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
9335 dwarf2_per_cu_data::per_bfd.
9336 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
9337 (create_type_unit_group): Likewise.
9338 (queue_comp_unit): Remove reference to
9339 per_cu->dwarf2_per_objfile.
9340 (maybe_queue_comp_unit): Likewise.
9341 (fill_in_sig_entry_from_dwo_entry): Assign new field.
9342 (create_cus_hash_table): Assign new field.
9343
5e22e966
SM
93442020-05-27 Simon Marchi <simon.marchi@efficios.com>
9345
9346 * dwarf2/read.c: Replace
9347 dwarf2_cu->per_cu->dwarf2_per_objfile references with
9348 dwarf2_cu->per_objfile throughout.
9349
97a1449a
SM
93502020-05-27 Simon Marchi <simon.marchi@efficios.com>
9351
9352 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
9353 parameter, don't use per_cu->dwarf2_per_objfile.
9354 (dw2_instantiate_symtab): Likewise.
9355 (dw2_find_last_source_symtab): Update.
9356 (dw2_map_expand_apply): Update.
9357 (dw2_lookup_symbol): Update.
9358 (dw2_expand_symtabs_for_function): Update.
9359 (dw2_expand_all_symtabs): Update.
9360 (dw2_expand_symtabs_with_fullname): Update.
9361 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
9362 don't use per_cu->dwarf2_per_objfile.
9363 (dw2_expand_marked_cus): Update.
9364 (dw2_find_pc_sect_compunit_symtab): Update.
9365 (dw2_debug_names_lookup_symbol): Update.
9366 (dw2_debug_names_expand_symtabs_for_function): Update.
9367 (dw2_debug_names_map_matching_symbols): Update.
9368 (dwarf2_psymtab::expand_psymtab): Update.
9369
9e021579
SM
93702020-05-27 Simon Marchi <simon.marchi@efficios.com>
9371
9372 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
9373 <per_objfile>: New member.
9374 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
9375 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
9376 call to dwarf2_cu.
9377 (cutu_reader::cutu_reader): Update.
9378 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
9379
ae090bdb
SM
93802020-05-27 Simon Marchi <simon.marchi@efficios.com>
9381
9382 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
9383 struct dwarf2_per_objfile.
9384 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
9385 dwarf2_per_bfd.
9386 * dwarf2/read.c (set_die_type): Update.
9387 (get_die_type_at_offset): Update.
9388
af758d11
SM
93892020-05-27 Tom Tromey <tom@tromey.com>
9390 Simon Marchi <simon.marchi@efficios.com>
9391
9392 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
9393 method.
9394 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
9395 get_symtab, set_symtab>: New methods.
9396 <m_symtabs>: New field.
9397 (struct dwarf2_psymtab): Derive from partial_symtab.
9398 <readin_p, get_compunit_symtab>: Declare methods.
9399 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
9400 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
9401 New methods.
9402 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
9403 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
9404 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9405 (dw2_symtab_iter_next, dw2_print_stats)
9406 (dw2_expand_symtabs_with_fullname)
9407 (dw2_expand_symtabs_matching_one)
9408 (dw_expand_symtabs_matching_file_matcher)
9409 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
9410 (dw2_debug_names_iterator::next)
9411 (dw2_debug_names_map_matching_symbols)
9412 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
9413 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
9414 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
9415 New methods.
9416 (get_compunit_symtab, process_full_comp_unit)
9417 (process_full_type_unit): Update.
9418 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
9419
5989a64e
SM
94202020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9421
9422 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
9423 then introduce a new dwarf2_per_objfile type.
9424 <read_line_string>: Move to the new dwarf2_per_objfile type.
9425 <objfile>: Likewise.
9426 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
9427 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
9428 dwarf2_per_objfile->per_bfd.
9429 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
9430 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
9431 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
9432 (dwarf2_per_bfd::free_cached_comp_units): ... this.
9433 (dwarf2_has_info): Allocate dwarf2_per_bfd.
9434 (dwarf2_per_objfile::locate_sections): Rename to...
9435 (dwarf2_per_bfd::locate_sections): ... this.
9436 (dwarf2_per_objfile::get_cutu): Rename to...
9437 (dwarf2_per_bfd::get_cutu): ... this.
9438 (dwarf2_per_objfile::get_cu): Rename to...
9439 (dwarf2_per_bfd::get_cu): ... this.
9440 (dwarf2_per_objfile::get_tu): Rename to...
9441 (dwarf2_per_bfd::get_tu): ... this.
9442 (dwarf2_per_objfile::allocate_per_cu): Rename to...
9443 (dwarf2_per_bfd::allocate_per_cu): ... this.
9444 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
9445 (dwarf2_per_bfd::allocate_signatured_type): ... this.
9446 (get_gdb_index_contents_ftype): Change parameter from
9447 dwarf2_per_objfile to dwarf2_per_bfd.
9448 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
9449 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
9450
a50264ba
TT
94512020-05-27 Tom Tromey <tom@tromey.com>
9452 Simon Marchi <simon.marchi@efficios.com>
9453
9454 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
9455 (allocate_piece_closure): Set "per_objfile" member.
9456 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
9457 (locexpr_describe_location, loclist_describe_location): Use new
9458 member.
9459 * dwarf2/read.c (read_call_site_scope)
9460 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
9461 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
9462 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
9463 handle_data_member_location): Set per_objfile member.
9464 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
9465 member.
9466 (struct dwarf2_loclist_baton) <per_objfile>: New member.
9467
d3473f0c
TT
94682020-05-27 Tom Tromey <tom@tromey.com>
9469
9470 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
9471 allocate_signatured_type>: Declare new methods.
9472 <m_num_psymtabs>: New member.
9473 (struct dwarf2_per_cu_data) <index>: New member.
9474 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
9475 (dwarf2_per_objfile::allocate_signatured_type): New methods.
9476 (create_cu_from_index_list): Use allocate_per_cu.
9477 (create_signatured_type_table_from_index)
9478 (create_signatured_type_table_from_debug_names)
9479 (create_debug_type_hash_table, add_type_unit)
9480 (read_comp_units_from_section): Use allocate_signatured_type.
9481
5717c425
TT
94822020-05-27 Tom Tromey <tom@tromey.com>
9483
9484 * psymtab.c (partial_map_expand_apply)
9485 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9486 (psym_lookup_global_symbol_language)
9487 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9488 (psym_print_stats, psym_expand_symtabs_for_function)
9489 (psym_map_symbol_filenames, psym_map_matching_symbols)
9490 (psym_expand_symtabs_matching)
9491 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9492 (maintenance_check_psymtabs): Update.
9493 * psympriv.h (struct partial_symtab) <readin_p,
9494 get_compunit_symtab>: Add objfile parameter.
9495 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
9496 Likewise.
9497 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
9498 get_compunit_symtab>: Likewise.
9499 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
9500
45940949
TT
95012020-05-27 Tom Tromey <tom@tromey.com>
9502
9503 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
9504 member.
9505 * dwarf2/read.c (delete_file_name_entry): Fix comment.
9506 (create_cu_from_index_list)
9507 (create_signatured_type_table_from_index)
9508 (create_signatured_type_table_from_debug_names)
9509 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
9510 (dwarf2_create_include_psymtab)
9511 (create_debug_type_hash_table, add_type_unit)
9512 (create_type_unit_group, read_comp_units_from_section)
9513 (dwarf2_compute_name, create_cus_hash_table)
9514 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9515 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
9516 obstack.
9517 (dw2_get_real_path): Likewise. Change argument to
9518 dwarf2_per_objfile.
9519
f8c6d152
LM
95202020-05-27 Luis Machado <luis.machado@linaro.org>
9521
9522 PR tdep/26000
9523 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
9524 for ldrd (immediate).
9525
e98d2e6d
PW
95262020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9527
9528 * command.h: Add comment giving the name of class_tui.
9529 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
9530 create the fake command for the help for class_tui.
9531
53a47a3e
TT
95322020-05-26 Tom Tromey <tromey@adacore.com>
9533
9534 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
9535 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
9536 (val_atr): New function.
9537 (value_val_atr): Use it.
9538 * ada-valprint.c (print_optional_low_bound): Change low bound
9539 handling for enums.
9540 (val_print_packed_array_elements): Don't call discrete_position.
9541 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
9542 discrete_position for enum types.
9543 * language.c (default_print_array_index): Change type.
9544 * language.h (struct language_defn) <la_print_array_index>: Add
9545 index_type parameter, change type of index_value.
9546 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
9547 (default_print_array_index): Update.
9548 * valprint.c (maybe_print_array_index): Don't call
9549 value_from_longest. Update.
9550 (value_print_array_elements): Don't call discrete_position.
9551
0bc2354b
TT
95522020-05-26 Tom Tromey <tromey@adacore.com>
9553
9554 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
9555 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
9556
1218a4bf
CDA
95572020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
9558
9559 PR gdb/13519
9560 * avr-tdep.c (avr_integer_to_address): Return data or code
9561 address accordingly to the second 'type' argument of the
9562 function.
9563
92651b1d
MW
95642020-05-25 Michael Weghorn <m.weghorn@posteo.de>
9565
9566 * infcmd.c, inferior.h: (construct_inferior_arguments):
9567 Moved function from here to gdbsupport/common-inferior.{h,cc}
9568
0a4f5f8c
TT
95692020-05-23 Tom Tromey <tom@tromey.com>
9570
9571 Revert commit eca1f90c:
9572 * NEWS: Remove entry for completion styling.
9573 * completer.c (_rl_completion_prefix_display_length): Move
9574 declaration later.
9575 (gdb_fnprint): Revert.
9576 (gdb_display_match_list_1): Likewise.
9577 * cli/cli-style.c (completion_prefix_style)
9578 (completion_difference_style, completion_suffix_style): Remove.
9579 (_initialize_cli_style): Revert.
9580 * cli/cli-style.h (completion_prefix_style)
9581 (completion_difference_style, completion_suffix_style): Don't
9582 declare.
9583
e08bd6c5
PA
95842020-05-24 Pedro Alves <palves@redhat.com>
9585
9586 * symtab.c (completion_list_add_name): Return boolean indication
9587 of whether the symbol matched.
9588 (completion_list_add_symbol): Don't try to remove C++ aliases if
9589 the symbol didn't match in the first place.
9590 * symtab.h (completion_list_add_name): Return bool.
9591
ceacbf6e
SM
95922020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
9593
9594 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
9595 type::field.
9596
26f16254
JB
95972020-05-23 Joel Brobecker <brobecker@adacore.com>
9598
9599 GDB 9.2 released.
9600
eca1f90c
TT
96012020-05-23 Tom Tromey <tom@tromey.com>
9602
9603 * NEWS: Add entry for completion styling.
9604 * completer.c (_rl_completion_prefix_display_length): Move
9605 declaration earlier.
9606 (gdb_fnprint): Use completion_style.
9607 (gdb_display_match_list_1): Likewise.
9608 * cli/cli-style.c (completion_prefix_style)
9609 (completion_difference_style, completion_suffix_style): New
9610 globals.
9611 (_initialize_cli_style): Register new globals.
9612 * cli/cli-style.h (completion_prefix_style)
9613 (completion_difference_style, completion_suffix_style): Declare.
9614
51e2cfa2
PA
96152020-05-23 Pedro Alves <palves@redhat.com>
9616
9617 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
9618 (parse_escape): Use ISDIGIT instead of isdigit.
9619 (puts_debug): Use gdb_isprint instead of isprint.
9620 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
9621 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
9622 ISSPACE instead of isspace.
9623 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
9624 instead of isspace.
9625 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
9626 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
9627 instead of isxdigit and ISDIGIT instead of isdigit.
9628
80fc5e77
SM
96292020-05-22 Simon Marchi <simon.marchi@efficios.com>
9630
9631 * gdbtypes.h (struct type) <field>: New method.
9632 (TYPE_FIELDS): Remove, replace all uses with either type::fields
9633 or type::field.
9634
3cabb6b0
SM
96352020-05-22 Simon Marchi <simon.marchi@efficios.com>
9636
9637 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
9638 (TYPE_FIELDS): Use type::fields. Change all call sites that
9639 modify the propery to use type::set_fields instead.
9640
1f704f76
SM
96412020-05-22 Simon Marchi <simon.marchi@efficios.com>
9642
9643 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
9644 type::num_fields instead.
9645
5e33d5f4
SM
96462020-05-22 Simon Marchi <simon.marchi@efficios.com>
9647
9648 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
9649 methods.
9650 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
9651 that modify the number of fields to use type::set_num_fields
9652 instead.
9653
9392ebb3
TT
96542020-05-22 Tom Tromey <tromey@adacore.com>
9655
9656 * compile/compile-object-load.h (munmap_list_free): Don't
9657 declare.
9658
7c13f4e8
AB
96592020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
9660
9661 * annotate.c (annotate_source_line): Update return type, add call
9662 to update current symtab and line.
9663 * annotate.h (annotate_source_line): Update return type, and
9664 extend header comment.
9665 * source.c (info_line_command): Check annotation_level before
9666 calling annotate_source_line.
9667 * stack.c (print_frame_info): If calling annotate_source_line
9668 returns true, then don't print any other source line information.
9669
aa370940
SM
96702020-05-21 Simon Marchi <simon.marchi@efficios.com>
9671
9672 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
9673
84d53fa9
SM
96742020-05-21 Simon Marchi <simon.marchi@efficios.com>
9675
9676 * coffread.c (patch_type): Remove NULL check before xfree.
9677 * corefile.c (set_gnutarget): Likewise.
9678 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
9679 * exec.c (build_section_table): Likewise.
9680 * remote.c (remote_target::pass_signals): Likewise.
9681 * utils.c (n_spaces): Likewise.
9682 * cli/cli-script.c (document_command): Likewise.
9683 * i386-windows-tdep.c (core_process_module_section): Likewise.
9684 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
9685
9d428aae
SM
96862020-05-20 Simon Marchi <simon.marchi@efficios.com>
9687
9688 * symfile.c (reread_symbols): Clear objfile's section_offsets
9689 vector and section indices, re-compute them by calling
9690 sym_offsets.
9691
250106a7
TT
96922020-05-20 Tom Tromey <tromey@adacore.com>
9693
9694 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 9695 (desc_one_bound, desc_index_type): Compute field name.
250106a7 9696
9a0bacfb
TV
96972020-05-20 Tom de Vries <tdevries@suse.de>
9698
9699 PR symtab/25833
9700 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
9701
7b958a48
AM
97022020-05-20 Alan Modra <amodra@gmail.com>
9703
9704 PR 25993
9705 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
9706 bfd_set_filename.
9707 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
9708 passed to bfd_set_filename.
9709 * symfile-mem.c (add_vsyscall_page): Likewise for string
9710 passed to symbol_file_add_from_memory.
9711 (symbol_file_add_from_memory): Make name param a const char* and
9712 don't strdup.
9713
c7e97679
AM
97142020-05-20 Alan Modra <amodra@gmail.com>
9715
9716 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
9717 rather than accessing bfd->filename directly.
9718 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
9719 and use bfd_section_name.
9720 * dwarf2/frame.c (decode_frame_entry): Likewise.
9721 * exec.c (exec_set_section_address): Likewise.
9722 * solib-aix.c (solib_aix_bfd_open): Likewise.
9723 * stap-probe.c (get_stap_base_address): Likewise.
9724 * symfile.c (reread_symbols): Likewise.
9725
563c591b
TT
97262020-05-19 Tom Tromey <tromey@adacore.com>
9727
9728 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
9729
f408d82c
SM
97302020-05-19 Simon Marchi <simon.marchi@efficios.com>
9731
9732 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
9733
98c59b52
PA
97342020-05-19 Pedro Alves <palves@redhat.com>
9735
9736 * NEWS (set exec-file-mismatch): Adjust entry.
9737 * exec.c: Include "build-id.h".
9738 (validate_exec_file): Try to match build IDs instead of filenames.
9739 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
9740 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
9741 and pass down 'warn_if_slow'.
9742 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
9743 gdb_bfd_open_closure to pass it down.
9744 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
9745
4111f652
PA
97462020-05-19 Pedro Alves <palves@redhat.com>
9747
9748 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
9749 * target.c (target_fileio_open_1): Rename to target_fileio_open
9750 and make extern. Use bool.
9751 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
9752 (target_fileio_read_alloc_1): Adjust.
9753 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
9754 (target_fileio_open_warn_if_slow): Delete declaration.
9755
ad80db5b
PA
97562020-05-19 Pedro Alves <palves@redhat.com>
9757
9758 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
9759 Adjust all callers.
9760
1d6ce4d3
YS
97612020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
9762
9763 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
9764 whether disp is negative.
9765
9005fbbb
SM
97662020-05-19 Simon Marchi <simon.marchi@efficios.com>
9767
9768 * symfile.h (struct symfile_segment_data)
9769 <~symfile_segment_data>: Remove.
9770 <segment_info>: Change to std::vector.
9771 * symfile.c (default_symfile_segments): Update.
9772 * elfread.c (elf_symfile_segments): Update.
9773
68b888ff
SM
97742020-05-19 Simon Marchi <simon.marchi@efficios.com>
9775
9776 * symfile.h (struct symfile_segment_data) <struct segment>: New.
9777 <segments>: New.
9778 <segment_bases, segment_sizes>: Remove.
9779 * symfile.c (default_symfile_segments): Update.
9780 * elfread.c (elf_symfile_segments): Update.
9781 * remote.c (remote_target::get_offsets): Update.
9782 * solib-target.c (solib_target_relocate_section_addresses):
9783 Update.
9784
62982abd
SM
97852020-05-19 Simon Marchi <simon.marchi@efficios.com>
9786
9787 * symfile.h (struct symfile_segment_data): Initialize fields.
9788 <~symfile_segment_data>: Add.
9789 (symfile_segment_data_up): New.
9790 (struct sym_fns) <sym_segments>: Return a
9791 symfile_segment_data_up.
9792 (default_symfile_segments): Return a symfile_segment_data_up.
9793 (free_symfile_segment_data): Remove.
9794 (get_symfile_segment_data): Return a symfile_segment_data_up.
9795 * symfile.c (default_symfile_segments): Likewise.
9796 (get_symfile_segment_data): Likewise.
9797 (free_symfile_segment_data): Remove.
9798 (symfile_find_segment_sections): Update.
9799 * elfread.c (elf_symfile_segments): Return a
9800 symfile_segment_data_up.
9801 * remote.c (remote_target::get_offsets): Update.
9802 * solib-target.c (solib_target_relocate_section_addresses):
9803 Update.
9804 * symfile-debug.c (debug_sym_segments): Return a
9805 symfile_segment_data_up.
9806
7f204339
RO
98072020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9808
e52a0f1b
RO
9809 PR build/25981
9810 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
9811 Hardcode register numbers.
9812
7f204339
RO
9813 PR build/25981
9814 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
9815 procfs_find_LDT_entry): Remove.
9816 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
9817 procfs_find_LDT_entry): Remove.
9818 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
9819 Remove.
9820
7f32a4d5
PA
98212020-05-17 Pedro Alves <palves@redhat.com>
9822 Andrew Burgess <andrew.burgess@embecosm.com>
9823 Keno Fischer <keno@juliacomputing.com>
9824
9825 PR gdb/25741
9826 * breakpoint.c (build_target_condition_list): Update comments.
9827 (build_target_command_list): Update comments and skip matching
9828 locations.
9829 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
9830 a separate function. Simplify "set breakpoint auto-hw off"
9831 handling.
9832 (insert_breakpoints): Update comment.
9833 (tracepoint_locations_match): New parameter. For breakpoints,
9834 compare location types too, if the caller wants to.
9835 (handle_automatic_hardware_breakpoints): New functions.
9836 (bp_location_is_less_than): Also sort by location type and
9837 hardware breakpoint length.
9838 (update_global_location_list): Handle "set breakpoint auto-hw on"
9839 here.
9840 (update_breakpoint_locations): Ask breakpoint_locations_match to
9841 ignore location types.
9842
7d93a1e0
SM
98432020-05-16 Simon Marchi <simon.marchi@efficios.com>
9844
9845 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
9846 type::name instead.
9847
d0e39ea2
SM
98482020-05-16 Simon Marchi <simon.marchi@efficios.com>
9849
9850 * gdbtypes.h (struct type) <name, set_name>: New methods.
9851 (TYPE_CODE): Use type::name. Change all call sites used to set
9852 the name to use type::set_name instead.
9853
2dab0c7b
TT
98542020-05-16 Tom Tromey <tom@tromey.com>
9855
9856 * top.c (quit_force): Update.
9857 * infrun.c (handle_no_resumed): Update.
9858 * top.h (all_uis): New function.
9859 (ALL_UIS): Remove.
9860
59f7bd8d
SM
98612020-05-16 Simon Marchi <simon.marchi@efficios.com>
9862
9863 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
9864
9bf058f0
PA
98652020-05-16 Pedro Alves <palves@redhat.com>
9866
9867 * ia64-linux-nat.c
9868 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
9869 Declare method.
9870 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
9871
8f86ae1a
SM
98722020-05-15 Simon Marchi <simon.marchi@efficios.com>
9873
9874 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
9875 (sparc64_adi_info): Likewise.
9876
d6bc0792
TT
98772020-05-15 Tom Tromey <tom@tromey.com>
9878
9879 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
9880 block_objfile.
9881 (lookup_objfile_from_block): Remove.
9882 (lookup_symbol_in_block, lookup_symbol_in_static_block)
9883 (lookup_global_symbol): Use block_objfile.
9884 * symtab.h (lookup_objfile_from_block): Don't declare.
9885 * printcmd.c (clear_dangling_display_expressions): Use
9886 block_objfile.
9887 * parse.c (operator_check_standard): Use block_objfile.
9888
8c14c3a3
TT
98892020-05-15 Tom Tromey <tom@tromey.com>
9890
9891 * language.c (language_alloc_type_symbol): Set
9892 SYMBOL_SECTION.
9893 * symtab.c (initialize_objfile_symbol): Remove.
9894 (allocate_symbol): Remove.
9895 (allocate_template_symbol): Remove.
9896 * dwarf2/read.c (fixup_go_packaging): Use "new".
9897 (new_symbol): Use "new".
9898 (read_variable): Don't call initialize_objfile_symbol. Use
9899 "new".
9900 (read_func_scope): Use "new".
9901 * xcoffread.c (process_xcoff_symbol): Don't call
9902 initialize_objfile_symbol.
9903 (SYMBOL_DUP): Remove.
9904 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
9905 "new".
9906 * symtab.h (allocate_symbol, initialize_objfile_symbol)
9907 (allocate_template_symbol): Don't declare.
9908 (struct symbol): Add copy constructor. Change defaults.
9909 * jit.c (finalize_symtab): Use "new".
9910 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
9911 Use "new".
9912 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9913 (common_block_end): Use "new".
9914 * mdebugread.c (parse_symbol): Use "new".
9915 (new_symbol): Likewise.
9916
5b4a1a8d
PW
99172020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9918
9919 * NEWS: Mention changes to help and apropos.
9920
57b4f16e
PW
99212020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9922
9923 * command.h (enum command_class): Improve comments, document
9924 that class_alias is for user-defined aliases, give the class
9925 name for each class, remove unused class_xdb.
9926 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
9927 * breakpoint.c (_initialize_breakpoint): Replace class_alias
9928 by a precise class.
9929 * infcmd.c (_initialize_infcmd): Likewise.
9930 * reverse.c (_initialize_reverse): Likewise.
9931 * stack.c (_initialize_stack): Likewise.
9932 * symfile.c (_initialize_symfile): Likewise.
9933 * tracepoint.c (_initialize_tracepoint): Likewise.
9934
7c05caf7
PW
99352020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9936
9937 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
9938 when their aliased command is traversed.
9939 (help_cmd): Add fput_command_names_styled call to
9940 output command name and aliases when command has an alias.
9941
3b3aaacb
PW
99422020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9943
9944 * cli/cli-decode.h (help_cmd_list): Remove declaration.
9945 * cli/cli-decode.c (help_cmd_list): Declare as static,
9946 remove prefix argument, use bool for recurse arg, rework to show the aliases of
9947 a command together with the command.
9948 (fput_command_name_styled, fput_command_names_styled): New functions.
9949 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
9950 fput_command_name_styled.
9951 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
9952 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
9953
7aa1b46f
PW
99542020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9955
9956 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
9957 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
9958 * command.h (cmd_show_list): Likewise.
9959 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
9960 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
9961
89bcba74
PW
99622020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9963
9964 * unittests/command-def-selftests.c (traverse_command_structure):
9965 Verify all commands of a list have the same prefix command and
9966 that only the top cmdlist commands have a null prefix.
9967
3f4d92eb
PW
99682020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9969
9970 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
9971 as prefix, not one of its aliases.
9972 (set_cmd_prefix): Remove.
9973 (do_add_cmd): Centralize the setting of the prefix of a command, when
9974 command is defined after its full chain of prefix commands.
9975 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
9976 (add_setshow_cmd_full): Likewise.
9977 (update_prefix_field_of_prefixed_commands): New function.
9978 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
9979 update_prefix_field_of_prefixed_commands.
9980 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
9981 addresses of remote_set_cmdlist and remote_show_cmdlist given
9982 as argument, not the address of an argument.
9983 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
9984 * gdb/remote.c (_initialize_remote): Likewise.
9985
0605465f
PW
99862020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9987
9988 * cli/cli-cmds.c (alias_command): Check for an existing alias
9989 using lookup_cmd_composition, as valid_command_p is too strict
9990 and forbids aliases that are the prefix of an existing alias
9991 or command.
9992 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
9993 command is properly recognised as a valid command.
9994
58e6ac70
PW
99952020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9996
9997 * unittests/help-doc-selftests.c: Rename to
9998 unittests/command-def-selftests.c
9999 * unittests/command-def-selftests.c (help_doc_tests): Update some
10000 comments.
10001 (command_structure_tests, traverse_command_structure): New namespace
10002 and function.
10003 (command_structure_invariants_tests): New function.
10004 (_initialize_command_def_selftests) Renamed from
10005 _initialize_help_doc_selftests, register command_structure_invariants
10006 selftest.
10007
a7b9ceb8
PW
100082020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10009
10010 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
10011 an alias of 'show'.
10012
b2188a06
JB
100132020-05-15 Joel Brobecker <brobecker@adacore.com>
10014
10015 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
10016 ada_is_fixed_point_type. Update all callers.
10017 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
10018 all callers.
10019 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
10020 Update all callers.
10021 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
10022 print_fixed_point_type. Update all callers.
10023 * ada-valprint.c (ada_value_print_num): Replace call to
10024 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
10025
a51951c2
KB
100262020-05-14 Kevin Buettner <kevinb@redhat.com>
10027
10028 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
10029 processors.
10030 (cpu_supports_bts): Add CV_AMD case.
10031
29d6859f
LM
100322020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
10033 Simon Marchi <simon.marchi@efficios.com>
10034
10035 * infrun.c (stop_all_threads): Collect multiple wait events at
10036 each pass.
10037
78134374
SM
100382020-05-14 Simon Marchi <simon.marchi@efficios.com>
10039
10040 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
10041 type::code instead.
10042
67607e24
SM
100432020-05-14 Simon Marchi <simon.marchi@efficios.com>
10044
10045 * gdbtypes.h (struct type) <code, set_code>: New methods.
10046 (TYPE_CODE): Use type::code. Change all call sites used to set
10047 the code to use type::set_code instead.
10048
a05575d3
TBA
100492020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10050 Tom de Vries <tdevries@suse.de>
10051 Pedro Alves <palves@redhat.com>
10052
10053 PR threads/25478
10054 * infrun.c (stop_all_threads): Do NOT ignore
10055 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
10056 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
10057 received.
10058 (handle_no_resumed): Remove code handling a live inferior with no
10059 threads.
10060 * remote.c (has_single_non_exited_thread): New.
10061 (remote_target::update_thread_list): Do not delete a thread if is
10062 the last thread of the process.
10063 * thread.c (thread_select): Call delete_exited_threads instead of
10064 prune_threads.
10065
6ad82919
TBA
100662020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10067
10068 * infrun.c (stop_all_threads): Enable/disable thread events of all
10069 targets. Move a debug message denoting the end of the function
10070 into the SCOPED_EXIT block.
10071
d890404b
TBA
100722020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10073
10074 * process-stratum-target.h: Include <set>.
10075 (all_non_exited_process_targets, switch_to_target_no_thread): New
10076 function declarations.
10077 * process-stratum-target.c (all_non_exited_process_targets)
10078 (switch_to_target_no_thread): New function implementations.
10079
293b3ebc
TBA
100802020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10081
10082 * infrun.c (handle_inferior_event): Extract out a piece of code
10083 into...
10084 (mark_non_executing_threads): ...this new function.
10085
7ca9b62a
TBA
100862020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10087
10088 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
10089 use.
10090
fc75c28b
TBA
100912020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10092
10093 * regcache.c (regcache_read_pc_protected): New function
10094 implementation that returns 0 if the PC cannot read via
10095 'regcache_read_pc'.
10096 * infrun.c (proceed): Call 'regcache_read_pc_protected'
10097 instead of 'regcache_read_pc'.
10098 (keep_going_pass_signal): Ditto.
10099
a89febbd
TT
101002020-05-13 Tom Tromey <tromey@adacore.com>
10101
10102 * ada-lang.c (align_value): Remove.
10103 (ada_template_to_fixed_record_type_1): Use align_up.
10104
f7e23710
TBA
101052020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10106
10107 * async-event.c: Update the copyright year.
10108 * async-event.h: Update the copyright year.
10109
02ff80c2
SM
101102020-05-12 Simon Marchi <simon.marchi@efficios.com>
10111
10112 * objfiles.h (is_addr_in_objfile,
10113 shared_objfile_contains_address_p): Return bool.
10114 * objfile.c (is_addr_in_objfile,
10115 shared_objfile_contains_address_p): Return bool.
10116
4fd6c7e8
TT
101172020-05-11 Tom Tromey <tromey@adacore.com>
10118
10119 * cli/cli-cmds.c (info_command): Restore.
10120 (_initialize_cli_cmds): Use add_prefix_command for "info".
10121 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
10122
5eb68a39
TT
101232020-05-11 Tom Tromey <tromey@adacore.com>
10124
10125 * ada-lang.c (ada_value_primitive_field): Now public.
10126 * ada-lang.h (ada_value_primitive_field): Declare.
10127 * ada-valprint.c (print_field_values): Use
10128 ada_value_primitive_field for wrapper fields.
10129
7666722f
TV
101302020-05-11 Tom de Vries <tdevries@suse.de>
10131
10132 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
10133 MODULE_DOMAIN.
10134
3ee6bb11
TV
101352020-05-11 Tom de Vries <tdevries@suse.de>
10136
10137 PR symtab/25941
10138 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
10139 with length 0, if not gdb-produced.
10140 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
10141
43434996
TV
101422020-05-09 Tom de Vries <tdevries@suse.de>
10143
10144 PR gdb/25955
10145 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
10146 calculation.
10147
2f78cffc
TT
101482020-05-09 Tom Tromey <tom@tromey.com>
10149
10150 * top.c (server_command): Now bool.
10151 * top.h (server_command): Now bool.
10152
4f7bc5ed
TT
101532020-05-08 Tom Tromey <tromey@adacore.com>
10154
10155 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
10156 already being processed.
10157
8be4b118
TT
101582020-05-08 Tom Tromey <tom@tromey.com>
10159
10160 * printcmd.c (struct display) <next>: Remove.
10161 <display>: New constructor.
10162 <exp_string>: Now a std::string.
10163 <enabled_p>: Now a bool.
10164 (display_number): Move definition earlier.
10165 (displays): Rename from display_chain. Now a std::vector.
10166 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
10167 (display_command): Update.
10168 (do_one_display, disable_display)
10169 (enable_disable_display_command, do_enable_disable_display):
10170 Update.
10171 (free_display): Remove.
10172 (clear_displays): Rewrite.
10173 (delete_display): Update.
10174 (map_display_numbers): Use function_view. Remove "data"
10175 parameter. Update.
10176 (do_delete_display): Remove.
10177 (undisplay_command): Update.
10178 (do_one_display, do_displays, disable_display)
10179 (info_display_command): Update.
10180 (do_enable_disable_display): Remove.
10181 (enable_disable_display_command)
10182 (clear_dangling_display_expressions): Update.
10183
94c93c35
TT
101842020-05-08 Tom Tromey <tom@tromey.com>
10185
10186 * symtab.c (set_symbol_cache_size)
10187 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
10188 (maintenance_print_symbol_cache_statistics): Update.
10189 * symmisc.c (print_symbol_bcache_statistics)
10190 (print_objfile_statistics, maintenance_print_objfiles)
10191 (maintenance_info_symtabs, maintenance_check_symtabs)
10192 (maintenance_expand_symtabs, maintenance_info_line_tables):
10193 Update.
10194 * symfile-debug.c (set_debug_symfile): Update.
10195 * source.c (forget_cached_source_info): Update.
10196 * python/python.c (gdbpy_progspaces): Update.
10197 * psymtab.c (maintenance_info_psymtabs): Update.
10198 * probe.c (parse_probes): Update.
10199 * linespec.c (iterate_over_all_matching_symtabs)
10200 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
10201 * guile/scm-progspace.c (gdbscm_progspaces): Update.
10202 * exec.c (exec_target::close): Update.
10203 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
10204 * breakpoint.c (print_one_breakpoint_location)
10205 (create_longjmp_master_breakpoint)
10206 (create_std_terminate_master_breakpoint): Update.
10207 * progspace.c (program_spaces): Now a std::vector.
10208 (maybe_new_address_space): Update.
10209 (add_program_space): Remove.
10210 (program_space::program_space): Update.
10211 (remove_program_space): Update.
10212 (number_of_program_spaces): Remove.
10213 (print_program_space, update_address_spaces): Update.
10214 * progspace.h (program_spaces): Change type.
10215 (ALL_PSPACES): Remove.
10216 (number_of_program_spaces): Don't declare.
10217 (struct program_space) <next>: Remove.
10218
a1fd1ac9
TT
102192020-05-08 Tom Tromey <tom@tromey.com>
10220
10221 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
10222 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
10223 (enable_break): Update.
10224 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
10225 (frv_fdpic_find_canonical_descriptor): Update.
10226 (frv_fetch_objfile_link_map): Update.
10227 * progspace.c (program_space::free_all_objfiles): Update.
10228 (program_space::solibs): New method.
10229 * progspace.h (struct program_space) <solibs>: New method.
10230 * solist.h (master_so_list): Don't declare.
10231 (ALL_SO_LIBS): Remove.
10232 * solib.h (so_list_head): Remove.
10233 (update_solib_list): Update comment.
10234 * solib.c (master_so_list): Remove.
10235 (solib_used, update_solib_list, solib_add)
10236 (info_sharedlibrary_command, clear_solib)
10237 (reload_shared_libraries_1, remove_user_added_objfile): Update.
10238
38eae084
TT
102392020-05-08 Tom Tromey <tom@tromey.com>
10240
10241 * extension.c (extension_languages): Now a std::array.
10242 (ALL_EXTENSION_LANGUAGES): Remove.
10243 (get_ext_lang_defn, get_ext_lang_of_file)
10244 (eval_ext_lang_from_control_command): Update.
10245 (finish_ext_lang_initialization)
10246 (auto_load_ext_lang_scripts_for_objfile)
10247 (ext_lang_type_printers::ext_lang_type_printers)
10248 (apply_ext_lang_type_printers)
10249 (ext_lang_type_printers::~ext_lang_type_printers)
10250 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
10251 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
10252 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
10253 (get_matching_xmethod_workers, ext_lang_colorize)
10254 (ext_lang_before_prompt): Update.
10255 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
10256
596dc4ad
TT
102572020-05-08 Tom Tromey <tom@tromey.com>
10258
10259 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
10260 overload.
10261 <swap_string, m_string>: Remove.
10262 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
10263 Update.
10264 * stabsread.c (define_symbol, read_type): Update.
10265 * linespec.c (find_linespec_symbols): Update.
10266 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
10267 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
10268 * dbxread.c (read_dbx_symtab): Update.
10269 * cp-support.h (cp_canonicalize_string_full)
10270 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
10271 Return unique_xmalloc_ptr.
10272 * cp-support.c (inspect_type): Update.
10273 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
10274 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
10275 Likewise.
10276 * c-typeprint.c (print_name_maybe_canonical): Update.
10277 * break-catch-throw.c (check_status_exception_catchpoint):
10278 Update.
10279
bf4cb9be
TV
102802020-05-08 Tom de Vries <tdevries@suse.de>
10281
10282 * infrun.c (follow_fork): Copy current_line and current_symtab to
10283 child thread.
10284
a1b68f28
SM
102852020-05-07 Simon Marchi <simon.marchi@efficios.com>
10286
10287 * async-event.c (struct async_signal_handler, struct
10288 async_event_handler): Reformat, remove typedef.
10289
98d48915
SM
102902020-05-07 Simon Marchi <simon.marchi@efficios.com>
10291
10292 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
10293 access thistype->main_type->dyn_prop_list directly.
10294
7aa91313
SM
102952020-05-07 Simon Marchi <simon.marchi@efficios.com>
10296
10297 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
10298 (remove_dyn_prop): Remove. Update all users to use
10299 type::remove_dyn_prop.
10300 * gdbtypes.c (remove_dyn_prop): Rename to...
10301 (type::remove_dyn_prop): ... this.
10302
5c54719c
SM
103032020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
10304
10305 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
10306 (add_dyn_prop): Remove. Update all users to use
10307 type::add_dyn_prop.
10308 * gdbtypes.c (add_dyn_prop): Rename to...
10309 (type::add_dyn_prop): ... this.
10310
24e99c6c
SM
103112020-05-07 Simon Marchi <simon.marchi@efficios.com>
10312
10313 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
10314 (get_dyn_prop): Remove. Update all users to use
10315 type::dyn_prop.
10316 * gdbtypes.c (get_dyn_prop): Rename to...
10317 (type::dyn_prop): ... this.
10318
0d4bf016
SM
103192020-05-06 Simon Marchi <simon.marchi@efficios.com>
10320
10321 * gdbtypes.h (struct main_type) <flag_static>: Remove.
10322
ac4a4f1c
SM
103232020-05-06 Simon Marchi <simon.marchi@efficios.com>
10324
10325 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
10326 instruction, skip it if it's there.
10327
a3bbacc1
SM
103282020-05-05 Simon Marchi <simon.marchi@efficios.com>
10329
10330 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
10331
c3236f84
SM
103322020-05-04 Simon Marchi <simon.marchi@efficios.com>
10333
10334 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
10335 * gdbtypes.c (recursive_dump_type): Remove use of
10336 TYPE_INCOMPLETE.
10337
3b6acaee
TT
103382020-05-03 Tom Tromey <tom@tromey.com>
10339
10340 * breakpoint.c (catch_command, tcatch_command): Remove.
10341 (_initialize_breakpoint): Use add_basic_prefix_cmd,
10342 add_show_prefix_cmd.
10343 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
10344 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
10345 Remove.
10346 (add_internal_problem_command): Use add_basic_prefix_cmd,
10347 add_show_prefix_cmd.
10348 * mips-tdep.c (set_mipsfpu_command): Remove.
10349 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
10350 * dwarf2/index-cache.c (set_index_cache_command): Remove.
10351 (_initialize_index_cache): Use add_basic_prefix_cmd.
10352 * memattr.c (dummy_cmd): Remove.
10353 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
10354 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
10355 (_initialize_tui_win): Use add_basic_prefix_cmd,
10356 add_show_prefix_cmd.
10357 * cli/cli-logging.c (set_logging_command): Remove.
10358 (_initialize_cli_logging): Use add_basic_prefix_cmd,
10359 add_show_prefix_cmd.
10360 (show_logging_command): Remove.
10361 * target.c (target_command): Remove.
10362 (add_target): Use add_basic_prefix_cmd.
10363
a51119cd
HD
103642020-05-02 Hannes Domani <ssbssa@yahoo.de>
10365
10366 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
10367
652fc23a 103682020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 10369
652fc23a
PW
10370 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
10371 info_command.
10372
117539e6
KR
103732020-04-30 Kamil Rytarowski <n54@gmx.com>
10374
10375 * nbsd-nat.c (nbsd_enable_proc_events)
10376 (nbsd_nat_target::post_startup_inferior): Add.
10377 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
10378 (nbsd_nat_target::update_thread_list): Rewrite.
10379 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
10380 "PTRACE_LWP_CREATE".
10381 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
10382
102e38eb 103832020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 10384
102e38eb
PW
10385 * stack.c (_initialize_stack): Remove duplicated creation
10386 of "frame" command and "f" alias.
10387
ee9d1e5f
HD
103882020-04-30 Hannes Domani <ssbssa@yahoo.de>
10389
10390 PR gdb/18706
10391 * gdbtypes.c (check_typedef): Calculate size of array of
10392 stubbed type.
10393
627c7fb8
HD
103942020-04-30 Hannes Domani <ssbssa@yahoo.de>
10395
10396 PR gdb/15559
10397 * i386-tdep.c (i386_push_dummy_call): Call
10398 i386_thiscall_push_dummy_call.
10399 (i386_thiscall_push_dummy_call): New function.
10400 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
10401 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
10402 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
10403
ffc2844e
SM
104042020-04-29 Simon Marchi <simon.marchi@efficios.com>
10405
10406 * gdbarch.sh (do_read): Add shellcheck disable directive for
10407 warning SC2162.
10408
1207375d
SM
104092020-04-29 Simon Marchi <simon.marchi@efficios.com>
10410
10411 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
10412 "referenced but not assigned" warning.
10413
9fdb2916
SM
104142020-04-29 Simon Marchi <simon.marchi@efficios.com>
10415
10416 * gdbarch.sh: Remove code that sets fallbackdefault.
10417
759cea5e
SM
104182020-04-29 Simon Marchi <simon.marchi@efficios.com>
10419
10420 * gdbarch.sh: Use shell operators && and || instead of
10421 -a and -o.
10422
cb02ab24
SM
104232020-04-29 Simon Marchi <simon.marchi@efficios.com>
10424
10425 * gdbarch.sh: Use $(...) instead of `...`.
10426
a6fc5ffc
SM
104272020-04-29 Simon Marchi <simon.marchi@efficios.com>
10428
10429 * gdbarch.sh: Use double quotes around variables.
10430
8d113d13
SM
104312020-04-29 Simon Marchi <simon.marchi@efficios.com>
10432
10433 * gdbarch.sh: Use %s with printf, instead of variables in the
10434 format string.
10435
ed6acedd
TT
104362020-04-29 Tom Tromey <tromey@adacore.com>
10437
10438 PR ada/25875:
10439 * dwarf2/read.c (update_enumeration_type_from_children): Compute
10440 type fields here.
10441 (read_enumeration_type): Call
10442 update_enumeration_type_from_children later. Update comments.
10443 (process_enumeration_scope): Don't create type fields.
10444
b68b1b58
KR
104452020-04-29 Kamil Rytarowski <n54@gmx.com>
10446
10447 * nbsd-tdep.c: Include "xml-syscall.h".
10448 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
10449
f94b2e03
KR
104502020-04-29 Kamil Rytarowski <n54@gmx.com>
10451
10452 * nbsd-nat.c: Include "sys/wait.h".
10453 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
10454 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
10455 (nbsd_nat_target::remove_exec_catchpoint)
10456 (nbsd_nat_target::set_syscall_catchpoint): Add.
10457 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
10458 (nbsd_nat_target::insert_exec_catchpoint)
10459 (nbsd_nat_target::remove_exec_catchpoint)
10460 (nbsd_nat_target::set_syscall_catchpoint): Add.
10461 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
10462 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
10463 `nbsd_get_syscall_number'.
10464
fc49bc72
TT
104652020-04-29 Tom Tromey <tom@tromey.com>
10466
10467 * stack.c (print_block_frame_labels): Remove.
10468
d642b692
HD
104692020-04-29 Hannes Domani <ssbssa@yahoo.de>
10470
10471 PR gdb/17320
10472 * ada-valprint.c (val_print_packed_array_elements): Move array
10473 end bracket to new line.
10474 (ada_val_print_string): Remove extra spaces before first array
10475 element.
10476 * c-valprint.c (c_value_print_array): Likewise.
10477 * m2-valprint.c (m2_print_array_contents): Likewise.
10478 (m2_value_print_inner): Likewise.
10479 * p-valprint.c (pascal_value_print_inner): Likewise.
10480 * valprint.c (generic_val_print_array): Likewise.
10481 (value_print_array_elements): Move first array element and array
10482 end bracket to new line.
10483
ea90f227
TV
104842020-04-29 Tom de Vries <tdevries@suse.de>
10485
10486 PR symtab/25889
10487 * linespec.c (find_method): Fix ix calculation.
10488
4498ef4f
KR
104892020-04-28 Kamil Rytarowski <n54@gmx.com>
10490
10491 * syscalls/update-netbsd.sh: New file.
10492 * syscalls/netbsd.xml: Regenerate.
10493 * data-directory/Makefile.in: Register `netbsd.xml' in
10494 `SYSCALLS_FILES'.
10495
a55e30b5
SM
104962020-04-28 Simon Marchi <simon.marchi@efficios.com>
10497
10498 * syscalls/update-freebsd.sh: Add double quotes.
10499
2b2fbab8
TT
105002020-04-28 Tom Tromey <tom@tromey.com>
10501
10502 * NEWS: Update.
10503 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
10504 (cmdpy_init): Allow class_tui.
10505
a65189c9
TV
105062020-04-28 Mark Williams <mark@myosotissp.com>
10507
10508 PR gdb/24480
10509 * dwarf2read.c: Add missing assingments to list_in_scope when
10510 start_symtab was already called.
10511
1b95cdb7
SM
105122020-04-28 Simon Marchi <simon.marchi@efficios.com>
10513
10514 PR gdb/25881
10515 * dwarf2/read.c (offset_map_type): Use
10516 gdb:hash_enum<sect_offset> as hash function.
10517
15cd93d0
TV
105182020-04-28 Tom de Vries <tdevries@suse.de>
10519
10520 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
10521 with DW_AT_signature.
10522
1eb39914
SM
105232020-04-27 Simon Marchi <simon.marchi@efficios.com>
10524
10525 * configure.ac: Remove check for fs_base/gs_base in
10526 user_regs_struct.
10527 * configure: Re-generate.
10528 * config.in: Re-generate.
10529 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
10530 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
10531 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
10532
991a3e2e
LM
105332020-04-27 Luis Machado <luis.machado@linaro.org>
10534
10535 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
10536 problematic inline frame unwinding situation.
10537 * frame.c (frame_id_computed_p): New function.
10538 * frame.h (frame_id_computed_p): New prototype.
10539
361ba0e8
TT
105402020-04-26 Tom Tromey <tom@tromey.com>
10541
10542 * command.h (enum command_class) <class_pseudo>: Remove.
10543
bc3609fd
PW
105442020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10545
10546 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
10547 and whitespace.
10548
b9771db7
KR
105492020-04-25 Kamil Rytarowski <n54@gmx.com>
10550
ec16513e
SM
10551 * inf-ptrace.c (inf_ptrace_target::wait): Remove
10552 `PT_GET_PROCESS_STATE' block.
b9771db7 10553
7151c1af
TT
105542020-04-24 Tom Tromey <tom@tromey.com>
10555
10556 * symtab.h (symbol_get_demangled_name): Don't declare.
10557 * symtab.c (symbol_get_demangled_name): Remove.
10558 (general_symbol_info::natural_name)
10559 (general_symbol_info::demangled_name): Update.
10560
906bb4c5
TT
105612020-04-24 Tom Tromey <tom@tromey.com>
10562
10563 PR rust/25025:
10564 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
10565
bcfe6157
TT
105662020-04-24 Tom Tromey <tom@tromey.com>
10567
10568 PR symtab/12707:
10569 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
10570 exists.
10571 (new_symbol): Likewise.
10572 * compile/compile-object-load.c (get_out_value_type): Use
10573 symbol_matches_search_name.
10574
f049a313
TT
105752020-04-24 Tom Tromey <tom@tromey.com>
10576
10577 * dwarf2/read.c (add_partial_symbol): Do not call
10578 compute_and_set_names.
10579
76e288d1
TT
105802020-04-24 Tom Tromey <tom@tromey.com>
10581
10582 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
10583 overload.
10584
2467f4f6
TT
105852020-04-24 Tom Tromey <tom@tromey.com>
10586
10587 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
10588 (add_psymbol_to_list): New overload. Make old overload call new
10589 one.
10590 * psympriv.h (add_psymbol_to_list): New overload.
10591
e61108c9
TT
105922020-04-24 Tom Tromey <tom@tromey.com>
10593
10594 * dwarf2/read.c (partial_die_info::read) <case
10595 DW_AT_linkage_name>: Use value_as_string.
10596 (dwarf2_string_attr): Use value_as_string.
10597 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
10598 method.
10599 * dwarf2/attribute.c (attribute::value_as_string): New method.
10600
8c87a452
TT
106012020-04-24 Tom Tromey <tom@tromey.com>
10602
10603 * symtab.c (general_symbol_info::natural_name)
10604 (general_symbol_info::demangled_name): Check for language_rust.
10605
787de330
TT
106062020-04-24 Tom Tromey <tom@tromey.com>
10607
10608 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
10609 (dwarf2_physname): ... from here.
10610 (partial_die_info::read): Add Rust "{" hack.
10611
ff985671
TT
106122020-04-24 Tom Tromey <tom@tromey.com>
10613
10614 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
10615 method.
10616 (symbol_set_demangled_name): Don't declare.
10617 * symtab.c (general_symbol_info::set_demangled_name): Rename from
10618 symbol_set_demangled_name.
10619 (general_symbol_info::set_language)
10620 (general_symbol_info::compute_and_set_names): Update.
10621 * minsyms.c (minimal_symbol_reader::install): Update.
10622 * dwarf2/read.c (new_symbol): Update.
10623
1acda803
TT
106242020-04-24 Tom Tromey <tromey@adacore.com>
10625
10626 PR python/23662:
10627 * python/py-type.c (convert_field): Handle
10628 FIELD_LOC_KIND_DWARF_BLOCK.
10629 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
10630 (typy_get_dynamic): Nw function.
10631 (type_object_getset): Add "dynamic".
10632 * NEWS: Add entry.
10633
d656f129
TT
106342020-04-24 Tom Tromey <tromey@adacore.com>
10635
10636 * ada-typeprint.c (print_choices, print_variant_part)
10637 (print_record_field_types_dynamic): New functions.
10638 (print_record_field_types): Use print_record_field_types_dynamic.
10639
7d79de9a
TT
106402020-04-24 Tom Tromey <tromey@adacore.com>
10641
10642 * dwarf2/read.c (handle_data_member_location): New overload.
10643 (dwarf2_add_field): Use it.
10644 (decode_locdesc): Add "computed" parameter. Update comment.
10645 * gdbtypes.c (is_dynamic_type_internal): Also look for
10646 FIELD_LOC_KIND_DWARF_BLOCK.
10647 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
10648 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
10649 virtual base classes.
10650 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
10651 FIELD_LOC_KIND_DWARF_BLOCK.
10652
f8e89861
TT
106532020-04-24 Tom Tromey <tromey@adacore.com>
10654
10655 * dwarf2/read.c (read_structure_type): Handle dynamic length.
10656 * gdbtypes.c (is_dynamic_type_internal): Check
10657 TYPE_HAS_DYNAMIC_LENGTH.
10658 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
10659 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
10660 New macros.
10661 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
10662 constant.
10663
9c6a1327
TT
106642020-04-24 Tom Tromey <tromey@adacore.com>
10665
10666 * dwarf2/read.c (struct variant_field): Rewrite.
10667 (struct variant_part_builder): New.
10668 (struct nextfield): Remove "variant" field. Add "offset".
10669 (struct field_info): Add "current_variant_part" and
10670 "variant_parts".
10671 (alloc_discriminant_info): Remove.
10672 (alloc_rust_variant): New function.
10673 (quirk_rust_enum): Update.
10674 (dwarf2_add_field): Set "offset" member. Don't handle
10675 DW_TAG_variant_part.
10676 (offset_map_type): New typedef.
10677 (convert_variant_range, create_one_variant)
10678 (create_one_variant_part, create_variant_parts)
10679 (add_variant_property): New functions.
10680 (dwarf2_attach_fields_to_type): Call add_variant_property.
10681 (read_structure_type): Don't handle DW_TAG_variant_part.
10682 (handle_variant_part, handle_variant): New functions.
10683 (handle_struct_member_die): Use them.
10684 (process_structure_scope): Don't handle variant parts.
10685 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
10686 (struct discriminant_info): Remove.
10687 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
10688 (struct main_type) <flag_discriminated_union>: Remove.
10689 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
10690 (rust_enum_variant): Return int. Remove "contents". Rewrite.
10691 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
10692 Update.
10693 * valops.c (value_union_variant): Remove.
10694 * value.h (value_union_variant): Don't declare.
10695
b249d2c2
TT
106962020-04-24 Tom Tromey <tromey@adacore.com>
10697
10698 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
10699 (ada_value_primitive_packed_val): Update.
10700 * ada-valprint.c (ada_value_print_1): Update.
10701 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
10702 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
10703 just an address. Use evaluate_for_locexpr_baton.
10704 (dwarf2_evaluate_property): Update.
10705 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
10706 array_view.
10707 * findvar.c (default_read_var_value): Update.
10708 * gdbtypes.c (compute_variant_fields_inner)
10709 (resolve_dynamic_type_internal): Update.
10710 (resolve_dynamic_type): Change type of valaddr parameter.
10711 * gdbtypes.h (resolve_dynamic_type): Update.
10712 * valarith.c (value_subscripted_rvalue): Update.
10713 * value.c (value_from_contents_and_address): Update.
10714
61122aa9
TT
107152020-04-24 Tom Tromey <tromey@adacore.com>
10716
10717 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
10718 "push_initial_value" parameter.
10719 (dwarf2_evaluate_property): Likewise.
10720 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
10721
ef83a141
TT
107222020-04-24 Tom Tromey <tromey@adacore.com>
10723
10724 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
10725 (variant::matches, compute_variant_fields_recurse)
10726 (compute_variant_fields_inner, compute_variant_fields): New
10727 functions.
10728 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
10729 Use resolved_type after type is made.
10730 (operator==): Add new cases.
10731 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
10732 (struct discriminant_range, struct variant, struct variant_part):
10733 New.
10734 (union dynamic_prop_data) <variant_parts, original_type>: New
10735 members.
10736 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
10737 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
10738 constants.
10739 * value.c (unpack_bits_as_long): Now public.
10740 * value.h (unpack_bits_as_long): Declare.
10741
675127ec
TT
107422020-04-24 Tom Tromey <tromey@adacore.com>
10743
10744 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
10745 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
10746
9852ceef
HD
107472020-04-24 Hannes Domani <ssbssa@yahoo.de>
10748
10749 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
10750
7632c6ce
KR
107512020-04-24 Kamil Rytarowski <n54@gmx.com>
10752
10753 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
10754 (remove_fork_catchpoint, post_startup_inferior)
10755 (post_attach): Move...
10756 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
10757 (remove_fork_catchpoint, post_startup_inferior)
10758 (post_attach): ...here.
10759 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
10760 (remove_fork_catchpoint, post_startup_inferior)
10761 (post_attach): Move...
10762 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
10763 (remove_fork_catchpoint, post_startup_inferior)
10764 (post_attach): ...here.
10765
7be2bb4f
TT
107662020-04-24 Tom Tromey <tromey@adacore.com>
10767
10768 * nat/windows-nat.h (struct windows_thread_info)
10769 <pc_adjusted>: New member.
10770 * windows-nat.c (windows_fetch_one_register): Check
10771 pc_adjusted.
10772 (windows_nat_target::get_windows_debug_event)
10773 (windows_nat_target::wait): Set pc_adjusted.
10774
f80cb3b4
TV
107752020-04-24 Tom de Vries <tdevries@suse.de>
10776
10777 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
10778 Run gdb-add-index inside temp dir.
10779
29514b87
TT
107802020-04-23 Tom Tromey <tromey@adacore.com>
10781
10782 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
10783 in loop.
10784
5939967b
LM
107852020-04-23 Luis Machado <luis.machado@linaro.org>
10786
10787 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10788 get_frame_register instead of gdbarch_unwind_pc.
10789
70bc38f5
TV
107902020-04-23 Tom de Vries <tdevries@suse.de>
10791
10792 * symtab.c (lookup_global_symbol): Prefer def over decl.
10793
de82891c
TV
107942020-04-23 Tom de Vries <tdevries@suse.de>
10795
10796 PR symtab/25807
10797 * block.c (best_symbol, better_symbol): Promote to external.
10798 * block.h (best_symbol, better_symbol): Declare.
10799 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
10800 decl.
10801
ecc6c606
TT
108022020-04-23 Tom Tromey <tromey@adacore.com>
10803
10804 PR ada/25837:
10805 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
10806 "const char *", not a "const std::string &".
10807 <name_and_matcher::operator==>: Update.
10808 * unittests/lookup_name_info-selftests.c: Change type of
10809 "result".
10810
740480b8
TT
108112020-04-23 Tom Tromey <tom@tromey.com>
10812
10813 * inferior.h (iterate_over_inferiors): Don't declare.
10814 * inferior.c (iterate_over_inferiors): Remove.
10815 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
10816 Remove.
10817 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
10818 use iterate_over_inferiors.
10819 (darwin_resume_inferior_it)
10820 (struct resume_inferior_threads_param)
10821 (darwin_resume_inferior_threads_it): Remove.
10822 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
10823
ae3ab1f0
TV
108242020-04-23 Tom de Vries <tdevries@suse.de>
10825
10826 * blockframe.c (find_pc_partial_function): Use
10827 find_pc_sect_compunit_symtab rather than
10828 objfile->sf->qf->find_pc_sect_compunit_symtab.
10829
317d2668
TV
108302020-04-22 Tom de Vries <tdevries@suse.de>
10831
10832 PR symtab/25764
10833 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
10834 in psymtabs.
10835
eea9e357
TV
108362020-04-22 Tom de Vries <tdevries@suse.de>
10837
10838 PR symtab/25801
10839 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
10840 symtabs.
10841
3d5afab3
TV
108422020-04-22 Tom de Vries <tdevries@suse.de>
10843
10844 PR symtab/25700
10845 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
10846 CU if already created.
10847
d43b7a2d
TBA
108482020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10849
10850 * infrun.c (displaced_step_fixup): Switch to the event_thread
10851 before calling displaced_step_restore, not after.
10852
d89edf9b
MM
108532020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10854
10855 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
10856 its inferior is not recorded by us.
10857 (record_btrace_target_open): Replace call to
10858 all_non_exited_threads () with call to current_inferior
10859 ()->non_exited_threads ().
10860 (record_btrace_target::stop_recording): Likewise.
10861 (record_btrace_target::close): Likewise.
10862 (record_btrace_target::wait): Likewise.
10863 (record_btrace_target::record_stop_replaying): Likewise.
10864
5897fd49
MM
108652020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10866
10867 * btrace.c (btrace_enable): Throw an error on double enables and
10868 when enabling recording fails.
10869 (btrace_disable): Throw an error if the thread is not recorded.
10870
1a476b6d
MM
108712020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10872
10873 * record-btrace.c (record_btrace_target::fetch_registers): Forward
10874 request if we do not have a thread_info.
10875
4778a5f8
TV
108762020-04-21 Tom de Vries <tdevries@suse.de>
10877
10878 PR gdb/25471
10879 * thread.c
10880 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
10881 exception in get_frame_id.
10882
0fa7617d
TT
108832020-04-20 Tom Tromey <tromey@adacore.com>
10884
10885 * python/python.c (struct gdbpy_event): Mark move constructor as
10886 noexcept.
10887 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
10888 constructor as noexcept.
10889 * completer.h (struct completion_result): Mark move constructor as
10890 noexcept.
10891 * completer.c (completion_result::completion_result): Use
10892 initialization style. Don't call reset_match_list.
10893
ad23bda0
MS
108942020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
10895
10896 * MAINTAINERS (Write After Approval): Add myself.
10897
45e1f031
TT
108982020-04-18 Tom Tromey <tom@tromey.com>
10899
10900 * windows-tdep.c (init_w32_command_list)
10901 (w32_prefix_command_valid): Restore.
10902 (_initialize_windows_tdep): Call init_w32_command_list.
10903
08feed99
TT
109042020-04-18 Tom Tromey <tom@tromey.com>
10905
10906 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
10907 * value.c (value_fn_field): Update.
10908 * valops.c (find_function_in_inferior)
10909 (value_allocate_space_in_inferior): Update.
10910 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10911 Update.
10912 * tui/tui-source.c (tui_source_window::set_contents): Update.
10913 * symtab.c (lookup_global_or_static_symbol)
10914 (find_function_start_sal_1, skip_prologue_sal)
10915 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
10916 * symmisc.c (dump_msymbols, dump_symtab_1)
10917 (maintenance_print_one_line_table): Update.
10918 * symfile.c (init_entry_point_info, section_is_mapped)
10919 (list_overlays_command, simple_read_overlay_table)
10920 (simple_overlay_update_1): Update.
10921 * stap-probe.c (handle_stap_probe): Update.
10922 * stabsread.c (dbx_init_float_type, define_symbol)
10923 (read_one_struct_field, read_enum_type, read_range_type): Update.
10924 * source.c (info_line_command): Update.
10925 * python/python.c (gdbpy_source_objfile_script)
10926 (gdbpy_execute_objfile_script): Update.
10927 * python/py-type.c (save_objfile_types): Update.
10928 * python/py-objfile.c (py_free_objfile): Update.
10929 * python/py-inferior.c (python_new_objfile): Update.
10930 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
10931 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
10932 (maintenance_check_psymtabs): Update.
10933 * printcmd.c (info_address_command): Update.
10934 * objfiles.h (struct objfile) <arch>: New method, from
10935 get_objfile_arch.
10936 (get_objfile_arch): Don't declare.
10937 * objfiles.c (get_objfile_arch): Remove.
10938 (filter_overlapping_sections): Update.
10939 * minsyms.c (msymbol_is_function): Update.
10940 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
10941 (output_nondebug_symbol): Update.
10942 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
10943 (mdebug_expand_psymtab): Update.
10944 * machoread.c (macho_add_oso_symfile): Update.
10945 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
10946 Update.
10947 * linux-fork.c (checkpoint_command): Update.
10948 * linespec.c (convert_linespec_to_sals): Update.
10949 * jit.c (finalize_symtab): Update.
10950 * infrun.c (insert_exception_resume_from_probe): Update.
10951 * ia64-tdep.c (ia64_find_unwind_table): Update.
10952 * hppa-tdep.c (internalize_unwinds): Update.
10953 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
10954 Update.
10955 * gcore.c (call_target_sbrk): Update.
10956 * elfread.c (record_minimal_symbol, elf_symtab_read)
10957 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
10958 (elf_gnu_ifunc_resolve_by_got): Update.
10959 * dwarf2/read.c (create_addrmap_from_index)
10960 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10961 (read_debug_names_from_section)
10962 (process_psymtab_comp_unit_reader, add_partial_symbol)
10963 (add_partial_subprogram, process_full_comp_unit)
10964 (read_file_scope, read_func_scope, read_lexical_block_scope)
10965 (read_call_site_scope, dwarf2_ranges_read)
10966 (dwarf2_record_block_ranges, dwarf2_add_field)
10967 (mark_common_block_symbol_computed, read_tag_pointer_type)
10968 (read_tag_string_type, dwarf2_init_float_type)
10969 (dwarf2_init_complex_target_type, read_base_type)
10970 (partial_die_info::read, partial_die_info::read)
10971 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
10972 (dwarf2_fetch_die_loc_sect_off): Update.
10973 * dwarf2/loc.c (dwarf2_find_location_expression)
10974 (class dwarf_evaluate_loc_desc, rw_pieced_value)
10975 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
10976 (dwarf2_loc_desc_get_symbol_read_needs)
10977 (locexpr_describe_location_piece, locexpr_describe_location_1)
10978 (loclist_describe_location): Update.
10979 * dwarf2/index-write.c (write_debug_names): Update.
10980 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
10981 * dtrace-probe.c (dtrace_process_dof): Update.
10982 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
10983 (process_one_symbol): Update.
10984 * ctfread.c (ctf_init_float_type, read_base_type): Update.
10985 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
10986 (coff_read_enum_type): Update.
10987 * cli/cli-cmds.c (edit_command, list_command): Update.
10988 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
10989 * breakpoint.c (create_overlay_event_breakpoint)
10990 (create_longjmp_master_breakpoint)
10991 (create_std_terminate_master_breakpoint)
10992 (create_exception_master_breakpoint, get_sal_arch): Update.
10993 * block.c (block_gdbarch): Update.
10994 * annotate.c (annotate_source_line): Update.
10995
0743fc83
TT
109962020-04-17 Tom Tromey <tromey@adacore.com>
10997
10998 * auto-load.c (show_auto_load_cmd): Remove.
10999 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
11000 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
11001 (maintenance_print_arc_command): Remove.
11002 * tui/tui-win.c (tui_command): Remove.
11003 (tui_get_cmd_list): Use add_basic_prefix_cmd.
11004 * tui/tui-layout.c (tui_layout_command): Remove.
11005 (_initialize_tui_layout): Use add_basic_prefix_cmd.
11006 * python/python.c (user_set_python, user_show_python): Remove.
11007 (_initialize_python): Use add_basic_prefix_cmd,
11008 add_show_prefix_cmd.
11009 * guile/guile.c (set_guile_command, show_guile_command): Remove.
11010 (install_gdb_commands): Use add_basic_prefix_cmd,
11011 add_show_prefix_cmd.
11012 (info_guile_command): Remove.
11013 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
11014 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
11015 add_show_prefix_cmd.
11016 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
11017 Remove do_set and do_show parameters.
11018 * cli/cli-style.c (set_style, show_style): Remove.
11019 (_initialize_cli_style): Use add_basic_prefix_cmd,
11020 add_show_prefix_cmd.
11021 (cli_style_option::add_setshow_commands): Remove do_set and
11022 do_show parameters.
11023 (cli_style_option::add_setshow_commands): Use
11024 add_basic_prefix_cmd, add_show_prefix_cmd.
11025 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
11026 (set_style_name): Remove.
11027 * cli/cli-dump.c (dump_command, append_command): Remove.
11028 (srec_dump_command, ihex_dump_command, verilog_dump_command)
11029 (tekhex_dump_command, binary_dump_command)
11030 (binary_append_command): Remove.
11031 (_initialize_cli_dump): Use add_basic_prefix_cmd.
11032 * windows-tdep.c (w32_prefix_command_valid): Remove global.
11033 (init_w32_command_list): Remove; move into ...
11034 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
11035 * valprint.c (set_print, show_print, set_print_raw)
11036 (show_print_raw): Remove.
11037 (_initialize_valprint): Use add_basic_prefix_cmd,
11038 add_show_prefix_cmd.
11039 * typeprint.c (set_print_type, show_print_type): Remove.
11040 (_initialize_typeprint): Use add_basic_prefix_cmd,
11041 add_show_prefix_cmd.
11042 * record.c (set_record_command, show_record_command): Remove.
11043 (_initialize_record): Use add_basic_prefix_cmd,
11044 add_show_prefix_cmd.
11045 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
11046 add_show_prefix_cmd.
11047 (info_command, show_command, set_debug, show_debug): Remove.
11048 * top.h (set_history, show_history): Don't declare.
11049 * top.c (set_history, show_history): Remove.
11050 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
11051 (unset_tdesc_cmd): Remove.
11052 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
11053 add_show_prefix_cmd.
11054 * symtab.c (info_module_command): Remove.
11055 (_initialize_symtab): Use add_basic_prefix_cmd.
11056 * symfile.c (overlay_command): Remove.
11057 (_initialize_symfile): Use add_basic_prefix_cmd.
11058 * sparc64-tdep.c (info_adi_command): Remove.
11059 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
11060 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
11061 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
11062 add_show_prefix_cmd.
11063 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
11064 (_initialize_serial): Use add_basic_prefix_cmd,
11065 add_show_prefix_cmd.
11066 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
11067 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
11068 add_show_prefix_cmd.
11069 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
11070 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
11071 add_show_prefix_cmd.
11072 * riscv-tdep.c (show_riscv_command, set_riscv_command)
11073 (show_debug_riscv_command, set_debug_riscv_command): Remove.
11074 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
11075 add_show_prefix_cmd.
11076 * remote.c (remote_command, set_remote_cmd): Remove.
11077 (_initialize_remote): Use add_basic_prefix_cmd.
11078 * record-full.c (set_record_full_command)
11079 (show_record_full_command): Remove.
11080 (_initialize_record_full): Use add_basic_prefix_cmd,
11081 add_show_prefix_cmd.
11082 * record-btrace.c (cmd_set_record_btrace)
11083 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
11084 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
11085 (cmd_show_record_btrace_pt): Remove.
11086 (_initialize_record_btrace): Use add_basic_prefix_cmd,
11087 add_show_prefix_cmd.
11088 * ravenscar-thread.c (set_ravenscar_command)
11089 (show_ravenscar_command): Remove.
11090 (_initialize_ravenscar): Use add_basic_prefix_cmd,
11091 add_show_prefix_cmd.
11092 * mips-tdep.c (show_mips_command, set_mips_command)
11093 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
11094 add_show_prefix_cmd.
11095 * maint.c (maintenance_command, maintenance_info_command)
11096 (maintenance_check_command, maintenance_print_command)
11097 (maintenance_set_cmd, maintenance_show_cmd): Remove.
11098 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
11099 add_show_prefix_cmd.
11100 (show_per_command_cmd): Remove.
11101 * maint-test-settings.c (maintenance_set_test_settings_cmd):
11102 Remove.
11103 (maintenance_show_test_settings_cmd): Remove.
11104 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
11105 add_show_prefix_cmd.
11106 * maint-test-options.c (maintenance_test_options_command):
11107 Remove.
11108 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
11109 * macrocmd.c (macro_command): Remove
11110 (_initialize_macrocmd): Use add_basic_prefix_cmd.
11111 * language.c (set_check, show_check): Remove.
11112 (_initialize_language): Use add_basic_prefix_cmd,
11113 add_show_prefix_cmd.
11114 * infcmd.c (unset_command): Remove.
11115 (_initialize_infcmd): Use add_basic_prefix_cmd.
11116 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
11117 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
11118 add_show_prefix_cmd.
11119 * go32-nat.c (go32_info_dos_command): Remove.
11120 (_initialize_go32_nat): Use add_basic_prefix_cmd.
11121 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
11122 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
11123 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
11124 (_initialize_frame): Use add_basic_prefix_cmd,
11125 add_show_prefix_cmd.
11126 * dcache.c (set_dcache_command, show_dcache_command): Remove.
11127 (_initialize_dcache): Use add_basic_prefix_cmd,
11128 add_show_prefix_cmd.
11129 * cp-support.c (maint_cplus_command): Remove.
11130 (_initialize_cp_support): Use add_basic_prefix_cmd.
11131 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
11132 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
11133 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
11134 add_basic_prefix_cmd, add_show_prefix_cmd.
11135 * breakpoint.c (save_command): Remove.
11136 (_initialize_breakpoint): Use add_basic_prefix_cmd.
11137 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
11138 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
11139 add_show_prefix_cmd.
11140 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
11141 (set_ada_command, show_ada_command): Remove.
11142 (_initialize_ada_language): Use add_basic_prefix_cmd,
11143 add_show_prefix_cmd.
11144 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
11145
3557f442
KR
111462020-04-16 Kamil Rytarowski <n54@gmx.com>
11147
11148 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
11149 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
11150
16197208
SM
111512020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11152
11153 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
11154 warning messages.
11155
00ac85d3
SM
111562020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11157
11158 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
11159 import table is not at beginning of .idata section.
11160
381ce63f
PA
111612020-04-16 Pedro Alves <palves@redhat.com>
11162
11163 * inferior.c (delete_inferior): Use delete operator directly
11164 instead of delete_program_space.
11165 * progspace.c (add_program_space): New, factored out from
11166 program_space::program_space.
11167 (remove_program_space): New, factored out from
11168 delete_program_space.
11169 (program_space::program_space): Remove intro comment. Rewrite.
11170 (program_space::~program_space): Remove intro comment. Call
11171 remove_program_space.
11172 (delete_program_space): Delete.
11173 * progspace.h (program_space::program_space): Make explicit. Move
11174 intro comment here, adjusted.
11175 (program_space::~program_space): Move intro comment here,
11176 adjusted.
11177 (delete_program_space): Remove.
11178
a010605f
TT
111792020-04-16 Tom Tromey <tromey@adacore.com>
11180
11181 * windows-nat.c (windows_nat::handle_access_violation): New
11182 function.
11183 * nat/windows-nat.h (handle_access_violation): Declare.
11184 * nat/windows-nat.c (handle_exception): Move Cygwin code to
11185 windows-nat.c. Call handle_access_violation.
11186
efba5c23
TV
111872020-04-16 Tom de Vries <tdevries@suse.de>
11188
11189 PR symtab/25791
11190 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
11191 CUs without psymtab.
11192
97ed802d
KB
111932020-04-16 Kevin Buettner <kevinb@redhat.com>
11194
11195 * python/python.c (do_start_initialization): Don't call
11196 PyEval_InitThreads for Python 3.9 and beyond.
11197
c7d64809
KR
111982020-04-15 Kamil Rytarowski <n54@gmx.com>
11199
11200 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
11201 thread functions.
11202 (obsd_nat_target::wait): Likewise.
11203
ce127a96
TT
112042020-04-15 Tom Tromey <tromey@adacore.com>
11205
11206 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
11207 (DEBUG_EXCEPT): Use debug_printf.
11208
99f1bc6a
AB
112092020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
11210
11211 * completer.c (class completion_tracker::completion_hash_entry)
11212 <hash_name>: New member function.
11213 (completion_tracker::discard_completions): New callback to hash a
11214 completion_hash_entry, pass this to htab_create_alloc.
11215
a0e9b532
JT
112162016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
11217
11218 * windows-nat.c (windows_make_so): Warn rather than stopping with
11219 an error if realpath() fails.
11220
06ca5dd4
KR
112212020-04-14 Kamil Rytarowski <n54@gmx.com>
11222
11223 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
11224 (nbsd_nat_target::info_proc): Add do_status.
11225
194d088f
TV
112262020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
11227 Tom de Vries <tdevries@suse.de>
11228
11229 PR symtab/25718
11230 * psympriv.h (struct partial_symtab::read_symtab)
11231 (struct partial_symtab::expand_psymtab)
11232 (struct partial_symtab::read_dependencies): Update comments.
11233 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
11234 read_symtab for includer.
11235 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
11236 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
11237 (struct dwarf2_include_psymtab::m_readin): Remove.
11238 (struct dwarf2_include_psymtab::includer): New member function.
11239 (dwarf2_psymtab::expand_psymtab): Assert !readin.
11240
c1a66c06
TV
112412020-04-14 Tom de Vries <tdevries@suse.de>
11242
11243 PR symtab/25720
11244 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
11245 with NULL symbol_matcher and lookup_name.
11246 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
11247 and lookup_name.
11248 * dwarf2/read.c (dw2_expand_symtabs_matching)
11249 (dw2_debug_names_expand_symtabs_matching): Same.
11250 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
11251 Make lookup_name a pointer. Update comment.
11252 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
11253 lookup_name being a pointer.
11254 * symfile.c (expand_symtabs_matching): Same.
11255 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
11256 * linespec.c (iterate_over_all_matching_symtabs): Same.
11257
400b5eca
TT
112582020-04-13 Tom Tromey <tom@tromey.com>
11259
11260 * run-on-main-thread.c: Update include.
11261 * unittests/main-thread-selftests.c: Update include.
11262 * tui/tui-win.c: Update include.
11263 * tui/tui-io.c: Update include.
11264 * tui/tui-interp.c: Update include.
11265 * tui/tui-hooks.c: Update include.
11266 * top.h: Update include.
11267 * top.c: Update include.
11268 * ser-base.c: Update include.
11269 * remote.c: Update include.
11270 * remote-notif.c: Update include.
11271 * remote-fileio.c: Update include.
11272 * record-full.c: Update include.
11273 * record-btrace.c: Update include.
11274 * python/python.c: Update include.
11275 * posix-hdep.c: Update include.
11276 * mingw-hdep.c: Update include.
11277 * mi/mi-main.c: Update include.
11278 * mi/mi-interp.c: Update include.
11279 * main.c: Update include.
11280 * linux-nat.c: Update include.
11281 * interps.c: Update include.
11282 * infrun.c: Update include.
11283 * inf-loop.c: Update include.
11284 * event-top.c: Update include.
11285 * event-loop.c: Move to ../gdbsupport/.
11286 * event-loop.h: Move to ../gdbsupport/.
11287 * async-event.h: Update include.
11288 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
11289
93b54c8e
TT
112902020-04-13 Tom Tromey <tom@tromey.com>
11291
11292 * tui/tui-win.c: Include async-event.h.
11293 * remote.c: Include async-event.h.
11294 * remote-notif.c: Include async-event.h.
11295 * record-full.c: Include async-event.h.
11296 * record-btrace.c: Include async-event.h.
11297 * infrun.c: Include async-event.h.
11298 * event-top.c: Include async-event.h.
11299 * event-loop.h: Move some declarations to async-event.h.
11300 * event-loop.c: Don't include ser-event.h or top.h. Move some
11301 code to async-event.c.
11302 * async-event.h: New file.
11303 * async-event.c: New file.
11304 * Makefile.in (COMMON_SFILES): Add async-event.c.
11305 (HFILES_NO_SRCDIR): Add async-event.h.
11306
c1cd3163
TT
113072020-04-13 Tom Tromey <tom@tromey.com>
11308
11309 * utils.c (flush_streams): New function.
11310 * event-loop.c (gdb_wait_for_event): Call flush_streams.
11311
29f2bf4f
TT
113122020-04-13 Tom Tromey <tom@tromey.com>
11313
11314 * event-loop.c (handle_file_event): Use warning, not
11315 printf_unfiltered.
11316
98029d02
TT
113172020-04-13 Tom Tromey <tom@tromey.com>
11318
11319 * event-loop.c: Include <chrono>.
11320
06cc9596
TT
113212020-04-13 Tom Tromey <tom@tromey.com>
11322
11323 * gdb_select.h: Move to ../gdbsupport/.
11324 * event-loop.c: Update include path.
11325 * top.c: Update include path.
11326 * ser-base.c: Update include path.
11327 * ui-file.c: Update include path.
11328 * ser-tcp.c: Update include path.
11329 * guile/scm-ports.c: Update include path.
11330 * posix-hdep.c: Update include path.
11331 * ser-unix.c: Update include path.
11332 * gdb_usleep.c: Update include path.
11333 * mingw-hdep.c: Update include path.
11334 * inflow.c: Update include path.
11335 * infrun.c: Update include path.
11336 * event-top.c: Update include path.
11337
8ae8e197
TT
113382020-04-13 Tom Tromey <tom@tromey.com>
11339
11340 * configure: Rebuild.
11341 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
11342
58cf28e8
TT
113432020-04-13 Tom Tromey <tom@tromey.com>
11344
11345 * event-loop.h (start_event_loop): Don't declare.
11346 * event-loop.c (start_event_loop): Move...
11347 * main.c (start_event_loop): ...here. Now static.
11348
b7f999ae
SDJ
113492020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
11350
11351 * MAINTAINERS: Update my email address.
11352
1085dfd4
KR
113532020-04-12 Kamil Rytarowski <n54@gmx.com>
11354
11355 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
11356 IP_ALL.
11357
49d1d1f5
KR
113582020-04-12 Kamil Rytarowski <n54@gmx.com>
11359
11360 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 11361 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 11362
b4848d2a
KR
113632020-04-12 Kamil Rytarowski <n54@gmx.com>
11364
11365 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 11366 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 11367
51c133d5
KR
113682020-04-12 Kamil Rytarowski <n54@gmx.com>
11369
11370 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
11371
54b8cbd0
KR
113722020-04-11 Kamil Rytarowski <n54@gmx.com>
11373
11374 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
11375 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
11376 (nbsd_nat_target::info_proc): New functions.
11377 * nbsd-nat.c (kinfo_get_vmmap): New function.
11378 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
11379 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
11380 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
11381 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
11382 functions.
11383 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
11384 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
11385 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
11386 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
11387 (KINFO_VME_FLAG_GROWS_DOWN): New.
11388
cf83625d
AS
113892020-04-10 Artur Shepilko <nomadbyte@gmail.com>
11390
11391 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
11392 bit shift.
11393
0c4311ab
TT
113942020-04-10 Tom Tromey <tromey@adacore.com>
11395
11396 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
11397
3e65b3e9
TT
113982020-04-10 Tom Tromey <tromey@adacore.com>
11399
11400 * symtab.c (get_symbol_address, get_msymbol_address): Skip
11401 separate debug files.
11402
13302e95
HD
114032020-04-10 Hannes Domani <ssbssa@yahoo.de>
11404
11405 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11406 Move to...
11407 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11408 ... here.
11409 * windows-nat.c (windows_nat_target::get_windows_debug_event):
11410 Check for STATUS_WX86_BREAKPOINT.
11411 (windows_nat_target::wait): Same.
11412
bdfc1e8a
TV
114132020-04-10 Tom de Vries <tdevries@suse.de>
11414
11415 PR cli/25808
11416 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
11417
f4460aec
SM
114182020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11419
11420 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
11421 (Write After Approval): Remove Tom de Vries.
11422
a25198bb
BE
114232020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
11424
11425 revert partially:
11426 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11427
aac66a4c
SM
11428 * buildsym.c (record_line): Fix undefined behavior and preserve
11429 lines at eof.
a25198bb 11430
206c98a6
KR
114312020-04-09 Kamil Rytarowski <n54@gmx.com>
11432
11433 * auxv.h (svr4_auxv_parse): New.
11434 * auxv.c (default_auxv_parse): Split into default_auxv_parse
11435 and generic_auxv_parse.
11436 (svr4_auxv_parse): Add.
11437 * obsd-tdep.c: Include "auxv.h".
11438 (obsd_auxv_parse): Remove.
11439 (obsd_init_abi): Remove comment.
11440 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
11441 from `obsd_auxv_parse' to `svr4_auxv_parse'.
11442 * nbsd-tdep.c: Include "auxv.h".
11443 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
11444
71fbdbaf
TT
114452020-04-08 Tom Tromey <tromey@adacore.com>
11446
11447 * nat/windows-nat.h (last_wait_event): Don't declare.
11448 (wait_for_debug_event): Update comment.
11449 * nat/windows-nat.c (last_wait_event): Now static.
11450
2c1d95e8
TT
114512020-04-08 Tom Tromey <tromey@adacore.com>
11452
11453 * windows-nat.c (wait_for_debug_event): Move to
11454 nat/windows-nat.c.
11455 * nat/windows-nat.h (wait_for_debug_event): Declare.
11456 * nat/windows-nat.c (wait_for_debug_event): Move from
11457 windows-nat.c. No longer static.
11458
d2977bc4
TT
114592020-04-08 Tom Tromey <tromey@adacore.com>
11460
11461 * windows-nat.c (get_windows_debug_event): Use
11462 fetch_pending_stop.
11463 * nat/windows-nat.h (fetch_pending_stop): Declare.
11464 * nat/windows-nat.c (fetch_pending_stop): New function.
11465
e758e19c
TT
114662020-04-08 Tom Tromey <tromey@adacore.com>
11467
11468 * windows-nat.c (windows_continue): Use matching_pending_stop and
11469 continue_last_debug_event.
11470 * nat/windows-nat.h (matching_pending_stop)
11471 (continue_last_debug_event): Declare.
11472 * nat/windows-nat.c (DEBUG_EVENTS): New define.
11473 (matching_pending_stop, continue_last_debug_event): New
11474 functions.
11475
8d30e395
TT
114762020-04-08 Tom Tromey <tromey@adacore.com>
11477
11478 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
11479 (handle_exception_result): Move to nat/windows-nat.h.
11480 (DEBUG_EXCEPTION_SIMPLE): Remove.
11481 (windows_nat::handle_ms_vc_exception): New function.
11482 (handle_exception): Move to nat/windows-nat.c.
11483 (get_windows_debug_event): Update.
11484 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
11485 nat/windows-nat.c.
11486 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
11487 (handle_exception_result): Move from windows-nat.c.
11488 (handle_exception): Declare.
11489 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
11490 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
11491 windows-nat.c.
11492
29de418d
TT
114932020-04-08 Tom Tromey <tromey@adacore.com>
11494
11495 * windows-nat.c (exception_count, event_count): Remove.
11496 (handle_exception, get_windows_debug_event)
11497 (do_initial_windows_stuff): Update.
11498
a816ba18
TT
114992020-04-08 Tom Tromey <tromey@adacore.com>
11500
11501 * windows-nat.c (windows_nat::handle_load_dll)
11502 (windows_nat::handle_unload_dll): Rename. No longer static.
11503 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
11504 Declare.
11505
a00caa12
TT
115062020-04-08 Tom Tromey <tromey@adacore.com>
11507
11508 * complaints.h (stop_whining): Declare at top-level.
11509 (complaint): Don't declare stop_whining.
11510
d41b524f
TT
115112020-04-08 Tom Tromey <tromey@adacore.com>
11512
11513 * windows-nat.c (windows_nat::handle_output_debug_string):
11514 Rename. No longer static.
11515 * nat/windows-nat.h (handle_output_debug_string): Declare.
11516
3c76026d
TT
115172020-04-08 Tom Tromey <tromey@adacore.com>
11518
11519 * windows-nat.c (current_process_handle, current_process_id)
11520 (main_thread_id, last_sig, current_event, last_wait_event)
11521 (current_windows_thread, desired_stop_thread_id, pending_stops)
11522 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
11523 (display_selectors, fake_create_process)
11524 (get_windows_debug_event): Update.
11525 * nat/windows-nat.h (current_process_handle, current_process_id)
11526 (main_thread_id, last_sig, current_event, last_wait_event)
11527 (current_windows_thread, desired_stop_thread_id, pending_stops)
11528 (struct pending_stop, siginfo_er): Move from windows-nat.c.
11529 * nat/windows-nat.c (current_process_handle, current_process_id)
11530 (main_thread_id, last_sig, current_event, last_wait_event)
11531 (current_windows_thread, desired_stop_thread_id, pending_stops)
11532 (siginfo_er): New globals. Move from windows-nat.c.
11533
9d8679cc
TT
115342020-04-08 Tom Tromey <tromey@adacore.com>
11535
11536 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
11537 (handle_load_dll): Update.
11538 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
11539
28688adf
TT
115402020-04-08 Tom Tromey <tromey@adacore.com>
11541
11542 * windows-nat.c (enum thread_disposition_type): Move to
11543 nat/windows-nat.h.
11544 (windows_nat::thread_rec): Rename from thread_rec. No longer
11545 static.
11546 (windows_add_thread, windows_nat_target::fetch_registers)
11547 (windows_nat_target::store_registers, handle_exception)
11548 (windows_nat_target::resume, get_windows_debug_event)
11549 (windows_nat_target::get_tib_address)
11550 (windows_nat_target::thread_name)
11551 (windows_nat_target::thread_alive): Update.
11552 * nat/windows-nat.h (enum thread_disposition_type): Move from
11553 windows-nat.c.
11554 (thread_rec): Declare.
11555
4834dad0
TT
115562020-04-08 Tom Tromey <tromey@adacore.com>
11557
11558 * windows-nat.c: Add "using namespace".
11559 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
11560 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
11561
65bafd5b
TT
115622020-04-08 Tom Tromey <tromey@adacore.com>
11563
11564 * nat/windows-nat.h (struct windows_thread_info): Declare
11565 destructor.
11566 * nat/windows-nat.c (~windows_thread_info): New.
11567
0a4afda3
TT
115682020-04-08 Tom Tromey <tromey@adacore.com>
11569
11570 PR gdb/22992
11571 * windows-nat.c (current_event): Update comment.
11572 (last_wait_event, desired_stop_thread_id): New globals.
11573 (struct pending_stop): New.
11574 (pending_stops): New global.
11575 (windows_nat_target) <stopped_by_sw_breakpoint>
11576 <supports_stopped_by_sw_breakpoint>: New methods.
11577 (windows_fetch_one_register): Add assertions. Adjust PC.
11578 (windows_continue): Handle pending stops. Suspend other threads
11579 when stepping. Use last_wait_event
11580 (wait_for_debug_event): New function.
11581 (get_windows_debug_event): Use wait_for_debug_event. Handle
11582 pending stops. Queue spurious stops.
11583 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
11584 (windows_nat_target::kill): Use wait_for_debug_event.
11585 * nat/windows-nat.h (struct windows_thread_info)
11586 <stopped_at_software_breakpoint>: New field.
11587 * nat/windows-nat.c (windows_thread_info::resume): Clear
11588 stopped_at_software_breakpoint.
11589
8e61ebec
TT
115902020-04-08 Tom Tromey <tromey@adacore.com>
11591
11592 * windows-nat.c (enum thread_disposition_type): New.
11593 (thread_rec): Replace "get_context" parameter with "disposition";
11594 change type.
11595 (windows_add_thread, windows_nat_target::fetch_registers)
11596 (windows_nat_target::store_registers, handle_exception)
11597 (windows_nat_target::resume, get_windows_debug_event)
11598 (windows_nat_target::get_tib_address)
11599 (windows_nat_target::thread_name)
11600 (windows_nat_target::thread_alive): Update.
11601
98a03287
TT
116022020-04-08 Tom Tromey <tromey@adacore.com>
11603
11604 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
11605 (windows_continue): Use windows_continue::resume.
11606 * nat/windows-nat.h (struct windows_thread_info) <suspend,
11607 resume>: Declare new methods.
11608 * nat/windows-nat.c: New file.
11609 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
11610
7c7411bc
TT
116112020-04-08 Tom Tromey <tromey@adacore.com>
11612
11613 * windows-nat.c (windows_add_thread, windows_delete_thread)
11614 (windows_nat_target::fetch_registers)
11615 (windows_nat_target::store_registers, fake_create_process)
11616 (windows_nat_target::resume, windows_nat_target::resume)
11617 (get_windows_debug_event, windows_nat_target::wait)
11618 (windows_nat_target::pid_to_str)
11619 (windows_nat_target::get_tib_address)
11620 (windows_nat_target::get_ada_task_ptid)
11621 (windows_nat_target::thread_name)
11622 (windows_nat_target::thread_alive): Use lwp, not tid.
11623
2950fdf7
TT
116242020-04-08 Tom Tromey <tromey@adacore.com>
11625
11626 * windows-nat.c (handle_exception)
11627 (windows_nat_target::thread_name): Update.
11628 * nat/windows-nat.h (windows_thread_info): Remove destructor.
11629 <name>: Now unique_xmalloc_ptr.
11630
62fe396b
TT
116312020-04-08 Tom Tromey <tromey@adacore.com>
11632
11633 * windows-nat.c (thread_rec)
11634 (windows_nat_target::fetch_registers): Update.
11635 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
11636 Update comment.
11637 <debug_registers_changed, reload_context>: Now bool.
11638
e9534bd2
TT
116392020-04-08 Tom Tromey <tromey@adacore.com>
11640
11641 * windows-nat.c (windows_add_thread): Use new.
11642 (windows_init_thread_list, windows_delete_thread): Use delete.
11643 (get_windows_debug_event): Update.
11644 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
11645 destructor, and initializers.
11646
ae1f8880
TT
116472020-04-08 Tom Tromey <tromey@adacore.com>
11648
11649 * windows-nat.c (struct windows_thread_info): Remove.
11650 * nat/windows-nat.h: New file.
11651
55a1e039
TT
116522020-04-08 Tom Tromey <tromey@adacore.com>
11653
11654 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
11655 (thread_rec, windows_add_thread, windows_delete_thread)
11656 (windows_continue): Update.
11657
93366324
TT
116582020-04-08 Tom Tromey <tromey@adacore.com>
11659
11660 * windows-nat.c (struct windows_thread_info): Remove typedef.
11661 (thread_head): Remove.
11662 (thread_list): New global.
11663 (thread_rec, windows_add_thread, windows_init_thread_list)
11664 (windows_delete_thread, windows_continue): Update.
11665
0f2265e2
SM
116662020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11667
11668 * windows-tdep.h (windows_init_abi): Add comment.
11669 (cygwin_init_abi): New declaration.
11670 * windows-tdep.c: Split signal enumeration in two, one for
11671 Windows and one for Cygwin.
11672 (windows_gdb_signal_to_target): Only deal with signal of the
11673 Windows OS ABI.
11674 (cygwin_gdb_signal_to_target): New function.
11675 (windows_init_abi): Rename to windows_init_abi_common, don't set
11676 gdb_signal_to_target gdbarch method. Add new new function with
11677 this name.
11678 (cygwin_init_abi): New function.
11679 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
11680 comment. Don't call windows_init_abi.
11681 (amd64_windows_init_abi): Add comment, call windows_init_abi.
11682 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
11683 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
11684 i386_windows_init_abi_common, don't call windows_init_abi. Add
11685 a new function of this name.
11686 (i386_cygwin_init_abi): New function.
11687 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
11688 OS ABI Cygwin.
11689
3810f182
SM
116902020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11691
11692 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
11693 parameter.c.
11694 (dwarf2_read_gdb_index): Update.
11695
063f8e80
KR
116962020-04-07 Kamil Rytarowski <n54@gmx.com>
11697
11698 * nbsd-tdep.c: Include "objfiles.h".
11699 (nbsd_skip_solib_resolver): New.
11700 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
11701
85a9510c 117022020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11703
11704 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
11705 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
11706 with DW_LLE_base_addressx are being emitted in DWARFv5.
11707 Add the newly added kind DW_LOC_OFFSET_PAIR also.
11708 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
11709 unsigned integer.
11710
9fc3eaae 117112020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11712
11713 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
11714 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
11715 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
11716 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
11717 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
11718 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
11719 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
11720
11721
41144253 117222020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11723
11724 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
11725 (read_loclist_index): New function definition.
11726 (lookup_loclist_base): New function definition.
11727 (read_loclist_header): New function definition.
11728 (dwarf2_cu): Add loclist_base and loclist_header field.
11729 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
11730 (read_full_die_1): Read the value of DW_AT_loclists_base.
11731 (read_attribute_reprocess): Handle DW_FORM_loclistx.
11732 (read_attribute_value): Handle DW_FORM_loclistx.
11733 (skip_one_die): Handle DW_FORM_loclistx.
11734 (loclist_header): New structure declaration.
11735 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
11736
9f4e76a4
SM
117372020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11738
11739 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
11740 constructor. Remove `addr` parameter from other constructor and
11741 add `per_cu` parameter.
11742 * dwarf2/read.c (create_partial_symtab): Update.
11743
25c11aca
TV
117442020-04-07 Tom de Vries <tdevries@suse.de>
11745
11746 PR symtab/25796
11747 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
11748 (partial_die_info::fixup): Inherit has_const_value.
11749
5707e24b
TV
117502020-04-07 Tom de Vries <tdevries@suse.de>
11751
11752 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
11753 symbols without address.
11754
05f00e22
KR
117552020-04-06 Kamil Rytarowski <n54@gmx.com>
11756
11757 * nbsd-nat.h (struct thread_info): Add forward declaration.
11758 (nbsd_nat_target::thread_alive): Add.
11759 (nbsd_nat_target::thread_name): Likewise.
11760 (nbsd_nat_target::update_thread_list): Likewise.
11761 (update_thread_list::post_attach): Likewise.
11762 (post_attach::pid_to_str): Likewise.
11763 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
11764 (nbsd_thread_lister): Add.
11765 (nbsd_nat_target::thread_alive): Likewise.
11766 (nbsd_nat_target::thread_name): Likewise.
11767 (nbsd_add_threads): Likewise.
11768 (update_thread_list::post_attach): Likewise.
11769 (nbsd_nat_target::update_thread_list): Likewise.
11770 (post_attach::pid_to_str): Likewise.
11771
6ee448cc
TT
117722020-04-06 Tom Tromey <tromey@adacore.com>
11773
11774 * ada-valprint.c (print_variant_part): Extract the variant field.
11775 (print_field_values): Use the field as the outer value when
11776 recursing.
11777
dea34e8c
TT
117782020-04-06 Tom Tromey <tromey@adacore.com>
11779
11780 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
11781 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
11782 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
11783 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
11784 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
11785
93689ce9
TT
117862020-04-06 Tom Tromey <tromey@adacore.com>
11787
11788 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
11789 TYPE_CODE_ERROR.
11790
79743962
KR
117912020-04-06 Kamil Rytarowski <n54@gmx.com>
11792
11793 * nbsd-tdep.c: Include "gdbarch.h".
11794 Define enum with NetBSD signal numbers.
11795 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
11796 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
11797 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
11798 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
11799 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
11800 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
11801 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
11802 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11803 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
11804 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
11805 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
11806 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
11807
9e7c9a03
HD
118082020-04-03 Hannes Domani <ssbssa@yahoo.de>
11809
11810 PR gdb/25325
11811 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
11812
d9e49b61
TT
118132020-04-03 Tom Tromey <tromey@adacore.com>
11814
11815 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
11816 Read constant block.
11817
e0fc5c3f
SM
118182020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11819
11820 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
11821 (gdb_bfd_get_full_section_contents): New declaration.
11822 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
11823 * windows-tdep.c (is_linked_with_cygwin_dll): Use
11824 gdb_bfd_get_full_section_contents.
11825
e2ff18a0
SM
118262020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11827
11828 * exec.c (build_section_table): Replace internal_error with
11829 gdb_assert.
11830 (section_table_xfer_memory_partial): Likewise.
11831 * mdebugread.c (parse_partial_symbols): Likewise.
11832 * psymtab.c (lookup_partial_symbol): Likewise.
11833 * utils.c (wrap_here): Likewise.
11834
0830d301
TT
118352020-04-02 Tom Tromey <tromey@adacore.com>
11836
11837 * f-lang.c (build_fortran_types): Use arch_type to initialize
11838 builtin_complex_s32 in the TYPE_CODE_ERROR case.
11839
e7da7f8f
TT
118402020-04-02 Tom Tromey <tromey@adacore.com>
11841
11842 * dwarf2/read.c (partial_die_info::read): Do not create a vector
11843 of attributes.
11844
c90d28ac
AB
118452020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
11846 Bernd Edlinger <bernd.edlinger@hotmail.de>
11847 Tom Tromey <tromey@adacore.com>
11848
11849 * buildsym.c (buildsym_compunit::record_line): Remove
11850 deduplication code.
11851
1aa98955
TV
118522020-04-02 Tom de Vries <tdevries@suse.de>
11853
11854 PR ada/24671
11855 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
11856
d3214198
TV
118572020-04-02 Tom de Vries <tdevries@suse.de>
11858
11859 * dwarf2/read.c (dwarf2_gdb_index_functions,
11860 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
11861 NULL.
11862 * psymtab.c (psym_lookup_global_symbol_language): New function.
11863 (psym_functions): Init psym_lookup_global_symbol_language with
11864 psym_lookup_global_symbol_language.
11865 * symfile-debug.c (debug_sym_quick_functions): Init
11866 lookup_global_symbol_language with NULL.
11867 * symfile.c (set_initial_language): Remove fixme comment.
11868 * symfile.h (struct quick_symbol_functions): Add
11869 lookup_global_symbol_language.
11870 * symtab.c (find_quick_global_symbol_language): New function.
11871 (find_main_name): Use find_quick_global_symbol_language.
11872
2836752f
SM
118732020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11874
11875 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
11876
64dc2d4b
BE
118772020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11878
11879 * buildsym.c (record_line): Fix undefined behavior and preserve
11880 lines at eof.
11881
bbe3dc41
BE
118822020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11883
11884 * buildsym.c (record_line): Fix the resizing condition.
11885
6b4a335b
TT
118862020-04-01 Tom Tromey <tom@tromey.com>
11887
11888 * value.h (value_literal_complex): Add comment.
11889 * valops.c (value_literal_complex): Refer to value.h.
11890
3638a098
TT
118912020-04-01 Tom Tromey <tom@tromey.com>
11892
11893 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
11894 (scalar_type): New rule, from typebase.
11895 (typebase): Use scalar_type. Recognize complex types.
11896 (field_name): Handle FLOAT_KEYWORD.
11897 (ident_tokens): Add _Complex and __complex__.
11898
c34e8714
TT
118992020-04-01 Tom Tromey <tom@tromey.com>
11900
11901 PR exp/25299:
11902 * valarith.c (promotion_type, complex_binop): New functions.
11903 (scalar_binop): Handle complex numbers. Use promotion_type.
11904 (value_pos, value_neg, value_complement): Handle complex numbers.
11905
fa649bb7
TT
119062020-04-01 Tom Tromey <tom@tromey.com>
11907
11908 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
11909 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
11910 (parse_number): Handle complex numbers.
11911
981c08ce
TT
119122020-04-01 Tom Tromey <tom@tromey.com>
11913
11914 * c-valprint.c (c_decorations): Change complex suffix to "i".
11915
4c99290d
TT
119162020-04-01 Tom Tromey <tom@tromey.com>
11917
11918 * valprint.c (generic_value_print_complex): Use accessors.
11919 * value.h (value_real_part, value_imaginary_part): Declare.
11920 * valops.c (value_real_part, value_imaginary_part): New
11921 functions.
11922 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
11923
5b930b45
TT
119242020-04-01 Tom Tromey <tom@tromey.com>
11925
11926 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
11927 (read_range_type): Update.
11928 * mdebugread.c (basic_type): Update.
11929 * go-lang.c (build_go_types): Use init_complex_type.
11930 * gdbtypes.h (struct main_type) <complex_type>: New member.
11931 (init_complex_type): Update.
11932 (arch_complex_type): Don't declare.
11933 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
11934 Make name if none given. Use alloc_type_copy. Look for cached
11935 complex type.
11936 (arch_complex_type): Remove.
11937 (gdbtypes_post_init): Use init_complex_type.
11938 * f-lang.c (build_fortran_types): Use init_complex_type.
11939 * dwarf2/read.c (read_base_type): Update.
11940 * d-lang.c (build_d_types): Use init_complex_type.
11941 * ctfread.c (read_base_type): Update.
11942
53cccef1
TBA
119432020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11944
11945 * infrun.c (stop_all_threads): Update assertion, plus when
11946 stopping threads, take into account that we might be trying
11947 to stop an all-stop target.
11948 (stop_waiting): Call 'stop_all_threads' if there exists a
11949 non-stop target.
11950
a0714d30
TBA
119512020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11952
11953 * target.h (exists_non_stop_target): New function declaration.
11954 * target.c (exists_non_stop_target): New function.
11955
60e22c1e
HD
119562020-04-01 Hannes Domani <ssbssa@yahoo.de>
11957
11958 PR gdb/24789
11959 * eval.c (is_integral_or_integral_reference): New function.
11960 (evaluate_subexp_standard): Allow integer references in
11961 pointer arithmetic.
11962
e139a727
TBA
119632020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11964
11965 * remote.c (remote_target::remote_parse_stop_reply): Remove the
11966 check for no ptid in the stop reply when the target is non-stop.
11967
e0802d59
TT
119682020-04-01 Tom Tromey <tromey@adacore.com>
11969
11970 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
11971 "name" parameter to rvalue reference. Initialize m_name_holder.
11972 <lookup_name_info>: New overloads.
11973 <name>: Return gdb::string_view.
11974 <c_str>: New method.
11975 <make_ignore_params>: Update.
11976 <search_name_hash>: Update.
11977 <language_lookup_name>: Return const char *.
11978 <m_name>: Change type.
11979 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
11980 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
11981 (lookup_name_info::match_any): Update.
11982 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
11983 Update.
11984 * minsyms.c (linkage_name_str): Update.
11985 * language.c (default_symbol_name_matcher): Update.
11986 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
11987 Update.
11988 * ada-lang.c (ada_fold_name): Change parameter to string_view.
11989 (ada_lookup_name_info::ada_lookup_name_info): Update.
11990 (literal_symbol_name_matcher): Update.
11991
8c072cb6
TT
119922020-04-01 Tom Tromey <tromey@adacore.com>
11993
11994 * psymtab.c (psymtab_search_name): Remove function.
11995 (psym_lookup_symbol): Create search name and lookup name here.
11996 (lookup_partial_symbol): Remove "name" parameter; add
11997 lookup_name.
11998 (psym_expand_symtabs_for_function): Update.
11999
6f29a534
TT
120002020-03-31 Joel Jones <joelkevinjones@gmail.com>
12001
12002 PR tui/25597:
12003 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
12004
af62665e
TT
120052020-03-31 Tom Tromey <tromey@adacore.com>
12006
12007 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
12008 memcpy.
12009
d1a89da5
NC
120102020-03-30 Nelson Chu <nelson.chu@sifive.com>
12011
12012 * features/riscv/32bit-csr.xml: Regenerated.
12013 * features/riscv/64bit-csr.xml: Regenerated.
12014
d8af9068
TT
120152020-03-30 Tom Tromey <tromey@adacore.com>
12016
12017 * ada-valprint.c (print_variant_part): Update.
12018 * ada-lang.h (ada_which_variant_applies): Update.
12019 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
12020 outer_valaddr parameters; replace with "outer" value parameter.
12021 (to_fixed_variant_branch_type): Update.
12022
227c0bf4
PFC
120232020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12024
12025 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
12026 <list>. Remove inclusion of observable.h.
12027 (PPC_DEBUG_CURRENT_VERSION): Move up define.
12028 (struct arch_lwp_info): New struct.
12029 (class ppc_linux_dreg_interface): New class.
12030 (struct ppc_linux_process_info): New struct.
12031 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
12032 <low_new_clone, low_forget_process, low_prepare_to_resume>
12033 <copy_thread_dreg_state, mark_thread_stale>
12034 <mark_debug_registers_changed, register_hw_breakpoint>
12035 <clear_hw_breakpoint, register_wp, clear_wp>
12036 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
12037 <num_memory_accesses, get_trigger_type>
12038 <create_watchpoint_request, hwdebug_point_cmp>
12039 <init_arch_lwp_info, get_arch_lwp_info>
12040 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
12041 methods.
12042 <struct ptid_hash>: New inner struct.
12043 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
12044 members.
12045 (saved_dabr_value, hwdebug_info, max_slots_number)
12046 (struct hw_break_tuple, struct thread_points, ppc_threads)
12047 (have_ptrace_hwdebug_interface)
12048 (hwdebug_find_thread_points_by_tid)
12049 (hwdebug_insert_point, hwdebug_remove_point): Remove.
12050 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
12051 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
12052 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
12053 use m_dreg_interface.
12054 (hwdebug_point_cmp): Change to...
12055 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
12056 reference arguments instead of pointers.
12057 (ppc_linux_nat_target::ranged_break_num_registers): Use
12058 m_dreg_interface.
12059 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
12060 m_dreg_interface. Call register_hw_breakpoint.
12061 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
12062 m_dreg_interface. Call clear_hw_breakpoint.
12063 (get_trigger_type): Change to...
12064 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
12065 comment.
12066 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
12067 use m_dreg_interface. Call register_hw_breakpoint.
12068 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
12069 use m_dreg_interface. Call clear_hw_breakpoint.
12070 (can_use_watchpoint_cond_accel): Change to...
12071 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
12072 method. Update comment, use m_dreg_interface and
12073 m_process_info.
12074 (calculate_dvc): Change to...
12075 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
12076 m_dreg_interface.
12077 (num_memory_accesses): Change to...
12078 (ppc_linux_nat_target::num_memory_accesses): ...this method.
12079 (check_condition): Change to...
12080 (ppc_linux_nat_target::check_condition): ...this method.
12081 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
12082 comment, use m_dreg_interface.
12083 (create_watchpoint_request): Change to...
12084 (ppc_linux_nat_target::create_watchpoint_request): ...this
12085 method. Use m_dreg_interface.
12086 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
12087 m_dreg_interface. Call register_hw_breakpoint or register_wp.
12088 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
12089 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
12090 (ppc_linux_nat_target::low_forget_process)
12091 (ppc_linux_nat_target::low_new_fork)
12092 (ppc_linux_nat_target::low_new_clone)
12093 (ppc_linux_nat_target::low_delete_thread)
12094 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
12095 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
12096 only call mark_thread_stale.
12097 (ppc_linux_thread_exit): Remove.
12098 (ppc_linux_nat_target::stopped_data_address): Change to...
12099 (ppc_linux_nat_target::low_stopped_data_address): This. Add
12100 comment, use m_dreg_interface and m_thread_hw_breakpoints.
12101 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
12102 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
12103 comment. Call low_stopped_data_address.
12104 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
12105 m_dreg_interface.
12106 (ppc_linux_nat_target::masked_watch_num_registers): Use
12107 m_dreg_interface.
12108 (ppc_linux_nat_target::copy_thread_dreg_state)
12109 (ppc_linux_nat_target::mark_thread_stale)
12110 (ppc_linux_nat_target::mark_debug_registers_changed)
12111 (ppc_linux_nat_target::register_hw_breakpoint)
12112 (ppc_linux_nat_target::clear_hw_breakpoint)
12113 (ppc_linux_nat_target::register_wp)
12114 (ppc_linux_nat_target::clear_wp)
12115 (ppc_linux_nat_target::init_arch_lwp_info)
12116 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
12117 (_initialize_ppc_linux_nat): Remove observer callback.
12118
4db10d8f
PFC
121192020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12120
12121 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
12122 (ppc_linux_nat_target::auxv_parse)
12123 (ppc_linux_nat_target::read_description)
12124 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
12125 Move up.
12126
1310c1b0
PFC
121272020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12128
12129 * linux-nat.h (low_new_clone): New method.
12130 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
12131
69b037c3
SM
121322020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12133
12134 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
12135 (dbx_expand_psymtab): ... this.
12136 (start_psymtab): Update.
12137 * mdebugread.c (psymtab_to_symtab_1): Rename to...
12138 (mdebug_expand_psymtab): ... this.
12139 (parse_partial_symbols): Update.
12140 (new_psymtab): Update.
12141 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
12142 (xcoff_expand_psymtab): ... this.
12143 (xcoff_start_psymtab): Update.
12144
48993951
SM
121452020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12146
12147 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
12148 <expand_dependencies>: ... this.
12149 * psymtab.c (partial_symtab::read_dependencies): Rename to...
12150 (partial_symtab::expand_dependencies): ... this.
12151 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
12152 Update.
12153 (dwarf2_psymtab::expand_psymtab): Update.
12154 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12155 * mdebugread.c (psymtab_to_symtab_1): Update.
12156 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12157
3ad83046
SM
121582020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12159
12160 * psympriv.h (discard_psymtab): Remove.
12161 * dbxread.c (dbx_end_psymtab): Update.
12162 * xcoffread.c (xcoff_end_psymtab): Update.
12163
4d1b9ab6
TT
121642020-03-28 Tom Tromey <tom@tromey.com>
12165
12166 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
12167 comment.
12168
f1749218
TT
121692020-03-28 Tom Tromey <tom@tromey.com>
12170
12171 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
12172
ebea7626
HD
121732020-03-27 Hannes Domani <ssbssa@yahoo.de>
12174
12175 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12176
a879b4d5
JB
121772020-03-26 John Baldwin <jhb@FreeBSD.org>
12178
12179 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
12180
0826b30a
TT
121812020-03-26 Tom Tromey <tom@tromey.com>
12182
12183 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
12184 (mark_common_block_symbol_computed, read_tag_string_type)
12185 (attr_to_dynamic_prop, read_subrange_type): Update.
12186 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
12187 to be methods on struct attribute.
12188 (skip_one_die, process_imported_unit_die, read_namespace_alias)
12189 (read_call_site_scope, partial_die_info::read)
12190 (partial_die_info::read, lookup_die_type, follow_die_ref):
12191 Update.
12192 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
12193 from dwarf2_get_ref_die_offset.
12194 (attribute::constant_value): New method, from
12195 dwarf2_get_attr_constant_value.
12196 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
12197 Declare method.
12198 <constant_value>: New method.
12199
2b2558bf
TT
122002020-03-26 Tom Tromey <tom@tromey.com>
12201
12202 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
12203 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
12204 (dwarf_type_encoding_name): Move to stringify.c.
12205 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
12206 * dwarf2/stringify.c: New file.
12207 * dwarf2/stringify.h: New file.
12208
eeb64781
TT
122092020-03-26 Tom Tromey <tom@tromey.com>
12210
12211 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
12212 Rewrite.
12213
a39fdb41
TT
122142020-03-26 Tom Tromey <tom@tromey.com>
12215
12216 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
12217 methods.
12218 * dwarf2/read.c (lookup_addr_base): Move to die.h.
12219 (lookup_ranges_base): Likewise.
12220 (read_cutu_die_from_dwo, read_full_die_1): Update.
12221
436c571c
TT
122222020-03-26 Tom Tromey <tom@tromey.com>
12223
12224 * dwarf2/read.c (read_import_statement, read_file_scope)
12225 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
12226 (read_lexical_block_scope, read_call_site_scope)
12227 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
12228 (handle_struct_member_die, process_structure_scope)
12229 (update_enumeration_type_from_children)
12230 (process_enumeration_scope, read_array_type, read_common_block)
12231 (read_namespace, read_module, read_subroutine_type): Update.
12232 (sibling_die): Remove.
12233
052c8bb8
TT
122342020-03-26 Tom Tromey <tom@tromey.com>
12235
12236 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
12237 (build_type_psymtabs_reader, read_structure_type)
12238 (read_enumeration_type, read_full_die_1): Update.
12239 (dwarf2_attr_no_follow): Move to die.h.
12240 * dwarf2/die.h (struct die_info) <attr>: New method.
12241
2b24b6e4
TT
122422020-03-26 Tom Tromey <tom@tromey.com>
12243
12244 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
12245 <base_address>: Now an optional.
12246 (dwarf2_find_base_address, dwarf2_rnglists_process)
12247 (dwarf2_ranges_process, fill_in_loclist_baton)
12248 (dwarf2_symbol_mark_computed): Update.
12249
c2d50fd0
TT
122502020-03-26 Tom Tromey <tom@tromey.com>
12251
12252 * dwarf2/read.c (struct die_info): Move to die.h.
12253 * dwarf2/die.h: New file.
12254
0df7ad3a
TT
122552020-03-26 Tom Tromey <tom@tromey.com>
12256
12257 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
12258 * dwarf2/read.c
12259 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12260 Move to line-header.c.
12261 (read_checked_initial_length_and_offset, read_formatted_entries):
12262 Likewise.
12263 (dwarf_decode_line_header): Split into two.
12264 * dwarf2/line-header.c
12265 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12266 Move from read.c.
12267 (read_checked_initial_length_and_offset, read_formatted_entries):
12268 Likewise.
12269 (dwarf_decode_line_header): New function, split from read.c.
12270
86c0bb4c
TT
122712020-03-26 Tom Tromey <tom@tromey.com>
12272
12273 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
12274 Declare method.
12275 * dwarf2/read.c (read_attribute_value): Update.
12276 (dwarf2_per_objfile::read_line_string): Rename from
12277 read_indirect_line_string.
12278 (read_formatted_entries): Update.
12279
2ef46c2f
TT
122802020-03-26 Tom Tromey <tom@tromey.com>
12281
12282 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
12283 variable.
12284
4f9c1eda
TT
122852020-03-26 Tom Tromey <tom@tromey.com>
12286
12287 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
12288 const.
12289 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
12290 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
12291 parameter const.
12292
5a0e026f
TT
122932020-03-26 Tom Tromey <tom@tromey.com>
12294
12295 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
12296 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
12297 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
12298 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
12299
8844c11b
TT
123002020-03-26 Tom Tromey <tom@tromey.com>
12301
12302 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
12303 file_names_size, file_full_name, file_file_name>: Use const.
12304 <file_name_at, file_names>: Add const overload.
12305 * dwarf2/line-header.c (line_header::file_file_name)
12306 (line_header::file_full_name): Update.
12307
c90ec28a
TT
123082020-03-26 Tom Tromey <tom@tromey.com>
12309
12310 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
12311 (macro_start_file, consume_improper_spaces)
12312 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
12313 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
12314 (dwarf_decode_macros): Move to macro.c.
12315 * dwarf2/macro.c: New file.
12316 * dwarf2/macro.h: New file.
12317 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
12318
4f44ae6c
TT
123192020-03-26 Tom Tromey <tom@tromey.com>
12320
12321 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
12322 method.
12323 * dwarf2/section.c: New method. From
12324 read_indirect_string_at_offset_from.
12325 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
12326 (read_indirect_string_at_offset_from): Move to section.c.
12327 (read_indirect_string_at_offset): Rewrite.
12328 (read_indirect_line_string_at_offset): Remove.
12329 (read_indirect_string, read_indirect_line_string)
12330 (dwarf_decode_macro_bytes): Update.
12331
a0194fa8
TT
123322020-03-26 Tom Tromey <tom@tromey.com>
12333
12334 * dwarf2/section.h (struct dwarf2_section_info)
12335 <overload_complaint>: Declare.
12336 (dwarf2_section_buffer_overflow_complaint): Don't declare.
12337 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
12338 Rename from dwarf2_section_buffer_overflow_complaint.
12339 * dwarf2/read.c (skip_one_die, partial_die_info::read)
12340 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
12341
3d27bbdb
TT
123422020-03-26 Tom Tromey <tom@tromey.com>
12343
12344 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
12345 Declare.
12346 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
12347 Move from read.c.
12348 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
12349 to section.c.
12350
9eac9650
TT
123512020-03-26 Tom Tromey <tom@tromey.com>
12352
12353 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
12354
bf80d710
TT
123552020-03-26 Tom Tromey <tom@tromey.com>
12356
12357 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
12358 "builder".
12359 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
12360 parameter.
12361 (dwarf_decode_macros): Update.
12362
0314b390
TT
123632020-03-26 Tom Tromey <tom@tromey.com>
12364
12365 * dwarf2/read.c (read_attribute_value): Update.
12366 (read_indirect_string_from_dwz): Move to dwz.c; change into
12367 method.
12368 (dwarf_decode_macro_bytes): Update.
12369 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
12370 * dwarf2/dwz.c: New file.
12371 * Makefile.in (COMMON_SFILES): Add dwz.c.
12372
9fda78b6
TT
123732020-03-26 Tom Tromey <tom@tromey.com>
12374
12375 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
12376 * dwarf2/read.c: Add include.
12377 * dwarf2/index-write.c: Add include.
12378 * dwarf2/index-cache.c: Add include.
12379 * dwarf2/dwz.h: New file.
12380
33aa3c10
TT
123812020-03-25 Tom Tromey <tom@tromey.com>
12382
12383 * compile/compile-object-load.c (get_out_value_type): Mention
12384 correct symbol name in error message.
12385
d503b685
HD
123862020-03-25 Hannes Domani <ssbssa@yahoo.de>
12387
12388 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12389
7b1eff95
TV
123902020-03-25 Tom de Vries <tdevries@suse.de>
12391
12392 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
12393 * symmisc.c (dump_symtab_1): Print user and includes fields.
12394 (maintenance_info_symtabs): Same.
12395
dd895392
AB
123962020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
12397
12398 PR gdb/25534
12399 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
12400 (riscv_regcache_cooked_write): New function.
12401 (riscv_push_dummy_call): Use new function.
12402 (riscv_return_value): Likewise.
12403
5ab2fbf1
SM
124042020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
12405
12406 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
12407 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
12408 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
12409 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
12410 * infrun.c (follow_fork): Likewise.
12411 (follow_fork_inferior): Likewise.
12412 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
12413 * linux-nat.h (class linux_nat_target): Likewise.
12414 * remote.c (class remote_target) <follow_fork>: Likewise.
12415 (remote_target::follow_fork): Likewise.
12416 * target-delegates.c: Re-generate.
12417 * target.c (default_follow_fork): Likewise.
12418 (target_follow_fork): Likewise.
12419 * target.h (struct target_ops) <follow_fork>: Likewise.
12420 (target_follow_fork): Likewise.
12421
a64fafb5
TV
124222020-03-24 Tom de Vries <tdevries@suse.de>
12423
12424 * psymtab.c (maintenance_info_psymtabs): Print user field.
12425
fe26d3a3
TT
124262020-03-20 Tom Tromey <tromey@adacore.com>
12427
12428 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
12429 const.
12430 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
12431 const.
12432
c884cc46
SM
124332020-03-20 Simon Marchi <simon.marchi@efficios.com>
12434
12435 * ptrace.m4: Don't check for ptrace declaration.
12436 * config.in: Re-generate.
12437 * configure: Re-generate.
12438 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
12439 not defined.
12440
1ff700c2
KR
124412020-03-20 Kamil Rytarowski <n54@gmx.com>
12442
12443 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
12444 `PTRACE_TYPE_RET'.
12445 * i386-bsd-nat.c (gdb_ptrace): Likewise.
12446 * sparc-nat.c (gdb_ptrace): Likewise.
12447 * x86-bsd-nat.c (gdb_ptrace): Likewise.
12448
f7d4f0b1
TT
124492020-03-20 Tom Tromey <tromey@adacore.com>
12450
12451 * c-exp.y (lex_one_token): Fix assert.
12452
f67210ff
TT
124532020-03-20 Tom Tromey <tromey@adacore.com>
12454
12455 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
12456 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
12457 strncpy call.
12458
1773be9e
TT
124592020-03-20 Tom Tromey <tromey@adacore.com>
12460
12461 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
12462
70304be9
TT
124632020-03-20 Tom Tromey <tromey@adacore.com>
12464
12465 * ada-valprint.c (print_variant_part): Remove parameters; switch
12466 to value-based API.
12467 (print_field_values): Likewise.
12468 (ada_val_print_struct_union): Likewise.
12469 (ada_value_print_1): Update.
12470
9faa006d
KR
124712020-03-20 Kamil Rytarowski <n54@gmx.com>
12472
12473 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
12474 nbsd_nat_target instead of inf_ptrace_target.
12475 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12476 nbsd_nat_target.
12477
4a90f062
KR
124782020-03-20 Kamil Rytarowski <n54@gmx.com>
12479
12480 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
12481 it to the ptrace call.
12482 * (store_registers): Likewise.
12483
124842020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
12485
12486 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
12487 it to the ptrace call.
12488 * (store_registers): Likewise.
12489
2d07da27
LM
124902020-03-19 Luis Machado <luis.machado@linaro.org>
12491
12492 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
12493 valid, fetch vg value from ptrace.
12494
f09db380
KR
124952020-03-19 Kamil Rytarowski <n54@gmx.com>
12496 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
12497 * inf-ptrace.c: Likewise.
12498 * (gdb_ptrace): Add.
12499 * (inf_ptrace_target::resume): Update.
12500 * (inf_ptrace_target::xfer_partial): Likewise.
12501 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
12502 * (inf_ptrace_peek_poke): Update.
12503
fcc7376e
KR
125042020-03-19 Kamil Rytarowski <n54@gmx.com>
12505
12506 * x86-bsd-nat.c (gdb_ptrace): New.
12507 * (x86bsd_dr_set): Add new argument `ptid'.
12508 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
12509 x86bsd_dr_set_addr): Update.
12510
cada5fc9
AB
125112020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12512
12513 * remote.c (remote_target::process_stop_reply): Handle events for
12514 all threads differently.
12515
19a2740f
AB
125162020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12517
12518 * completer.c (completion_tracker::remove_completion): Define new
12519 function.
12520 * completer.h (completion_tracker::remove_completion): Declare new
12521 function.
12522 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
12523 when adding a C++ function symbol.
12524
724fd9ba
AB
125252020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12526
12527 * completer.c (completion_tracker::completion_hash_entry): Define
12528 new class.
12529 (advance_to_filename_complete_word_point): Call
12530 recompute_lowest_common_denominator.
12531 (completion_tracker::completion_tracker): Call discard_completions
12532 to setup the hash table.
12533 (completion_tracker::discard_completions): Allow for being called
12534 from the constructor, pass new equal function, and element deleter
12535 when constructing the hash table. Initialise new class member
12536 variables.
12537 (completion_tracker::maybe_add_completion): Remove use of
12538 m_entries_vec, and store more information into m_entries_hash.
12539 (completion_tracker::recompute_lcd_visitor): New function, most
12540 content taken from...
12541 (completion_tracker::recompute_lowest_common_denominator):
12542 ...here, this now just visits each item in the hash calling the
12543 above visitor.
12544 (completion_tracker::build_completion_result): Remove use of
12545 m_entries_vec, call recompute_lowest_common_denominator.
12546 * completer.h (completion_tracker::have_completions): Remove use
12547 of m_entries_vec.
12548 (completion_tracker::completion_hash_entry): Declare new class.
12549 (completion_tracker::recompute_lowest_common_denominator): Change
12550 function signature.
12551 (completion_tracker::recompute_lcd_visitor): Declare new function.
12552 (completion_tracker::m_entries_vec): Delete.
12553 (completion_tracker::m_entries_hash): Initialize to NULL.
12554 (completion_tracker::m_lowest_common_denominator_valid): New
12555 member variable.
12556 (completion_tracker::m_lowest_common_denominator_max_length): New
12557 member variable.
12558
5a82b8a1
KR
125592020-03-17 Kamil Rytarowski <n54@gmx.com>
12560
12561 * regformats/regdef.h: Put reg in gdb namespace.
12562
fb516a69
KR
125632020-03-17 Kamil Rytarowski <n54@gmx.com>
12564
12565 * i386-bsd-nat.c (gdb_ptrace): New.
12566 * (i386bsd_fetch_inferior_registers,
12567 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12568 * (i386bsd_fetch_inferior_registers,
12569 i386bsd_store_inferior_registers) Use gdb_ptrace.
12570
1c0aa1fb
KR
125712020-03-17 Kamil Rytarowski <n54@gmx.com>
12572
12573 * amd64-bsd-nat.c (gdb_ptrace): New.
12574 * (amd64bsd_fetch_inferior_registers,
12575 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12576 * (amd64bsd_fetch_inferior_registers,
12577 amd64bsd_store_inferior_registers) Use gdb_ptrace.
12578
5ccd2fb7
KR
125792020-03-17 Kamil Rytarowski <n54@gmx.com>
12580
12581 * user-regs.c (user_reg::read): Rename to...
12582 (user_reg::xread): ...this.
12583 * (append_user_reg): Rename argument `read' to `xread'.
12584 * (user_reg_add_builtin): Likewise.
12585 * (user_reg_add): Likewise.
12586 * (value_of_user_reg): Likewise.
12587
2108a63a
KR
125882020-03-17 Kamil Rytarowski <n54@gmx.com>
12589
12590 * sparc-nat.c (gdb_ptrace): New.
12591 * sparc-nat.c (sparc_fetch_inferior_registers)
12592 (sparc_store_inferior_registers) Remove obsolete comment.
12593 * sparc-nat.c (sparc_fetch_inferior_registers)
12594 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
12595 * sparc-nat.c (sparc_fetch_inferior_registers)
12596 (sparc_store_inferior_registers) Use gdb_ptrace.
12597
a225c9a8
KR
125982020-03-17 Kamil Rytarowski <n54@gmx.com>
12599
12600 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
12601 it to the ptrace call.
12602 * sh-nbsd-nat.c (store_registers): Likewise.
12603
98097623
KR
126042020-03-17 Kamil Rytarowski <n54@gmx.com>
12605
12606 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
12607 nbsd_nat_target instead of inf_ptrace_target.
12608 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12609 nbsd_nat_target.
12610
9e38d619
KR
126112020-03-17 Kamil Rytarowski <n54@gmx.com>
12612
12613 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
12614
a2ecbe9f
KR
126152020-03-17 Kamil Rytarowski <n54@gmx.com>
12616
12617 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
12618 <sys/sysctl.h>.
12619 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
12620
58990295
TV
126212020-03-17 Tom de Vries <tdevries@suse.de>
12622
12623 PR gdb/23710
12624 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
12625 fields.
12626 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
12627 fields.
12628 (process_imported_unit_die): Skip import of c++ CUs.
12629
771dd3a8
TT
126302020-03-16 Tom Tromey <tom@tromey.com>
12631
12632 * p-valprint.c (pascal_object_print_value): Initialize
12633 base_value.
12634
817a7585
AK
126352020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
12636 Shahab Vahedi <shahab@synopsys.com>
12637
12638 * Makefile.in: Add arch/arc.o
12639 * configure.tgt: Likewise.
12640 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
12641 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 12642 (arc_read_description): New function to cache target descriptions.
817a7585
AK
12643 * arc-tdep.h (arc_read_description): Add proto type.
12644 * arch/arc.c: New file.
12645 * arch/arc.h: Likewise.
12646 * features/Makefile: Replace old target descriptions with new.
12647 * features/arc-arcompact.c: Remove.
12648 * features/arc-arcompact.xml: Likewise.
12649 * features/arc-v2.c: Likewise
12650 * features/arc-v2.xml: Likewise
12651 * features/arc/aux-arcompact.xml: New file.
12652 * features/arc/aux-v2.xml: Likewise.
12653 * features/arc/core-arcompact.xml: Likewise.
12654 * features/arc/core-v2.xml: Likewise.
12655 * features/arc/aux-arcompact.c: Generate.
12656 * features/arc/aux-v2.c: Likewise.
12657 * features/arc/core-arcompact.c: Likewise.
12658 * features/arc/core-v2.c: Likewise.
12659 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
12660
67430cd0
TT
126612020-03-16 Tom Tromey <tromey@adacore.com>
12662
12663 PR gdb/25663:
12664 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
12665 putting value into bcache.
12666
30efb6c7
SM
126672020-03-16 Simon Marchi <simon.marchi@efficios.com>
12668
12669 PR gdb/21500
12670 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
12671 to...
12672 (amd64_windows_init_abi_common): ... this. Don't set size of
12673 long type.
12674 (amd64_windows_init_abi): New function.
12675 (amd64_cygwin_init_abi): New function.
12676 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
12677 the Cygwin OS ABI.
12678 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
12679 comment.
12680
8db52437
SM
126812020-03-16 Simon Marchi <simon.marchi@efficios.com>
12682
12683 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
12684 * windows-tdep.c (CYGWIN_DLL_NAME): New.
12685 (pe_import_directory_entry): New struct type.
12686 (is_linked_with_cygwin_dll): New function.
12687 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
12688 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
12689 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
12690
5982a56a
SM
126912020-03-16 Simon Marchi <simon.marchi@efficios.com>
12692
12693 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
12694 i386_cygwin_core_osabi_sniffer.
12695
7a1998df
SM
126962020-03-16 Simon Marchi <simon.marchi@efficios.com>
12697
12698 * i386-cygwin-tdep.c: Rename to...
12699 * i386-windows-tdep.c: ... this.
12700 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
12701 i386-windows-tdep.c.
12702 * configure.tgt: Likewise.
12703
053205cc
SM
127042020-03-16 Simon Marchi <simon.marchi@efficios.com>
12705
12706 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
12707 * osabi.c (gdb_osabi_names): Add "Windows".
12708 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
12709 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
12710 (i386_cygwin_core_osabi_sniffer): New function, extracted from
12711 i386_cygwin_osabi_sniffer.
12712 (_initialize_i386_cygwin_tdep): Register OS ABI
12713 GDB_OSABI_WINDOWS for i386.
12714 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
12715 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
12716 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
12717 for x86-64.
12718 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
12719 when the target matches '*-*-mingw*'.
12720
fe4b2ee6
SM
127212020-03-16 Simon Marchi <simon.marchi@efficios.com>
12722
12723 * defs.h (enum gdb_osabi): Move to...
12724 * osabi.h (enum gdb_osabi): ... here.
12725 * gdbarch.sh: Include osabi.h in gdbarch.h.
12726 * gdbarch.h: Re-generate.
12727
cb9b645d
SM
127282020-03-16 Simon Marchi <simon.marchi@efficios.com>
12729
12730 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
12731 function.
12732 (_initialize_amd64_windows_tdep): Register osabi sniffer.
12733
3293bbaf
TT
127342020-03-14 Tom Tromey <tom@tromey.com>
12735
12736 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
12737 for C++.
12738 (c_type_print_modifier): Likewise. Add "language" parameter.
12739 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
12740 (c_type_print_base_1): Update.
12741 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
12742 constants.
12743 * type-stack.c (type_stack::insert): Handle tp_atomic and
12744 tp_restrict.
12745 (type_stack::follow_type_instance_flags): Likewise.
12746 (type_stack::follow_types): Likewise. Merge type-following code.
12747 * c-exp.y (RESTRICT, ATOMIC): New tokens.
12748 (space_identifier, cv_with_space_id)
12749 (const_or_volatile_or_space_identifier_noopt)
12750 (const_or_volatile_or_space_identifier): Remove.
12751 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
12752 rules.
12753 (ptr_operator, typebase): Update.
12754 (enum token_flag) <FLAG_C>: New constant.
12755 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
12756 "_Atomic".
12757 (lex_one_token): Handle FLAG_C.
12758
154151a6
KR
127592020-03-14 Kamil Rytarowski <n54@gmx.com>
12760
12761 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
12762 it to the ptrace call.
12763 * m68k-bsd-nat.c (store_registers): Likewise.
12764
bc107784
KR
127652020-03-14 Kamil Rytarowski <n54@gmx.com>
12766
12767 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
12768 gdb_byte *.
12769 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
12770 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
12771 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
12772
01a80117
KR
127732020-03-14 Kamil Rytarowski <n54@gmx.com>
12774
12775 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
12776 nbsd_nat_target instead of inf_ptrace_target.
12777 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12778 nbsd_nat_target.
12779
f90280ca
KR
127802020-03-14 Kamil Rytarowski <n54@gmx.com>
12781
12782 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
12783 register_t.
12784
6def66f1
KR
127852020-03-14 Kamil Rytarowski <n54@gmx.com>
12786
12787 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
12788 it to the ptrace call.
12789 * alpha-bsd-nat.c (store_registers): Likewise.
12790
66eaca97
KR
127912020-03-14 Kamil Rytarowski <n54@gmx.com>
12792
12793 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
12794 includes.
12795 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
12796 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
12797 fill_fpregset): Likewise.
12798
4fed520b
KR
127992020-03-14 Kamil Rytarowski <n54@gmx.com>
12800
12801 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
12802 nbsd_nat_target instead of inf_ptrace_target.
12803 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12804 nbsd_nat_target.
12805
2190cf06
KR
128062020-03-14 Kamil Rytarowski <n54@gmx.com>
12807
12808 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
12809 register_t.
12810
75c56d3d
KR
128112020-03-14 Kamil Rytarowski <n54@gmx.com>
12812
12813 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
12814 it to the ptrace call.
12815 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
12816 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
12817 * arm-nbsd-nat.c (store_register): Likewise.
12818 * arm-nbsd-nat.c (store_regs): Likewise.
12819 * arm-nbsd-nat.c (store_fp_register): Likewise.
12820 * arm-nbsd-nat.c (store_fp_regs): Likewise.
12821
6018d381
KR
128222020-03-14 Kamil Rytarowski <n54@gmx.com>
12823
12824 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
12825 nbsd_nat_target instead of inf_ptrace_target.
12826 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12827 nbsd_nat_target.
12828
013f99f0
KR
128292020-03-14 Kamil Rytarowski <n54@gmx.com>
12830
12831 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
12832 it to the ptrace call.
12833 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
12834
12753073
KR
128352020-03-14 Kamil Rytarowski <n54@gmx.com>
12836
6227b330
KR
12837 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
12838 it to the ptrace call.
12839 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
12840
128412020-03-14 Kamil Rytarowski <n54@gmx.com>
12842
12843 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
12844 gdb_byte *.
12753073
KR
12845 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
12846
d5be5fa4
KR
128472020-03-14 Kamil Rytarowski <n54@gmx.com>
12848
12849 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
12850 instead of inf_ptrace_target.
12851 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12852 nbsd_nat_target.
12853
8110f842
KR
128542020-03-14 Kamil Rytarowski <n54@gmx.com>
12855
12856 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12857 register_t.
12858
52feded7
KR
128592020-03-14 Kamil Rytarowski <n54@gmx.com>
12860
12861 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12862 register_t.
12863
25567eee
KR
128642020-03-14 Kamil Rytarowski <n54@gmx.com>
12865
12866 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
12867 register_t.
12868
426a9c18
TT
128692020-03-13 Tom Tromey <tom@tromey.com>
12870
12871 * value.h (val_print): Don't declare.
12872 * valprint.h (val_print_array_elements)
12873 (val_print_scalar_formatted, generic_val_print): Don't declare.
12874 * valprint.c (generic_val_print_array): Take a struct value.
12875 (generic_val_print_ptr, generic_val_print_memberptr)
12876 (generic_val_print_bool, generic_val_print_int)
12877 (generic_val_print_char, generic_val_print_complex)
12878 (generic_val_print): Remove.
12879 (generic_value_print): Update.
12880 (do_val_print): Remove unused parameters. Don't call
12881 la_val_print.
12882 (val_print): Remove.
12883 (common_val_print): Update. Don't call value_check_printable.
12884 (val_print_scalar_formatted, val_print_array_elements): Remove.
12885 * rust-lang.c (rust_val_print): Remove.
12886 (rust_language_defn): Update.
12887 * p-valprint.c (pascal_val_print): Remove.
12888 (pascal_value_print_inner): Update.
12889 (pascal_object_print_val_fields, pascal_object_print_val):
12890 Remove.
12891 (pascal_object_print_static_field): Update.
12892 * p-lang.h (pascal_val_print): Don't declare.
12893 * p-lang.c (pascal_language_defn): Update.
12894 * opencl-lang.c (opencl_language_defn): Update.
12895 * objc-lang.c (objc_language_defn): Update.
12896 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
12897 * m2-lang.h (m2_val_print): Don't declare.
12898 * m2-lang.c (m2_language_defn): Update.
12899 * language.h (struct language_defn) <la_val_print>: Remove.
12900 * language.c (unk_lang_value_print_inner): Rename. Change
12901 argument types.
12902 (unknown_language_defn, auto_language_defn): Update.
12903 * go-valprint.c (go_val_print): Remove.
12904 * go-lang.h (go_val_print): Don't declare.
12905 * go-lang.c (go_language_defn): Update.
12906 * f-valprint.c (f_val_print): Remove.
12907 * f-lang.h (f_value_print): Don't declare.
12908 * f-lang.c (f_language_defn): Update.
12909 * d-valprint.c (d_val_print): Remove.
12910 * d-lang.h (d_value_print): Don't declare.
12911 * d-lang.c (d_language_defn): Update.
12912 * cp-valprint.c (cp_print_value_fields)
12913 (cp_print_value_fields_rtti, cp_print_value): Remove.
12914 (cp_print_static_field): Update.
12915 * c-valprint.c (c_val_print_array, c_val_print_ptr)
12916 (c_val_print_struct, c_val_print_union, c_val_print_int)
12917 (c_val_print_memberptr, c_val_print): Remove.
12918 * c-lang.h (c_val_print_array, cp_print_value_fields)
12919 (cp_print_value_fields_rtti): Don't declare.
12920 * c-lang.c (c_language_defn, cplus_language_defn)
12921 (asm_language_defn, minimal_language_defn): Update.
12922 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
12923 (ada_val_print_enum): Take a struct value.
12924 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
12925 (ada_val_print): Remove.
12926 (ada_value_print_1): Update.
12927 (printable_val_type): Remove.
12928 * ada-lang.h (ada_val_print): Don't declare.
12929 * ada-lang.c (ada_language_defn): Update.
12930
42331a1e
TT
129312020-03-13 Tom Tromey <tom@tromey.com>
12932
12933 * valprint.c (do_val_print): Update.
12934 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
12935 a struct value.
12936 (value_to_value_object_no_release): Declare.
12937 * python/py-value.c (value_to_value_object_no_release): New
12938 function.
12939 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
12940 struct value.
12941 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
12942 function.
12943 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
12944 a struct value.
12945 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
12946 Declare.
12947 (gdbscm_apply_val_pretty_printer): Take a struct value.
12948 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
12949 value.
12950 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
12951 value.
12952 * extension-priv.h (struct extension_language_ops)
12953 <apply_val_pretty_printer>: Take a struct value.
12954 * cp-valprint.c (cp_print_value): Create a struct value.
12955 (cp_print_value): Update.
12956
3a916a97
TT
129572020-03-13 Tom Tromey <tom@tromey.com>
12958
12959 * ada-valprint.c (print_field_values): Call common_val_print.
12960
b59eac37
TT
129612020-03-13 Tom Tromey <tom@tromey.com>
12962
12963 * ada-valprint.c (val_print_packed_array_elements): Remove
12964 bitoffset and val parameters. Call common_val_print.
12965 (ada_val_print_string): Remove offset, address, and original_value
12966 parameters.
12967 (ada_val_print_array): Update.
12968 (ada_value_print_array): New function.
12969 (ada_value_print_1): Call it.
12970
03371129
TT
129712020-03-13 Tom Tromey <tom@tromey.com>
12972
12973 * ada-valprint.c (ada_value_print): Use common_val_print.
12974
2e088f8b
TT
129752020-03-13 Tom Tromey <tom@tromey.com>
12976
12977 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
12978
39ef85a8
TT
129792020-03-13 Tom Tromey <tom@tromey.com>
12980
12981 * ada-valprint.c (ada_value_print_num): New function.
12982 (ada_value_print_1): Use it.
12983
b9fa6e07
TT
129842020-03-13 Tom Tromey <tom@tromey.com>
12985
12986 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
12987
416595d6
TT
129882020-03-13 Tom Tromey <tom@tromey.com>
12989
12990 * ada-valprint.c (ada_value_print_ptr): New function.
12991 (ada_value_print_1): Use it.
12992
5b5e15ec
TT
129932020-03-13 Tom Tromey <tom@tromey.com>
12994
12995 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
12996 call common_val_print.
12997 (ada_val_print_1): Update.
12998 (ada_value_print_1): New function.
12999 (ada_value_print_inner): Rewrite.
13000
fbf54e75
TT
130012020-03-13 Tom Tromey <tom@tromey.com>
13002
13003 * cp-valprint.c (cp_print_value_fields): Update.
13004 (cp_print_value): New function.
13005
64b653ca
TT
130062020-03-13 Tom Tromey <tom@tromey.com>
13007
13008 * m2-valprint.c (m2_value_print_inner): Use
13009 cp_print_value_fields.
13010 * cp-valprint.c (cp_print_value_fields): New function.
13011 * c-valprint.c (c_value_print_struct): New function.
13012 (c_value_print_inner): Use c_value_print_struct.
13013 * c-lang.h (cp_print_value_fields): Declare.
13014
6999f067
TT
130152020-03-13 Tom Tromey <tom@tromey.com>
13016
13017 * c-valprint.c (c_value_print_array): New function.
13018 (c_value_print_inner): Use it.
13019
ce80b8bd
TT
130202020-03-13 Tom Tromey <tom@tromey.com>
13021
13022 * c-valprint.c (c_value_print_memberptr): New function.
13023 (c_value_print_inner): Use it.
13024
2faac269
TT
130252020-03-13 Tom Tromey <tom@tromey.com>
13026
13027 * c-valprint.c (c_value_print_int): New function.
13028 (c_value_print_inner): Use it.
13029
da3e2c29
TT
130302020-03-13 Tom Tromey <tom@tromey.com>
13031
13032 * c-valprint.c (c_value_print_ptr): New function.
13033 (c_value_print_inner): Use it.
13034
50836231
TT
130352020-03-13 Tom Tromey <tom@tromey.com>
13036
13037 * c-valprint.c (c_value_print_inner): Rewrite.
13038
4f412b6e
TT
130392020-03-13 Tom Tromey <tom@tromey.com>
13040
13041 * valprint.c (generic_value_print_complex): New function.
13042 (generic_value_print): Use it.
13043
f5354008
TT
130442020-03-13 Tom Tromey <tom@tromey.com>
13045
13046 * valprint.c (generic_val_print_float): Don't call
13047 val_print_scalar_formatted.
13048 (generic_val_print, generic_value_print): Update.
13049
3eec3b05
TT
130502020-03-13 Tom Tromey <tom@tromey.com>
13051
13052 * valprint.c (generic_value_print_char): New function
13053 (generic_value_print): Use it.
13054
fdddfccb
TT
130552020-03-13 Tom Tromey <tom@tromey.com>
13056
13057 * valprint.c (generic_value_print_int): New function.
13058 (generic_value_print): Use it.
13059
6dde7521
TT
130602020-03-13 Tom Tromey <tom@tromey.com>
13061
13062 * valprint.c (generic_value_print_bool): New function.
13063 (generic_value_print): Use it.
13064
4112d2e6
TT
130652020-03-13 Tom Tromey <tom@tromey.com>
13066
13067 * valprint.c (generic_val_print_func): Simplify.
13068 (generic_val_print, generic_value_print): Update.
13069
65786af6
TT
130702020-03-13 Tom Tromey <tom@tromey.com>
13071
13072 * valprint.c (generic_val_print_flags): Remove.
13073 (generic_val_print, generic_value_print): Update.
13074 (val_print_type_code_flags): Add original_value parameter.
13075
40f3ce18
TT
130762020-03-13 Tom Tromey <tom@tromey.com>
13077
13078 * valprint.c (generic_val_print): Update.
13079 (generic_value_print): Update.
13080 * valprint.c (generic_val_print_enum): Don't call
13081 val_print_scalar_formatted.
13082
2a5b130b
TT
130832020-03-13 Tom Tromey <tom@tromey.com>
13084
13085 * valprint.c (generic_value_print): Call generic_value_print_ptr.
13086 * valprint.c (generic_value_print_ptr): New function.
13087
abc66ce9
TT
130882020-03-13 Tom Tromey <tom@tromey.com>
13089
13090 * valprint.c (generic_value_print): Rewrite.
13091
07a32858
TT
130922020-03-13 Tom Tromey <tom@tromey.com>
13093
13094 * p-valprint.c (pascal_object_print_value_fields)
13095 (pascal_object_print_value): New functions.
13096
64d64d3a
TT
130972020-03-13 Tom Tromey <tom@tromey.com>
13098
13099 * p-valprint.c (pascal_value_print_inner): Rewrite.
13100
6a95a1f5
TT
131012020-03-13 Tom Tromey <tom@tromey.com>
13102
13103 * f-valprint.c (f_value_print_innner): Rewrite.
13104
59fcdac6
TT
131052020-03-13 Tom Tromey <tom@tromey.com>
13106
13107 * m2-valprint.c (m2_print_unbounded_array): New overload.
13108 (m2_print_unbounded_array): Update.
13109 (m2_print_array_contents): Take a struct value.
13110 (m2_value_print_inner): Rewrite.
13111
d133c3e1
TT
131122020-03-13 Tom Tromey <tom@tromey.com>
13113
13114 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
13115 (d_value_print_inner): New function.
13116 * d-lang.h (d_value_print_inner): Declare.
13117 * d-lang.c (d_language_defn): Use d_value_print_inner.
13118
23b0f06b
TT
131192020-03-13 Tom Tromey <tom@tromey.com>
13120
13121 * go-valprint.c (go_value_print_inner): New function.
13122 * go-lang.h (go_value_print_inner): Declare.
13123 * go-lang.c (go_language_defn): Use go_value_print_inner.
13124
5f56f7cb
TT
131252020-03-13 Tom Tromey <tom@tromey.com>
13126
13127 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
13128 API.
13129 (rust_val_print): Rewrite.
13130 (rust_value_print_inner): New function, from rust_val_print.
13131 (rust_language_defn): Use rust_value_print_inner.
13132
26792ee0
TT
131332020-03-13 Tom Tromey <tom@tromey.com>
13134
13135 * ada-valprint.c (ada_value_print_inner): New function.
13136 * ada-lang.h (ada_value_print_inner): Declare.
13137 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
13138
24051bbe
TT
131392020-03-13 Tom Tromey <tom@tromey.com>
13140
13141 * f-valprint.c (f_value_print_innner): New function.
13142 * f-lang.h (f_value_print_innner): Declare.
13143 * f-lang.c (f_language_defn): Use f_value_print_innner.
13144
c0941be6
TT
131452020-03-13 Tom Tromey <tom@tromey.com>
13146
13147 * p-valprint.c (pascal_value_print_inner): New function.
13148 * p-lang.h (pascal_value_print_inner): Declare.
13149 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
13150
62c4663d
TT
131512020-03-13 Tom Tromey <tom@tromey.com>
13152
13153 * m2-valprint.c (m2_value_print_inner): New function.
13154 * m2-lang.h (m2_value_print_inner): Declare.
13155 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
13156
62182190
TT
131572020-03-13 Tom Tromey <tom@tromey.com>
13158
13159 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
13160 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
13161 * c-valprint.c (c_value_print_inner): New function.
13162 * c-lang.h (c_value_print_inner): Declare.
13163 * c-lang.c (c_language_defn, cplus_language_defn)
13164 (asm_language_defn, minimal_language_defn): Use
13165 c_value_print_inner.
13166
1e592a8a
TT
131672020-03-13 Tom Tromey <tom@tromey.com>
13168
13169 * p-valprint.c (pascal_object_print_value_fields): Now static.
13170 * p-lang.h (pascal_object_print_value_fields): Don't declare.
13171
7fe471e9
TT
131722020-03-13 Tom Tromey <tom@tromey.com>
13173
13174 * c-valprint.c (c_val_print_array): Simplify.
13175
d121c6ce
TT
131762020-03-13 Tom Tromey <tom@tromey.com>
13177
13178 * valprint.c (value_print_array_elements): New function.
13179 * valprint.h (value_print_array_elements): Declare.
13180
4dba70ee
TT
131812020-03-13 Tom Tromey <tom@tromey.com>
13182
13183 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
13184 * mips-tdep.c (mips_print_register): Use
13185 value_print_scalar_formatted.
13186
4f9ae810
TT
131872020-03-13 Tom Tromey <tom@tromey.com>
13188
13189 * valprint.h (value_print_scalar_formatted): Declare.
13190 * valprint.c (value_print_scalar_formatted): New function.
13191
156bfec9
TT
131922020-03-13 Tom Tromey <tom@tromey.com>
13193
13194 * valprint.h (generic_value_print): Declare.
13195 * valprint.c (generic_value_print): New function.
13196
2b4e573d
TT
131972020-03-13 Tom Tromey <tom@tromey.com>
13198
13199 * valprint.c (do_val_print): Call la_value_print_inner, if
13200 available.
13201 * rust-lang.c (rust_language_defn): Update.
13202 * p-lang.c (pascal_language_defn): Update.
13203 * opencl-lang.c (opencl_language_defn): Update.
13204 * objc-lang.c (objc_language_defn): Update.
13205 * m2-lang.c (m2_language_defn): Update.
13206 * language.h (struct language_defn) <la_value_print_inner>: New
13207 member.
13208 * language.c (unknown_language_defn, auto_language_defn): Update.
13209 * go-lang.c (go_language_defn): Update.
13210 * f-lang.c (f_language_defn): Update.
13211 * d-lang.c (d_language_defn): Update.
13212 * c-lang.c (c_language_defn, cplus_language_defn)
13213 (asm_language_defn, minimal_language_defn): Update.
13214 * ada-lang.c (ada_language_defn): Update.
13215
a1f6a07c
TT
132162020-03-13 Tom Tromey <tom@tromey.com>
13217
13218 * c-valprint.c (c_value_print): Use common_val_print.
13219
410cf315
TT
132202020-03-13 Tom Tromey <tom@tromey.com>
13221
13222 * cp-valprint.c (cp_print_static_field): Use common_val_print.
13223
72a45c93
TT
132242020-03-13 Tom Tromey <tom@tromey.com>
13225
13226 * f-valprint.c (f77_print_array_1, f_val_print): Use
13227 common_val_print.
13228
040f66bd
TT
132292020-03-13 Tom Tromey <tom@tromey.com>
13230
13231 * riscv-tdep.c (riscv_print_one_register_info): Use
13232 common_val_print.
13233
a6e05a6c
TT
132342020-03-13 Tom Tromey <tom@tromey.com>
13235
13236 * mi/mi-main.c (output_register): Use common_val_print.
13237
3444c526
TT
132382020-03-13 Tom Tromey <tom@tromey.com>
13239
13240 * infcmd.c (default_print_one_register_info): Use
13241 common_val_print.
13242
c2a44efe
TT
132432020-03-13 Tom Tromey <tom@tromey.com>
13244
13245 * valprint.h (common_val_print_checked): Declare.
13246 * valprint.c (common_val_print_checked): New function.
13247 * stack.c (print_frame_arg): Use common_val_print_checked.
13248
b0c26e99
TT
132492020-03-13 Tom Tromey <tom@tromey.com>
13250
13251 * valprint.c (do_val_print): New function, from val_print.
13252 (val_print): Use do_val_print.
13253 (common_val_print): Use do_val_print.
13254
ce3acbe9
TT
132552020-03-13 Tom Tromey <tom@tromey.com>
13256
13257 * valprint.c (value_print): Use scoped_value_mark.
13258
96c7f873
TV
132592020-03-13 Tom de Vries <tdevries@suse.de>
13260
13261 PR symtab/25646
13262 * psymtab.c (partial_symtab::partial_symtab): Don't set
13263 globals_offset and statics_offset. Push element onto
13264 current_global_psymbols and current_static_psymbols stacks.
13265 (concat): New function.
13266 (end_psymtab_common): Set globals_offset and statics_offset. Pop
13267 element from current_global_psymbols and current_static_psymbols
13268 stacks. Concat popped elements to global_psymbols and
13269 static_symbols.
13270 (add_psymbol_to_list): Use current_global_psymbols and
13271 current_static_psymbols stacks.
13272 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
13273 current_static_psymbols fields.
13274
6ba0a321
CB
132752020-03-12 Christian Biesinger <cbiesinger@google.com>
13276
13277 * corelow.c (sniff_core_bfd): Remove.
13278 (class core_target) <m_core_vec>: Remove.
13279 (core_target::core_target): Update.
13280 (core_file_fns): Remove.
13281 (deprecated_add_core_fns): Remove.
13282 (default_core_sniffer): Remove.
13283 (sniff_core_bfd): Remove.
13284 (default_check_format): Remove.
13285 (gdb_check_format): Remove.
13286 (core_target_open): Update.
13287 (core_target::get_core_register_section): Update.
13288 (get_core_registers_cb): Update.
13289 (core_target::fetch_registers): Update.
13290 * gdbcore.h (struct core_fns): Remove.
13291 (deprecated_add_core_fns): Remove.
13292 (default_core_sniffer): Remove.
13293 (default_check_format): Remove.
13294
227031b2
TT
132952020-03-12 Tom Tromey <tom@tromey.com>
13296
13297 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
13298 CORE_ADDR.
13299 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
13300
53807e9f
TT
133012020-03-12 Tom Tromey <tom@tromey.com>
13302
13303 * remote.c (remote_target::download_tracepoint)
13304 (remote_target::enable_tracepoint)
13305 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
13306 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
13307 sprintf_vma.
13308
64f25102
TT
133092020-03-12 Tom Tromey <tom@tromey.com>
13310
13311 * symfile-mem.c: Update CORE_ADDR size assert.
13312
272cd5a3
SM
133132020-03-12 Simon Marchi <simon.marchi@efficios.com>
13314
13315 * selftest.m4: Move to gdbsupport/.
13316 * acinclude.m4: Update path to selftest.m4.
13317
74cd3f9d
SM
133182020-03-12 Simon Marchi <simon.marchi@efficios.com>
13319
13320 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
13321 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
13322 gdbarch-selfselftests.c and selftest-arch.c.
13323 (SUBDIR_UNITTESTS_OBS): Rename to...
13324 (SELFTESTS_OBS): ... this.
13325 (COMMON_SFILES): Remove disasm-selftests.c and
13326 gdbarch-selftests.c.
13327 * configure.ac: Don't add selftest-arch.{c,o} to
13328 CONFIG_{SRCS,OBS}.
13329 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
13330 preprocessor conditions.
13331
db6878ac
SM
133322020-03-12 Simon Marchi <simon.marchi@efficios.com>
13333
13334 * configure.ac: Don't source bfd/development.sh.
13335 * selftest.m4: Modify comment.
13336 * configure: Re-generate.
13337
4d696a5c
SM
133382020-03-12 Simon Marchi <simon.marchi@efficios.com>
13339
13340 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
13341 not "true" or "false".
13342 * configure: Re-generate.
13343
8dd8e1c7
CB
133442020-03-12 Christian Biesinger <cbiesinger@google.com>
13345
13346 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
13347 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
13348 renamed to arm_nbsd_supply_gregset.
13349 (fetch_register): Update to call arm_nbsd_supply_gregset.
13350 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
13351 (arm_netbsd_nat_target::fetch_registers): Update.
13352 (fetch_elfcore_registers): Removed.
13353 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
13354 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
13355 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
13356 not require NetBSD system headers.
13357 (arm_nbsd_regset): New struct.
13358 (arm_nbsd_iterate_over_regset_sections): New function.
13359 (arm_netbsd_init_abi_common): Updated to call
13360 set_gdbarch_iterate_over_regset_sections.
13361 * arm-nbsd-tdep.h: New file.
13362
dd69bf7a
KB
133632020-03-11 Kevin Buettner <kevinb@redhat.com>
13364
13365 * symtab.c (find_pc_sect_line): Add check which prevents infinite
13366 recursion.
13367
a0761e34
SM
133682020-03-11 Simon Marchi <simon.marchi@efficios.com>
13369
13370 * configure: Re-generate.
13371
e7a82140
TT
133722020-03-11 Tom Tromey <tromey@adacore.com>
13373
13374 * ada-typeprint.c (print_choices): Fix comment.
13375
dcc050c8
AB
133762020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
13377
13378 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
13379 previous item in the list, when the list has no items.
13380
1c33af77
TV
133812020-03-11 Tom de Vries <tdevries@suse.de>
13382
13383 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
13384 PROP_LOCLIST handling code.
13385
8c95582d
AB
133862020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
13387
13388 * buildsym-legacy.c (record_line): Pass extra parameter to
13389 record_line.
13390 * buildsym.c (buildsym_compunit::record_line): Take an extra
13391 parameter, reduce duplication in the line table, and record the
13392 is_stmt flag in the line table.
13393 * buildsym.h (buildsym_compunit::record_line): Add extra
13394 parameter.
13395 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
13396 non-statement lines.
13397 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
13398 this to the symtab builder.
13399 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
13400 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
13401 through to dwarf_record_line_1.
13402 * infrun.c (process_event_stop_test): When stepping, don't stop at
13403 a non-statement instruction, and only refresh the step info when
13404 we land in the middle of a line's range. Also add an extra
13405 comment.
13406 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
13407 field.
13408 * record-btrace.c (btrace_find_line_range): Only record lines
13409 marked as is-statement.
13410 * stack.c (frame_show_address): Show the frame address if we are
13411 in a non-statement sal.
13412 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
13413 (maintenance_print_one_line_table): Print a header for the is_stmt
13414 column, and include is_stmt information in the output.
13415 * symtab.c (find_pc_sect_line): Find lines marked as statements in
13416 preference to non-statements.
13417 (find_pcs_for_symtab_line): Prefer is-statement entries.
13418 (find_line_common): Likewise.
13419 * symtab.h (struct linetable_entry): Add is_stmt field.
13420 (struct symtab_and_line): Likewise.
13421 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
13422 arranging the line table.
13423
e4003a34
TV
134242020-03-07 Tom de Vries <tdevries@suse.de>
13425
13426 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
13427 DIE.
13428
e8932576
TT
134292020-03-07 Tom Tromey <tom@tromey.com>
13430
13431 * valops.c (value_literal_complex): Remove obsolete comment.
13432 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
13433 comment.
13434
29734269
SM
134352020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13436
13437 * infrun.h: Forward-declare thread_info.
13438 (set_step_info): Add thread_info parameter, add doc.
13439 * infrun.c (set_step_info): Add thread_info parameter, move doc
13440 to header.
13441 * infrun.c (process_event_stop_test): Pass thread to
13442 set_step_info call.
13443 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
13444 set_step_info.
13445 (prepare_one_step): Add thread_info parameter, pass it to
13446 set_step_frame and prepare_one_step (recursive) call.
13447 (step_1): Pass thread to prepare_one_step call.
13448 (step_command_fsm::should_stop): Pass thread to
13449 prepare_one_step.
13450 (until_next_fsm): Pass thread to set_step_frame call.
13451 (finish_command): Pass thread to set_step_info call.
13452
b7d64b29
HD
134532020-03-06 Hannes Domani <ssbssa@yahoo.de>
13454
13455 * windows-tdep.c (windows_solib_create_inferior_hook):
13456 Check if inferior is running.
13457
09f2921c
TV
134582020-03-06 Tom de Vries <tdevries@suse.de>
13459
13460 * NEWS: Fix "the the".
13461 * ctfread.c: Same.
13462
fd760e79
TV
134632020-03-06 Tom de Vries <tdevries@suse.de>
13464
13465 * psymtab.c (psymtab_to_symtab): Don't print "done.".
13466
20ea4a60
AB
134672020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13468
13469 * .dir-locals.el: Add a comment referencing the other copies of
13470 this file.
13471
0afbabf0
JB
134722020-03-05 John Baldwin <jhb@FreeBSD.org>
13473
13474 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
13475 psargs.
13476
842806cb
TBA
134772020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13478
13479 * .gitattributes: New file.
13480
be1e3d3e
TT
134812020-03-04 Tom Tromey <tom@tromey.com>
13482
13483 * symmisc.c (print_symbol_bcache_statistics)
13484 (print_objfile_statistics): Update.
13485 * symfile.c (allocate_symtab): Use intern.
13486 * psymtab.c (partial_symtab::partial_symtab): Use intern.
13487 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13488 macro_cache>: Remove.
13489 <string_cache>: New member.
13490 (struct objfile) <intern>: New methods.
13491 * elfread.c (elf_symtab_read): Use intern.
13492 * dwarf2/read.c (fixup_go_packaging): Intern package name.
13493 (dwarf2_compute_name, dwarf2_physname)
13494 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
13495 names.
13496 (guess_partial_die_structure_name): Update.
13497 (partial_die_info::fixup): Intern name.
13498 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
13499 name.
13500 (dwarf2_name): Intern name. Update.
13501 * buildsym.c (buildsym_compunit::get_macro_table): Use
13502 string_cache.
13503
4e7625fd
TT
135042020-03-04 Tom Tromey <tom@tromey.com>
13505
13506 * jit.c (bfd_open_from_target_memory): Make "target" const.
13507 * corefile.c (gnutarget): Now const.
13508 * gdbcore.h (gnutarget): Now const.
13509
46f9f931
HD
135102020-03-04 Hannes Domani <ssbssa@yahoo.de>
13511
13512 * NEWS: Mention support for WOW64 processes.
13513 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
13514 (amd64_windows_segment_register_p): Remove static.
13515 (_initialize_amd64_windows_nat): Update.
13516 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
13517 * i386-windows-nat.c (context_offset): Update.
13518 (i386_mappings): Rename and remove static.
13519 (i386_windows_segment_register_p): Remove static.
13520 (_initialize_i386_windows_nat): Update.
13521 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
13522 (STATUS_WX86_SINGLE_STEP): New macro.
13523 (EnumProcessModulesEx): New macro.
13524 (Wow64SuspendThread): New macro.
13525 (Wow64GetThreadContext): New macro.
13526 (Wow64SetThreadContext): New macro.
13527 (Wow64GetThreadSelectorEntry): New macro.
13528 (windows_set_context_register_offsets): Add static.
13529 (windows_set_segment_register_p): Likewise.
13530 (windows_add_thread): Adapt for WOW64 processes.
13531 (windows_fetch_one_register): Likewise.
13532 (windows_nat_target::fetch_registers): Likewise.
13533 (windows_store_one_register): Likewise.
13534 (display_selector): Likewise.
13535 (display_selectors): Likewise.
13536 (handle_exception): Likewise.
13537 (windows_continue): Likewise.
13538 (windows_nat_target::resume): Likewise.
13539 (windows_add_all_dlls): Likewise.
13540 (do_initial_windows_stuff): Likewise.
13541 (windows_nat_target::attach): Likewise.
13542 (windows_get_exec_module_filename): Likewise.
13543 (windows_nat_target::create_inferior): Likewise.
13544 (windows_xfer_siginfo): Likewise.
13545 (_initialize_loadable): Initialize Wow64SuspendThread,
13546 Wow64GetThreadContext, Wow64SetThreadContext,
13547 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
13548 * windows-nat.h (windows_set_context_register_offsets):
13549 Remove declaration.
13550 (windows_set_segment_register_p): Likewise.
13551 (i386_windows_segment_register_p): Add declaration.
13552 (amd64_windows_segment_register_p): Likewise.
13553
440cf44e
LM
135542020-03-04 Luis Machado <luis.machado@linaro.org>
13555
13556 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
13557 in "info registers" for AArch64/ARM.
13558
13559 The change caused "info registers" to not print GPR's.
13560
13561 gdb/ChangeLog:
13562
13563 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13564
13565 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13566 when reg->group is empty and reggroup is not.
13567
1009d92f
TT
135682020-03-03 Tom Tromey <tromey@adacore.com>
13569
13570 * dwarf2/frame.c (struct dwarf2_frame_cache)
13571 <checked_tailcall_bottom, entry_cfa_sp_offset,
13572 entry_cfa_sp_offset_p>: Remove members.
13573 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
13574 (dwarf2_frame_prev_register): Don't call
13575 dwarf2_tailcall_sniffer_first.
13576 (dwarf2_append_unwinders): Don't append tailcall unwinder.
13577 * frame-unwind.c (add_unwinder): New fuction.
13578 (frame_unwind_init): Use it. Add tailcall unwinder.
13579
5e5d66b6
AB
135802020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
13581 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13582
13583 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
13584 value should be printed as true.
13585
584cf46d
HD
135862020-03-03 Hannes Domani <ssbssa@yahoo.de>
13587
13588 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
13589 (windows_init_abi): Set and use windows_so_ops.
13590
7b973adc
SDJ
135912020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
13592
13593 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
13594 when verifying if dealing with a convenience variable.
13595
bb7b70ab
LM
135962020-03-03 Luis Machado <luis.machado@linaro.org>
13597
13598 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
13599
9822cb57
SM
136002020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13601
13602 * infrun.c (gdbarch_supports_displaced_stepping): New.
13603 (use_displaced_stepping): Break up conditions in smaller pieces.
13604 Use gdbarch_supports_displaced_stepping.
13605 (displaced_step_prepare_throw): Use
13606 gdbarch_supports_displaced_stepping.
13607
63e163f2
AB
136082020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13609
13610 * NEWS: Mention new behaviour of the history filename.
13611 * top.c (write_history_p): Add comment.
13612 (show_write_history_p): Add header comment, give a different
13613 message when history writing is on, but the history filename is
13614 empty.
13615 (history_filename): Add comment.
13616 (history_filename_empty): New function.
13617 (show_history_filename): Add header comment, give a different
13618 message when the filename is empty.
13619 (init_history): Compare history_filename against nullptr, and only
13620 read history if the filename is not empty.
13621 (set_history_filename): Add header comment, and only make
13622 non-empty filenames absolute.
13623 (init_main): Make the filename argument to 'set history filename'
13624 optional.
13625
81b86b97
CB
136262020-03-02 Christian Biesinger <cbiesinger@google.com>
13627
13628 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
13629 (arm_supply_vfpregset): ...this, and update to use VFP registers.
13630 (fetch_fp_register): Update.
13631 (fetch_fp_regs): Update.
13632 (store_fp_register): Update.
13633 (store_fp_regs): Update.
13634 (arm_netbsd_nat_target::read_description): New function.
13635 (fetch_elfcore_registers): Update.
13636
24ed6739
AB
136372020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13638
13639 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
13640 general_thread if the stop reply is missing a thread-id.
13641 (remote_target::process_stop_reply): Use the first non-exited
13642 thread if the target didn't pass a thread-id.
13643 * infrun.c (do_target_wait): Move call to
13644 switch_to_inferior_no_thread to ....
13645 (do_target_wait_1): ... here.
13646
a84bb2a0
JT
136472020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
13648
13649 * debuginfod-support.c: Include defs.h first.
13650
658dadf0
TV
136512020-02-28 Tom de Vries <tdevries@suse.de>
13652
13653 * symfile.c (set_initial_language): Use default language for lookup.
13654
4ebe4877
SM
136552020-02-28 Simon Marchi <simon.marchi@efficios.com>
13656
13657 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
13658 reader variable, pass `this` to read_cutu_die_from_dwo.
13659
e5da1139
AM
136602020-02-27 Aaron Merey <amerey@redhat.com>
13661
13662 * source.c (open_source_file): Check for nullptr when computing
13663 srcpath.
13664
317f7127
TT
136652020-02-27 Tom Tromey <tromey@adacore.com>
13666
13667 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
13668 member.
13669 (dwarf2_add_field): Don't update nfields.
13670 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
13671
3104d9ee
AB
136722020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13673
13674 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
13675 abs.
13676
b83470bf
TT
136772020-02-26 Tom Tromey <tom@tromey.com>
13678
13679 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
13680 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
13681 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
13682 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
13683 per_cu_data.
13684
edfe0a0c
TT
136852020-02-26 Tom Tromey <tom@tromey.com>
13686
13687 * dwarf2/index-write.c (psym_index_map): Change type.
13688 (add_address_entry_worker, write_one_signatured_type)
13689 (recursively_count_psymbols, recursively_write_psymbols)
13690 (class debug_names, psyms_seen_size, write_gdbindex)
13691 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
13692
0d79cdc4
AM
136932020-02-26 Aaron Merey <amerey@redhat.com>
13694
13695 * Makefile.in: Handle optional debuginfod support.
13696 * NEWS: Update.
13697 * README: Add --with-debuginfod summary.
13698 * config.in: Regenerate.
13699 * configure: Regenerate.
13700 * configure.ac: Handle optional debuginfod support.
13701 * debuginfod-support.c: debuginfod helper functions.
13702 * debuginfod-support.h: Ditto.
13703 * doc/gdb.texinfo: Add --with-debuginfod to configure options
13704 summary.
13705 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
13706 when a dwz file cannot be found.
13707 * elfread.c (elf_symfile_read): Query debuginfod servers when a
13708 debuginfo file cannot be found.
13709 * source.c (open_source_file): Query debuginfod servers when a
13710 source file cannot be found.
13711 * top.c (print_gdb_configuration): Include
13712 --{with,without}-debuginfod in the output.
13713
b65ce565
JG
137142020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
13715
13716 * thread.c (thr_try_catch_cmd): Print thread name.
13717
d4c9a4f8
SM
137182020-02-26 Simon Marchi <simon.marchi@efficios.com>
13719
13720 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
13721 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13722 dwarf2_fetch_die_type_sect_off): Move to...
13723 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
13724 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13725 dwarf2_fetch_die_type_sect_off): ... here.
13726 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
13727 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13728 dwarf2_fetch_die_type_sect_off): Move doc to header file.
13729
0dce4280
TV
137302020-02-26 Tom de Vries <tdevries@suse.de>
13731
13732 PR gdb/25603
13733 * symfile.c (set_initial_language): Exit-early if
13734 language_mode == language_mode_manual.
13735
450a1bfc
SM
137362020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13737
13738 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
13739 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
13740 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
13741
9e80cfa1
AB
137422020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
13743
13744 * gdbtypes.c (create_array_type_with_stride): Handle negative
13745 array strides.
13746 * valarith.c (value_subscripted_rvalue): Likewise.
13747
09624f1f
LM
137482020-02-25 Luis Machado <luis.machado@linaro.org>
13749
13750 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
13751
8cb5117c
SM
137522020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13753
13754 * loc.h (dwarf2_get_die_type): Move to...
13755 * read.h (dwarf2_get_die_type): ... here.
13756 * read.c (dwarf2_get_die_type): Move doc to header.
13757
c325c44e
JB
137582020-02-25 Joel Brobecker <brobecker@adacore.com>
13759
13760 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
13761 'gnulib/Makefile.in' to the list.
13762
4ac93832
TT
137632020-02-24 Tom Tromey <tom@tromey.com>
13764
13765 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
13766 Remove.
13767 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
13768 XOBNEWVEC.
13769
197400e8
TT
137702020-02-24 Tom Tromey <tom@tromey.com>
13771
13772 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
13773 New method.
13774 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
13775 (dw2_do_instantiate_symtab, dw2_get_file_names)
13776 (build_type_psymtab_dependencies, load_full_type_unit): Update.
13777
76935768
TT
137782020-02-24 Tom Tromey <tom@tromey.com>
13779
13780 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
13781 make_scoped_restore.
13782 (dwarf2_psymtab::read_symtab): Don't clear
13783 reading_partial_symbols.
13784
a88ef40d
TV
137852020-02-24 Tom de Vries <tdevries@suse.de>
13786
13787 PR gdb/25592
13788 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
13789
c9af6521
TV
137902020-02-24 Tom de Vries <tdevries@suse.de>
13791
13792 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
13793 commands layout next/prev/regs.
13794
5707a07a
TT
137952020-02-22 Tom Tromey <tom@tromey.com>
13796
13797 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
13798 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
13799
3b0fb49e
TT
138002020-02-22 Tom Tromey <tom@tromey.com>
13801
13802 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
13803
283be8bf
TT
138042020-02-22 Tom Tromey <tom@tromey.com>
13805
13806 * tui/tui-win.c (_initialize_tui_win): Add usage text.
13807 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
13808 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
13809 * tui/tui.c (_initialize_tui): Add usage text.
13810
ca793b96
TT
138112020-02-22 Tom Tromey <tom@tromey.com>
13812
13813 * tui/tui-win.c (tui_set_focus_command)
13814 (tui_set_win_height_command): Use error_no_arg.
13815 (_initialize_tui_win): Update help text.
13816 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
13817
432b5c40
TT
138182020-02-22 Tom Tromey <tom@tromey.com>
13819
13820 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
13821 * tui/tui-disasm.h (struct tui_disasm_window)
13822 <display_start_addr>: Declare.
13823 * tui/tui-source.h (struct tui_source_window)
13824 <display_start_addr>: Declare.
13825 * tui/tui-winsource.h (struct tui_source_window_base)
13826 <show_source_line, display_start_addr>: New methods.
13827 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
13828 Rename and move to protected section.
13829 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
13830 (tui_source_window_base::do_erase_source_content): Update.
13831 (tui_source_window_base::show_source_line): Now a method.
13832 (tui_source_window_base::show_source_content)
13833 (tui_source_window_base::tui_source_window_base)
13834 (tui_source_window_base::rerender)
13835 (tui_source_window_base::refill)
13836 (tui_source_window_base::do_scroll_horizontal)
13837 (tui_source_window_base::set_is_exec_point_at)
13838 (tui_source_window_base::update_breakpoint_info)
13839 (tui_source_window_base::update_exec_info): Update.
13840 * tui/tui-source.c (tui_source_window::set_contents)
13841 (tui_source_window::showing_source_p)
13842 (tui_source_window::do_scroll_vertical)
13843 (tui_source_window::location_matches_p)
13844 (tui_source_window::line_is_displayed): Update.
13845 (tui_source_window::display_start_addr): New method.
13846 * tui/tui-disasm.c (tui_disasm_window::set_contents)
13847 (tui_disasm_window::do_scroll_vertical)
13848 (tui_disasm_window::location_matches_p): Update.
13849 (tui_disasm_window::display_start_addr): New method.
13850
01b1af32
TT
138512020-02-22 Tom Tromey <tom@tromey.com>
13852
13853 * NEWS: Add entry for gdb.register_window_type.
13854 * tui/tui-layout.h (window_factory): New typedef.
13855 (tui_register_window): Declare.
13856 * tui/tui-layout.c (saved_tui_windows): New global.
13857 (tui_apply_current_layout): Use it.
13858 (tui_register_window): New function.
13859 * python/python.c (do_start_initialization): Call
13860 gdbpy_initialize_tui.
13861 (python_GdbMethods): Add "register_window_type" function.
13862 * python/python-internal.h (gdbpy_register_tui_window)
13863 (gdbpy_initialize_tui): Declare.
13864 * python/py-tui.c: New file.
13865 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
13866
fc96d20b
TT
138672020-02-22 Tom Tromey <tom@tromey.com>
13868
13869 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
13870
935c78c0
TT
138712020-02-22 Tom Tromey <tom@tromey.com>
13872
13873 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
13874 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
13875 * tui/tui-data.c (tui_set_win_with_focus): Remove.
13876 (tui_set_win_focus_to): Move from tui-win.c.
13877
0240c8f1
TT
138782020-02-22 Tom Tromey <tom@tromey.com>
13879
13880 * tui/tui-layout.c (make_standard_window, get_locator_window): New
13881 functions.
13882 (known_window_types): New global.
13883 (tui_get_window_by_name): Reimplement.
13884 (initialize_known_windows): New function.
13885 (validate_window_name): Rewrite.
13886 (_initialize_tui_layout): Call initialize_known_windows.
13887
fdb01f0c
TT
138882020-02-22 Tom Tromey <tom@tromey.com>
13889
13890 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
13891 Remove constants.
13892 * tui/tui-winsource.h (struct tui_source_window_base)
13893 <tui_source_window_base>: Remove parameter.
13894 * tui/tui-winsource.c
13895 (tui_source_window_base::tui_source_window_base): Remove
13896 parameter.
13897 (tui_source_window_base::refill): Update.
13898 * tui/tui-stack.h (struct tui_locator_window)
13899 <tui_locator_window>: Update.
13900 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
13901 Default the constructor.
13902 * tui/tui-regs.h (struct tui_data_item_window)
13903 <tui_data_item_window>: Default the constructor.
13904 (struct tui_data_window) <tui_data_window>: Likewise.
13905 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
13906 Default the constructor.
13907 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
13908 Default the constructor.
13909 <type>: Remove.
13910 (struct tui_win_info) <tui_win_info>: Default the constructor.
13911 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
13912 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
13913 Default the constructor.
13914
865a5aec
TT
139152020-02-22 Tom Tromey <tom@tromey.com>
13916
13917 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
13918 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
13919 * tui/tui-win.c (tui_resize_all): Don't call
13920 tui_delete_invisible_windows.
13921 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
13922 done.
13923 (tui_set_layout): Update.
13924 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
13925 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
13926 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
13927
e098d18c
TT
139282020-02-22 Tom Tromey <tom@tromey.com>
13929
13930 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
13931 correctly.
13932
eb9c8874
TT
139332020-02-22 Tom Tromey <tom@tromey.com>
13934
13935 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
13936
7eed1a8e
TT
139372020-02-22 Tom Tromey <tom@tromey.com>
13938
13939 * tui/tui-winsource.h (struct tui_source_window_iterator)
13940 <inner_iterator>: New etytypedef.
13941 <tui_source_window_iterator>: Take "end" parameter.
13942 <tui_source_window_iterator>: Take iterator.
13943 <operator*, advance>: Update.
13944 <m_iter>: Change type.
13945 <m_end>: New field.
13946 (struct tui_source_windows) <begin, end>: Update.
13947 * tui/tui-layout.c (tui_windows): New global.
13948 (tui_apply_current_layout): Clear tui_windows.
13949 (tui_layout_window::apply): Update tui_windows.
13950 * tui/tui-data.h (tui_windows): Declare.
13951 (all_tui_windows): Now inline function.
13952 (class tui_window_iterator, struct all_tui_windows): Remove.
13953
7c043ba6
TT
139542020-02-22 Tom Tromey <tom@tromey.com>
13955
13956 PR tui/17850:
13957 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
13958 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
13959 "height" argument.
13960 (class tui_layout_window) <get_sizes>: Likewise.
13961 (class tui_layout_split) <tui_layout_split>: Add "vertical"
13962 argument.
13963 <get_sizes>: Add "height" argument.
13964 <m_vertical>: New field.
13965 * tui/tui-layout.c (tui_layout_split::clone): Update.
13966 (tui_layout_split::get_sizes): Add "height" argument.
13967 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
13968 (tui_new_layout_command): Parse "-horizontal".
13969 (_initialize_tui_layout): Update help string.
13970 (tui_layout_split::specification): Add "-horizontal" when needed.
13971 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
13972 argument.
13973 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
13974 New methods.
13975
6bc56648
TT
139762020-02-22 Tom Tromey <tom@tromey.com>
13977
13978 * tui/tui-layout.h (enum tui_adjust_result): New.
13979 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
13980 (class tui_layout_window) <adjust_size>: Return
13981 tui_adjust_result. Rewrite.
13982 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
13983 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
13984
c22fef7e
TT
139852020-02-22 Tom Tromey <tom@tromey.com>
13986
13987 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
13988 parameter and return types.
13989 (class tui_layout_base) <specification>: Add "depth".
13990 (class tui_layout_window) <specification>: Add "depth".
13991 (class tui_layout_split) <specification>: Add "depth".
13992 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
13993 and return types.
13994 (tui_new_layout_command): Parse sub-layouts.
13995 (_initialize_tui_layout): Update help string.
13996 (tui_layout_window::specification): Add "depth".
13997 (add_layout_command): Update.
13998
ee325b61
TT
139992020-02-22 Tom Tromey <tom@tromey.com>
14000
14001 * NEWS: Add "tui new-layout" item.
14002 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
14003 Add new-layout command to help text.
14004 (validate_window_name): New function.
14005 (tui_new_layout_command): New function.
14006 (_initialize_tui_layout): Register "new-layout".
14007 (tui_layout_window::specification): New method.
14008 (tui_layout_window::specification): New method.
14009 * tui/tui-layout.h (class tui_layout_base) <specification>: New
14010 method.
14011 (class tui_layout_window) <specification>: New method.
14012 (class tui_layout_split) <specification>: New method.
14013
416eb92d
TT
140142020-02-22 Tom Tromey <tom@tromey.com>
14015
14016 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
14017 * tui/tui-win.c (window_name_completer): Update comment.
14018 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
14019 Declare method.
14020 (class tui_layout_window) <replace_window>: Likewise.
14021 (class tui_layout_split) <replace_window>: Likewise.
14022 (tui_set_layout): Don't declare.
14023 (tui_set_initial_layout): Declare function.
14024 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
14025 (asm_regs_layout): New globals.
14026 (tui_current_layout, show_layout): Remove.
14027 (tui_set_layout, tui_add_win_to_layout): Rewrite.
14028 (find_layout, tui_apply_layout): New function.
14029 (layout_completer): Remove.
14030 (tui_next_layout): Reimplement.
14031 (tui_next_layout_command): New function.
14032 (tui_set_initial_layout, tui_prev_layout_command): New functions.
14033 (tui_regs_layout): Reimplement.
14034 (tui_regs_layout_command): New function.
14035 (extract_display_start_addr): Rewrite.
14036 (next_layout, prev_layout): Remove.
14037 (tui_layout_window::replace_window): New method.
14038 (tui_layout_split::replace_window): New method.
14039 (destroy_layout): New function.
14040 (layout_list): New global.
14041 (add_layout_command): New function.
14042 (initialize_layouts): Update.
14043 (tui_layout_command): New function.
14044 (_initialize_tui_layout): Install "layout" commands.
14045 * tui/tui-data.h (enum tui_layout_type): Remove.
14046 (tui_current_layout): Don't declare.
14047
0dbc2fc7
TT
140482020-02-22 Tom Tromey <tom@tromey.com>
14049
14050 * tui/tui-regs.c (tui_reg_layout): Remove.
14051 (tui_reg_command): Use tui_regs_layout.
14052 * tui/tui-layout.h (tui_reg_command): Declare.
14053 * tui/tui-layout.c (tui_reg_command): New function.
14054
5afe342e
TT
140552020-02-22 Tom Tromey <tom@tromey.com>
14056
14057 * tui/tui.c (tui_rl_delete_other_windows): Call
14058 tui_remove_some_windows.
14059 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
14060 Declare method.
14061 (class tui_layout_window) <remove_windows>: New method.
14062 (class tui_layout_split) <remove_windows>: Declare.
14063 (tui_remove_some_windows): Declare.
14064 * tui/tui-layout.c (tui_remove_some_windows): New function.
14065 (tui_layout_split::remove_windows): New method.
14066
427326a8
TT
140672020-02-22 Tom Tromey <tom@tromey.com>
14068
14069 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
14070 * tui/tui-layout.h (tui_next_layout): Declare.
14071 * tui/tui-layout.c (tui_next_layout): New function.
14072
3fe12b6d
TT
140732020-02-22 Tom Tromey <tom@tromey.com>
14074
14075 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
14076 correct coordinates.
14077
59b8b5d2
TT
140782020-02-22 Tom Tromey <tom@tromey.com>
14079
14080 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
14081 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
14082 DATA_WIN case.
14083
2a3d458b
TT
140842020-02-22 Tom Tromey <tom@tromey.com>
14085
14086 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
14087 TUI_DISASM_WIN, not tui_win_list.
14088
3f0cbb04
TT
140892020-02-22 Tom Tromey <tom@tromey.com>
14090
14091 * valprint.c (generic_val_print_enum_1)
14092 (val_print_type_code_flags): Style member names.
14093 * rust-lang.c (val_print_struct, rust_print_enum)
14094 (rust_print_struct_def, rust_internal_print_type): Style member
14095 names.
14096 * p-valprint.c (pascal_object_print_value_fields): Style member
14097 names. Only call fprintf_symbol_filtered for static members.
14098 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
14099 * f-valprint.c (f_val_print): Style member names.
14100 * f-typeprint.c (f_type_print_base): Style member names.
14101 * cp-valprint.c (cp_print_value_fields): Style member names. Only
14102 call fprintf_symbol_filtered for static members.
14103 (cp_print_class_member): Style member names.
14104 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
14105 member names.
14106 * ada-valprint.c (ada_print_scalar): Style enum names.
14107 (ada_val_print_enum): Likewise.
14108 * ada-typeprint.c (print_enum_type): Style enum names.
14109
d4d947ae
TT
141102020-02-21 Tom Tromey <tom@tromey.com>
14111
14112 * psympriv.h (struct partial_symtab): Update comment.
14113
e94e944b
TT
141142020-02-21 Tom Tromey <tromey@adacore.com>
14115
14116 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
14117 type is CORE_ADDR.
14118
1eb73179
TV
141192020-02-21 Tom de Vries <tdevries@suse.de>
14120
14121 PR gdb/25534
14122 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
14123 if dependencies[i]->user != NULL.
14124
4f180d53
AT
141252020-02-21 Ali Tamur <tamur@google.com>
14126
14127 * dwarf2/read.c (dwarf2_name): Add null check.
14128
22b6cd70
TT
141292020-02-20 Tom Tromey <tom@tromey.com>
14130
14131 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
14132 ">=", in binary search.
14133 (dwarf2_find_containing_comp_unit): New overload.
14134 (run_test): New self-test.
14135 (_initialize_dwarf2_read): Register new test.
14136
bd0cf5a6
NC
141372020-02-20 Nelson Chu <nelson.chu@sifive.com>
14138
14139 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
14140 * riscv-tdep.h: Likewise.
14141 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
14142 rv32-only CSR.
14143 * features/riscv/64bit-csr.xml: Regenerated.
14144
3f702acd
SDJ
141452020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
14146 Tom Tromey <tom@tromey.com>
14147
14148 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
14149 of 'fputc_unfiltered'.
14150 (putchar_unfiltered): Call 'fputc_unfiltered'.
14151 (fputc_unfiltered): Call 'fputs_unfiltered'.
14152
d13c7322
AB
141532020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
14154
14155 * config.in: Regenerate.
14156 * configure: Regenerate.
14157 * configure.ac: Add --with-python-libdir option.
14158 * main.c: Use WITH_PYTHON_LIBDIR.
14159
869d8950
TT
141602020-02-19 Tom Tromey <tom@tromey.com>
14161
14162 * symtab.c (general_symbol_info::compute_and_set_names): Use
14163 obstack_strndup. Simplify call to symbol_set_demangled_name.
14164
298e9637
SM
141652020-02-19 Simon Marchi <simon.marchi@efficios.com>
14166
14167 * dwarf2/read.c (allocate_signatured_type_table,
14168 allocate_dwo_unit_table, allocate_type_unit_groups_table,
14169 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
14170 Remove objfile parameter, update all callers.
14171
08410482
DE
141722020-02-19 Doug Evans <dje@google.com>
14173
14174 PR rust/25535
14175 * rust-lang.c (rust_print_enum): Apply embedded_offset to
14176 rust_enum_variant calculation.
14177
dfdeeca1
TT
141782020-02-19 Tom Tromey <tromey@adacore.com>
14179
14180 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
14181
2ef5453b
TT
141822020-02-19 Tom Tromey <tromey@adacore.com>
14183
14184 * ada-lang.c (cache_symbol): Use obstack_strdup.
14185
9f1528a1
AB
141862020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14187
14188 * configure: Regenerate.
14189
d3c22fa8
TT
141902020-02-19 Tom Tromey <tromey@adacore.com>
14191
14192 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
14193 NULL check.
14194
bf84f706
MR
141952020-02-19 Maciej W. Rozycki <macro@wdc.com>
14196
14197 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
14198
d1c9b20f
AB
141992020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14200
14201 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
14202 if GDBSERVER is not defined.
14203 (riscv_tdesc_cache): Likewise, also store const target_desc.
14204 (STATIC_IN_GDB): Define.
14205 (riscv_create_target_description): Update declaration with
14206 STATIC_IN_GDB.
14207 (riscv_lookup_target_description): New function, only define if
14208 GDBSERVER is not defined.
14209 * arch/riscv.h (riscv_create_target_description): Declare only
14210 when GDBSERVER is defined.
14211 (riscv_lookup_target_description): New declaration when GDBSERVER
14212 is not defined.
14213 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
14214 (riscv_linux_read_features): ...this, and return
14215 riscv_gdbarch_features instead of target_desc.
14216 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
14217 (riscv_linux_read_description): Rename to...
14218 (riscv_linux_read_features): ...this.
14219 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14220 Update to use riscv_gdbarch_features and
14221 riscv_lookup_target_description.
14222 * riscv-tdep.c (riscv_find_default_target_description): Use
14223 riscv_lookup_target_description instead of
14224 riscv_create_target_description.
14225
373d7ac0
SM
142262020-02-18 Simon Marchi <simon.marchi@efficios.com>
14227
14228 * valprint.c (generic_val_print_enum_1): When printing a flag
14229 enum with value 0 and there is no enumerator with value 0, print
14230 just "0" instead of "(unknown: 0x0)".
14231
b29a2df0
SM
142322020-02-18 Simon Marchi <simon.marchi@efficios.com>
14233
14234 * valprint.c (generic_val_print_enum_1): Print unknown part of
14235 flag enum in hex.
14236
6740f0cc
SM
142372020-02-18 Simon Marchi <simon.marchi@efficios.com>
14238
14239 * dwarf2/read.c (update_enumeration_type_from_children): Allow
14240 flag enums to contain duplicate enumerators.
14241 * valprint.c (generic_val_print_enum_1): Update comment.
14242
edd45eb0
SM
142432020-02-18 Simon Marchi <simon.marchi@efficios.com>
14244
14245 * dwarf2/read.c: Include "count-one-bits.h".
14246 (update_enumeration_type_from_children): If an enumerator has
14247 multiple bits set, don't treat the enumeration as a "flag enum".
14248 * valprint.c (generic_val_print_enum_1): Assert that enumerators
14249 of flag enums have 0 or 1 bit set.
14250
6d0cf446
BE
142512020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
14252
14253 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
14254 conversion.
14255 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14256 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14257 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14258 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14259 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14260
7001c1b7
SM
142612020-02-18 Simon Marchi <simon.marchi@efficios.com>
14262
14263 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
14264
fdb61c6c
SM
142652020-02-14 Simon Marchi <simon.marchi@efficios.com>
14266
14267 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
14268 displaced_step_closure_up.
14269 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14270 (struct displaced_step_closure_up):
14271 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14272 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14273 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
14274 Likewise.
14275 * gdbarch.sh (displaced_step_copy_insn): Likewise.
14276 * gdbarch.c, gdbarch.h: Re-generate.
14277 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
14278 displaced_step_closure_up.
14279 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14280 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14281 * infrun.h (displaced_step_closure_up): New type alias.
14282 (struct displaced_step_inferior_state) <step_closure>: Change
14283 type to displaced_step_closure_up.
14284 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
14285 displaced_step_closure_up.
14286 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14287
a4a38eb4
TT
142882020-02-14 Tom Tromey <tom@tromey.com>
14289
14290 * minidebug.c (gnu_debug_key): New global.
14291 (find_separate_debug_file_in_section): Use it.
14292
e8217e61
SM
142932020-02-14 Simon Marchi <simon.marchi@efficios.com>
14294
14295 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
14296 std::unique_ptr.
14297 * gdbarch.c: Re-generate.
14298 * gdbarch.h: Re-generate.
14299 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
14300 change.
14301 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
14302 type to std::unique_ptr.
14303 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14304 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14305 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14306 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14307 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
14308 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14309 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14310 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14311 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14312
d8d83535
SM
143132020-02-14 Simon Marchi <simon.marchi@efficios.com>
14314
14315 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
14316 std::unique_ptr.
14317 (displaced_step_clear): Rename to...
14318 (displaced_step_reset): ... this. Just call displaced->reset ().
14319 (displaced_step_clear_cleanup): Rename to...
14320 (displaced_step_reset_cleanup): ... this.
14321 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
14322 (displaced_step_fixup): Likewise.
14323 (resume_1): Likewise.
14324 (handle_inferior_event): Restore child's memory before calling
14325 displaced_step_fixup on the parent.
14326 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
14327 to std::unique_ptr.
14328 <step_closure>: Change type to std::unique_ptr.
14329
5f661e03
SM
143302020-02-14 Simon Marchi <simon.marchi@efficios.com>
14331
14332 * arm-tdep.c: Include count-one-bits.h.
14333 (cleanup_block_store_pc): Use count_one_bits.
14334 (cleanup_block_load_pc): Use count_one_bits.
14335 (arm_copy_block_xfer): Use count_one_bits.
14336 (thumb2_copy_block_xfer): Use count_one_bits.
14337 (thumb_copy_pop_pc_16bit): Use count_one_bits.
14338 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
14339 (thumb_get_next_pcs_raw): Use count_one_bits.
14340 (arm_get_next_pcs_raw): Use count_one_bits_l.
14341 * arch/arm.c (bitcount): Remove.
14342 * arch/arm.h (bitcount): Remove.
14343
8084e579
TT
143442020-02-14 Tom Tromey <tromey@adacore.com>
14345
14346 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
14347 Update.
14348 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
14349 * dwarf2/loc.c (call_site_find_chain_1): Return
14350 unique_xmalloc_ptr.
14351 (call_site_find_chain): Likewise.
14352
258bf0ee
RB
143532020-02-14 Richard Biener <rguenther@suse.de>
14354
14355 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
14356 on expression with division operators.
14357
f98a8458
AKS
143582020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14359
14360 * MAINTAINERS (Write After Approval): Adding myself.
14361
d1437c0e
TT
143622020-02-12 Tom Tromey <tom@tromey.com>
14363
14364 * event-loop.c (event_data, gdb_event, event_handler_func):
14365 Remove.
14366
3d4560f7
TT
143672020-02-12 Tom Tromey <tom@tromey.com>
14368
14369 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
14370 (dwarf2_frame_objfile_data): Add comment.
14371 (find_comp_unit, set_comp_unit): New functions.
14372 (dwarf2_frame_find_fde): Use find_comp_unit.
14373 (dwarf2_build_frame_info): Use set_comp_unit.
14374
21982304
TT
143752020-02-12 Tom Tromey <tom@tromey.com>
14376
14377 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
14378 (comp_unit): Don't initialize objfile.
14379 (execute_cfa_program): Add text_offset parameter.
14380 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
14381 (dwarf2_frame_cache): Update.
14382 (dwarf2_build_frame_info): Don't set "objfile" member.
14383
4debb237
TT
143842020-02-12 Tom Tromey <tom@tromey.com>
14385
14386 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
14387 (decode_frame_entry): Likewise.
14388 (dwarf2_build_frame_info): Update.
14389
0d404d44
TT
143902020-02-12 Tom Tromey <tom@tromey.com>
14391
14392 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
14393 (decode_frame_entry_1): Use the comp_unit obstack.
14394
a7a3ae5c
TT
143952020-02-12 Tom Tromey <tom@tromey.com>
14396
14397 * dwarf2/frame.c (struct comp_unit): Add initializers and
14398 constructor.
14399 (dwarf2_frame_objfile_data): Store a comp_unit.
14400 (dwarf2_frame_find_fde): Update.
14401 (dwarf2_build_frame_info): Use "new".
14402
a9d65418
TT
144032020-02-12 Tom Tromey <tom@tromey.com>
14404
14405 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
14406 (dwarf2_fde_table): Typedef for std::vector.
14407 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
14408 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
14409 (decode_frame_entry): Update.
14410 (dwarf2_build_frame_info): Use "new".
14411
7559c217
CB
144122020-02-12 Christian Biesinger <cbiesinger@google.com>
14413
14414 * arm-tdep.c (arm_gdbarch_init): Update.
14415 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
14416 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
14417 have_neon, is_m>: Change to bool.
14418
aeefc73c
CB
144192020-02-12 Christian Biesinger <cbiesinger@google.com>
14420
14421 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
14422
d27b8e5f
TT
144232020-02-12 Tom Tromey <tom@tromey.com>
14424
14425 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
14426
cd5900f3
HD
144272020-02-12 Hannes Domani <ssbssa@yahoo.de>
14428
14429 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
14430 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
14431
f056b22b
TT
144322020-02-11 Tom Tromey <tom@tromey.com>
14433
14434 * psymtab.h: Update comment.
14435
f92ff6b5
TT
144362020-02-11 Tom Tromey <tom@tromey.com>
14437
14438 * gdb_obstack.h (struct auto_obstack): Use
14439 DISABLE_COPY_AND_ASSIGN.
14440
3fd6912b
TT
144412020-02-11 Tom Tromey <tom@tromey.com>
14442
14443 * dwarf2/frame.h (struct objfile): Don't forward declare.
14444
69ed9b74
CB
144452020-02-11 Christian Biesinger <cbiesinger@google.com>
14446
14447 * cris-tdep.c (cris_supply_gregset): Change signature to match
14448 what struct regset expects.
14449 (cris_regset): New struct.
14450 (fetch_core_registers): Remove.
14451 (cris_iterate_over_regset_sections): New function.
14452 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
14453 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
14454
bda874f6
CB
144552020-02-11 Christian Biesinger <cbiesinger@google.com>
14456
14457 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
14458 registers.
14459
754e1564
CB
144602020-02-11 Christian Biesinger <cbiesinger@google.com>
14461
14462 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
14463
8ddd8e0e
SM
144642020-02-11 Simon Marchi <simon.marchi@efficios.com>
14465
14466 * configure: Re-generate.
14467
898e7f60
SM
144682020-02-11 Simon Marchi <simon.marchi@efficios.com>
14469
14470 * configure: Re-generate.
14471
58df732b
SM
144722020-02-11 Simon Marchi <simon.marchi@efficios.com>
14473
14474 * acinclude: Update warning.m4 path.
14475 * warning.m4: Move to gdbsupport.
14476
da5bd37e
TT
144772020-02-11 Tom Tromey <tromey@adacore.com>
14478
14479 * remote.c (remote_console_output): Update.
14480 * printcmd.c (printf_command): Update.
14481 * event-loop.c (gdb_wait_for_event): Update.
14482 * linux-nat.c (sigchld_handler): Update.
14483 * remote-sim.c (gdb_os_write_stdout): Update.
14484 (gdb_os_flush_stdout): Update.
14485 (gdb_os_flush_stderr): Update.
14486 (gdb_os_write_stderr): Update.
14487 * exceptions.c (print_exception): Update.
14488 * remote-fileio.c (remote_fileio_func_read): Update.
14489 (remote_fileio_func_write): Update.
14490 * tui/tui.c (tui_enable): Update.
14491 * tui/tui-interp.c (tui_interp::init): Update.
14492 * utils.c (init_page_info): Update.
14493 (putchar_unfiltered, fputc_unfiltered): Update.
14494 (gdb_flush): Update.
14495 (emit_style_escape): Update.
14496 (flush_wrap_buffer, fputs_maybe_filtered): Update.
14497 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
14498 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
14499 (stderr_file::write): Update.
14500 (stderr_file::puts): Update.
14501 * ui-file.h (ui_file_isatty, ui_file_write)
14502 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
14503 (ui_file_puts): Don't declare.
14504
85f0dd3c
TV
145052020-02-10 Tom de Vries <tdevries@suse.de>
14506
14507 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
14508 sentinel to char *.
14509
2e927613
TV
145102020-02-09 Tom de Vries <tdevries@suse.de>
14511
14512 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
14513 filename if it matches "<artificial>".
14514
6bafc845
HD
145152020-02-09 Hannes Domani <ssbssa@yahoo.de>
14516
14517 * windows-tdep.c (struct enum_value_name): New struct.
14518 (create_enum): New function.
14519 (windows_get_siginfo_type): Create and use enum types.
14520
7928d571
HD
145212020-02-09 Hannes Domani <ssbssa@yahoo.de>
14522
14523 * NEWS: Mention $_siginfo support for Windows.
14524 * windows-nat.c (handle_exception): Set siginfo_er.
14525 (windows_nat_target::mourn_inferior): Reset siginfo_er.
14526 (windows_xfer_siginfo): New function.
14527 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
14528 * windows-tdep.c (struct windows_gdbarch_data): New struct.
14529 (init_windows_gdbarch_data): New function.
14530 (get_windows_gdbarch_data): New function.
14531 (windows_get_siginfo_type): New function.
14532 (windows_init_abi): Register windows_get_siginfo_type.
14533 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
14534
6751ebae
TT
145352020-02-08 Tom Tromey <tom@tromey.com>
14536
14537 * dwarf2/read.c (class cutu_reader) <cutu_reader,
14538 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
14539 <keep>: Declare method.
14540 <m_keep>: Remove member.
14541 <~cutu_reader>: Remove.
14542 (cutu_reader::init_tu_and_read_dwo_dies): Update.
14543 (cutu_reader::cutu_reader): Update.
14544 (cutu_reader::keep): Rename from ~cutu_reader.
14545 (process_psymtab_comp_unit, build_type_psymtabs_1)
14546 (process_skeletonless_type_unit, load_partial_comp_unit)
14547 (load_full_comp_unit, dwarf2_read_addr_index)
14548 (read_signatured_type): Update.
14549
135f5437
TT
145502020-02-08 Tom Tromey <tom@tromey.com>
14551
14552 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
14553 "want_partial_unit" parameter.
14554 (process_psymtab_comp_unit): Change want_partial_unit to bool.
14555 Inline check for DW_TAG_partial_unit.
14556 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
14557
9f66ff1c
TT
145582020-02-08 Tom Tromey <tom@tromey.com>
14559
14560 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
14561 read.c.
14562 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
14563 read.c.
14564
c8a7a66f
TT
145652020-02-08 Tom Tromey <tom@tromey.com>
14566
14567 * dwarf2/read.c (read_address): Move to comp-unit.c.
14568 (dwarf2_rnglists_process, dwarf2_ranges_process)
14569 (read_attribute_value, dwarf_decode_lines_1)
14570 (var_decode_location, decode_locdesc): Update.
14571 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
14572 read.c. Remove "cu" parameter.
14573 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
14574 method.
14575
8266302d
TT
145762020-02-08 Tom Tromey <tom@tromey.com>
14577
14578 * dwarf2/read.c (read_attribute_value, read_indirect_string)
14579 (read_indirect_line_string): Update.
14580 * dwarf2/comp-unit.c (read_offset): Remove.
14581 (read_comp_unit_head): Update.
14582 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
14583 method.
14584 (read_offset): Don't declare.
14585
4057dfde
TT
145862020-02-08 Tom Tromey <tom@tromey.com>
14587
14588 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
14589 * dwarf2/read.c (struct comp_unit_head): Move to
14590 dwarf2/comp-unit.h.
14591 (enum class rcuh_kind): Move to comp-unit.h.
14592 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
14593 (read_comp_unit_head, error_check_comp_unit_head)
14594 (read_and_check_comp_unit_head): Move to comp-unit.c.
14595 (read_offset, dwarf_unit_type_name): Likewise.
14596 (create_debug_type_hash_table, read_cutu_die_from_dwo)
14597 (cutu_reader::cutu_reader, read_call_site_scope)
14598 (find_partial_die, follow_die_offset): Update.
14599 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
14600
24aa364d
TT
146012020-02-08 Tom Tromey <tom@tromey.com>
14602
14603 * dwarf2/read.c (read_offset_1): Move to leb.c.
14604 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
14605 (dwarf_decode_macro_bytes): Update.
14606 * dwarf2/leb.c (read_offset): Rename; move from read.c.
14607 * dwarf2/leb.h (read_offset): Declare.
14608
2c7d5afc
TT
146092020-02-08 Tom Tromey <tom@tromey.com>
14610
14611 * dwarf2/read.c (dwarf2_section_size): Remove.
14612 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
14613 Update.
14614 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
14615
4075cb26
TT
146162020-02-08 Tom Tromey <tom@tromey.com>
14617
14618 * dwarf2/read.c (read_initial_length): Move to leb.c.
14619 * dwarf2/leb.h (read_initial_length): Declare.
14620 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
14621 handle_nonstd parameter.
14622 * dwarf2/frame.c (read_initial_length): Remove.
14623 (decode_frame_entry_1): Update.
14624
09ba997f
TT
146252020-02-08 Tom Tromey <tom@tromey.com>
14626
14627 * dwarf2/loc.c (dwarf2_find_location_expression)
14628 (dwarf_evaluate_loc_desc::get_tls_address)
14629 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14630 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
14631 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
14632 (dwarf2_compile_property_to_c)
14633 (dwarf2_loc_desc_get_symbol_read_needs)
14634 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
14635 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
14636 (loclist_describe_location, loclist_tracepoint_var_ref)
14637 (loclist_generate_c_location): Update.
14638 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
14639 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
14640 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
14641 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
14642 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
14643 (dwarf2_per_cu_data::addr_size)
14644 (dwarf2_per_cu_data::ref_addr_size)
14645 (dwarf2_per_cu_data::text_offset)
14646 (dwarf2_per_cu_data::addr_type): Now methods.
14647 (per_cu_header_read_in): Make per_cu "const".
14648 (dwarf2_version): Remove.
14649 (dwarf2_per_cu_data::int_type): Now a method.
14650 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
14651 (set_die_type, read_array_type, read_subrange_index_type)
14652 (read_tag_string_type, read_subrange_type): Update.
14653 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
14654 offset_size, ref_addr_size, text_offset, addr_type, version,
14655 objfile, int_type, addr_sized_int_type>: Declare methods.
14656
96c738c0
TT
146572020-02-08 Tom Tromey <tom@tromey.com>
14658
14659 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
14660 Move earlier.
14661
8fdd972c
TT
146622020-02-08 Tom Tromey <tom@tromey.com>
14663
14664 * dwarf2/read.h (dwarf_line_debug): Declare.
14665 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
14666 * dwarf2/read.c: Move line_header code to new files.
14667 (dwarf_line_debug): No longer static.
14668 * dwarf2/line-header.c: New file.
14669 * dwarf2/line-header.h: New file.
14670
03075812
TT
146712020-02-08 Tom Tromey <tom@tromey.com>
14672
14673 * dwarf2/read.c (struct line_header) <file_full_name,
14674 file_file_name>: Return unique_xmalloc_ptr.
14675 (line_header::file_file_name): Update.
14676 (line_header::file_full_name): Update.
14677 (dw2_get_file_names_reader): Update.
14678 (macro_start_file): Update.
14679
bb822404
TT
146802020-02-08 Tom Tromey <tom@tromey.com>
14681
14682 * dwarf2/read.c (struct line_header) <file_full_name,
14683 file_file_name>: Declare methods.
14684 (dw2_get_file_names_reader): Update.
14685 (file_file_name): Now a method.
14686 (file_full_name): Likewise.
14687 (macro_start_file): Update.
14688
009b64fc
TT
146892020-02-08 Tom Tromey <tom@tromey.com>
14690
14691 * dwarf2/read.c (dwarf_always_disassemble)
14692 (show_dwarf_always_disassemble): Move to loc.c.
14693 (_initialize_dwarf2_read): Move "always-disassemble" registration
14694 to loc.c.
14695 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
14696 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
14697 static.
14698 (show_dwarf_always_disassemble): Move from read.c.
14699 (_initialize_dwarf2loc): Move always-disassemble from read.c.
14700
5895093f
TT
147012020-02-08 Tom Tromey <tom@tromey.com>
14702
14703 * dwarf2/read.c (~dwarf2_per_objfile): Update.
14704 (create_quick_file_names_table): Return htab_up.
14705 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
14706 Update.
14707 * dwarf2/read.h (struct dwarf2_per_objfile)
14708 <quick_file_names_table>: Now htab_up.
14709
b3b32279
TT
147102020-02-08 Tom Tromey <tom@tromey.com>
14711
14712 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
14713
1d33d811
TT
147142020-02-08 Tom Tromey <tom@tromey.com>
14715
14716 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
14717 Rewrite.
14718 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
14719 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
14720 (abbrev_table::abbrev_table): No longer inline.
14721 (ABBREV_HASH_SIZE): Remove.
14722 (abbrev_table::m_abbrevs): Now an htab_up.
14723
86de1d91
TT
147242020-02-08 Tom Tromey <tom@tromey.com>
14725
14726 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
14727 (cutu_reader): Update.
14728 (build_type_psymtabs_1): Update.
14729 * dwarf2/abbrev.c (abbrev_table::read): Rename.
14730 (abbrev_table::alloc_abbrev): Update.
14731 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
14732 (abbrev_table::read): New static method, renamed from
14733 abbrev_table_read_table.
14734 (abbrev_table::alloc_abbrev)
14735 (abbrev_table::add_abbrev): Now private.
14736 (abbrev_table::abbrev_table): Now private.
14737 (abbrev_table::m_abbrev_obstack): Now private. Rename.
14738
0335378b
TT
147392020-02-08 Tom Tromey <tom@tromey.com>
14740
14741 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
14742 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
14743 htab_up.
14744
48b490f2
TT
147452020-02-08 Tom Tromey <tom@tromey.com>
14746
14747 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
14748 htab_up.
14749 (lookup_dwo_unit_in_dwp): Update.
14750 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
14751 on obstack.
14752
bc68fb19
TT
147532020-02-08 Tom Tromey <tom@tromey.com>
14754
14755 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
14756 obstack.
14757
d15acc42
TT
147582020-02-08 Tom Tromey <tom@tromey.com>
14759
14760 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
14761 line_header_hash.
14762 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
14763 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
14764 Change type to htab_up.
14765
eaa5fa8b
TT
147662020-02-08 Tom Tromey <tom@tromey.com>
14767
14768 * dwarf2/read.c (allocate_type_unit_groups_table): Return
14769 htab_up. Don't allocate on obstack.
14770 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
14771 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
14772 Change type to htab_up.
14773
b0b6a987
TT
147742020-02-08 Tom Tromey <tom@tromey.com>
14775
14776 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
14777 Change type to htab_up.
14778 * dwarf2/read.c (create_signatured_type_table_from_index)
14779 (create_signatured_type_table_from_debug_names)
14780 (create_all_type_units, add_type_unit)
14781 (lookup_dwo_signatured_type, lookup_signatured_type)
14782 (process_skeletonless_type_unit): Update.
14783 (create_debug_type_hash_table, create_debug_types_hash_table):
14784 Change type of types_htab.
14785 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
14786 htab_up. Don't allocate on obstack.
14787 (create_cus_hash_table): Change type of cus_htab parameter.
14788 (struct dwo_file) <cus, tus>: Now htab_up.
14789 (lookup_dwo_signatured_type, lookup_dwo_cutu)
14790 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
14791 (queue_and_load_all_dwo_tus): Update.
14792 * dwarf2/index-write.c (write_gdbindex): Update.
14793 (write_debug_names): Update.
14794
39856def
TT
147952020-02-08 Tom Tromey <tom@tromey.com>
14796
14797 * dwarf2/read.h (struct dwarf2_queue_item): Move from
14798 dwarf2/read.c. Remove "next" member. Add constructor ntad
14799 destructor.
14800 (struct dwarf2_per_objfile) <queue>: New member.
14801 * dwarf2/read.c (struct dwarf2_queue_item): Move to
14802 dwarf2/read.h.
14803 (dwarf2_queue, dwarf2_queue_tail): Remove.
14804 (class dwarf2_queue_guard): Add parameter to constructor. Use
14805 DISABLE_COPY_AND_ASSIGN.
14806 <m_per_objfile>: New member.
14807 <~dwarf2_queue_guard>: Rewrite.
14808 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
14809 Update.
14810 (~dwarf2_queue_item): New.
14811
3e225074
TT
148122020-02-08 Tom Tromey <tom@tromey.com>
14813
14814 * dwarf2/read.c (struct die_info) <has_children>: New member.
14815 (dw2_get_file_names_reader): Remove has_children.
14816 (dw2_get_file_names): Update.
14817 (read_cutu_die_from_dwo): Remove has_children.
14818 (cutu_reader::init_tu_and_read_dwo_dies)
14819 (cutu_reader::cutu_reader): Update.
14820 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
14821 Remove has_children.
14822 (build_type_psymtabs_1, process_skeletonless_type_unit)
14823 (load_partial_comp_unit, load_full_comp_unit): Update.
14824 (create_dwo_cu_reader): Remove has_children.
14825 (create_cus_hash_table, read_die_and_children): Update.
14826 (read_full_die_1,read_full_die): Remove has_children.
14827 (read_signatured_type): Update.
14828 (class cutu_reader) <has_children>: Remove.
14829
82ca8957
TT
148302020-02-08 Tom Tromey <tom@tromey.com>
14831
14832 * dwarf2/expr.c: Rename from dwarf2expr.c.
14833 * dwarf2/expr.h: Rename from dwarf2expr.h.
14834 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
14835 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
14836 * dwarf2/frame.c: Rename from dwarf2-frame.c.
14837 * dwarf2/frame.h: Rename from dwarf2-frame.h.
14838 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
14839 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
14840 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
14841 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
14842 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
14843 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
14844 * dwarf2/loc.c: Rename from dwarf2loc.c.
14845 * dwarf2/loc.h: Rename from dwarf2loc.h.
14846 * dwarf2/read.c: Rename from dwarf2read.c.
14847 * dwarf2/read.h: Rename from dwarf2read.h.
14848 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
14849 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
14850 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
14851 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
14852 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
14853 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
14854 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
14855 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
14856 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
14857 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
14858 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
14859 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
14860 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
14861 Update.
14862 * Makefile.in (COMMON_SFILES): Update.
14863 (HFILES_NO_SRCDIR): Update.
14864
9e35d499
TT
148652020-02-08 Tom Tromey <tom@tromey.com>
14866
14867 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
14868 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
14869
1eba2311
TT
148702020-02-08 Tom Tromey <tom@tromey.com>
14871
14872 * dwarf2read.h (struct die_info): Don't declare.
14873
e41c2da2
TT
148742020-02-08 Tom Tromey <tom@tromey.com>
14875
14876 * dwarf2read.h (die_info_ptr): Remove typedef.
14877
4fc6c0d5
TT
148782020-02-08 Tom Tromey <tom@tromey.com>
14879
14880 * dwarf2read.c (read_call_site_scope)
14881 (handle_data_member_location, dwarf2_add_member_fn)
14882 (mark_common_block_symbol_computed, read_common_block)
14883 (attr_to_dynamic_prop, partial_die_info::read)
14884 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
14885 (dwarf2_symbol_mark_computed, set_die_type): Update.
14886 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
14887 method.
14888 (attr_form_is_block): Don't declare.
14889 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
14890
cd6c91b4
TT
148912020-02-08 Tom Tromey <tom@tromey.com>
14892
14893 * dwarf2read.c (dwarf2_find_base_address, )
14894 (read_call_site_scope, rust_containing_type)
14895 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
14896 (handle_data_member_location, dwarf2_add_member_fn)
14897 (get_alignment, read_structure_type, process_structure_scope)
14898 (mark_common_block_symbol_computed, read_common_block)
14899 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
14900 (partial_die_info::read, read_attribute_value, new_symbol)
14901 (lookup_die_type, dwarf2_get_ref_die_offset)
14902 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
14903 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
14904 (dwarf2_symbol_mark_computed): Update.
14905 * dwarf2/attribute.h (struct attribute) <value_as_address,
14906 form_is_section_offset, form_is_constant, form_is_ref>: Declare
14907 methods.
14908 (value_as_address, attr_form_is_section_offset)
14909 (attr_form_is_constant, attr_form_is_ref): Don't declare.
14910 * dwarf2/attribute.c (attribute::value_as_address)
14911 (attribute::form_is_section_offset, attribute::form_is_constant)
14912 (attribute::form_is_ref): Now methods.
14913
162dce55
TT
149142020-02-08 Tom Tromey <tom@tromey.com>
14915
14916 * dwarf2read.c (struct attribute, DW_STRING)
14917 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
14918 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
14919 (attr_form_is_block, attr_form_is_section_offset)
14920 (attr_form_is_constant, attr_form_is_ref): Move.
14921 * dwarf2/attribute.h: New file.
14922 * dwarf2/attribute.c: New file, from dwarf2read.c.
14923 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
14924
3054dd54
TT
149252020-02-08 Tom Tromey <tom@tromey.com>
14926
14927 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
14928 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
14929 Move.
14930 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
14931 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
14932 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
14933 abbrev.c.
14934 * dwarf2/abbrev.h: New file.
14935 * dwarf2/abbrev.c: New file, from dwarf2read.c.
14936 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
14937
96b79293
TT
149382020-02-08 Tom Tromey <tom@tromey.com>
14939
14940 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
14941 (dwarf2_section_size, dwarf2_get_section_info)
14942 (create_signatured_type_table_from_debug_names)
14943 (create_addrmap_from_aranges, read_debug_names_from_section)
14944 (get_gdb_index_contents_from_section, read_comp_unit_head)
14945 (error_check_comp_unit_head, read_abbrev_offset)
14946 (create_debug_type_hash_table, init_cu_die_reader)
14947 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
14948 (read_comp_units_from_section, create_cus_hash_table)
14949 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
14950 (create_dwp_v2_section, dwarf2_rnglists_process)
14951 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
14952 (abbrev_table_read_table, read_indirect_string_at_offset_from)
14953 (read_indirect_string_from_dwz, read_addr_index_1)
14954 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
14955 (dwarf_decode_macro_bytes, dwarf_decode_macros)
14956 (fill_in_loclist_baton): Update.
14957 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
14958 get_containing_section, get_bfd_owner, get_bfd_section,
14959 get_file_name, get_id, get_flags, empty, read>: Declare methods.
14960 (dwarf2_read_section, get_section_name, get_section_file_name)
14961 (get_containing_section, get_section_bfd_owner)
14962 (get_section_bfd_section, get_section_name, get_section_file_name)
14963 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
14964 declare.
14965 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
14966 (dwarf2_section_info::get_bfd_owner)
14967 (dwarf2_section_info::get_bfd_section)
14968 (dwarf2_section_info::get_name)
14969 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
14970 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
14971 (dwarf2_section_info::read): Now methods.
14972 * dwarf-index-write.c (class debug_names): Update.
14973
2c86cff9
TT
149742020-02-08 Tom Tromey <tom@tromey.com>
14975
14976 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
14977 Move to dwarf2/section.h.
14978 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
14979 (get_section_bfd_section, get_section_name)
14980 (get_section_file_name, get_section_id, get_section_flags)
14981 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
14982 dwarf2/section.c.
14983 * dwarf2/section.h: New file.
14984 * dwarf2/section.c: New file, from dwarf2read.c.
14985 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
14986
f4382c45
TT
149872020-02-08 Tom Tromey <tom@tromey.com>
14988
14989 * dwarf2read.h (read_unsigned_leb128): Don't declare.
14990 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
14991 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
14992 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
14993 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
14994 * dwarf2/leb.h: New file, from dwarf2read.c.
14995 * dwarf2/leb.c: New file, from dwarf2read.c.
14996 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
14997 Remove.
14998 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
14999 (COMMON_SFILES): Add dwarf2/leb.c.
15000
01840b7a
JB
150012020-02-08 Joel Brobecker <brobecker@adacore.com>
15002
15003 GDB 9.1 released.
15004
dfcb27e4
IB
150052020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15006
15007 PR gdb/25190:
aac66a4c
SM
15008 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
15009 * gdb/remote.c (remote_console_output): Update.
15010 * gdb/ui-file.c (fputs_unfiltered): Rename to...
15011 (ui_file_puts): ...this.
15012 * gdb/ui-file.h (ui_file_puts): Add declaration.
15013 * gdb/utils.c (emit_style_escape): Update.
15014 (flush_wrap_buffer): Update.
15015 (fputs_maybe_filtered): Update.
15016 (fputs_unfiltered): Add function.
dfcb27e4 15017
faa17681
IB
150182020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15019
aac66a4c
SM
15020 * gdb/event-loop.c (gdb_wait_for_event): Update.
15021 * gdb/printcmd.c (printf_command): Update.
15022 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
15023 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
15024 (gdb_os_flush_stderr): Update.
15025 * gdb/remote.c (remote_console_output): Update.
15026 * gdb/ui-file.c (gdb_flush): Rename to...
15027 (ui_file_flush): ...this.
15028 (stderr_file::write): Update.
15029 (stderr_file::puts): Update.
15030 * gdb/ui-file.h (gdb_flush): Rename to...
15031 (ui_file_flush): ...this.
15032 * gdb/utils.c (gdb_flush): Add function.
15033 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 15034
5abbbe1d
TT
150352020-02-07 Tom Tromey <tromey@adacore.com>
15036
15037 PR breakpoints/24915:
15038 * source.c (find_and_open_source): Do not check basenames_may_differ.
15039
919adfe8
TT
150402020-02-07 Tom Tromey <tom@tromey.com>
15041
15042 * README: Update gdbserver documentation.
15043 * gdbserver: Move to top level.
15044 * configure.tgt (build_gdbserver): Remove.
15045 * configure.ac: Remove --enable-gdbserver.
15046 * configure: Rebuild.
15047 * Makefile.in (distclean): Don't mention gdbserver.
15048
1d5d29e7
SV
150492020-02-06 Shahab Vahedi <shahab@synopsys.com>
15050
15051 * source-cache.c (source_cache::ensure): Surround
15052 get_plain_source_lines with a try/catch.
15053 (source_cache::get_line_charpos): Get rid of try/catch
15054 and only check for the return value of "ensure".
15055 * tui/tui-source.c (tui_source_window::set_contents):
15056 Simplify "nlines" calculation.
15057
6eb1129c
SV
150582020-02-06 Shahab Vahedi <shahab@synopsys.com>
15059
15060 * MAINTAINERS (Write After Approval): Add myself.
15061
c6a42d11
CB
150622020-02-05 Christian Biesinger <cbiesinger@google.com>
15063
15064 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
15065 function call.
15066
c8ecdda6
CB
150672020-02-05 Christian Biesinger <cbiesinger@google.com>
15068
15069 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
15070
f6480e70
MR
150712020-02-05 Maciej W. Rozycki <macro@wdc.com>
15072
15073 * nat/riscv-linux-tdesc.h: New file.
15074 * nat/riscv-linux-tdesc.c: New file, taking code from...
15075 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15076 ... here.
15077 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
15078 NATDEPFILES.
15079
dcc9fbc6
AB
150802020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
15081
15082 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
15083 we don't set the fake simulator ptid to the null_ptid.
15084
719546c4
SM
150852020-02-03 Simon Marchi <simon.marchi@efficios.com>
15086
15087 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
15088 * gdbthread.h (class thread_info) <resumed>: Likewise.
15089 * infrun.c (resume_1): Likewise.
15090 (proceed): Likewise.
15091 (infrun_thread_stop_requested): Likewise.
15092 (stop_all_threads): Likewise.
15093 (handle_inferior_event): Likewise.
15094 (restart_threads): Likewise.
15095 (finish_step_over): Likewise.
15096 (keep_going_stepped_thread): Likewise.
15097 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
15098 (linux_handle_extended_wait): Likewise.
15099 * record-btrace.c (get_thread_current_frame_id): Likewise.
15100 * record-full.c (record_full_wait_1): Likewise.
15101 * remote.c (remote_target::process_initial_stop_replies): Likewise.
15102 * target.c (target_resume): Likewise.
15103 * thread.c (set_running_thread): Likewise.
15104
e409c542
AKS
151052020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15106
15107 * f-valprint.c (f77_print_array_1): Changed datatype of index
15108 variable to LONGEST from int to enable it to contain bound
15109 values correctly.
15110
ee98c0da
MR
151112020-02-03 Maciej W. Rozycki <macro@wdc.com>
15112
15113 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
15114 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
15115 offsets according to FLEN determined.
15116 (riscv_linux_nat_target::read_description): Determine FLEN
15117 dynamically.
15118 (riscv_linux_nat_target::fetch_registers): Size regset buffer
15119 according to FLEN determined.
15120 (riscv_linux_nat_target::store_registers): Likewise.
15121
aa66aac4
SV
151222020-02-01 Shahab Vahedi <shahab@synopsys.com>
15123
15124 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
15125 when reg->group is empty and reggroup is not.
15126
fd9faca8
TT
151272020-01-31 Tom Tromey <tromey@adacore.com>
15128
15129 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
15130 Call beneath target's mourn_inferior after unpushing.
15131
42330a68
AB
151322020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15133
15134 PR tui/9765
15135 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
15136 have enough lines to fill the screen, still return the lowest
15137 address we found.
15138
7a27a45b
AB
151392020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15140
15141 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
15142 '-', '<', and '>' commands.
15143
c47f70e2
PA
151442020-01-29 Pedro Alves <palves@redhat.com>
15145 Sergio Durigan Junior <sergiodj@redhat.com>
15146
15147 * infcmd.c (construct_inferior_arguments): Assert that
15148 'argc' is greater than 0.
15149
5133a315
LM
151502020-01-29 Luis Machado <luis.machado@linaro.org>
15151
15152 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
15153 (BRK_INSN_MASK): Define to 0xd4200000.
15154 (aarch64_program_breakpoint_here_p): New function.
15155 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
15156 * arch-utils.c (default_program_breakpoint_here_p): Moved from
15157 breakpoint.c.
15158 * arch-utils.h (default_program_breakpoint_here_p): Moved from
15159 breakpoint.h
15160 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
15161 call gdbarch_program_breakpoint_here_p.
15162 (program_breakpoint_here): Moved to arch-utils.c, renamed to
15163 default_program_breakpoint_here_p, changed return type to bool and
15164 simplified.
15165 * breakpoint.h (program_breakpoint_here): Moved prototype to
15166 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
15167 return type to bool.
15168 * gdbarch.c: Regenerate.
15169 * gdbarch.h: Regenerate.
15170 * gdbarch.sh (program_breakpoint_here_p): New method.
15171 * infrun.c (handle_signal_stop): Call
15172 gdbarch_program_breakpoint_here_p.
15173
168f8c6b
TT
151742020-01-26 Tom Tromey <tom@tromey.com>
15175
15176 * ctfread.c (struct ctf_fp_info): Reindent.
15177 (_initialize_ctfread): Remove.
15178
128a391f
TT
151792020-01-26 Tom Tromey <tom@tromey.com>
15180
15181 * psymtab.c (partial_map_expand_apply)
15182 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
15183 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
15184 (psym_print_stats, psym_expand_symtabs_for_function)
15185 (psym_map_symbol_filenames, psym_map_matching_symbols)
15186 (psym_expand_symtabs_matching)
15187 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
15188 (maintenance_check_psymtabs): Use new methods.
15189 * psympriv.h (struct partial_symtab) <readin_p,
15190 get_compunit_symtab>: New methods.
15191 <readin, compunit_symtab>: Remove members.
15192 (struct standard_psymtab): New.
15193 (struct legacy_psymtab): Derive from standard_psymtab.
15194 * dwarf2read.h (struct dwarf2_psymtab): Derive from
15195 standard_psymtab.
15196 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
15197
0494dbec
TT
151982020-01-26 Tom Tromey <tom@tromey.com>
15199
15200 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
15201 read_dependencies. Add assert.
15202 * psymtab.c (partial_symtab::read_dependencies): New method.
15203 * psympriv.h (struct partial_symtab) <read_dependencies>: New
15204 method.
15205 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
15206 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
15207 read_dependencies.
15208 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
15209 Add assert.
15210
8566b89b
TT
152112020-01-26 Tom Tromey <tom@tromey.com>
15212
15213 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
15214 Call expand_psymtab.
15215 (xcoff_read_symtab): Call expand_psymtab.
15216 (xcoff_start_psymtab, xcoff_end_psymtab): Set
15217 legacy_expand_psymtab.
15218 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
15219 method.
15220 (struct legacy_psymtab) <expand_psymtab>: Implement.
15221 <legacy_expand_psymtab>: New member.
15222 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
15223 (parse_partial_symbols): Set legacy_expand_psymtab.
15224 (psymtab_to_symtab_1): Change argument order. Call
15225 expand_psymtab.
15226 (new_psymtab): Set legacy_expand_psymtab.
15227 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
15228 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
15229 expand_psymtab.
15230 (dwarf2_psymtab::expand_psymtab): Rename from
15231 psymtab_to_symtab_1. Call expand_psymtab.
15232 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
15233 (dbx_end_psymtab): Likewise.
15234 (dbx_psymtab_to_symtab_1): Change argument order. Call
15235 expand_psymtab.
15236 (dbx_read_symtab): Call expand_psymtab.
15237 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
15238 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
15239 (ctf_psymtab::read_symtab): Call expand_psymtab.
15240
077cbab2
TT
152412020-01-26 Tom Tromey <tom@tromey.com>
15242
15243 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
15244 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
15245 messages.
15246 * mdebugread.c (mdebug_read_symtab): Remove prints.
15247 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
15248 assert.
15249 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
15250
891813be
TT
152512020-01-26 Tom Tromey <tom@tromey.com>
15252
15253 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
15254 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
15255 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
15256 legacy_symtab.
15257 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
15258 * psymtab.c (psymtab_to_symtab): Call method.
15259 (dump_psymtab): Update.
15260 * psympriv.h (struct partial_symtab): Add virtual destructor.
15261 <read_symtab>: New method.
15262 (struct legacy_symtab): New.
15263 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
15264 (struct pst_map) <pst>: Now a legacy_psymtab.
15265 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
15266 (new_psymtab): Use legacy_psymtab.
15267 * dwarf2read.h (struct dwarf2_psymtab): New.
15268 (struct dwarf2_per_cu_data) <psymtab>: Use it.
15269 * dwarf2read.c (dwarf2_create_include_psymtab)
15270 (dwarf2_build_include_psymtabs, create_type_unit_group)
15271 (create_partial_symtab, process_psymtab_comp_unit_reader)
15272 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
15273 (set_partial_user): Use dwarf2_psymtab.
15274 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
15275 (psymtab_to_symtab_1, process_full_comp_unit)
15276 (process_full_type_unit, dwarf2_ranges_read)
15277 (dwarf2_get_pc_bounds, psymtab_include_file_name)
15278 (dwarf_decode_lines): Use dwarf2_psymtab.
15279 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
15280 (add_address_entry_worker, write_one_signatured_type)
15281 (recursively_count_psymbols, recursively_write_psymbols)
15282 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
15283 (write_debug_names): Likewise.
15284 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
15285 <pst>: Now a legacy_psymtab.
15286 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
15287 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
15288 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
15289 * ctfread.c (struct ctf_psymtab): New.
15290 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
15291 ctf_psymtab.
15292 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
15293 (create_partial_symtab): Return a ctf_psymtab.
15294 (scan_partial_symbols): Update.
15295
c3693a1d
TT
152962020-01-26 Tom Tromey <tom@tromey.com>
15297
15298 * xcoffread.c (xcoff_start_psymtab): Use new.
15299 * psymtab.c (partial_symtab::partial_symtab): New constructor,
15300 renamed from start_psymtab_common.
15301 * psympriv.h (struct partial_symtab): Add new constructor.
15302 (start_psymtab_common): Don't declare.
15303 * mdebugread.c (parse_partial_symbols): Use new.
15304 * dwarf2read.c (create_partial_symtab): Use new.
15305 * dbxread.c (start_psymtab): Use new.
15306 * ctfread.c (create_partial_symtab): Use new.
15307
32caafd0
TT
153082020-01-26 Tom Tromey <tom@tromey.com>
15309
15310 * xcoffread.c (xcoff_end_psymtab): Use new.
15311 * psymtab.c (start_psymtab_common): Use new.
15312 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
15313 Update.
15314 * psympriv.h (struct partial_symtab): Add parameters to
15315 constructor. Don't inline.
15316 (allocate_psymtab): Don't declare.
15317 * mdebugread.c (new_psymtab): Use new.
15318 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
15319 * dbxread.c (dbx_end_psymtab): Use new.
15320
abaa2f23
TT
153212020-01-26 Tom Tromey <tom@tromey.com>
15322
15323 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
15324 allocate_psymtab. Update documentation.
15325 * psymtab.c (psymtab_storage::install_psymtab): Rename from
15326 allocate_psymtab. Do not use new.
15327 (allocate_psymtab): Use new. Update.
15328
6d94535f
TT
153292020-01-26 Tom Tromey <tom@tromey.com>
15330
15331 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
15332 * psymtab.c (psym_print_stats): Update.
15333 * psympriv.h (struct partial_symtab) <readin,
15334 psymtabs_addrmap_supported, anonymous>: Now bool.
15335 * mdebugread.c (psymtab_to_symtab_1): Update.
15336 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
15337 (build_type_psymtabs_reader, psymtab_to_symtab_1)
15338 (process_full_comp_unit, process_full_type_unit): Update.
15339 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
15340 * ctfread.c (psymtab_to_symtab): Update.
15341
6f17252b
TT
153422020-01-26 Tom Tromey <tom@tromey.com>
15343
15344 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
15345 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
15346 * psymtab.c (psymtab_storage): Delete psymtabs.
15347 (psymtab_storage::allocate_psymtab): Use new.
15348 (psymtab_storage::discard_psymtab): Use delete.
15349 * psympriv.h (struct partial_symtab): Add constructor and
15350 initializers.
15351
f6f1cebc
TT
153522020-01-26 Tom Tromey <tom@tromey.com>
15353
15354 * machoread.c: Do not include psympriv.h.
15355
e47e48f6
PW
153562020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15357
15358 * NEWS: Mention the new option and the set/show commands.
15359
a2fedca9
PW
153602020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15361
15362 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
15363 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
15364 (validate_exec_file): New variables, enums, functions.
15365 (exec_file_locate_attach, print_section_info): Style the filenames.
15366 (_initialize_exec): Install show_exec_file_mismatch_command and
15367 set_exec_file_mismatch_command.
15368 * gdbcore.h (validate_exec_file): Declare.
15369 * infcmd.c (attach_command): Call validate_exec_file.
15370 * remote.c ( remote_target::remote_add_inferior): Likewise.
15371
7ffa82e1
AB
153722020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15373
15374 * frame.c (find_frame_sal): Move call to get_next_frame into more
15375 inner scope.
15376 * inline-frame.c (inilne_state) <inline_state>: Update argument
15377 types.
15378 (inilne_state) <skipped_symbol>: Rename to...
15379 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
15380 (skip_inline_frames): Build vector of skipped symbols and use this
15381 to reate the inline_state.
15382 (inline_skipped_symbol): Add a comment and some assertions, fetch
15383 skipped symbol from the list.
15384
3d92a3e3
AB
153852020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15386
15387 * buildsym.c (lte_is_less_than): Delete.
15388 (buildsym_compunit::end_symtab_with_blockvector): Create local
15389 lambda function to sort line table entries, and use
15390 std::stable_sort instead of std::sort.
15391 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
15392 markers when looking for a previous line.
15393
94a72be7
AB
153942020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15395
15396 * dwarf2read.c (lnp_state_machine::record_line): Include
15397 end_sequence parameter in debug print out. Record the line if we
15398 are at an end_sequence marker even if it's not the start of a
15399 statement.
15400 * symmisc.c (maintenance_print_one_line_table): Print end of
15401 sequence markers with 'END' not '0'.
15402
53af73bf
PA
154032020-01-24 Pedro Alves <palves@redhat.com>
15404
15405 PR gdb/25410
15406 * thread.c (scoped_restore_current_thread::restore): Use
15407 switch_to_inferior_no_thread.
15408 * exec.c: Include "progspace-and-thread.h".
15409 (add_target_sections, remove_target_sections):
15410 scoped_restore_current_pspace_and_thread instead of
15411 scoped_restore_current_thread.
15412 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
15413 and aspace to the inferior before calling clone_program_space.
15414 Remove stale comment.
15415
3050c6f4
CB
154162020-01-24 Christian Biesinger <cbiesinger@google.com>
15417
15418 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
15419 (arm_netbsd_nat_target::fetch_registers): ...this.
15420 (arm_nbsd_nat_target::store_registers): Rename to...
15421 (arm_netbsd_nat_target::store_registers): ...this.
15422
73685c7e
CB
154232020-01-24 Christian Biesinger <cbiesinger@google.com>
15424
15425 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
15426 register_t.
15427
89203d40
CB
154282020-01-24 Christian Biesinger <cbiesinger@google.com>
15429
15430 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
15431 Update comment.
15432 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
15433 Likewise.
15434 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
15435 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
15436 the correct replacement (iterate_over_regset_sections).
15437 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
15438 Update comment.
15439
1ba1ac88
AB
154402020-01-24 Graham Markall <graham.markall@embecosm.com>
15441
15442 PR gdb/23718
15443 * gdb/python/python.c (execute_gdb_command): Call
15444 async_enable_stdin in catch block.
15445
f3364a6d
AB
154462020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15447
15448 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
15449 SWITCH_THRU_ALL_UIS.
15450
733d0a67
AB
154512020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15452
15453 PR tui/9765
15454 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
15455 comment, add extra parameter, and update to store previous symbol
15456 when appropriate.
15457 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
15458 add extra parameter.
15459 * tui/tui-disasm.c (tui_disassemble): Update header comment,
15460 remove unneeded parameter, add try/catch around gdb_print_insn,
15461 rewrite to add items to asm_lines vector.
15462 (tui_find_backward_disassembly_start_address): New function.
15463 (tui_find_disassembly_address): Updated throughout.
15464 (tui_disasm_window::set_contents): Update for changes to
15465 tui_disassemble.
15466 (tui_disasm_window::do_scroll_vertical): No need to adjust the
15467 number of lines to scroll.
15468
b3b3bada
SM
154692020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
15470
15471 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
15472 (SECT_OFF_DATA): Likewise.
15473 (SECT_OFF_RODATA): Likewise.
15474 (SECT_OFF_TEXT): Likewise.
15475 (SECT_OFF_BSS): Likewise.
15476 (struct objfile) <text_section_offset, data_section_offset>: New
15477 methods.
15478 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
15479 objfile::text_section_offset.
15480 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
15481 * coffread.c (coff_symtab_read): Likewise.
15482 (enter_linenos): Likewise.
15483 (process_coff_symbol): Likewise.
15484 * ctfread.c (get_objfile_text_range): Likewise.
15485 * dtrace-probe.c (dtrace_probe::get_relocated_address):
15486 Use objfile::data_section_offset.
15487 * dwarf2-frame.c (execute_cfa_program): Use
15488 objfile::text_section_offset.
15489 (dwarf2_frame_find_fde): Likewise.
15490 * dwarf2read.c (create_addrmap_from_index): Likewise.
15491 (create_addrmap_from_aranges): Likewise.
15492 (dw2_find_pc_sect_compunit_symtab): Likewise.
15493 (process_psymtab_comp_unit_reader): Likewise.
15494 (add_partial_symbol): Likewise.
15495 (add_partial_subprogram): Likewise.
15496 (process_full_comp_unit): Likewise.
15497 (read_file_scope): Likewise.
15498 (read_func_scope): Likewise.
15499 (read_lexical_block_scope): Likewise.
15500 (read_call_site_scope): Likewise.
15501 (dwarf2_rnglists_process): Likewise.
15502 (dwarf2_ranges_process): Likewise.
15503 (dwarf2_ranges_read): Likewise.
15504 (dwarf_decode_lines_1): Likewise.
15505 (new_symbol): Likewise.
15506 (dwarf2_fetch_die_loc_sect_off): Likewise.
15507 (dwarf2_per_cu_text_offset): Likewise.
15508 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
15509 * hppa-tdep.c (read_unwind_info): Likewise.
15510 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
15511 * psympriv.h (struct partial_symtab): Likewise.
15512 * psymtab.c (find_pc_sect_psymtab): Likewise.
15513 * solib-svr4.c (enable_break): Likewise.
15514 * stap-probe.c (relocate_address): Use
15515 objfile::data_section_offset.
15516 * xcoffread.c (enter_line_range): Use
15517 objfile::text_section_offset.
15518 (read_xcoff_symtab): Likewise.
15519
ab53f382
SM
155202020-01-23 Simon Marchi <simon.marchi@efficios.com>
15521
15522 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
15523 declaration to narrower scopes.
15524
e7eee665
SM
155252020-01-23 Simon Marchi <simon.marchi@efficios.com>
15526
15527 * darwin-nat.h (struct darwin_exception_msg, enum
15528 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
15529 Move up.
15530 (class darwin_nat_target) <wait_1, check_new_threads,
15531 decode_exception_message, decode_message, stop_inferior,
15532 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
15533 * darwin-nat.c (darwin_check_new_threads): Rename to...
15534 (darwin_nat_target::check_new_threads): ... this.
15535 (darwin_suspend_inferior_it): Remove.
15536 (darwin_decode_exception_message): Rename to...
15537 (darwin_nat_target::decode_exception_message): ... this.
15538 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
15539 (darwin_decode_message): Rename to...
15540 (darwin_nat_target::decode_message): ... this.
15541 (cancel_breakpoint): Rename to...
15542 (darwin_nat_target::cancel_breakpoint): ... this.
15543 (darwin_wait): Rename to...
15544 (darwin_nat_target::wait_1): ... this. Use range-based for loop
15545 instead of iterate_over_inferiors.
15546 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
15547 (darwin_stop_inferior): Rename to...
15548 (darwin_nat_target::stop_inferior): ... this.
15549 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
15550 (darwin_init_thread_list): Rename to...
15551 (darwin_nat_target::init_thread_list): ... this.
15552 (darwin_ptrace_him): Rename to...
15553 (darwin_nat_target::ptrace_him): ... this.
15554 (darwin_nat_target::create_inferior): Pass lambda function to
15555 fork_inferior.
15556 (darwin_nat_target::detach): Call stop_inferior instead of
15557 darwin_stop_inferior.
15558 * fork-inferior.h (fork_inferior): Change init_trace_fun
15559 parameter to gdb::function_view.
15560 * fork-inferior.c (fork_inferior): Likewise.
15561
c162ed3e
HD
155622020-01-23 Hannes Domani <ssbssa@yahoo.de>
15563
15564 * i386-cygwin-tdep.c (core_process_module_section): Update.
15565 * windows-nat.c (struct lm_info_windows): Add text_offset.
15566 (windows_xfer_shared_libraries): Update.
15567 * windows-tdep.c (windows_xfer_shared_library):
15568 Add text_offset_cached argument.
15569 * windows-tdep.h (windows_xfer_shared_library): Update.
15570
a1237872
SM
155712020-01-21 Simon Marchi <simon.marchi@efficios.com>
15572
15573 * gdbarch.sh: Add declaration for _initialize_gdbarch.
15574
b3ee6dd9
SM
155752020-01-21 Simon Marchi <simon.marchi@efficios.com>
15576
15577 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
15578 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
15579 replace with range-based for.
15580 (gdbsim_interrupt_inferior): Remove.
15581 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
15582 with a range-based for. Inline code from
15583 gdbsim_interrupt_inferior.
15584
f9fac3c8
SM
155852020-01-21 Simon Marchi <simon.marchi@efficios.com>
15586
15587 * infrun.c (proceed): Fix indentation.
15588
f6474de9
TT
155892020-01-21 Tom Tromey <tromey@adacore.com>
15590
15591 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
15592 * python/python.c (python_extension_ops): Update.
15593 (gdbpy_colorize): New function.
15594 * python/lib/gdb/__init__.py (colorize): New function.
15595 * extension.h (ext_lang_colorize): Declare.
15596 * extension.c (ext_lang_colorize): New function.
15597 * extension-priv.h (struct extension_language_ops) <colorize>: New
15598 member.
15599 * cli/cli-style.c (_initialize_cli_style): Update help text.
15600
f0c702d4
LM
156012020-01-21 Luis Machado <luis.machado@linaro.org>
15602
15603 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
15604 <cond>: Change type to bool.
15605 (aarch64_displaced_step_b_cond): Update cond to use bool type.
15606 (aarch64_displaced_step_cb): Likewise.
15607 (aarch64_displaced_step_tb): Likewise.
15608
1ab139e5
LM
156092020-01-21 Luis Machado <luis.machado@linaro.org>
15610
15611 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
15612 output.
15613
0c271889
LM
156142020-01-21 Luis Machado <luis.machado@linaro.org>
15615
15616 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
15617 <pc_adjust>: Adjust the documentation.
15618 (aarch64_displaced_step_fixup): Check if PC really moved before
15619 adjusting it.
15620
4d89c1c7
TT
156212020-01-19 Tom Tromey <tom@tromey.com>
15622
15623 * disasm.c (~gdb_disassembler): New destructor.
15624 (gdb_buffered_insn_length): Call disassemble_free_target.
15625 * disasm.h (class gdb_disassembler): Declare destructor. Use
15626 DISABLE_COPY_AND_ASSIGN.
15627
c0ab21c2
TT
156282020-01-19 Tom Tromey <tom@tromey.com>
15629
15630 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
15631 (die_reader_func_ftype): Remove.
15632 (cutu_reader): New class.
15633 (dw2_get_file_names_reader): Remove "data" parameter.
15634 (dw2_get_file_names): Use cutu_reader.
15635 (create_debug_type_hash_table): Update.
15636 (read_cutu_die_from_dwo): Update comment.
15637 (lookup_dwo_unit): Add dwo_name parameter.
15638 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
15639 die_reader_func_ftype and data parameters.
15640 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
15641 Remove die_reader_func_ftype and data parameters.
15642 (~cutu_reader): New; from init_cutu_and_read_dies.
15643 (cutu_reader::cutu_reader): Rename from
15644 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
15645 and data parameters.
15646 (init_cutu_and_read_dies_simple): Remove.
15647 (struct process_psymtab_comp_unit_data): Remove.
15648 (process_psymtab_comp_unit_reader): Remove data parameter; add
15649 want_partial_unit and pretend_language parameters.
15650 (process_psymtab_comp_unit): Use cutu_reader.
15651 (build_type_psymtabs_reader): Remove data parameter.
15652 (build_type_psymtabs_1): Use cutu_reader.
15653 (process_skeletonless_type_unit): Likewise.
15654 (load_partial_comp_unit_reader): Remove.
15655 (load_partial_comp_unit): Use cutu_reader.
15656 (load_full_comp_unit_reader): Remove.
15657 (load_full_comp_unit): Use cutu_reader.
15658 (struct create_dwo_cu_data): Remove.
15659 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
15660 dwo_unit parameters.
15661 (create_cus_hash_table): Use cutu_reader.
15662 (struct dwarf2_read_addr_index_data): Remove.
15663 (dwarf2_read_addr_index_reader): Remove.
15664 (dwarf2_read_addr_index): Use cutu_reader.
15665 (read_signatured_type_reader): Remove.
15666 (read_signatured_type): Use cutu_reader.
15667
45bbae5c
TT
156682020-01-19 Tom Tromey <tom@tromey.com>
15669
15670 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
15671 * tui/tui-wingeneral.h (class tui_suppress_output): New.
15672 (tui_wrefresh): Declare.
15673 * tui/tui-wingeneral.c (suppress_output): New global.
15674 (tui_suppress_output, ~tui_suppress_output): New constructor and
15675 destructor.
15676 (tui_wrefresh): New function.
15677 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
15678 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
15679 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
15680 method.
15681 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
15682 tui_wrefresh.
15683 (tui_data_window::no_refresh): New method.
15684 (tui_data_item_window::refresh_window): Call tui_wrefresh.
15685 (tui_reg_command): Use tui_suppress_output
15686 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
15687 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
15688 method.
15689 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
15690
4f13c1c0
TT
156912020-01-19 Tom Tromey <tom@tromey.com>
15692
15693 * tui/tui-winsource.c (tui_update_source_windows_with_line):
15694 Handle case where symtab is null.
15695
fa47e446
SM
156962020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
15697
15698 * linux-fork.c (one_fork_p): Simplify.
15699
26f42329
SM
157002020-01-17 Simon Marchi <simon.marchi@efficios.com>
15701
15702 * top.c (struct qt_args): Remove.
15703 (kill_or_detach): Change return type to void, replace `void *`
15704 parameter with a proper one.
15705 (print_inferior_quit_action): Likewise.
15706 (quit_confirm): Use range-based for loop to iterate over inferiors.
15707 (quit_force): Likewise.
15708
a9ac81b1
SM
157092020-01-17 Simon Marchi <simon.marchi@efficios.com>
15710
15711 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
15712 `void *` parameter with proper parameters.
15713 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
15714 (print_one_inferior): Change return type to void, replace `void *`
15715 parameter with proper parameters.
15716 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
15717 inferiors.
15718 (get_other_inferior): Remove.
15719 (mi_cmd_remove_inferior): Use range-based loop to iterate over
15720 inferiors.
15721
788eca49
SM
157222020-01-17 Simon Marchi <simon.marchi@efficios.com>
15723
15724 * mi/mi-interp.c (report_initial_inferior): Remove.
15725 (mi_interp::init): Use range-based for to iterate over inferiors.
15726
d9bc85b6
SM
157272020-01-17 Simon Marchi <simon.marchi@efficios.com>
15728
15729 * python/py-inferior.c (build_inferior_list): Remove.
15730 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
15731
40c94099
CB
157322020-01-16 Christian Biesinger <cbiesinger@google.com>
15733
15734 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
15735 (btrace_stitch_trace): Likewise.
15736 * charset.c (intermediate_encoding): Likewise (vaild).
15737 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
15738 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
15739 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
15740
e0cdfe3c
HD
157412020-01-16 Hannes Domani <ssbssa@yahoo.de>
15742
15743 * windows-tdep.c (windows_get_tlb_type):
15744 Add rtl_user_process_parameters type.
15745
790f1718 157462020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 15747 Norbert Lange <nolange79@gmail.com>
790f1718
PA
15748
15749 PR build/24805
15750 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
15751 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
15752 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
15753 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
15754 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
15755 (ps_plog): Redeclare exported functions with default visibility.
15756
3112ed97
NA
157572020-01-16 Nitika Achra <Nitika.Achra@amd.com>
15758
15759 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
15760 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
15761
8dc3273e
SM
157622020-01-15 Simon Marchi <simon.marchi@efficios.com>
15763
15764 * infcmd.c (post_create_inferior): Use get_thread_regcache
15765 instead of get_current_regcache.
15766
ff47f4f0
TT
157672020-01-14 Tom Tromey <tom@tromey.com>
15768
15769 PR symtab/12535:
15770 * python/python.c (gdbpy_decode_line): Treat empty string the same
15771 as no argument.
15772
975f45b7
TT
157732020-01-14 Tom Tromey <tom@tromey.com>
15774
15775 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
15776
25e57356
TT
157772020-01-14 Tom Tromey <tom@tromey.com>
15778
15779 * nat/linux-btrace.c: Don't include <config.h>.
15780 * nat/linux-ptrace.c: Don't include <config.h>.
15781 * nat/x86-linux-dregs.c: Don't include <config.h>.
15782
05ea2a05
TT
157832020-01-14 Tom Tromey <tom@tromey.com>
15784
15785 * configure: Rebuild.
15786 * configure.ac: Move many checks to ../gdbsupport/common.m4.
15787
01027315
TT
157882020-01-14 Tom Tromey <tom@tromey.com>
15789
15790 * nat/x86-linux-dregs.c: Include configh.h.
15791 * nat/linux-ptrace.c: Include configh.h.
15792 * nat/linux-btrace.c: Include configh.h.
15793 * defs.h: Include config.h, bfd.h.
15794 * configure.ac: Don't source common.host.
15795 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
15796 * configure: Rebuild.
15797 * acinclude.m4: Update path.
15798 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
15799 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
15800 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
15801 (CLIBS): Add LIBSUPPORT.
15802 (CDEPS): Likewise.
15803 (COMMON_SFILES): Remove gdbsupport files.
15804 (HFILES_NO_SRCDIR): Likewise.
15805 (stamp-version): Update path to create-version.sh.
15806 (ALLDEPFILES): Remove gdbsupport files.
15807
b2ceabe8
TT
158082020-01-14 Tom Tromey <tom@tromey.com>
15809
15810 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
15811 USE_WIN32API when needed.
15812 * configure.ac (USE_WIN32API): Don't define.
15813 (WIN32LIBS): Use WIN32APILIBS.
15814 * configure: Rebuild.
15815
25c51f71
TT
158162020-01-14 Tom Tromey <tom@tromey.com>
15817
15818 * configure: Rebuild.
15819 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
15820
717c684d
BE
158212020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
15822
15823 * skip.c (skip_function_command): Make skip w/o arguments use the
15824 name of the inlined function if pc is inside any inlined function.
15825
7da6a5b9
LM
158262020-01-14 Luis Machado <luis.machado@linaro.org>
15827
15828 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
15829 * infrun.c (resume_1): Likewise.
15830 (handle_inferior_event): Remove stale comment.
15831 * linux-nat.c (linux_nat_target::resume): Update comments.
15832 (save_stop_reason): Likewise.
15833 (linux_nat_filter_event): Likewise.
15834 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
15835
44e4c775
AB
158362020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15837
15838 * elfread.c (record_minimal_symbol): Set section index to 0 for
15839 non-allocatable sections.
15840
18a8505e
AT
15841
158422020-01-13 Ali Tamur <tamur@google.com>
15843
15844 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
15845 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
15846 to gdb::optional. Update comments.
15847 (dwo_file): Update comments.
15848 (read_attribute): Update API to take an additional out parameter,
15849 need_reprocess. This is used to mark attributes that need other
15850 attributes (e.g. str_offsets_base) for correct computation which may not
15851 have been read yet.
15852 (read_attribute_reprocess): New function declaration.
15853 (read_addr_index): Likewise.
15854 (read_dwo_str_index): Likewise.
15855 (read_stub_str_index): Likewise.
15856 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
15857 (lookup_addr_base): New function definition.
15858 (lookup_ranges_base): Likewise.
15859 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
15860 lookup_ranges_base.
15861 (init_cutu_and_read_dies): Update comments.
15862 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
15863 unit. This is used to inherit parent's str_offsets_base and addr_base.
15864 Update comments.
15865 (init_cutu_and_read_dies_simple): Reflect API changes.
15866 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
15867 (create_cus_hash_table): Change API to take parent compile unit.
15868 Reflect API changes.
15869 (open_and_init_dwo_file): Reflect API changes.
15870 (dwarf2_get_pc_bounds): Update comments.
15871 (dwarf2_record_block_ranges): Likewise.
15872 (read_full_die_1): Change implementation to reprocess attributes that
15873 need str_offsets_base and addr_base.
15874 (partial_die_info::read): Likewise.
15875 (read_attribute_reprocess): New function definition.
15876 (read_attribute_value): Change API to take an additional out parameter,
15877 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
15878 when a non-dwo compile unit has index based attributes.
15879 (read_attribute): Reflect API changes.
15880 (read_addr_index_1): Reflect API changes. Update comments.
15881 (dwarf2_read_addr_index_data): Reflect API changes.
15882 (dwarf2_read_addr_index): Likewise.
15883 (read_str_index): Change API and implementation. This becomes a helper
15884 to be used by the new string index related methods. Update error
15885 message and comments.
15886 (read_dwo_str_index): New function definition.
15887 (read_stub_str_index): Likewise.
15888 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
15889 * symfile.h (dwarf2_debug_sections): Likewise.
15890 * xcoffread.c (dwarf2_debug_sections): Likewise.
15891
0cac9354
SM
158922020-01-13 Simon Marchi <simon.marchi@efficios.com>
15893
15894 * gdbcore.h (struct core_fns) <core_read_registers>: Change
15895 core_reg_sect type to gdb_byte *.
15896 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
15897 * cris-tdep.c (fetch_core_registers): Likewise.
15898 * corelow.c (core_target::get_core_register_section): Change
15899 type of `contents` to gdb::byte_vector.
15900
9a6d629c
AB
159012020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15902
15903 * tui/tui-wingeneral.c (box_win): Position the title in the center
15904 of the border.
15905
d8b2f9e3
SM
159062020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15907
15908 * corelow.c (core_target::get_core_register_section): Use
15909 std::vector instead of alloca.
15910
bb564c58
SM
159112020-01-13 Simon Marchi <simon.marchi@efficios.com>
15912
15913 * warning.m4: Add -Wmissing-declarations to build_warnings.
15914 * configure: Re-generate.
15915
6b366111
SM
159162020-01-13 Simon Marchi <simon.marchi@efficios.com>
15917
15918 * python/python.c (init__gdb_module): Add declaration.
15919
6c265988
SM
159202020-01-13 Simon Marchi <simon.marchi@efficios.com>
15921
15922 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
15923 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
15924 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
15925 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
15926 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
15927 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
15928 * ada-exp.y (_initialize_ada_exp): Add declaration.
15929 * ada-lang.c (_initialize_ada_language): Add declaration.
15930 * ada-tasks.c (_initialize_tasks): Add declaration.
15931 * agent.c (_initialize_agent): Add declaration.
15932 * aix-thread.c (_initialize_aix_thread): Add declaration.
15933 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
15934 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
15935 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
15936 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
15937 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
15938 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
15939 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
15940 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
15941 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
15942 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
15943 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
15944 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
15945 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
15946 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
15947 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
15948 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
15949 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
15950 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
15951 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
15952 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
15953 * annotate.c (_initialize_annotate): Add declaration.
15954 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
15955 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
15956 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
15957 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
15958 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
15959 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
15960 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
15961 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
15962 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
15963 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
15964 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
15965 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
15966 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
15967 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
15968 * auto-load.c (_initialize_auto_load): Add declaration.
15969 * auxv.c (_initialize_auxv): Add declaration.
15970 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
15971 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
15972 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
15973 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
15974 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
15975 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
15976 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
15977 * breakpoint.c (_initialize_breakpoint): Add declaration.
15978 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
15979 * btrace.c (_initialize_btrace): Add declaration.
15980 * charset.c (_initialize_charset): Add declaration.
15981 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
15982 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
15983 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
15984 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
15985 * cli/cli-script.c (_initialize_cli_script): Add declaration.
15986 * cli/cli-style.c (_initialize_cli_style): Add declaration.
15987 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
15988 * coffread.c (_initialize_coffread): Add declaration.
15989 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
15990 * compile/compile.c (_initialize_compile): Add declaration.
15991 * complaints.c (_initialize_complaints): Add declaration.
15992 * completer.c (_initialize_completer): Add declaration.
15993 * copying.c (_initialize_copying): Add declaration.
15994 * corefile.c (_initialize_core): Add declaration.
15995 * corelow.c (_initialize_corelow): Add declaration.
15996 * cp-abi.c (_initialize_cp_abi): Add declaration.
15997 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
15998 * cp-support.c (_initialize_cp_support): Add declaration.
15999 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
16000 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
16001 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
16002 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
16003 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
16004 * ctfread.c (_initialize_ctfread): Add declaration.
16005 * d-lang.c (_initialize_d_language): Add declaration.
16006 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
16007 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
16008 * dbxread.c (_initialize_dbxread): Add declaration.
16009 * dcache.c (_initialize_dcache): Add declaration.
16010 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
16011 * disasm.c (_initialize_disasm): Add declaration.
16012 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
16013 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
16014 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
16015 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
16016 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
16017 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
16018 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
16019 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
16020 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
16021 * elfread.c (_initialize_elfread): Add declaration.
16022 * exec.c (_initialize_exec): Add declaration.
16023 * extension.c (_initialize_extension): Add declaration.
16024 * f-lang.c (_initialize_f_language): Add declaration.
16025 * f-valprint.c (_initialize_f_valprint): Add declaration.
16026 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
16027 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
16028 * filesystem.c (_initialize_filesystem): Add declaration.
16029 * findcmd.c (_initialize_mem_search): Add declaration.
16030 * findvar.c (_initialize_findvar): Add declaration.
16031 * fork-child.c (_initialize_fork_child): Add declaration.
16032 * frame-base.c (_initialize_frame_base): Add declaration.
16033 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
16034 * frame.c (_initialize_frame): Add declaration.
16035 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
16036 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
16037 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
16038 * gcore.c (_initialize_gcore): Add declaration.
16039 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
16040 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
16041 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
16042 * gdbarch.c (_initialize_gdbarch): Add declaration.
16043 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
16044 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
16045 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
16046 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
16047 * go-lang.c (_initialize_go_language): Add declaration.
16048 * go32-nat.c (_initialize_go32_nat): Add declaration.
16049 * guile/guile.c (_initialize_guile): Add declaration.
16050 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
16051 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
16052 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
16053 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
16054 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
16055 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
16056 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
16057 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
16058 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
16059 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
16060 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
16061 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
16062 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
16063 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
16064 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
16065 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
16066 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
16067 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
16068 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
16069 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
16070 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
16071 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
16072 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
16073 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
16074 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
16075 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
16076 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
16077 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
16078 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
16079 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
16080 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
16081 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
16082 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
16083 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
16084 * infcall.c (_initialize_infcall): Add declaration.
16085 * infcmd.c (_initialize_infcmd): Add declaration.
16086 * inflow.c (_initialize_inflow): Add declaration.
16087 * infrun.c (_initialize_infrun): Add declaration.
16088 * interps.c (_initialize_interpreter): Add declaration.
16089 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
16090 * jit.c (_initialize_jit): Add declaration.
16091 * language.c (_initialize_language): Add declaration.
16092 * linux-fork.c (_initialize_linux_fork): Add declaration.
16093 * linux-nat.c (_initialize_linux_nat): Add declaration.
16094 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
16095 * linux-thread-db.c (_initialize_thread_db): Add declaration.
16096 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
16097 * m2-lang.c (_initialize_m2_language): Add declaration.
16098 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
16099 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
16100 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
16101 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
16102 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
16103 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
16104 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
16105 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
16106 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
16107 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
16108 * machoread.c (_initialize_machoread): Add declaration.
16109 * macrocmd.c (_initialize_macrocmd): Add declaration.
16110 * macroscope.c (_initialize_macroscope): Add declaration.
16111 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
16112 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
16113 * maint.c (_initialize_maint_cmds): Add declaration.
16114 * mdebugread.c (_initialize_mdebugread): Add declaration.
16115 * memattr.c (_initialize_mem): Add declaration.
16116 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
16117 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
16118 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
16119 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
16120 * mi/mi-main.c (_initialize_mi_main): Add declaration.
16121 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
16122 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
16123 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
16124 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
16125 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
16126 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
16127 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
16128 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
16129 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
16130 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
16131 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
16132 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
16133 * mipsread.c (_initialize_mipsread): Add declaration.
16134 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
16135 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
16136 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
16137 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
16138 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
16139 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
16140 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
16141 * nto-procfs.c (_initialize_procfs): Add declaration.
16142 * objc-lang.c (_initialize_objc_language): Add declaration.
16143 * observable.c (_initialize_observer): Add declaration.
16144 * opencl-lang.c (_initialize_opencl_language): Add declaration.
16145 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
16146 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
16147 * osabi.c (_initialize_gdb_osabi): Add declaration.
16148 * osdata.c (_initialize_osdata): Add declaration.
16149 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
16150 * parse.c (_initialize_parse): Add declaration.
16151 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
16152 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
16153 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
16154 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
16155 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
16156 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
16157 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
16158 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
16159 * printcmd.c (_initialize_printcmd): Add declaration.
16160 * probe.c (_initialize_probe): Add declaration.
16161 * proc-api.c (_initialize_proc_api): Add declaration.
16162 * proc-events.c (_initialize_proc_events): Add declaration.
16163 * proc-service.c (_initialize_proc_service): Add declaration.
16164 * procfs.c (_initialize_procfs): Add declaration.
16165 * producer.c (_initialize_producer): Add declaration.
16166 * psymtab.c (_initialize_psymtab): Add declaration.
16167 * python/python.c (_initialize_python): Add declaration.
16168 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
16169 * record-btrace.c (_initialize_record_btrace): Add declaration.
16170 * record-full.c (_initialize_record_full): Add declaration.
16171 * record.c (_initialize_record): Add declaration.
16172 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
16173 * regcache.c (_initialize_regcache): Add declaration.
16174 * reggroups.c (_initialize_reggroup): Add declaration.
16175 * remote-notif.c (_initialize_notif): Add declaration.
16176 * remote-sim.c (_initialize_remote_sim): Add declaration.
16177 * remote.c (_initialize_remote): Add declaration.
16178 * reverse.c (_initialize_reverse): Add declaration.
16179 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
16180 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
16181 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
16182 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
16183 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
16184 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
16185 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
16186 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
16187 Add declaration.
16188 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
16189 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
16190 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
16191 * rust-exp.y (_initialize_rust_exp): Add declaration.
16192 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
16193 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
16194 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
16195 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
16196 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
16197 * score-tdep.c (_initialize_score_tdep): Add declaration.
16198 * ser-go32.c (_initialize_ser_dos): Add declaration.
16199 * ser-mingw.c (_initialize_ser_windows): Add declaration.
16200 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
16201 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
16202 * ser-uds.c (_initialize_ser_socket): Add declaration.
16203 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
16204 * serial.c (_initialize_serial): Add declaration.
16205 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
16206 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
16207 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
16208 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
16209 * skip.c (_initialize_step_skip): Add declaration.
16210 * sol-thread.c (_initialize_sol_thread): Add declaration.
16211 * solib-aix.c (_initialize_solib_aix): Add declaration.
16212 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
16213 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
16214 * solib-frv.c (_initialize_frv_solib): Add declaration.
16215 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
16216 * solib-target.c (_initialize_solib_target): Add declaration.
16217 * solib.c (_initialize_solib): Add declaration.
16218 * source-cache.c (_initialize_source_cache): Add declaration.
16219 * source.c (_initialize_source): Add declaration.
16220 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
16221 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
16222 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
16223 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
16224 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
16225 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
16226 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
16227 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
16228 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
16229 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
16230 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
16231 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
16232 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
16233 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
16234 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
16235 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
16236 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
16237 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
16238 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
16239 * stabsread.c (_initialize_stabsread): Add declaration.
16240 * stack.c (_initialize_stack): Add declaration.
16241 * stap-probe.c (_initialize_stap_probe): Add declaration.
16242 * std-regs.c (_initialize_frame_reg): Add declaration.
16243 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
16244 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
16245 * symfile.c (_initialize_symfile): Add declaration.
16246 * symmisc.c (_initialize_symmisc): Add declaration.
16247 * symtab.c (_initialize_symtab): Add declaration.
16248 * target.c (_initialize_target): Add declaration.
16249 * target-connection.c (_initialize_target_connection): Add
16250 declaration.
16251 * target-dcache.c (_initialize_target_dcache): Add declaration.
16252 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
16253 * thread.c (_initialize_thread): Add declaration.
16254 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
16255 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
16256 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
16257 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
16258 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
16259 * tracectf.c (_initialize_ctf): Add declaration.
16260 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
16261 * tracefile.c (_initialize_tracefile): Add declaration.
16262 * tracepoint.c (_initialize_tracepoint): Add declaration.
16263 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
16264 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
16265 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
16266 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
16267 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
16268 * tui/tui-win.c (_initialize_tui_win): Add declaration.
16269 * tui/tui.c (_initialize_tui): Add declaration.
16270 * typeprint.c (_initialize_typeprint): Add declaration.
16271 * ui-style.c (_initialize_ui_style): Add declaration.
16272 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
16273 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
16274 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
16275 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
16276 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
16277 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
16278 * unittests/filtered_iterator-selftests.c
16279 (_initialize_filtered_iterator_selftests): Add declaration.
16280 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
16281 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
16282 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
16283 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
16284 * unittests/main-thread-selftests.c
16285 (_initialize_main_thread_selftests): Add declaration.
16286 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
16287 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
16288 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
16289 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
16290 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
16291 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
16292 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
16293 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
16294 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
16295 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
16296 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
16297 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
16298 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
16299 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
16300 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
16301 declaration.
16302 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
16303 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
16304 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
16305 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
16306 * user-regs.c (_initialize_user_regs): Add declaration.
16307 * utils.c (_initialize_utils): Add declaration.
16308 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
16309 * valops.c (_initialize_valops): Add declaration.
16310 * valprint.c (_initialize_valprint): Add declaration.
16311 * value.c (_initialize_values): Add declaration.
16312 * varobj.c (_initialize_varobj): Add declaration.
16313 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
16314 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
16315 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
16316 * windows-nat.c (_initialize_windows_nat): Add declaration.
16317 (_initialize_check_for_gdb_ini): Add declaration.
16318 (_initialize_loadable): Add declaration.
16319 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
16320 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
16321 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
16322 * xcoffread.c (_initialize_xcoffread): Add declaration.
16323 * xml-support.c (_initialize_xml_support): Add declaration.
16324 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
16325 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
16326 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
16327 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
16328
e2de1eec
SM
163292020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16330
16331 * regformats/regdat.sh: Generate declaration for init function.
16332
e0037b4c
SM
163332020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16334
16335 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
16336 up.
16337 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
16338 close_one_inferior>: New methods.
16339 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
16340 pass down target to find_inferior_pid.
16341 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
16342 Pass down target to find_inferior_ptid.
16343 (gdbsim_target::create_inferior): Pass down target to
16344 add_thread_silent.
16345 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
16346 target down to find_inferior_ptid and switch_to_thread.
16347 (gdbsim_target::close): Update to call close_one_inferior.
16348 (struct resume_data): Remove.
16349 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
16350 directly, rather than through a void pointer.
16351 (gdbsim_target::resume): Update to call resume_one_inferior.
16352
58920b5b
SM
163532020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
16354
16355 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
16356
4ec89149
PA
163572020-01-12 Pedro Alves <palves@redhat.com>
16358
16359 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
16360 directly for the current inferior instead of
16361 discard_all_inferiors.
16362 (discard_all_inferiors): Delete.
16363
7c392d1d
TT
163642020-01-11 Tom Tromey <tom@tromey.com>
16365
16366 * tui/tui-wingeneral.c (box_win): Check cli_styling.
16367 * tui/tui-winsource.c (tui_source_window_base::refill): Use
16368 deprecated_safe_get_selected_frame.
16369
d9ebdab7
TBA
163702020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16371
16372 * inferior.c (print_inferior): Switch inferior before printing it.
16373
f3c469b9
PA
163742020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
16375 Pedro Alves <palves@redhat.com>
16376
16377 * progspace-and-thread.c (switch_to_program_space_and_thread):
16378 Assert there's an inferior for PSPACE. Use
16379 switch_to_inferior_no_thread to switch the inferior too.
16380 * progspace.c (program_space::~program_space): Call
16381 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
16382 (program_space::free_all_objfiles): Don't call clear_symtab_users
16383 here.
16384 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
16385
65c574f6
PA
163862020-01-10 Pedro Alves <palves@redhat.com>
16387
16388 * NEWS: Mention multi-target debugging, "info connections", and
16389 "add-inferior -no-connection".
16390
2f4fcf00
PA
163912020-01-10 Pedro Alves <palves@redhat.com>
16392
16393 * infrun.c: Include "target-connection.h".
16394 (check_multi_target_resumption): New.
16395 (proceed): Call it.
16396 * target-connection.c (make_target_connection_string): Make
16397 extern.
16398 * target-connection.h (make_target_connection_string): Declare.
16399
121b3efd
PA
164002020-01-10 Pedro Alves <palves@redhat.com>
16401
16402 * Makefile.in (COMMON_SFILES): Add target-connection.c.
16403 * inferior.c (uiout_field_connection): New function.
16404 (print_inferior): Add new "connection-id" column.
16405 (add_inferior_command): Show connection number/string of added
16406 inferior.
16407 * process-stratum-target.h
16408 (process_stratum_target::connection_string): New virtual method.
16409 (process_stratum_target::connection_number): New field.
16410 * remote.c (remote_target::connection_string): New override.
16411 * target-connection.c: New file.
16412 * target-connection.h: New file.
16413 * target.c (decref_target): Remove process_stratum targets from
16414 the connection list.
16415 (target_stack::push): Add process_stratum targets to the
16416 connection list.
16417
4f837581
PA
164182020-01-10 Pedro Alves <palves@redhat.com>
16419
16420 Revert:
16421 2016-04-12 Pedro Alves <palves@redhat.com>
16422 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
16423 Remove references to name.
16424 * serial.h (struct serial) <name>: Delete.
16425
f4ec508e
PA
164262020-01-10 Pedro Alves <palves@redhat.com>
16427
16428 * gdbarch-selftests.c (register_to_value_test): Remove "target
16429 already pushed" check.
16430
5b6d1e4f
PA
164312020-01-10 Pedro Alves <palves@redhat.com>
16432 John Baldwin <jhb@FreeBSD.org>
16433
16434 * aarch64-linux-nat.c
16435 (aarch64_linux_nat_target::thread_architecture): Adjust.
16436 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
16437 (task_command_1): Likewise.
16438 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
16439 (aix_thread_target::wait, aix_thread_target::fetch_registers)
16440 (aix_thread_target::store_registers)
16441 (aix_thread_target::thread_alive): Adjust.
16442 * amd64-fbsd-tdep.c: Include "inferior.h".
16443 (amd64fbsd_get_thread_local_address): Pass down target.
16444 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
16445 thread's gdbarch instead of target_gdbarch.
16446 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
16447 get_last_target_status.
16448 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
16449 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
16450 inferiors.
16451 (update_inserted_breakpoint_locations): Skip if inferiors with no
16452 execution.
16453 (update_global_location_list): When handling moribund locations,
16454 find representative inferior for location's pspace, and use thread
16455 count of its process_stratum target.
16456 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
16457 * bsd-uthread.c (bsd_uthread_target::wait): Use
16458 as_process_stratum_target and adjust thread_change_ptid and
16459 add_thread calls.
16460 (bsd_uthread_target::update_thread_list): Use
16461 as_process_stratum_target and adjust find_thread_ptid,
16462 thread_change_ptid and add_thread calls.
16463 * btrace.c (maint_btrace_packet_history_cmd): Adjust
16464 find_thread_ptid call.
16465 * corelow.c (add_to_thread_list): Adjust add_thread call.
16466 (core_target_open): Adjust add_thread_silent and thread_count
16467 calls.
16468 (core_target::pid_to_str): Adjust find_inferior_ptid call.
16469 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
16470 * event-top.c (async_disconnect): Pop targets from all inferiors.
16471 * exec.c (add_target_sections): Push exec target on all inferiors
16472 sharing the program space.
16473 (remove_target_sections): Remove the exec target from all
16474 inferiors sharing the program space.
16475 (exec_on_vfork): New.
16476 * exec.h (exec_on_vfork): Declare.
16477 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
16478 Pass it down.
16479 (fbsd_nat_target::update_thread_list): Adjust.
16480 (fbsd_nat_target::resume): Adjust.
16481 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
16482 down.
16483 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
16484 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
16485 get_thread_arch_regcache call.
16486 * fork-child.c (gdb_startup_inferior): Pass target down to
16487 startup_inferior and set_executing.
16488 * gdbthread.h (struct process_stratum_target): Forward declare.
16489 (add_thread, add_thread_silent, add_thread_with_info)
16490 (in_thread_list): Add process_stratum_target parameter.
16491 (find_thread_ptid(inferior*, ptid_t)): New overload.
16492 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
16493 parameter.
16494 (all_threads()): Delete overload.
16495 (all_threads, all_non_exited_threads): Add process_stratum_target
16496 parameter.
16497 (all_threads_safe): Use brace initialization.
16498 (thread_count): Add process_stratum_target parameter.
16499 (set_resumed, set_running, set_stop_requested, set_executing)
16500 (threads_are_executing, finish_thread_state): Add
16501 process_stratum_target parameter.
16502 (switch_to_thread): Use is_current_thread.
16503 * i386-fbsd-tdep.c: Include "inferior.h".
16504 (i386fbsd_get_thread_local_address): Pass down target.
16505 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
16506 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
16507 have_inferiors check.
16508 * inf-ptrace.c (inf_ptrace_target::create_inferior)
16509 (inf_ptrace_target::attach): Adjust.
16510 * infcall.c (run_inferior_call): Adjust.
16511 * infcmd.c (run_command_1): Pass target to
16512 scoped_finish_thread_state.
16513 (proceed_thread_callback): Skip inferiors with no execution.
16514 (continue_command): Rename 'all_threads' local to avoid hiding
16515 'all_threads' function. Adjust get_last_target_status call.
16516 (prepare_one_step): Adjust set_running call.
16517 (signal_command): Use user_visible_resume_target. Compare thread
16518 pointers instead of inferior_ptid.
16519 (info_program_command): Adjust to pass down target.
16520 (attach_command): Mark target's 'thread_executing' flag.
16521 (stop_current_target_threads_ns): New, factored out from ...
16522 (interrupt_target_1): ... this. Switch inferior before making
16523 target calls.
16524 * inferior-iter.h
16525 (struct all_inferiors_iterator, struct all_inferiors_range)
16526 (struct all_inferiors_safe_range)
16527 (struct all_non_exited_inferiors_range): Filter on
16528 process_stratum_target too. Remove explicit.
16529 * inferior.c (inferior::inferior): Push dummy target on target
16530 stack.
16531 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
16532 Add process_stratum_target parameter, and pass it down.
16533 (have_live_inferiors): Adjust.
16534 (switch_to_inferior_and_push_target): New.
16535 (add_inferior_command, clone_inferior_command): Handle
16536 "-no-connection" parameter. Use
16537 switch_to_inferior_and_push_target.
16538 (_initialize_inferior): Mention "-no-connection" option in
16539 the help of "add-inferior" and "clone-inferior" commands.
16540 * inferior.h: Include "process-stratum-target.h".
16541 (interrupt_target_1): Use bool.
16542 (struct inferior) <push_target, unpush_target, target_is_pushed,
16543 find_target_beneath, top_target, process_target, target_at,
16544 m_stack>: New.
16545 (discard_all_inferiors): Delete.
16546 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
16547 (all_inferiors, all_non_exited_inferiors): Add
16548 process_stratum_target parameter.
16549 * infrun.c: Include "gdb_select.h" and <unordered_map>.
16550 (target_last_proc_target): New global.
16551 (follow_fork_inferior): Push target on new inferior. Pass target
16552 to add_thread_silent. Call exec_on_vfork. Handle target's
16553 reference count.
16554 (follow_fork): Adjust get_last_target_status call. Also consider
16555 target.
16556 (follow_exec): Push target on new inferior.
16557 (struct execution_control_state) <target>: New field.
16558 (user_visible_resume_target): New.
16559 (do_target_resume): Call target_async.
16560 (resume_1): Set target's threads_executing flag. Consider resume
16561 target.
16562 (commit_resume_all_targets): New.
16563 (proceed): Also consider resume target. Skip threads of inferiors
16564 with no execution. Commit resumtion in all targets.
16565 (start_remote): Pass current inferior to wait_for_inferior.
16566 (infrun_thread_stop_requested): Consider target as well. Pass
16567 thread_info pointer to clear_inline_frame_state instead of ptid.
16568 (infrun_thread_thread_exit): Consider target as well.
16569 (random_pending_event_thread): New inferior parameter. Use it.
16570 (do_target_wait): Rename to ...
16571 (do_target_wait_1): ... this. Add inferior parameter, and pass it
16572 down.
16573 (threads_are_resumed_pending_p, do_target_wait): New.
16574 (prepare_for_detach): Adjust calls.
16575 (wait_for_inferior): New inferior parameter. Handle it. Use
16576 do_target_wait_1 instead of do_target_wait.
16577 (fetch_inferior_event): Adjust. Switch to representative
16578 inferior. Pass target down.
16579 (set_last_target_status): Add process_stratum_target parameter.
16580 Save target in global.
16581 (get_last_target_status): Add process_stratum_target parameter and
16582 handle it.
16583 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
16584 (context_switch): Check inferior_ptid == null_ptid before calling
16585 inferior_thread().
16586 (get_inferior_stop_soon): Pass down target.
16587 (wait_one): Rename to ...
16588 (poll_one_curr_target): ... this.
16589 (struct wait_one_event): New.
16590 (wait_one): New.
16591 (stop_all_threads): Adjust.
16592 (handle_no_resumed, handle_inferior_event): Adjust to consider the
16593 event's target.
16594 (switch_back_to_stepped_thread): Also consider target.
16595 (print_stop_event): Update.
16596 (normal_stop): Update. Also consider the resume target.
16597 * infrun.h (wait_for_inferior): Remove declaration.
16598 (user_visible_resume_target): New declaration.
16599 (get_last_target_status, set_last_target_status): New
16600 process_stratum_target parameter.
16601 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16602 process_stratum_target parameter, and use it.
16603 (clear_inline_frame_state (thread_info*)): New.
16604 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16605 process_stratum_target parameter.
16606 (clear_inline_frame_state (thread_info*)): Declare.
16607 * linux-fork.c (delete_checkpoint_command): Pass target down to
16608 find_thread_ptid.
16609 (checkpoint_command): Adjust.
16610 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
16611 instead of just tweaking inferior_ptid.
16612 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
16613 (exit_lwp): Pass target down to find_thread_ptid.
16614 (attach_proc_task_lwp_callback): Pass target down to
16615 add_thread/set_running/set_executing.
16616 (linux_nat_target::attach): Pass target down to
16617 thread_change_ptid.
16618 (get_detach_signal): Pass target down to find_thread_ptid.
16619 Consider last target status's target.
16620 (linux_resume_one_lwp_throw, resume_lwp)
16621 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
16622 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
16623 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
16624 (linux_nat_target::async_wait_fd): New.
16625 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
16626 target down.
16627 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
16628 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
16629 * linux-thread-db.c (struct thread_db_info::process_target): New
16630 field.
16631 (add_thread_db_info): Save target.
16632 (get_thread_db_info): New process_stratum_target parameter. Also
16633 match target.
16634 (delete_thread_db_info): New process_stratum_target parameter.
16635 Also match target.
16636 (thread_from_lwp): Adjust to pass down target.
16637 (thread_db_notice_clone): Pass down target.
16638 (check_thread_db_callback): Pass down target.
16639 (try_thread_db_load_1): Always push the thread_db target.
16640 (try_thread_db_load, record_thread): Pass target down.
16641 (thread_db_target::detach): Pass target down. Always unpush the
16642 thread_db target.
16643 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
16644 target down. Always unpush the thread_db target.
16645 (find_new_threads_callback, thread_db_find_new_threads_2)
16646 (thread_db_target::update_thread_list): Pass target down.
16647 (thread_db_target::pid_to_str): Pass current inferior down.
16648 (thread_db_target::get_thread_local_address): Pass target down.
16649 (thread_db_target::resume, maintenance_check_libthread_db): Pass
16650 target down.
16651 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
16652 * procfs.c (procfs_target::procfs_init_inferior): Declare.
16653 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
16654 (procfs_init_inferior): Rename to ...
16655 (procfs_target::procfs_init_inferior): ... this and adjust.
16656 (procfs_target::create_inferior, procfs_notice_thread)
16657 (procfs_do_thread_registers): Adjust.
16658 * ppc-fbsd-tdep.c: Include "inferior.h".
16659 (ppcfbsd_get_thread_local_address): Pass down target.
16660 * proc-service.c (ps_xfer_memory): Switch current inferior and
16661 program space as well.
16662 (get_ps_regcache): Pass target down.
16663 * process-stratum-target.c
16664 (process_stratum_target::thread_address_space)
16665 (process_stratum_target::thread_architecture): Pass target down.
16666 * process-stratum-target.h
16667 (process_stratum_target::threads_executing): New field.
16668 (as_process_stratum_target): New.
16669 * ravenscar-thread.c
16670 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
16671 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
16672 down.
16673 * record-btrace.c (record_btrace_target::info_record): Adjust.
16674 (record_btrace_target::record_method)
16675 (record_btrace_target::record_is_replaying)
16676 (record_btrace_target::fetch_registers)
16677 (get_thread_current_frame_id, record_btrace_target::resume)
16678 (record_btrace_target::wait, record_btrace_target::stop): Pass
16679 target down.
16680 * record-full.c (record_full_wait_1): Switch to event thread.
16681 Pass target down.
16682 * regcache.c (regcache::regcache)
16683 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
16684 process_stratum_target parameter and handle it.
16685 (current_thread_target): New global.
16686 (get_thread_regcache): Add process_stratum_target parameter and
16687 handle it. Switch inferior before calling target method.
16688 (get_thread_regcache): Pass target down.
16689 (get_thread_regcache_for_ptid): Pass target down.
16690 (registers_changed_ptid): Add process_stratum_target parameter and
16691 handle it.
16692 (registers_changed_thread, registers_changed): Pass target down.
16693 (test_get_thread_arch_aspace_regcache): New.
16694 (current_regcache_test): Define a couple local test_target_ops
16695 instances and use them for testing.
16696 (readwrite_regcache): Pass process_stratum_target parameter.
16697 (cooked_read_test, cooked_write_test): Pass mock_target down.
16698 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
16699 (get_thread_arch_aspace_regcache): Add process_stratum_target
16700 parameter.
16701 (regcache::target): New method.
16702 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
16703 (regcache::registers_changed_ptid): Add process_stratum_target
16704 parameter.
16705 (regcache::m_target): New field.
16706 (registers_changed_ptid): Add process_stratum_target parameter.
16707 * remote.c (remote_state::supports_vCont_probed): New field.
16708 (remote_target::async_wait_fd): New method.
16709 (remote_unpush_and_throw): Add remote_target parameter.
16710 (get_current_remote_target): Adjust.
16711 (remote_target::remote_add_inferior): Push target.
16712 (remote_target::remote_add_thread)
16713 (remote_target::remote_notice_new_inferior)
16714 (get_remote_thread_info): Pass target down.
16715 (remote_target::update_thread_list): Skip threads of inferiors
16716 bound to other targets. (remote_target::close): Don't discard
16717 inferiors. (remote_target::add_current_inferior_and_thread)
16718 (remote_target::process_initial_stop_replies)
16719 (remote_target::start_remote)
16720 (remote_target::remote_serial_quit_handler): Pass down target.
16721 (remote_target::remote_unpush_target): New remote_target
16722 parameter. Unpush the target from all inferiors.
16723 (remote_target::remote_unpush_and_throw): New remote_target
16724 parameter. Pass it down.
16725 (remote_target::open_1): Check whether the current inferior has
16726 execution instead of checking whether any inferior is live. Pass
16727 target down.
16728 (remote_target::remote_detach_1): Pass down target. Use
16729 remote_unpush_target.
16730 (extended_remote_target::attach): Pass down target.
16731 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
16732 (remote_target::append_resumption): Pass down target.
16733 (remote_target::append_pending_thread_resumptions)
16734 (remote_target::remote_resume_with_hc, remote_target::resume)
16735 (remote_target::commit_resume): Pass down target.
16736 (remote_target::remote_stop_ns): Check supports_vCont_probed.
16737 (remote_target::interrupt_query)
16738 (remote_target::remove_new_fork_children)
16739 (remote_target::check_pending_events_prevent_wildcard_vcont)
16740 (remote_target::remote_parse_stop_reply)
16741 (remote_target::process_stop_reply): Pass down target.
16742 (first_remote_resumed_thread): New remote_target parameter. Pass
16743 it down.
16744 (remote_target::wait_as): Pass down target.
16745 (unpush_and_perror): New remote_target parameter. Pass it down.
16746 (remote_target::readchar, remote_target::remote_serial_write)
16747 (remote_target::getpkt_or_notif_sane_1)
16748 (remote_target::kill_new_fork_children, remote_target::kill): Pass
16749 down target.
16750 (remote_target::mourn_inferior): Pass down target. Use
16751 remote_unpush_target.
16752 (remote_target::core_of_thread)
16753 (remote_target::remote_btrace_maybe_reopen): Pass down target.
16754 (remote_target::pid_to_exec_file)
16755 (remote_target::thread_handle_to_thread_info): Pass down target.
16756 (remote_target::async_wait_fd): New.
16757 * riscv-fbsd-tdep.c: Include "inferior.h".
16758 (riscv_fbsd_get_thread_local_address): Pass down target.
16759 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
16760 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
16761 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
16762 Adjust.
16763 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
16764 * solib-svr4.c (enable_break): Pass down target.
16765 * spu-multiarch.c (parse_spufs_run): Pass down target.
16766 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
16767 * target-delegates.c: Regenerate.
16768 * target.c (g_target_stack): Delete.
16769 (current_top_target): Return the current inferior's top target.
16770 (target_has_execution_1): Refer to the passed-in inferior's top
16771 target.
16772 (target_supports_terminal_ours): Check whether the initial
16773 inferior was already created.
16774 (decref_target): New.
16775 (target_stack::push): Incref/decref the target.
16776 (push_target, push_target, unpush_target): Adjust.
16777 (target_stack::unpush): Defref target.
16778 (target_is_pushed): Return bool. Adjust to refer to the current
16779 inferior's target stack.
16780 (dispose_inferior): Delete, and inline parts ...
16781 (target_preopen): ... here. Only dispose of the current inferior.
16782 (target_detach): Hold strong target reference while detaching.
16783 Pass target down.
16784 (target_thread_name): Add assertion.
16785 (target_resume): Pass down target.
16786 (target_ops::beneath, find_target_at): Adjust to refer to the
16787 current inferior's target stack.
16788 (get_dummy_target): New.
16789 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
16790 has a thread running.
16791 (initialize_targets): Rename to ...
16792 (_initialize_target): ... this.
16793 * target.h: Include "gdbsupport/refcounted-object.h".
16794 (struct target_ops): Inherit refcounted_object.
16795 (target_ops::shortname, target_ops::longname): Make const.
16796 (target_ops::async_wait_fd): New method.
16797 (decref_target): Declare.
16798 (struct target_ops_ref_policy): New.
16799 (target_ops_ref): New typedef.
16800 (get_dummy_target): Declare function.
16801 (target_is_pushed): Return bool.
16802 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
16803 (all_matching_threads_iterator::all_matching_threads_iterator):
16804 Handle filter target.
16805 * thread-iter.h (struct all_matching_threads_iterator, struct
16806 all_matching_threads_range, class all_non_exited_threads_range):
16807 Filter by target too. Remove explicit.
16808 * thread.c (threads_executing): Delete.
16809 (inferior_thread): Pass down current inferior.
16810 (clear_thread_inferior_resources): Pass down thread pointer
16811 instead of ptid_t.
16812 (add_thread_silent, add_thread_with_info, add_thread): Add
16813 process_stratum_target parameter. Use it for thread and inferior
16814 searches.
16815 (is_current_thread): New.
16816 (thread_info::deletable): Use it.
16817 (find_thread_ptid, thread_count, in_thread_list)
16818 (thread_change_ptid, set_resumed, set_running): New
16819 process_stratum_target parameter. Pass it down.
16820 (set_executing): New process_stratum_target parameter. Pass it
16821 down. Adjust reference to 'threads_executing'.
16822 (threads_are_executing): New process_stratum_target parameter.
16823 Adjust reference to 'threads_executing'.
16824 (set_stop_requested, finish_thread_state): New
16825 process_stratum_target parameter. Pass it down.
16826 (switch_to_thread): Also match inferior.
16827 (switch_to_thread): New process_stratum_target parameter. Pass it
16828 down.
16829 (update_threads_executing): Reimplement.
16830 * top.c (quit_force): Pop targets from all inferior.
16831 (gdb_init): Don't call initialize_targets.
16832 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
16833 Declare.
16834 (windows_add_thread, windows_delete_thread): Adjust.
16835 (get_windows_debug_event): Rename to ...
16836 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
16837 * tracefile-tfile.c (tfile_target_open): Pass down target.
16838 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
16839 Forward declare.
16840 (switch_to_thread): Add process_stratum_target parameter.
16841 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
16842 parameter. Use it.
16843 (mi_on_resume): Pass target down.
16844 * nat/fork-inferior.c (startup_inferior): Add
16845 process_stratum_target parameter. Pass it down.
16846 * nat/fork-inferior.h (startup_inferior): Add
16847 process_stratum_target parameter.
16848 * python/py-threadevent.c (py_get_event_thread): Pass target down.
16849
75c6c844
PA
168502020-01-10 Pedro Alves <palves@redhat.com>
16851
16852 * remote.c (remote_target::start_remote): Don't set inferior_ptid
16853 directly. Instead find the first thread in the thread list and
16854 use switch_to_thread.
16855
78f2c40a
PA
168562020-01-10 Pedro Alves <palves@redhat.com>
16857
16858 * remote.c (remote_target::remote_add_inferior): Don't bind a
16859 process to the current inferior if the current inferior is already
16860 bound to a process.
16861
e7af6c70
TBA
168622020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16863 Pedro Alves <palves@redhat.com>
16864
16865 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
16866 If no process is specified, return null_ptid instead of
16867 inferior_ptid.
16868 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
16869 TARGET_WAITKIND_SIGNALLED with no pid.
16870
31ba933e
PA
168712020-01-10 Pedro Alves <palves@redhat.com>
16872
16873 * remote.c (first_remote_resumed_thread): New.
16874 (remote_target::wait_as): Use it as default event_ptid instead of
16875 inferior_ptid.
16876
735fc2ca
PA
168772020-01-10 Pedro Alves <palves@redhat.com>
16878
16879 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
16880
c17e02e1
PA
168812020-01-10 Pedro Alves <palves@redhat.com>
16882
16883 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
16884 not -1.
16885
ab1ddbcf
PA
168862020-01-10 Pedro Alves <palves@redhat.com>
16887
16888 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
16889 ptid to get_last_target_status.
16890 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
16891 ptid to get_last_target_status.
16892 * infcmd.c (continue_command): Don't pass a target_waitstatus to
16893 get_last_target_status.
16894 (info_program_command): Don't pass a target_waitstatus to
16895 get_last_target_status.
16896 * infrun.c (init_wait_for_inferior): Use
16897 nullify_last_target_wait_ptid.
16898 (get_last_target_status): Handle nullptr arguments.
16899 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
16900 (print_stop_event): Don't pass a ptid to get_last_target_status.
16901 (normal_stop): Don't pass a ptid to get_last_target_status.
16902 * infrun.h (get_last_target_status, set_last_target_status): Move
16903 comments here and update.
16904 (nullify_last_target_wait_ptid): Declare.
16905 * linux-fork.c (fork_load_infrun_state): Remove local extern
16906 declaration of nullify_last_target_wait_ptid.
16907 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
16908 to get_last_target_status.
16909
f3f8ece4
PA
169102020-01-10 Pedro Alves <palves@redhat.com>
16911
16912 * gdbthread.h (scoped_restore_current_thread)
16913 <dont_restore, restore, m_dont_restore>: Declare.
16914 * thread.c (thread_alive): Add assertion. Return bool.
16915 (switch_to_thread_if_alive): New.
16916 (prune_threads): Switch inferior/thread.
16917 (print_thread_info_1): Switch thread before calling target methods.
16918 (scoped_restore_current_thread::restore): New, factored out from
16919 ...
16920 (scoped_restore_current_thread::~scoped_restore_current_thread):
16921 ... this.
16922 (scoped_restore_current_thread::scoped_restore_current_thread):
16923 Add assertion.
16924 (thread_apply_all_command, thread_select): Use
16925 switch_to_thread_if_alive.
16926 * infrun.c (proceed, restart_threads, handle_signal_stop)
16927 (switch_back_to_stepped_thread): Switch current thread before
16928 calling target methods.
16929
db2d40f7
PA
169302020-01-10 Pedro Alves <palves@redhat.com>
16931
16932 * inferior.c (switch_to_inferior_no_thread): New function,
16933 factored out from ...
16934 (inferior_command): ... here.
16935 * inferior.h (switch_to_inferior_no_thread): Declare.
16936 * mi/mi-main.c (run_one_inferior): Use
16937 switch_to_inferior_no_thread.
16938
bd420a2d
PA
169392020-01-10 Pedro Alves <palves@redhat.com>
16940
16941 * infcmd.c (kill_command): Remove dead code.
16942
ddf5db90
PA
169432020-01-10 Pedro Alves <palves@redhat.com>
16944
16945 * remote.c (remote_target::mourn_inferior): No longer check
16946 whether the target is running.
16947
5018ce90
PA
169482020-01-10 Pedro Alves <palves@redhat.com>
16949
16950 * corelow.c (core_target::has_execution): Change parameter type to
16951 inferior pointer.
16952 * inferior.c (number_of_live_inferiors): Use
16953 inferior::has_execution instead of target_has_execution_1.
16954 * inferior.h (inferior::has_execution): New.
16955 * linux-thread-db.c (thread_db_target::update_thread_list): Use
16956 inferior::has_execution instead of target_has_execution_1.
16957 * process-stratum-target.c
16958 (process_stratum_target::has_execution): Change parameter type to
16959 inferior pointer. Check the inferior's PID instead of
16960 inferior_ptid.
16961 * process-stratum-target.h
16962 (process_stratum_target::has_execution): Change parameter type to
16963 inferior pointer.
16964 * record-full.c (record_full_core_target::has_execution): Change
16965 parameter type to inferior pointer.
16966 * target.c (target_has_execution_1): Change parameter type to
16967 inferior pointer.
16968 (target_has_execution_current): Adjust.
16969 * target.h (target_ops::has_execution): Change parameter type to
16970 inferior pointer.
16971 (target_has_execution_1): Change parameter type to inferior
16972 pointer. Change return type to bool.
16973 * tracefile.h (tracefile_target::has_execution): Change parameter
16974 type to inferior pointer.
16975
74375d18
PA
169762020-01-10 Pedro Alves <palves@redhat.com>
16977
16978 * exceptions.c (print_flush): Remove current_top_target() check.
16979
acdf84a6
PA
169802020-01-10 Pedro Alves <palves@redhat.com>
16981
16982 * remote.c (show_remote_exec_file): Show the current inferior's
16983 exec-file instead of the command variable's value.
16984
ec506636
PA
169852020-01-10 Pedro Alves <palves@redhat.com>
16986
16987 * record-full.c (record_full_resume_ptid): New global.
16988 (record_full_target::resume): Set it.
16989 (record_full_wait_1): Use record_full_resume_ptid instead of
16990 inferior_ptid.
16991
873657b9
PA
169922020-01-10 Pedro Alves <palves@redhat.com>
16993
16994 * gdbthread.h (scoped_restore_current_thread)
16995 <dont_restore, restore, m_dont_restore>: Declare.
16996 * thread.c (thread_alive): Add assertion. Return bool.
16997 (switch_to_thread_if_alive): New.
16998 (prune_threads): Switch inferior/thread.
16999 (print_thread_info_1): Switch thread before calling target methods.
17000 (scoped_restore_current_thread::restore): New, factored out from
17001 ...
17002 (scoped_restore_current_thread::~scoped_restore_current_thread):
17003 ... this.
17004 (scoped_restore_current_thread::scoped_restore_current_thread):
17005 Add assertion.
17006 (thread_apply_all_command, thread_select): Use
17007 switch_to_thread_if_alive.
17008
7f0ae84c
GB
170092020-01-10 George Barrett <bob@bob131.so>
17010
17011 * stap-probe.c (stap_modify_semaphore): Don't check for null
17012 semaphores.
17013 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
17014 for null semaphores.
17015
f5a7c406
AB
170162020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17017
17018 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
17019 all source windows, and maintain horizontal scroll status while
17020 doing so.
17021
9ae6bf64
TT
170222020-01-09 Tom Tromey <tom@tromey.com>
17023
17024 PR tui/18932:
17025 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
17026 update_source_window, not print_source_lines.
17027
b2efe70c
AB
170282020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17029
17030 * tui/tui.c (tui_enable): Register tui hooks after calling
17031 tui_display_main.
17032
5f23a082
CB
170332020-01-09 Christian Biesinger <cbiesinger@google.com>
17034
17035 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
17036
3061113b
SM
170372020-01-08 Simon Marchi <simon.marchi@efficios.com>
17038
17039 * thread.c (print_thread_info_1): Fix indentation.
17040
57d75002
CB
170412020-01-09 Christian Biesinger <cbiesinger@google.com>
17042
17043 * symtab.c (general_symbol_info::compute_and_set_names): Move the
17044 unique_xmalloc_ptr outside the if to always free the demangled name.
17045
6a053cb1
TT
170462020-01-08 Tom Tromey <tromey@adacore.com>
17047
17048 * xcoffread.c (enter_line_range, read_xcoff_symtab)
17049 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
17050 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
17051 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
17052 Remove.
17053 (section_offsets): New typedef.
17054 * symtab.c (fixup_section, get_msymbol_address): Update.
17055 * symmisc.c (dump_msymbols): Update.
17056 * symfile.h (relative_addr_info_to_section_offsets)
17057 (symfile_map_offsets_to_segments): Update.
17058 * symfile.c (build_section_addr_info_from_objfile)
17059 (init_objfile_sect_indices): Update.
17060 (struct place_section_arg): Change type of "offsets".
17061 (place_section): Update.
17062 (relative_addr_info_to_section_offsets): Change type of
17063 "section_offsets". Remove "num_sections" parameter.
17064 (default_symfile_offsets, syms_from_objfile_1)
17065 (set_objfile_default_section_offset): Update.
17066 (reread_symbols): No need to preserve section offsets by hand.
17067 (symfile_map_offsets_to_segments): Change type of "offsets".
17068 * stap-probe.c (relocate_address): Update.
17069 * stabsread.h (process_one_symbol): Update.
17070 * solib-target.c (struct lm_info_target) <offsets>: Change type.
17071 (solib_target_relocate_section_addresses): Update.
17072 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
17073 Update.
17074 * solib-frv.c (frv_relocate_main_executable): Update.
17075 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
17076 * solib-aix.c (solib_aix_get_section_offsets): Change return
17077 type.
17078 (solib_aix_solib_create_inferior_hook): Update.
17079 * remote.c (remote_target::get_offsets): Update.
17080 * psymtab.c (find_pc_sect_psymtab): Update.
17081 * psympriv.h (struct partial_symbol) <address, text_low,
17082 text_high>: Update.
17083 * objfiles.h (obj_section_offset): Update.
17084 (struct objfile) <section_offsets>: Change type.
17085 <num_sections>: Remove.
17086 (objfile_relocate): Update.
17087 * objfiles.c (entry_point_address_query): Update
17088 (relocate_one_symbol): Change type of "section_offsets".
17089 (objfile_relocate1, objfile_relocate1): Change type of
17090 "new_offsets".
17091 (objfile_rebase1): Update.
17092 * mipsread.c (mipscoff_symfile_read): Update.
17093 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
17094 parameter.
17095 * mdebugread.c (parse_symbol): Change type of "section_offsets".
17096 (parse_external, psymtab_to_symtab_1): Update.
17097 * machoread.c (macho_symfile_offsets): Update.
17098 * ia64-tdep.c (ia64_find_unwind_table): Update.
17099 * hppa-tdep.c (read_unwind_info): Update.
17100 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
17101 * dwarf2read.c (create_addrmap_from_index)
17102 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
17103 (process_psymtab_comp_unit_reader, add_partial_symbol)
17104 (add_partial_subprogram, process_full_comp_unit)
17105 (read_file_scope, read_func_scope, read_lexical_block_scope)
17106 (read_call_site_scope, dwarf2_rnglists_process)
17107 (dwarf2_ranges_process, dwarf2_ranges_read)
17108 (dwarf_decode_lines_1, var_decode_location, new_symbol)
17109 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
17110 Update.
17111 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
17112 Update.
17113 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
17114 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
17115 (process_one_symbol): Change type of "section_offsets".
17116 * ctfread.c (get_objfile_text_range): Update.
17117 * coffread.c (coff_symtab_read, enter_linenos)
17118 (process_coff_symbol): Update.
17119 * coff-pe-read.c (add_pe_forwarded_sym): Update.
17120 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
17121
456e800a
TT
171222020-01-08 Tom Tromey <tromey@adacore.com>
17123
17124 * dwarf2read.c (parse_macro_definition): Use std::string.
17125 (parse_macro_definition): Likewise.
17126
6dfa2fc2
TT
171272020-01-08 Tom Tromey <tromey@adacore.com>
17128
17129 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
17130 (ATTR_ALLOC_CHUNK): Remove.
17131
421d1616
TT
171322020-01-08 Tom Tromey <tromey@adacore.com>
17133
17134 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
17135
43816ebc
TT
171362020-01-08 Tom Tromey <tromey@adacore.com>
17137
17138 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
17139 (dwarf2_compute_name, open_dwo_file): Likewise.
17140 (process_enumeration_scope): Use std::vector.
17141 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
17142 (partial_die_info::fixup, dwarf2_start_subfile)
17143 (guess_full_die_structure_name, dwarf2_name): Likewise.
17144 (determine_prefix): Update.
17145 (guess_full_die_structure_name): Make return type const.
17146 (partial_die_full_name): Return unique_xmalloc_ptr.
17147 (DW_FIELD_ALLOC_CHUNK): Remove.
17148
4212d509
TT
171492020-01-07 Tom Tromey <tromey@adacore.com>
17150
17151 PR build/24937:
17152 * stap-probe.c (class stap_static_probe_ops): Add constructor.
17153
06a6207a
JT
171542020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17155
17156 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
17157
153d79c4
AB
171582020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
17159
17160 * stack.c (print_frame_info): Move disassemble_next_line code
17161 inside source_print block.
17162
66182876
EZ
171632020-01-06 Eli Zaretskii <eliz@gnu.org>
17164
17165 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
17166 gdb/signals.h, as we are now using native signal symbols.
17167
cbfa8581
SV
171682020-01-06 Shahab Vahedi <shahab@synopsys.com>
17169
17170 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
17171 overflow by an early check of content vs threshold.
aac66a4c 17172 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
17173 Likewise.
17174
3f602821
EZ
171752020-01-06 Eli Zaretskii <eliz@gnu.org>
17176
17177 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
17178
a08c904d
JT
171792020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17180
17181 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
17182 export table if no section contains it's RVA.
17183
89a65580
EZ
171842020-01-06 Eli Zaretskii <eliz@gnu.org>
17185
17186 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
17187
8b7fcda2
HD
171882020-01-06 Hannes Domani <ssbssa@yahoo.de>
17189
17190 * source.c (print_source_lines_base): Set last_line_listed.
17191
a61b4f69
SV
171922020-01-06 Shahab Vahedi <shahab@synopsys.com>
17193
17194 * tui/tui-disasm.c: Remove trailing spaces.
17195
559e7e50
EZ
171962020-01-06 Eli Zaretskii <eliz@gnu.org>
17197 Pedro Alves <palves@redhat.com>
17198
17199 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
17200 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
17201 (windows_gdb_signal_to_target): New function, uses the above
17202 enumeration to convert GDB internal signal codes to equivalent
17203 Windows codes.
17204 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
17205 * windows-nat.c: Include "gdb_wait.h".
17206 (get_windows_debug_event): Extract the fatal exception from the
17207 exit status and convert to the equivalent Posix signal number.
17208 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
17209 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
17210 * gdbsupport/gdb_wait.c: New file, implements
17211 windows_status_to_termsig.
17212 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
17213 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
17214
f2302a34
AB
172152020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
17216
17217 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
17218 show_layout.
17219
6a5206eb
LM
172202020-01-05 Luis Machado <luis.machado@linaro.org>
17221
17222 * aarch64-linux-nat.c
17223 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
17224 and bfd_mach_aarch64.
17225
6ec1d75e
PW
172262020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17227
17228 * ui-file.c (stdio_file::can_emit_style_escape)
17229 (tee_file::can_emit_style_escape): Ensure style is used also on
17230 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
17231 to gdb_stdout.
17232 * main.c (set_gdb_data_directory): Use file style to output the
17233 warning that the given pathname is not a directory.
17234 * top.c (show_history_filename, gdb_safe_append_history)
17235 (show_gdb_datadir): Use file style.
17236
44f81a76
HD
172372020-01-03 Hannes Domani <ssbssa@yahoo.de>
17238
17239 * solib-target.c (struct lm_info_target):
17240 Change offsets to be a unique_xmalloc_ptr.
17241 (solib_target_relocate_section_addresses): Update.
17242
25057eb0
HD
172432020-01-03 Hannes Domani <ssbssa@yahoo.de>
17244
17245 * windows-nat.c (windows_clear_solib): Free so_list linked list.
17246
6e2118f5
BE
172472020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
17248
17249 * MAINTAINERS (Write After Approval): Add myself.
17250
8133c7dc
LM
172512020-01-02 Luis Machado <luis.machado@linaro.org>
17252
17253 * proc-service.c (get_ps_regcache): Remove reference to obsolete
17254 Cell BE architecture.
17255 * target.h (struct target_ops) <thread_architecture>: Likewise.
17256
48189bec
HD
172572020-01-01 Hannes Domani <ssbssa@yahoo.de>
17258
17259 * Makefile.in: Use INSTALL_PROGRAM_ENV.
17260
ead1063b
HD
172612020-01-01 Hannes Domani <ssbssa@yahoo.de>
17262
17263 * MAINTAINERS (Write After Approval): Add myself.
17264
e5d78223
JB
172652020-01-01 Joel Brobecker <brobecker@adacore.com>
17266
17267 * gdbarch.sh: Update copyright year range of generated files.
17268
b811d2c2
JB
172692020-01-01 Joel Brobecker <brobecker@adacore.com>
17270
17271 Update copyright year range in all GDB files.
17272
5f4def5c
JB
172732020-01-01 Joel Brobecker <brobecker@adacore.com>
17274
17275 * copyright.py: Convert to Python 3.
17276
51fd4002
JB
172772020-01-01 Joel Brobecker <brobecker@adacore.com>
17278
17279 * copyright.py: Adapt after move of gnulib directory from gdb
17280 directory to toplevel directory.
17281
5fb651f2
JB
172822020-01-01 Joel Brobecker <brobecker@adacore.com>
17283
17284 * copyright.py (main): Exit if run from the wrong directory.
17285
5dd8bf88
JB
172862020-01-01 Joel Brobecker <brobecker@adacore.com>
17287
17288 * top.c (print_gdb_version): Change copyright year to 2020.
17289
9f71dacb 172902020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 17291
9f71dacb 17292 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 17293
9f71dacb 17294For older changes see ChangeLog-2019.
c906108c
SS
17295\f
17296Local Variables:
17297mode: change-log
17298left-margin: 8
17299fill-column: 74
17300version-control: never
57da7796 17301coding: utf-8
c906108c 17302End:
This page took 3.312675 seconds and 4 git commands to generate.