1 2020-11-15 Joel Brobecker <brobecker@adacore.com>
3 * eval.c (binop_promote): Add fixed-point type handling.
4 * valarith.c (fixed_point_binop): New function.
5 (scalar_binop): Add fixed-point type handling.
6 (value_neg): Add fixed-point type handling.
7 * valops.c (value_cast_to_fixed_point): New function.
8 (value_cast): Add fixed-point type handling.
10 2020-11-15 Joel Brobecker <brobecker@adacore.com>
12 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
14 * c-typeprint.c (c_type_print_varspec_prefix)
15 (c_type_print_varspec_suffix, c_type_print_base_1): Add
16 TYPE_CODE_FIXED_POINT handling.
17 * p-typeprint.c (pascal_type_print_varspec_prefix)
18 (pascal_type_print_varspec_suffix): Likewise.
19 * typeprint.c (print_type_fixed_point): New function.
20 * typeprint.h (print_type_fixed_point): Add declaration.
22 2020-11-15 Joel Brobecker <brobecker@adacore.com>
24 * printcmd.c (print_scalar_formatted): Add fixed-point type
25 handling when options->format is set.
27 2020-11-15 Joel Brobecker <brobecker@adacore.com>
29 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
30 * dwarf2/read.c (get_dwarf2_rational_constant)
31 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
32 (has_zero_over_zero_small_attribute): New functions.
33 read_base_type, set_die_type): Add fixed-point type handling.
34 * gdb-gdb.py.in: Add fixed-point type handling.
35 * gdbtypes.c: #include "gmp-utils.h".
36 (create_range_type, set_type_code): Add fixed-point type handling.
37 (init_fixed_point_type): New function.
38 (is_integral_type, is_scalar_type): Add fixed-point type handling.
39 (print_fixed_point_type_info): New function.
40 (recursive_dump_type, copy_type_recursive): Add fixed-point type
42 (fixed_point_type_storage): New typedef.
43 (fixed_point_objfile_key): New static global.
44 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
45 (fixed_point_type_base_type, fixed_point_scaling_factor): New
47 * gdbtypes.h: #include "gmp-utils.h".
48 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
49 (union type_specific) <fixed_point_info>: New field.
50 (struct fixed_point_type_info): New struct.
51 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
52 (init_fixed_point_type, is_fixed_point_type)
53 (fixed_point_type_base_type, fixed_point_scaling_factor)
54 (allocate_fixed_point_type_info): Add declarations.
55 * valprint.c (generic_val_print_fixed_point): New function.
56 (generic_value_print): Add fixed-point type handling.
57 * value.c (value_as_address, unpack_long): Add fixed-point type
60 2020-11-15 Joel Brobecker <brobecker@adacore.com>
62 * utils.h (uinteger_pow): Add declaration.
63 * utils.c (uinteger_pow): Moved here (without changes)...
64 * valarith.c (uinteger_pow): ... from here.
66 2020-11-15 Joel Brobecker <brobecker@adacore.com>
68 * gmp-utils.h, gmp-utils.h: New file.
69 * unittests/gmp-utils-selftests.c: New file.
70 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
71 unittests/gmp-utils-selftests.c.
72 (COMMON_SFILES) Add gmp-utils.c.
73 (HFILES_NO_SRCDIR): Add gmp-utils.h.
75 2020-11-15 Joel Brobecker <brobecker@adacore.com>
77 * configure.ac: Generate an error if a usable GMP library
79 * configure: Regenerate.
81 2020-11-15 Joel Brobecker <brobecker@adacore.com>
83 * configure.ac: Add support for --with-libgmp-prefix.
84 * Makefile.in (LIBGMP): New variable.
85 (CLIBS): Include $(LIBGMP).
86 * configure, config.in: Regenerate
88 2020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
91 * f-exp.y (COMPLETE): New token.
92 (exp): Two new rules for tab-completion.
93 (saw_name_at_eof): New static global.
94 (last_was_structop): Likewise.
95 (yylex): Set new variables, and return COMPLETE token at the end
96 of the input stream in some cases.
98 2020-11-14 Tom Tromey <tom@tromey.com>
100 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
102 2020-11-14 Tom Tromey <tom@tromey.com>
104 * opencl-lang.c (opencl_component_ref): Make "comps" const.
106 2020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
108 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
110 2020-11-13 Tom Tromey <tom@tromey.com>
112 * c-lang.c (convert_ucn, convert_octal, convert_hex)
113 (convert_escape, parse_one_string): Constify.
115 2020-11-13 Keith Seitz <keiths@redhat.com>
117 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
118 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
119 outside of ELF segments" warning for debugin
121 2020-11-13 Keith Seitz <keiths@redhat.com>
124 * elfread.c (elf_symfile_segments): Output a BFD file name
125 for the "Loadable section ... outside of ELF segments" warning.
127 2020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
130 * arm-tdep.c (class arm_instruction_reader): New.
131 (target_arm_instruction_reader): New.
132 (arm_analyze_prologue): Add instruction reader parameter and use
133 it. Use arm_expand_immediate.
134 (class target_arm_instruction_reader): Adjust.
135 (arm_skip_prologue): Adjust.
136 (arm_expand_immediate): New.
137 (arm_scan_prologue): Adjust.
138 (arm_analyze_prologue_test): New.
139 (class test_arm_instruction_reader): New.
141 2020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
143 * f-lang.c (fortran_argument_convert): Add declaration. Add
144 header comment, taken from f-lang.h. Make static.
145 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
146 (fortran_argument_convert): Delete declaration.
148 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
150 * ada-exp.y (find_primitive_type): Make parameter const.
151 * ada-lang.c (enum ada_primitive_types): Delete.
152 (ada_language::language_arch_info): Update.
153 * c-lang.c (enum c_primitive_types): Delete.
154 (c_language_arch_info): Update.
155 (enum cplus_primitive_types): Delete.
156 (cplus_language::language_arch_info): Update.
157 * d-lang.c (enum d_primitive_types): Delete.
158 (d_language::language_arch_info): Update.
159 * f-lang.c (enum f_primitive_types): Delete.
160 (f_language::language_arch_info): Update.
161 * go-lang.c (enum go_primitive_types): Delete.
162 (go_language::language_arch_info): Update.
163 * language.c (auto_or_unknown_language::language_arch_info):
165 (language_gdbarch_post_init): Use obstack_new, use array indexing.
166 (language_string_char_type): Add header comment, call function in
168 (language_bool_type): Likewise
169 (language_arch_info::bool_type): Define.
170 (language_lookup_primitive_type_1): Delete.
171 (language_lookup_primitive_type): Rewrite as a templated function
172 to call function in language_arch_info, then instantiate twice.
173 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
174 (language_arch_info::lookup_primitive_type_and_symbol): Define.
175 (language_arch_info::lookup_primitive_type): Define twice with
176 different signatures.
177 (language_arch_info::lookup_primitive_type_as_symbol): Define.
178 (language_lookup_primitive_type_as_symbol): Rewrite to call a
179 member function in language_arch_info.
180 * language.h (language_arch_info): Complete rewrite.
181 (language_lookup_primitive_type): Make templated.
182 * m2-lang.c (enum m2_primitive_types): Delete.
183 (m2_language::language_arch_info): Update.
184 * opencl-lang.c (OCL_P_TYPE): Delete.
185 (enum opencl_primitive_types): Delete.
186 (opencl_type_data): Delete.
187 (builtin_opencl_type): Delete.
188 (lookup_opencl_vector_type): Update.
189 (opencl_language::language_arch_info): Update, lots of content
191 (build_opencl_types): ...here. This function is now deleted.
192 (_initialize_opencl_language): Delete.
193 * p-lang.c (enum pascal_primitive_types): Delete.
194 (pascal_language::language_arch_info): Update.
195 * rust-lang.c (enum rust_primitive_types): Delete.
196 (rust_language::language_arch_info): Update.
198 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
200 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
203 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
205 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
208 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
210 * dwarf2/read.c (dwarf_read_debug_printf,
211 dwarf_read_debug_printf_v): New macros, use throughout the file.
213 2020-11-12 Shahab Vahedi <shahab@synopsys.com>
215 * arc-linux-tdep.c (collect_register): Populate "eret" by
216 "pc" value from the regcache when asked for "pc" value.
218 2020-11-12 Tom Tromey <tom@tromey.com>
221 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
224 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
226 * features/Makefile (XMLTOC): Add rx.xml.
227 (FEATURE_XMLFILES): Remove rx.xml.
228 (FEATURE_CFILES rule): Pass '-single-feature' flag.
229 * features/rx.c: Regenerate.
230 * features/rx.xml: Wrap in `target` tags, and reindent.
231 * target-descriptions.c (struct maint_print_c_tdesc_options): New
233 (maint_print_c_tdesc_opt_def): New typedef.
234 (maint_print_c_tdesc_opt_defs): New static global.
235 (make_maint_print_c_tdesc_options_def_group): New function.
236 (maint_print_c_tdesc_cmd): Make use of command line flags, only
237 print single feature C file for target descriptions containing a
239 (maint_print_c_tdesc_cmd_completer): New function.
240 (_initialize_target_descriptions): Update call to register command
241 completer, and include command line flag in help text.
243 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
245 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
247 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
250 2020-11-10 Tom Tromey <tom@tromey.com>
252 * value.h (internalvar_name): Update.
253 * value.c (internalvar_name): Make return type const.
255 2020-11-10 Tom Tromey <tom@tromey.com>
257 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
258 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
261 2020-11-10 Tom Tromey <tom@tromey.com>
263 * objc-lang.h (value_nsstring): Update.
264 * objc-lang.c (value_nsstring): Make "ptr" const.
266 2020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
268 * expprint.c (print_subexp_funcall): Increment expression position
269 after reading argument count.
270 * f-lang.c (print_subexp_f): Skip over opcode before calling
272 (dump_subexp_body_f): Likewise.
274 2020-11-06 Romain Geissler <romain.geissler@amadeus.com>
277 * configure: Regenerate.
278 * configure.ac: Check for python modules ctypes instead of
281 2020-11-06 Pedro Alves <pedro@palves.net>
283 * macroexp.c (struct macro_buffer): Split in two classes. Add
285 (struct shared_macro_buffer): New, factored out from struct
287 (struct growable_macro_buffer): New, factored out from struct
289 (set_token, get_comment, get_identifier, get_pp_number)
290 (get_character_constant, get_string_literal, get_punctuator)
291 (get_next_token_for_substitution): Constify parameters.
292 (substitute_args): Constify locals.
294 2020-11-05 Tom Tromey <tom@tromey.com>
296 * dwarf2/read.c (read_cutu_die_from_dwo)
297 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
298 (build_type_psymtabs_1): Update.
299 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
301 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
302 Don't read section. Add assert.
304 2020-11-04 Tom Tromey <tromey@adacore.com>
306 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
308 2020-11-04 Tom Tromey <tromey@adacore.com>
310 * ada-typeprint.c (ada_print_type): Handle __T types.
312 2020-11-04 Tom Tromey <tromey@adacore.com>
314 * dwarf2/read.c (add_partial_symbol, process_die):
315 Handle DW_TAG_array_type.
316 (is_type_tag_for_partial): Add "lang" parameter.
317 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
319 2020-11-04 Tom Tromey <tromey@adacore.com>
321 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
323 2020-11-04 Tom Tromey <tromey@adacore.com>
325 * dwarf2/read.c (read_array_type): Only apply stride to innermost
328 2020-11-04 Tom Tromey <tromey@adacore.com>
330 * gdbtypes.c (update_static_array_size): Handle bit stride.
332 2020-11-04 Tom Tromey <tromey@adacore.com>
334 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
336 2020-11-04 Tom Tromey <tromey@adacore.com>
338 * ada-lang.c (ada_is_any_packed_array_type): New function.
339 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
341 2020-11-04 Tom Tromey <tromey@adacore.com>
343 * dwarf2/read.c (recognize_bound_expression)
344 (quirk_ada_thick_pointer): New functions.
345 (read_array_type): Call quirk_ada_thick_pointer.
346 (set_die_type): Add "skip_data_location" parameter.
347 (quirk_ada_thick_pointer): New function.
348 (process_structure_scope): Call quirk_ada_thick_pointer.
349 * ada-lang.c (ada_is_unconstrained_packed_array_type)
350 (decode_packed_array_bitsize): Handle thick pointers without
352 (ada_is_gnat_encoded_packed_array_type): Rename from
353 ada_is_packed_array_type.
354 (ada_is_constrained_packed_array_type): Update.
355 * ada-valprint.c (ada_val_print_gnat_array): Remove.
356 (ada_value_print_1): Use ada_get_decoded_value.
358 2020-11-04 Tom Tromey <tromey@adacore.com>
360 * ada-lang.c (recursively_update_array_bitsize): New function.
361 (decode_constrained_packed_array_type): Call it.
363 2020-11-04 Tom Tromey <tromey@adacore.com>
365 * ada-lang.c (to_fixed_array_type): Error if
366 decode_constrained_packed_array_type returns NULL.
368 2020-11-04 Tom Tromey <tromey@adacore.com>
370 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
372 2020-11-02 Tom Tromey <tromey@adacore.com>
374 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
375 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
376 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
377 * amd64-ravenscar-thread.c: New file.
378 * amd64-ravenscar-thread.h: New file.
379 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
380 * configure.tgt (amd64_tobjs): Add ravenscar objects.
382 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
384 * main.c (execute_cmdargs): New function.
385 (captured_main_1): Make use of execute_cmdargs.
387 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
389 * NEWS: Mention changes to config file search path.
392 2020-11-02 Tom Tromey <tromey@adacore.com>
394 * python/python.c: Consolidate two HAVE_PYTHON blocks.
395 (python_GdbModuleDef): Move earlier. Now static.
396 (do_start_initialization): Consolidate some IS_PY3K blocks.
398 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
400 * aarch64-linux-tdep.c: Fix indentation.
401 * aarch64-ravenscar-thread.c: Fix indentation.
402 * aarch64-tdep.c: Fix indentation.
403 * aarch64-tdep.h: Fix indentation.
404 * ada-lang.c: Fix indentation.
405 * ada-lang.h: Fix indentation.
406 * ada-tasks.c: Fix indentation.
407 * ada-typeprint.c: Fix indentation.
408 * ada-valprint.c: Fix indentation.
409 * ada-varobj.c: Fix indentation.
410 * addrmap.c: Fix indentation.
411 * addrmap.h: Fix indentation.
412 * agent.c: Fix indentation.
413 * aix-thread.c: Fix indentation.
414 * alpha-bsd-nat.c: Fix indentation.
415 * alpha-linux-tdep.c: Fix indentation.
416 * alpha-mdebug-tdep.c: Fix indentation.
417 * alpha-nbsd-tdep.c: Fix indentation.
418 * alpha-obsd-tdep.c: Fix indentation.
419 * alpha-tdep.c: Fix indentation.
420 * amd64-bsd-nat.c: Fix indentation.
421 * amd64-darwin-tdep.c: Fix indentation.
422 * amd64-linux-nat.c: Fix indentation.
423 * amd64-linux-tdep.c: Fix indentation.
424 * amd64-nat.c: Fix indentation.
425 * amd64-obsd-tdep.c: Fix indentation.
426 * amd64-tdep.c: Fix indentation.
427 * amd64-windows-tdep.c: Fix indentation.
428 * annotate.c: Fix indentation.
429 * arc-tdep.c: Fix indentation.
430 * arch-utils.c: Fix indentation.
431 * arch/arm-get-next-pcs.c: Fix indentation.
432 * arch/arm.c: Fix indentation.
433 * arm-linux-nat.c: Fix indentation.
434 * arm-linux-tdep.c: Fix indentation.
435 * arm-nbsd-tdep.c: Fix indentation.
436 * arm-pikeos-tdep.c: Fix indentation.
437 * arm-tdep.c: Fix indentation.
438 * arm-tdep.h: Fix indentation.
439 * arm-wince-tdep.c: Fix indentation.
440 * auto-load.c: Fix indentation.
441 * auxv.c: Fix indentation.
442 * avr-tdep.c: Fix indentation.
443 * ax-gdb.c: Fix indentation.
444 * ax-general.c: Fix indentation.
445 * bfin-linux-tdep.c: Fix indentation.
446 * block.c: Fix indentation.
447 * block.h: Fix indentation.
448 * blockframe.c: Fix indentation.
449 * bpf-tdep.c: Fix indentation.
450 * break-catch-sig.c: Fix indentation.
451 * break-catch-syscall.c: Fix indentation.
452 * break-catch-throw.c: Fix indentation.
453 * breakpoint.c: Fix indentation.
454 * breakpoint.h: Fix indentation.
455 * bsd-uthread.c: Fix indentation.
456 * btrace.c: Fix indentation.
457 * build-id.c: Fix indentation.
458 * buildsym-legacy.h: Fix indentation.
459 * buildsym.c: Fix indentation.
460 * c-typeprint.c: Fix indentation.
461 * c-valprint.c: Fix indentation.
462 * c-varobj.c: Fix indentation.
463 * charset.c: Fix indentation.
464 * cli/cli-cmds.c: Fix indentation.
465 * cli/cli-decode.c: Fix indentation.
466 * cli/cli-decode.h: Fix indentation.
467 * cli/cli-script.c: Fix indentation.
468 * cli/cli-setshow.c: Fix indentation.
469 * coff-pe-read.c: Fix indentation.
470 * coffread.c: Fix indentation.
471 * compile/compile-cplus-types.c: Fix indentation.
472 * compile/compile-object-load.c: Fix indentation.
473 * compile/compile-object-run.c: Fix indentation.
474 * completer.c: Fix indentation.
475 * corefile.c: Fix indentation.
476 * corelow.c: Fix indentation.
477 * cp-abi.h: Fix indentation.
478 * cp-namespace.c: Fix indentation.
479 * cp-support.c: Fix indentation.
480 * cp-valprint.c: Fix indentation.
481 * cris-linux-tdep.c: Fix indentation.
482 * cris-tdep.c: Fix indentation.
483 * darwin-nat-info.c: Fix indentation.
484 * darwin-nat.c: Fix indentation.
485 * darwin-nat.h: Fix indentation.
486 * dbxread.c: Fix indentation.
487 * dcache.c: Fix indentation.
488 * disasm.c: Fix indentation.
489 * dtrace-probe.c: Fix indentation.
490 * dwarf2/abbrev.c: Fix indentation.
491 * dwarf2/attribute.c: Fix indentation.
492 * dwarf2/expr.c: Fix indentation.
493 * dwarf2/frame.c: Fix indentation.
494 * dwarf2/index-cache.c: Fix indentation.
495 * dwarf2/index-write.c: Fix indentation.
496 * dwarf2/line-header.c: Fix indentation.
497 * dwarf2/loc.c: Fix indentation.
498 * dwarf2/macro.c: Fix indentation.
499 * dwarf2/read.c: Fix indentation.
500 * dwarf2/read.h: Fix indentation.
501 * elfread.c: Fix indentation.
502 * eval.c: Fix indentation.
503 * event-top.c: Fix indentation.
504 * exec.c: Fix indentation.
505 * exec.h: Fix indentation.
506 * expprint.c: Fix indentation.
507 * f-lang.c: Fix indentation.
508 * f-typeprint.c: Fix indentation.
509 * f-valprint.c: Fix indentation.
510 * fbsd-nat.c: Fix indentation.
511 * fbsd-tdep.c: Fix indentation.
512 * findvar.c: Fix indentation.
513 * fork-child.c: Fix indentation.
514 * frame-unwind.c: Fix indentation.
515 * frame-unwind.h: Fix indentation.
516 * frame.c: Fix indentation.
517 * frv-linux-tdep.c: Fix indentation.
518 * frv-tdep.c: Fix indentation.
519 * frv-tdep.h: Fix indentation.
520 * ft32-tdep.c: Fix indentation.
521 * gcore.c: Fix indentation.
522 * gdb_bfd.c: Fix indentation.
523 * gdbarch.sh: Fix indentation.
524 * gdbarch.c: Re-generate
525 * gdbarch.h: Re-generate.
526 * gdbcore.h: Fix indentation.
527 * gdbthread.h: Fix indentation.
528 * gdbtypes.c: Fix indentation.
529 * gdbtypes.h: Fix indentation.
530 * glibc-tdep.c: Fix indentation.
531 * gnu-nat.c: Fix indentation.
532 * gnu-nat.h: Fix indentation.
533 * gnu-v2-abi.c: Fix indentation.
534 * gnu-v3-abi.c: Fix indentation.
535 * go32-nat.c: Fix indentation.
536 * guile/guile-internal.h: Fix indentation.
537 * guile/scm-cmd.c: Fix indentation.
538 * guile/scm-frame.c: Fix indentation.
539 * guile/scm-iterator.c: Fix indentation.
540 * guile/scm-math.c: Fix indentation.
541 * guile/scm-ports.c: Fix indentation.
542 * guile/scm-pretty-print.c: Fix indentation.
543 * guile/scm-value.c: Fix indentation.
544 * h8300-tdep.c: Fix indentation.
545 * hppa-linux-nat.c: Fix indentation.
546 * hppa-linux-tdep.c: Fix indentation.
547 * hppa-nbsd-nat.c: Fix indentation.
548 * hppa-nbsd-tdep.c: Fix indentation.
549 * hppa-obsd-nat.c: Fix indentation.
550 * hppa-tdep.c: Fix indentation.
551 * hppa-tdep.h: Fix indentation.
552 * i386-bsd-nat.c: Fix indentation.
553 * i386-darwin-nat.c: Fix indentation.
554 * i386-darwin-tdep.c: Fix indentation.
555 * i386-dicos-tdep.c: Fix indentation.
556 * i386-gnu-nat.c: Fix indentation.
557 * i386-linux-nat.c: Fix indentation.
558 * i386-linux-tdep.c: Fix indentation.
559 * i386-nto-tdep.c: Fix indentation.
560 * i386-obsd-tdep.c: Fix indentation.
561 * i386-sol2-nat.c: Fix indentation.
562 * i386-tdep.c: Fix indentation.
563 * i386-tdep.h: Fix indentation.
564 * i386-windows-tdep.c: Fix indentation.
565 * i387-tdep.c: Fix indentation.
566 * i387-tdep.h: Fix indentation.
567 * ia64-libunwind-tdep.c: Fix indentation.
568 * ia64-libunwind-tdep.h: Fix indentation.
569 * ia64-linux-nat.c: Fix indentation.
570 * ia64-linux-tdep.c: Fix indentation.
571 * ia64-tdep.c: Fix indentation.
572 * ia64-tdep.h: Fix indentation.
573 * ia64-vms-tdep.c: Fix indentation.
574 * infcall.c: Fix indentation.
575 * infcmd.c: Fix indentation.
576 * inferior.c: Fix indentation.
577 * infrun.c: Fix indentation.
578 * iq2000-tdep.c: Fix indentation.
579 * language.c: Fix indentation.
580 * linespec.c: Fix indentation.
581 * linux-fork.c: Fix indentation.
582 * linux-nat.c: Fix indentation.
583 * linux-tdep.c: Fix indentation.
584 * linux-thread-db.c: Fix indentation.
585 * lm32-tdep.c: Fix indentation.
586 * m2-lang.c: Fix indentation.
587 * m2-typeprint.c: Fix indentation.
588 * m2-valprint.c: Fix indentation.
589 * m32c-tdep.c: Fix indentation.
590 * m32r-linux-tdep.c: Fix indentation.
591 * m32r-tdep.c: Fix indentation.
592 * m68hc11-tdep.c: Fix indentation.
593 * m68k-bsd-nat.c: Fix indentation.
594 * m68k-linux-nat.c: Fix indentation.
595 * m68k-linux-tdep.c: Fix indentation.
596 * m68k-tdep.c: Fix indentation.
597 * machoread.c: Fix indentation.
598 * macrocmd.c: Fix indentation.
599 * macroexp.c: Fix indentation.
600 * macroscope.c: Fix indentation.
601 * macrotab.c: Fix indentation.
602 * macrotab.h: Fix indentation.
603 * main.c: Fix indentation.
604 * mdebugread.c: Fix indentation.
605 * mep-tdep.c: Fix indentation.
606 * mi/mi-cmd-catch.c: Fix indentation.
607 * mi/mi-cmd-disas.c: Fix indentation.
608 * mi/mi-cmd-env.c: Fix indentation.
609 * mi/mi-cmd-stack.c: Fix indentation.
610 * mi/mi-cmd-var.c: Fix indentation.
611 * mi/mi-cmds.c: Fix indentation.
612 * mi/mi-main.c: Fix indentation.
613 * mi/mi-parse.c: Fix indentation.
614 * microblaze-tdep.c: Fix indentation.
615 * minidebug.c: Fix indentation.
616 * minsyms.c: Fix indentation.
617 * mips-linux-nat.c: Fix indentation.
618 * mips-linux-tdep.c: Fix indentation.
619 * mips-nbsd-tdep.c: Fix indentation.
620 * mips-tdep.c: Fix indentation.
621 * mn10300-linux-tdep.c: Fix indentation.
622 * mn10300-tdep.c: Fix indentation.
623 * moxie-tdep.c: Fix indentation.
624 * msp430-tdep.c: Fix indentation.
625 * namespace.h: Fix indentation.
626 * nat/fork-inferior.c: Fix indentation.
627 * nat/gdb_ptrace.h: Fix indentation.
628 * nat/linux-namespaces.c: Fix indentation.
629 * nat/linux-osdata.c: Fix indentation.
630 * nat/netbsd-nat.c: Fix indentation.
631 * nat/x86-dregs.c: Fix indentation.
632 * nbsd-nat.c: Fix indentation.
633 * nbsd-tdep.c: Fix indentation.
634 * nios2-linux-tdep.c: Fix indentation.
635 * nios2-tdep.c: Fix indentation.
636 * nto-procfs.c: Fix indentation.
637 * nto-tdep.c: Fix indentation.
638 * objfiles.c: Fix indentation.
639 * objfiles.h: Fix indentation.
640 * opencl-lang.c: Fix indentation.
641 * or1k-tdep.c: Fix indentation.
642 * osabi.c: Fix indentation.
643 * osabi.h: Fix indentation.
644 * osdata.c: Fix indentation.
645 * p-lang.c: Fix indentation.
646 * p-typeprint.c: Fix indentation.
647 * p-valprint.c: Fix indentation.
648 * parse.c: Fix indentation.
649 * ppc-linux-nat.c: Fix indentation.
650 * ppc-linux-tdep.c: Fix indentation.
651 * ppc-nbsd-nat.c: Fix indentation.
652 * ppc-nbsd-tdep.c: Fix indentation.
653 * ppc-obsd-nat.c: Fix indentation.
654 * ppc-ravenscar-thread.c: Fix indentation.
655 * ppc-sysv-tdep.c: Fix indentation.
656 * ppc64-tdep.c: Fix indentation.
657 * printcmd.c: Fix indentation.
658 * proc-api.c: Fix indentation.
659 * producer.c: Fix indentation.
660 * producer.h: Fix indentation.
661 * prologue-value.c: Fix indentation.
662 * prologue-value.h: Fix indentation.
663 * psymtab.c: Fix indentation.
664 * python/py-arch.c: Fix indentation.
665 * python/py-bpevent.c: Fix indentation.
666 * python/py-event.c: Fix indentation.
667 * python/py-event.h: Fix indentation.
668 * python/py-finishbreakpoint.c: Fix indentation.
669 * python/py-frame.c: Fix indentation.
670 * python/py-framefilter.c: Fix indentation.
671 * python/py-inferior.c: Fix indentation.
672 * python/py-infthread.c: Fix indentation.
673 * python/py-objfile.c: Fix indentation.
674 * python/py-prettyprint.c: Fix indentation.
675 * python/py-registers.c: Fix indentation.
676 * python/py-signalevent.c: Fix indentation.
677 * python/py-stopevent.c: Fix indentation.
678 * python/py-stopevent.h: Fix indentation.
679 * python/py-threadevent.c: Fix indentation.
680 * python/py-tui.c: Fix indentation.
681 * python/py-unwind.c: Fix indentation.
682 * python/py-value.c: Fix indentation.
683 * python/py-xmethods.c: Fix indentation.
684 * python/python-internal.h: Fix indentation.
685 * python/python.c: Fix indentation.
686 * ravenscar-thread.c: Fix indentation.
687 * record-btrace.c: Fix indentation.
688 * record-full.c: Fix indentation.
689 * record.c: Fix indentation.
690 * reggroups.c: Fix indentation.
691 * regset.h: Fix indentation.
692 * remote-fileio.c: Fix indentation.
693 * remote.c: Fix indentation.
694 * reverse.c: Fix indentation.
695 * riscv-linux-tdep.c: Fix indentation.
696 * riscv-ravenscar-thread.c: Fix indentation.
697 * riscv-tdep.c: Fix indentation.
698 * rl78-tdep.c: Fix indentation.
699 * rs6000-aix-tdep.c: Fix indentation.
700 * rs6000-lynx178-tdep.c: Fix indentation.
701 * rs6000-nat.c: Fix indentation.
702 * rs6000-tdep.c: Fix indentation.
703 * rust-lang.c: Fix indentation.
704 * rx-tdep.c: Fix indentation.
705 * s12z-tdep.c: Fix indentation.
706 * s390-linux-tdep.c: Fix indentation.
707 * score-tdep.c: Fix indentation.
708 * ser-base.c: Fix indentation.
709 * ser-mingw.c: Fix indentation.
710 * ser-uds.c: Fix indentation.
711 * ser-unix.c: Fix indentation.
712 * serial.c: Fix indentation.
713 * sh-linux-tdep.c: Fix indentation.
714 * sh-nbsd-tdep.c: Fix indentation.
715 * sh-tdep.c: Fix indentation.
716 * skip.c: Fix indentation.
717 * sol-thread.c: Fix indentation.
718 * solib-aix.c: Fix indentation.
719 * solib-darwin.c: Fix indentation.
720 * solib-frv.c: Fix indentation.
721 * solib-svr4.c: Fix indentation.
722 * solib.c: Fix indentation.
723 * source.c: Fix indentation.
724 * sparc-linux-tdep.c: Fix indentation.
725 * sparc-nbsd-tdep.c: Fix indentation.
726 * sparc-obsd-tdep.c: Fix indentation.
727 * sparc-ravenscar-thread.c: Fix indentation.
728 * sparc-tdep.c: Fix indentation.
729 * sparc64-linux-tdep.c: Fix indentation.
730 * sparc64-nbsd-tdep.c: Fix indentation.
731 * sparc64-obsd-tdep.c: Fix indentation.
732 * sparc64-tdep.c: Fix indentation.
733 * stabsread.c: Fix indentation.
734 * stack.c: Fix indentation.
735 * stap-probe.c: Fix indentation.
736 * stubs/ia64vms-stub.c: Fix indentation.
737 * stubs/m32r-stub.c: Fix indentation.
738 * stubs/m68k-stub.c: Fix indentation.
739 * stubs/sh-stub.c: Fix indentation.
740 * stubs/sparc-stub.c: Fix indentation.
741 * symfile-mem.c: Fix indentation.
742 * symfile.c: Fix indentation.
743 * symfile.h: Fix indentation.
744 * symmisc.c: Fix indentation.
745 * symtab.c: Fix indentation.
746 * symtab.h: Fix indentation.
747 * target-float.c: Fix indentation.
748 * target.c: Fix indentation.
749 * target.h: Fix indentation.
750 * tic6x-tdep.c: Fix indentation.
751 * tilegx-linux-tdep.c: Fix indentation.
752 * tilegx-tdep.c: Fix indentation.
753 * top.c: Fix indentation.
754 * tracefile-tfile.c: Fix indentation.
755 * tracepoint.c: Fix indentation.
756 * tui/tui-disasm.c: Fix indentation.
757 * tui/tui-io.c: Fix indentation.
758 * tui/tui-regs.c: Fix indentation.
759 * tui/tui-stack.c: Fix indentation.
760 * tui/tui-win.c: Fix indentation.
761 * tui/tui-winsource.c: Fix indentation.
762 * tui/tui.c: Fix indentation.
763 * typeprint.c: Fix indentation.
764 * ui-out.h: Fix indentation.
765 * unittests/copy_bitwise-selftests.c: Fix indentation.
766 * unittests/memory-map-selftests.c: Fix indentation.
767 * utils.c: Fix indentation.
768 * v850-tdep.c: Fix indentation.
769 * valarith.c: Fix indentation.
770 * valops.c: Fix indentation.
771 * valprint.c: Fix indentation.
772 * valprint.h: Fix indentation.
773 * value.c: Fix indentation.
774 * value.h: Fix indentation.
775 * varobj.c: Fix indentation.
776 * vax-tdep.c: Fix indentation.
777 * windows-nat.c: Fix indentation.
778 * windows-tdep.c: Fix indentation.
779 * xcoffread.c: Fix indentation.
780 * xml-syscall.c: Fix indentation.
781 * xml-tdesc.c: Fix indentation.
782 * xstormy16-tdep.c: Fix indentation.
783 * xtensa-config.c: Fix indentation.
784 * xtensa-linux-nat.c: Fix indentation.
785 * xtensa-linux-tdep.c: Fix indentation.
786 * xtensa-tdep.c: Fix indentation.
788 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
789 Craig Blackmore <craig.blackmore@embecosm.com>
791 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
792 as an unsigned value.
794 2020-11-01 Tom Tromey <tom@tromey.com>
796 * dbxread.c (dbx_end_psymtab): Update.
797 * dwarf2/read.c (process_psymtab_comp_unit_reader)
798 (build_type_psymtabs_reader): Update.
799 * xcoffread.c (xcoff_end_psymtab): Update.
800 * ctfread.c (scan_partial_symbols): Update.
801 * psymtab.c (sort_pst_symbols): Remove.
802 (partial_symtab::end): Rename from end_psymtab_common. Inline
804 * psympriv.h (struct partial_symtab) <end>: New method.
805 (end_psymtab_common): Don't declare.
807 2020-11-01 Tom Tromey <tom@tromey.com>
809 * symmisc.c (count_psyms): New function.
810 (print_objfile_statistics): Use it.
811 * psymtab.c (append_psymbol_to_list): Remove.
812 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
813 * objfiles.h (struct objstats) <n_psyms>: Remove.
815 2020-11-01 Tom Tromey <tom@tromey.com>
817 * dbxread.c (dbx_end_psymtab): Update.
818 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
819 (build_type_psymtabs_reader): Update.
820 * xcoffread.c (xcoff_end_psymtab): Update.
821 * ctfread.c (scan_partial_symbols): Update.
822 * psympriv.h (end_psymtab_common): Update.
823 * psymtab.c (end_psymtab_common): Remove objfile parameter.
824 (sort_pst_symbols): Likewise.
826 2020-11-01 Tom Tromey <tom@tromey.com>
828 * dbxread.c (dbx_symfile_read): Update.
829 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
830 * xcoffread.c (xcoff_initial_scan): Update.
831 * psympriv.h (init_psymbol_list): Don't declare.
832 * psymtab.c (init_psymbol_list): Remove.
834 2020-11-01 Joel Brobecker <brobecker@adacore.com>
836 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
837 gnat_encoded_fixed_type_info. Update all callers.
839 2020-11-01 Joel Brobecker <brobecker@adacore.com>
841 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
844 2020-11-01 Joel Brobecker <brobecker@adacore.com>
846 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
847 cast_from_fixed. Update all callers.
848 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
850 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
852 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
854 * ada-typeprint.c: Replace call to ada_scaling_factor by call
855 to print_gnat_encoded_fixed_point_type.
856 * ada-valprint.c: Likewise.
858 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
860 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
861 (debug_prefixed_printf): Add check of debug_displaced flag.
862 * linux-nat.c (linux_nat_debug_printf): Add check of
863 debug_linux_nat flag.
865 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
867 * infrun.c (infrun_debug_printf_1): Remove.
868 (displaced_debug_printf_1): Remove.
869 (stop_all_threads): Use debug_prefixed_printf.
870 * infrun.h (infrun_debug_printf_1): Remove.
871 (infrun_debug_printf): Use debug_prefixed_printf.
872 (displaced_debug_printf_1): Remove.
873 (displaced_debug_printf): Use debug_prefixed_printf.
874 * linux-nat.c (linux_nat_debug_printf_1): Remove.
875 (linux_nat_debug_printf): Use debug_prefixed_printf.
877 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
879 * configure: Re-generate.
880 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
883 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
885 * configure: Re-generate.
887 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
889 * configure: Re-generate.
891 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
893 * configure: Re-generate.
895 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
897 * configure: Re-generate.
899 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
901 * acinclude.m4: Modernize.
902 * configure: Re-generate.
904 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
906 * configure.ac: Modernize.
907 * configure: Re-generate.
909 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
911 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
912 * configure: Re-generate.
913 * configure.ac: Remove AM_PROG_CC_STDC.
915 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
917 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
919 * configure: Re-generate.
921 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
923 * infrun.h (displaced_debug_printf): New macro. Replace
924 displaced debug prints throughout to use it.
925 (displaced_debug_printf_1): New declaration.
926 (displaced_step_dump_bytes): Return string, remove ui_file
927 parameter, update all callers.
928 * infrun.c (displaced_debug_printf_1): New function.
929 (displaced_step_dump_bytes): Return string, remove ui_file
932 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
934 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
936 2020-10-30 Tom Tromey <tromey@adacore.com>
938 * Makefile.in (stamp-init): Depend on config.status.
940 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
942 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
944 2020-10-30 Pedro Alves <pedro@palves.net>
946 * thread.c (lookup_selected_frame): Move ...
947 * frame.c (lookup_selected_frame): ... here.
949 2020-10-30 Pedro Alves <pedro@palves.net>
951 * blockframe.c (block_innermost_frame): Use get_selected_frame.
953 (scoped_restore_selected_frame::scoped_restore_selected_frame):
954 Use save_selected_frame. Save language as well.
955 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
956 Use restore_selected_frame, and restore language as well.
957 (selected_frame_id, selected_frame_level): New.
958 (selected_frame): Update comments.
959 (save_selected_frame, restore_selected_frame): New.
960 (get_selected_frame): Use lookup_selected_frame.
961 (get_selected_frame_if_set): Delete.
962 (select_frame): Record selected_frame_level and selected_frame_id.
963 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
965 (get_selected_frame): Make 'message' parameter optional.
966 (get_selected_frame_if_set): Delete declaration.
967 (select_frame): Update comments.
968 (save_selected_frame, restore_selected_frame)
969 (lookup_selected_frame): Declare.
970 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
971 * infrun.c (struct infcall_control_state) <selected_frame_level>:
973 (save_infcall_control_state): Use save_selected_frame.
974 (restore_selected_frame): Delete.
975 (restore_infcall_control_state): Use restore_selected_frame.
976 * stack.c (select_frame_command_core, frame_command_core): Use
978 * thread.c (restore_selected_frame): Rename to ...
979 (lookup_selected_frame): ... this and make extern. Select the
980 current frame if the frame level is -1.
981 (scoped_restore_current_thread::restore): Also restore the
983 (scoped_restore_current_thread::~scoped_restore_current_thread):
985 (scoped_restore_current_thread::scoped_restore_current_thread):
986 Save the language as well. Use save_selected_frame.
988 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
990 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
992 * gdbarch.h: Re-generate.
994 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
996 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
998 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
1000 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1002 * arch-utils.c (default_displaced_step_hw_singlestep):
1004 * arch-utils.h (default_displaced_step_hw_singlestep):
1006 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
1008 * s390-tdep.c (s390_displaced_step_hw_singlestep):
1010 * gdbarch.c: Re-generate.
1011 * gdbarch.h: Re-generate.
1012 * infrun.c (resume_1): Adjust.
1014 2020-10-29 Tom Tromey <tom@tromey.com>
1016 * progspace.c (program_space::~program_space): Don't call
1019 2020-10-29 Tom Tromey <tom@tromey.com>
1021 * exec.c (exec_target::close): Don't change current program
1024 2020-10-29 Tom Tromey <tom@tromey.com>
1026 * symfile.c (add_symbol_file_command): Update.
1027 * exec.c (program_space::add_target_sections): Rename.
1028 * symfile-mem.c (symbol_file_add_from_memory): Update.
1029 * progspace.h (struct program_space) <add_target_sections>:
1030 Declare new overload.
1031 * exec.h (add_target_sections_of_objfile): Don't declare.
1033 2020-10-29 Tom Tromey <tom@tromey.com>
1035 * solib.c (solib_map_sections): Update.
1036 * exec.c (program_space::add_target_sections): Now a method.
1037 (exec_file_attach): Update.
1038 * exec.h (add_target_sections): Don't declare.
1039 * progspace.h (struct program_space) <add_target_sections>:
1042 2020-10-29 Tom Tromey <tom@tromey.com>
1044 * progspace.h (struct program_space) <remove_target_sections>:
1046 * exec.c (program_space::remove_target_sections): Now a method.
1047 * exec.h (remove_target_sections): Don't declare.
1049 2020-10-29 Tom Tromey <tom@tromey.com>
1051 * inferior.c (delete_inferior): Update.
1052 * progspace.c (program_space::empty): Rename from
1053 program_space_empty_p. Return bool.
1054 * progspace.h (struct program_space) <empty>: New method.
1055 (program_space_empty_p): Don't declare.
1057 2020-10-29 Tom Tromey <tom@tromey.com>
1059 * progspace.c (program_space::~program_space): Don't call
1060 clear_program_space_solib_cache.
1061 (program_space::clear_solib_cache): Rename from
1063 * solib.c (handle_solib_event): Update.
1064 * progspace.h (struct program_space) <clear_solib_cache>: New
1066 (clear_program_space_solib_cache): Don't declare.
1068 2020-10-29 Tom Tromey <tom@tromey.com>
1070 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1071 * target.c (info_target_command): Update.
1072 * symfile.c (syms_from_objfile_1, finish_new_objfile)
1073 (symbol_file_clear, reread_symbols): Update.
1074 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
1075 * stabsread.c (scan_file_globals): Update.
1076 * solib.c (update_solib_list): Update.
1077 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
1078 (svr4_fetch_objfile_link_map, enable_break)
1079 (svr4_relocate_main_executable)
1080 (svr4_iterate_over_objfiles_in_search_order): Update.
1081 * solib-frv.c (lm_base, enable_break)
1082 (frv_relocate_main_executable): Update.
1083 (main_got, frv_fdpic_find_canonical_descriptor): Update.
1084 (frv_fetch_objfile_link_map): Update.
1085 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
1086 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
1087 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
1088 * remote.c (remote_target::get_offsets): Update.
1089 (remote_target::start_remote)
1090 (extended_remote_target::post_attach): Update.
1091 * objfiles.c (entry_point_address_query): Update.
1092 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
1093 * minsyms.c (get_symbol_leading_char): Update.
1094 * frame.c (inside_main_func): Update.
1095 * progspace.h (symfile_objfile): Remove macro.
1097 2020-10-29 Tom Tromey <tom@tromey.com>
1099 * exec.c (exec_file_attach): Update.
1100 * progspace.c (program_space::exec_close): Update.
1101 * progspace.h (struct program_space) <ebfd>: Now a
1103 <set_exec_bfd>: Change argument type.
1106 2020-10-29 Tom Tromey <tom@tromey.com>
1108 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1109 * symfile.c (reread_symbols): Update.
1110 * symfile-mem.c (add_symbol_file_from_memory_command)
1111 (add_vsyscall_page): Update.
1112 * source-cache.c (source_cache::get_plain_source_lines): Update.
1113 * solib-svr4.c (find_program_interpreter, elf_locate_base)
1114 (svr4_current_sos_direct, svr4_exec_displacement)
1115 (svr4_relocate_main_executable): Update.
1116 (svr4_iterate_over_objfiles_in_search_order): Update.
1117 * solib-frv.c (enable_break2, enable_break): Update.
1118 * solib-dsbt.c (lm_base, enable_break): Update.
1119 * solib-darwin.c (find_program_interpreter)
1120 (darwin_solib_create_inferior_hook): Update.
1121 * sol-thread.c (rw_common, ps_pdmodel): Update.
1122 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
1123 * remote.c (compare_sections_command)
1124 (remote_target::trace_set_readonly_regions): Update.
1125 * remote-sim.c (get_sim_inferior_data)
1126 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
1127 (gdbsim_target_open, gdbsim_target::files_info): Update.
1128 * exec.h (exec_bfd): Remove macro.
1129 * progspace.c (initialize_progspace): Update.
1130 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
1132 * nto-procfs.c (nto_procfs_target::post_attach)
1133 (nto_procfs_target::create_inferior): Update.
1134 * maint.c (maintenance_info_sections): Update.
1135 * linux-thread-db.c (thread_db_target::get_thread_local_address):
1137 * infcmd.c (post_create_inferior): Update.
1138 * gcore.c (default_gcore_arch, default_gcore_target): Update.
1139 (objfile_find_memory_regions): Update.
1140 * exec.c (validate_exec_file, exec_file_attach)
1141 (exec_read_partial_read_only, print_section_info): Update.
1142 * corelow.c (core_target_open): Update.
1143 * corefile.c (reopen_exec_file, validate_files): Update.
1144 * arm-tdep.c (gdb_print_insn_arm): Update.
1145 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
1146 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
1149 2020-10-29 Tom Tromey <tom@tromey.com>
1151 * progspace.h (current_target_sections): Remove macro.
1152 * solib-svr4.c (scan_dyntag): Update.
1153 * solib-dsbt.c (scan_dyntag): Update.
1154 * exec.c (exec_target::close): Update.
1155 (add_target_sections, add_target_sections_of_objfile)
1156 (remove_target_sections, exec_target::get_section_table)
1157 (exec_target::files_info, set_section_command)
1158 (exec_set_section_address, exec_target::has_memory)
1159 (exec_target::has_memory): Update.
1161 2020-10-29 Tom Tromey <tom@tromey.com>
1163 * source-cache.c (source_cache::get_plain_source_lines): Use
1164 current_program_space.
1165 * corefile.c (reopen_exec_file): Use current_program_space.
1166 * exec.c (exec_file_attach): Use current_program_space.
1167 * exec.h (exec_bfd_mtime): Remove.
1169 2020-10-29 Tom Tromey <tom@tromey.com>
1171 * gcore.c (default_gcore_mach): Remove.
1172 (create_gcore_bfd): Update.
1174 2020-10-29 Tom Tromey <tom@tromey.com>
1176 * progspace.c (program_space::exec_close): New method, from
1177 exec_close in exec.c.
1178 * exec.c (exec_close): Move to progspace.c.
1179 (exec_target::close, exec_file_attach): Update.
1180 * progspace.h (struct program_space) <exec_close>: Declare
1183 2020-10-29 Tom Tromey <tom@tromey.com>
1185 * progspace.h (struct program_space) <exec_filename>: Rename from
1186 pspace_exec_filename. Now a unique_xmalloc_ptr.
1187 * inferior.c (print_selected_inferior): Update.
1188 (print_inferior): Update.
1189 * mi/mi-main.c (print_one_inferior): Update.
1190 * exec.h (exec_filename): Remove macro.
1191 * corefile.c (get_exec_file): Update.
1192 * exec.c (exec_close): Update.
1193 (exec_file_attach): Update.
1194 * progspace.c (clone_program_space): Update.
1195 (print_program_space): Update.
1197 2020-10-29 Tom Tromey <tom@tromey.com>
1199 * target-section.h (struct target_section): Add constructor.
1200 * exec.c (build_section_table, add_target_sections_of_objfile):
1202 * corelow.c (core_target::build_file_mappings): Update.
1204 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1207 * inferior.c (detach_inferior_command): Restore the current thread.
1208 (kill_inferior_command): Ditto.
1210 2020-10-28 Tom de Vries <tdevries@suse.de>
1213 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
1214 map, check it in the "best match" loop.
1216 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1218 * m32c-tdep.c: Remove unused includes.
1220 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1222 * xtensa-tdep.c: Remove includes.
1224 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1226 * breakpoint.c (struct condition_command_opts): New struct.
1227 (condition_command_option_defs): New static global.
1228 (make_condition_command_options_def_group): New function.
1229 (condition_completer): Update to consider the '-force' flag.
1230 (condition_command): Use gdb::option for the '-force' flag.
1232 2020-10-27 Tom de Vries <tdevries@suse.de>
1234 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
1235 symbols in section check.
1237 2020-10-27 Tom de Vries <tdevries@suse.de>
1239 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
1241 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1243 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
1244 * breakpoint.c: Update the help text of the 'condition' and 'break'
1246 (set_breakpoint_condition): Take a new bool parameter
1247 to control whether condition definition should be forced even when
1248 the condition expression is invalid in all of the current locations.
1249 (condition_command): Update the call to 'set_breakpoint_condition'.
1250 (find_condition_and_thread): Take the "-force-condition" flag into
1252 * linespec.c (linespec_keywords): Add "-force-condition" as an
1254 (FORCE_KEYWORD_INDEX): New #define.
1255 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
1257 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
1258 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
1259 * python/py-breakpoint.c (bppy_set_condition): Ditto.
1260 * NEWS: Mention the changes to the 'break' and 'condition' commands.
1262 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1264 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
1265 * breakpoint.c (set_breakpoint_location_condition): New function.
1266 (set_breakpoint_condition): Disable a breakpoint location if parsing
1267 the condition string gives an error.
1268 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
1269 (build_target_condition_list): Ditto.
1270 (build_target_command_list): Ditto.
1271 (build_bpstat_chain): Ditto.
1272 (print_one_breakpoint_location): Ditto.
1273 (print_one_breakpoint): Ditto.
1274 (breakpoint_1): Ditto.
1275 (bp_location::bp_location): Ditto.
1276 (locations_are_equal): Ditto.
1277 (update_breakpoint_locations): Ditto.
1278 (enable_disable_bp_num_loc): Ditto.
1279 (init_breakpoint_sal): Use set_breakpoint_location_condition.
1280 (find_condition_and_thread_for_sals): New static function.
1281 (create_breakpoint): Call find_condition_and_thread_for_sals.
1282 (location_to_sals): Call find_condition_and_thread_for_sals instead
1283 of find_condition_and_thread.
1285 2020-10-26 Tom de Vries <tdevries@suse.de>
1287 * dwarf2/read.c (process_full_comp_unit): Call
1288 dwarf2_find_base_address.
1290 2020-10-26 Tom Tromey <tromey@adacore.com>
1292 * gdbtypes.c (create_range_type): Revert previous patch. Add
1295 2020-10-26 Pedro Alves <pedro@palves.net>
1297 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
1298 (my_waitpid): Use gdb::handle_eintr.
1300 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
1302 * acinclude.m4: Update ptrace.m4 path.
1303 * ptrace.m4: Moved to gdbsupport.
1305 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1307 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
1308 instead of target_gdbarch.
1310 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1312 * jit.c (jit_reader_load_command): Pass current inferior.
1313 (jit_inferior_init): Change parameter type to inferior, use it.
1314 (jit_inferior_created): Remove.
1315 (jit_inferior_created_hook): Pass inferior parameter down.
1316 (_initialize_jit): Use jit_inferior_created_hook instead of
1317 jit_inferior_created.
1318 * jit.h (jit_inferior_created_hook): Add inferior parameter.
1319 * infrun.c (follow_exec): Pass inferior to
1320 jit_inferior_created_hook.
1322 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
1324 * linux-thread-db.c (check_pid_namespace_match): Add inferior
1325 parameter and use it.
1326 (thread_db_inferior_created): Pass inferior argument.
1328 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
1330 * aix-thread.c (aix_thread_inferior_created): Add inferior
1332 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
1333 * dummy-frame.c (cleanup_dummy_frames): Likewise.
1334 * jit.c (jit_inferior_created): Likewise.
1335 * linux-thread-db.c (thread_db_inferior_created): Likewise.
1336 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
1337 * observable.h (inferior_created): Likewise.
1338 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1339 * symfile-mem.c (add_vsyscall_page): Likewise.
1340 * infcmd.c (post_create_inferior): Pass inferior argument.
1342 2020-10-24 Joel Brobecker <brobecker@adacore.com>
1346 2020-10-23 Joel Brobecker <brobecker@adacore.com>
1348 * ada-typeprint.c (ada_print_type): Remove superfluous second call
1349 to ada_check_typedef.
1351 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1353 * f-exp.y (f_parse): Rename to...
1354 (f_language::parser): ...this.
1355 * f-lang.c (f_get_encoding): Rename to...
1356 (f_language::get_encoding): ...this.
1357 (f_op_print_tab): Rename to...
1358 (f_language::op_print_tab): ...this.
1359 (exp_descriptor_f): Rename to...
1360 (f_language::exp_descriptor_tab): ...this.
1361 (class f_language): Moved to f-lang.h.
1362 (f_language::language_arch_info): New function, moved out of class
1364 (f_language::search_name_hash): Likewise.
1365 (f_language::lookup_symbol_nonlocal): Likewise.
1366 (f_language::get_symbol_name_matcher_inner): Likewise.
1367 * f-lang.h: Add 'valprint.h' include.
1368 (class f_language): Moved here from f-lang.c.
1369 * f-typeprint.c (f_type_print_args): Delete commented out
1371 (f_print_typedef): Rename to...
1372 (f_language::print_typedef): ...this.
1373 (f_print_type): Rename to...
1374 (f_language::print_type): ...this.
1375 (f_type_print_varspec_prefix): Delete declaration and rename to...
1376 (f_language::f_type_print_varspec_prefix): ...this.
1377 (f_type_print_varspec_suffix): Delete declaration and rename to...
1378 (f_language::f_type_print_varspec_suffix): ...this.
1379 (f_type_print_base): Delete declaration and rename to...
1380 (f_language::f_type_print_base): ...this.
1381 * f-valprint.c (f_value_print_inner): Rename to...
1382 (f_language::value_print_inner): ...this.
1383 * parse.c: Delete 'f-lang.h' include.
1385 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1387 * language.h (language_defn::print_type): Add variable names in
1388 declaration, and update header comment.
1390 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1392 * ada-lang.c (ada_language::demangle): Rename to...
1393 (ada_language::demangle_symbol): ...this.
1394 * c-lang.c (cplus_language::demangle): Rename to...
1395 (cplus_language::demangle_symbol): ...this.
1396 * d-lang.c (d_language::demangle): Rename to...
1397 (d_language::demangle_symbol): ...this.
1398 * f-lang.c (f_language::demangle): Rename to...
1399 (f_language::demangle_symbol): ...this.
1400 * go-lang.c (go_language::demangle): Rename to...
1401 (go_language::demangle_symbol): ...this.
1402 * language.c (language_demangle): Update call to demangle_symbol.
1403 (auto_or_unknown_language::demangle): Rename to...
1404 (auto_or_unknown_language::demangle_symbol): ...this.
1405 * language.h (language_defn::demangle): Rename to...
1406 (language_defn::demangle_symbol): ...this.
1407 * objc-lang.c (objc_language::demangle): Rename to...
1408 (objc_language::demangle_symbol): ...this.
1409 * rust-lang.c (rust_language::demangle): Rename to...
1410 (rust_language::demangle_symbol): ...this.
1412 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1414 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
1415 (iterate_over_file_blocks): Replace use of macro with the macros
1418 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1420 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
1421 * valprint.c (maybe_print_array_index): Replace use of macro with
1422 the macros definition.
1424 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1426 * ada-lang.c (ada_language::print_array_index): Call value_print
1428 * language.c (language_defn::print_array_index): Likewise.
1429 * language.h (LA_VALUE_PRINT): Delete.
1430 * valprint.c (value_print): Call value_print on the
1431 current_language directly.
1433 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1435 * language.h (LA_PRINT_TYPEDEF): Delete.
1436 * typeprint.c (typedef_print): Call print_typedef directly on the
1437 current_language object.
1439 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1441 * m2-exp.y (m2_parse): Rename to...
1442 (m2_language::parser): ...this. Update function signature.
1443 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
1444 (m2_op_print): Rename to...
1445 (m2_language::op_print_tab): ...this, and make const.
1446 (exp_descriptor_modula2): Rename to...
1447 (m2_language::exp_descriptor_modula2): ...this.
1448 (class m2_language): Move to m2-lang.h.
1449 (m2_language::language_arch_info): New function, moved out of
1451 (m2_language::printchar): New function, body from m2_printchar.
1452 (m2_language::printstr): New function, moved out of class
1454 (m2_language::emitchar): Likewise.
1455 * m2-lang.h (m2_parse): Delete declaration.
1456 (m2_print_typedef): Delete declaration.
1457 (m2_value_print_inner): Delete declaration.
1458 (class m2_language): Class declaration moved from m2-lang.c,
1459 larger functions are left in m2-lang.c.
1460 * m2-typeprint.c (m2_print_typedef): Rename to...
1461 (m2_language::print_typedef): ...this, and update function
1463 * m2-valprint.c (m2_value_print_inner): Rename to...
1464 (m2_language::value_print_inner): ...this, replace use of
1465 LA_PRINT_STRING with a direct call to printstr member function,
1466 and update recursive call.
1468 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1470 * language.c (default_is_string_type_p): Delete, implementation
1471 moved into auto_or_unknown_language::is_string_type_p.
1472 (unk_op_print_tab): Moved into
1473 auto_or_unknown_language::opcode_print_table.
1474 (unknown_language_arch_info): Delete, implementation moved into
1475 auto_or_unknown_language::language_arch_info.
1476 (class auto_or_unknown_language): New class, member functions
1477 copied from unknown_language class, with some updates.
1478 (class unknown_language): Most member functions moved into
1479 auto_or_unknown_language class. Inherit from
1480 auto_or_unknown_language class.
1481 (class auto_language): Inherit from auto_or_unknown_language.
1482 Delete most member functions.
1484 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
1486 * stabsread.c (read_member_functions): Remove gdb_assert.
1488 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
1490 * gdbtypes.c (init_complex_type): Check target type name.
1492 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1494 * target-debug.h (target_debug_print_struct_target_ops_p):
1496 (target_debug_print_async_callback_ftype_p): Remove.
1497 (target_debug_print_struct_trace_state_variable_p): Remove.
1498 (target_debug_print_struct_traceframe_info_p): Remove.
1499 (target_debug_print_VEC__btrace_block_s__pp): Remove.
1500 (target_debug_print_enum_btrace_format): Remove.
1501 (target_debug_print_enum_info_proc_what): Remove.
1502 (target_debug_print_thread_info_pp): Remove.
1504 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
1506 * target.h (struct target_ops) <make_corefile_notes>:
1507 Change return type to unique pointer.
1508 * target.c (dummy_make_corefile_notes): Likewise.
1509 * exec.c (struct exec_target) <make_corefile_notes>:
1511 (exec_target::make_corefile_notes): Likewise.
1512 * procfs.c (class procfs_target) <make_corefile_notes>:
1514 (procfs_do_thread_registers): Adjust to unique pointer.
1515 (struct procfs_corefile_thread_data): Add constructor.
1516 <note_data>: Change type to unique pointer.
1517 (procfs_corefile_thread_callback): Adjust to unique pointer.
1518 (procfs_target::make_corefile_notes): Change return type to
1520 * target-delegates.c: Re-generate.
1521 * gcore.c (write_gcore_file_1): Adjust.
1522 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
1525 2020-10-22 Tom de Vries <tdevries@suse.de>
1527 * block.c (find_block_in_blockvector): Make sure the returned block
1530 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1533 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
1535 (load_cu): Pass existing CU.
1536 (process_imported_unit_die): Likewise.
1537 (follow_die_offset): Likewise.
1539 2020-10-22 Luis Machado <luis.machado@linaro.org>
1541 * corelow.c (core_target::xfer_partial): Also check for an empty
1542 m_core_unavailable_mappings vector.
1544 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1546 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
1547 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
1548 * f-exp.y (arglist): Allow for a series of subranges.
1549 (subrange): Add cases for subranges with strides.
1550 * f-lang.c (value_f90_subarray): Catch use of array strides and
1552 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
1554 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1556 * expprint.c (print_subexp_standard): Change enum range_type to
1557 range_flag and rename variables to match.
1558 (dump_subexp_body_standard): Likewise.
1559 * expression.h (enum range_type): Rename to...
1560 (enum range_flag): ...this.
1561 (range_types): Rename to...
1562 (range_flags): ...this.
1563 * f-lang.c (value_f90_subarray): Change enum range_type to
1564 range_flag and rename variables to match.
1565 * parse.c (operator_length_standard): Likewise.
1566 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
1567 range_type to range_flag.
1568 * rust-lang.c (rust_evaluate_funcall): Likewise.
1569 (rust_range): Likewise.
1570 (rust_compute_range): Likewise.
1571 (rust_subscript): Likewise.
1573 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1575 * expprint.c (print_subexp_standard): Update to reflect changes to
1577 (dump_subexp_body_standard): Likewise.
1578 * expression.h (enum range_type): Convert to a bit field enum, and
1579 make the enum unsigned.
1580 * f-exp.y (subrange): Update to reflect changes to enum
1582 * f-lang.c (value_f90_subarray): Likewise.
1583 * parse.c (operator_length_standard): Likewise.
1584 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
1585 * rust-lang.c (rust_range): Likewise.
1586 (rust_compute_range): Likewise.
1587 (rust_subscript): Likewise.
1589 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
1591 * infrun.c (displaced_step_in_progress_thread): Fix comment.
1592 (displaced_step_in_progress): Fix comment.
1594 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1596 * gdbarch.sh (make_corefile_notes): Return unique pointer.
1597 * gdbarch.c: Re-generate.
1598 * gdbarch.h: Re-generate.
1599 * gcore.c (write_gcore_file_1): Adjust.
1600 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
1602 <note_data>: Change type to unique pointer.
1603 <abort_iteration>: Change type to bool.
1604 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
1605 (fbsd_collect_thread_registers): Return void, adjust.
1606 (struct fbsd_corefile_thread_data): Add construtor.
1607 <note_data>: Change type to unique pointer.
1608 (fbsd_corefile_thread): Adjust.
1609 (fbsd_make_corefile_notes): Return unique pointer, adjust.
1610 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
1611 to unique pointer, adjust.
1612 (struct linux_collect_regset_section_cb_data): Add constructor.
1613 <note_data>: Change type to unique pointer.
1614 <abort_iteration>: Change type to bool.
1615 (linux_collect_thread_registers): Return void, adjust.
1616 (struct linux_corefile_thread_data): Add constructor.
1617 <note_data>: Change type to unique pointer.
1618 (linux_corefile_thread): Adjust.
1619 (linux_make_corefile_notes): Return unique pointer, adjust.
1621 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1623 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
1624 * gdbarch.c: Re-generate.
1625 * gdbarch.h: Re-generate.
1626 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
1628 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1630 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
1631 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
1632 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
1633 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
1635 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1637 * gdbarch.sh: Make generated predicates return bool.
1638 * gdbarch.c: Re-generate.
1639 * gdbarch.h: Re-generate.
1641 2020-10-20 Tom Tromey <tom@tromey.com>
1643 * varobj-iter.h (struct varobj_item): Remove typedef.
1645 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1647 * infrun.c (currently_stepping): Change int to bool
1648 (maybe_software_singlestep): Likewise.
1649 (show_stop_on_solib_events): Likewise.
1650 (stepping_past_nonsteppable_watchpoint): Likewise.
1651 (displaced_step_in_progress_any_inferior): Likewise.
1652 (displaced_step_in_progress_thread): Likewise.
1653 (keep_going_stepped_thread): Likewise.
1654 (thread_still_needs_step_over): Likewise.
1655 (start_step_over): Likewise.
1656 (do_target_resume): Likewise.
1657 (resume_1): Likewise.
1658 (clear_proceed_status): Likewise.
1659 (thread_still_needs_step_over_bp): Likewise.
1660 (proceed): Likewise.
1661 (switch_back_to_stepped_thread): Likewise.
1662 (adjust_pc_after_break): Likewise.
1663 (stepped_in_from): Likewise.
1664 (handle_stop_requested): Likewise.
1665 (handle_syscall_event): Likewise.
1666 (handle_no_resumed): Likewise.
1667 (handle_inferior_event): Likewise.
1668 (finish_step_over): Likewise.
1669 (handle_signal_stop): Likewise.
1670 (process_event_stop_test): Likewise.
1672 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1674 * infrun.c (get_displaced_stepping_state): Fix comment.
1676 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
1678 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
1680 2020-10-19 Tom Tromey <tromey@adacore.com>
1683 * tui/tui-winsource.h (struct tui_source_window_base)
1684 <refresh_window>: Rename from refresh_pad.
1685 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
1686 Rename from refresh_pad.
1687 (tui_source_window_base::show_source_content)
1688 (tui_source_window_base::do_scroll_horizontal): Update.
1690 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1692 * thread.c (_initialize_thread): Fine-tune the help text of
1695 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1697 * frame.c: Remove the unused 'uinteger_option_def' type alias.
1699 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
1701 * breakpoint.c (handle_jit_event): Add an argument, change how
1702 `jit_event_handler` is called.
1704 2020-10-17 Tom Tromey <tom@tromey.com>
1706 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
1707 (scan_xcoff_symtab): Update.
1708 * psymtab.h (class psymtab_storage) <global_psymbols,
1709 static_psymbols, current_global_psymbols,
1710 current_static_psymbols>: Remove.
1711 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
1712 (match_partial_symbol, lookup_partial_symbol): Update.
1713 (print_partial_symbols): Change parameters.
1714 (dump_psymtab, recursively_search_psymtabs)
1715 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
1716 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
1718 (end_psymtab_common): Simplify.
1719 (append_psymbol_to_list): Change parameters.
1720 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
1721 (init_psymbol_list): Simplify.
1722 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
1723 * psympriv.h (struct partial_symtab) <empty>: New method.
1724 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
1726 <global_psymbols, static_psymbols>: New members.
1727 <add_psymbol>: New methods.
1728 (add_psymbol_to_list): Don't declare.
1729 (psymbol_placement): Move earlier.
1730 * mdebugread.c (parse_partial_symbols): Update.
1731 (handle_psymbol_enumerators): Change parameters.
1732 (mdebug_expand_psymtab): Update.
1733 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1734 (add_partial_symbol): Update.
1735 * dwarf2/index-write.c (write_psymbols): Change parameters.
1736 (write_one_signatured_type): Update.
1737 (recursively_count_psymbols): Update.
1738 (recursively_write_psymbols): Update.
1739 (class debug_names) <recursively_write_psymbols>: Update.
1740 <write_psymbols>: Change parameters.
1741 <write_one_signatured_type>: Update.
1742 * dbxread.c (read_dbx_symtab): Update.
1743 (dbx_end_psymtab): Use partial_symtab::empty.
1744 * ctfread.c (struct ctf_context) <pst>: New member.
1745 (create_partial_symtab): Set it.
1746 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
1747 (scan_partial_symbols): Use the psymtab's context. Update.
1749 2020-10-17 Tom Tromey <tom@tromey.com>
1751 * valprint.c (generic_value_print): Remove comment.
1752 * m2-valprint.c (m2_value_print_inner): Remove comment.
1753 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
1756 2020-10-17 Tom de Vries <tdevries@suse.de>
1759 * source.c (select_source_symtab): Handling sal.symtab == NULL for
1762 2020-10-14 Tom de Vries <tdevries@suse.de>
1765 * solib.c (solib_contains_address_p): Handle
1766 'solib->sections == nullptr'.
1768 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1771 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
1772 target can't do async.
1773 * target.c (target_wait): Assert that we don't pass
1774 TARGET_WNOHANG to a target that can't async.
1776 2020-10-13 Kamil Rytarowski <n54@gmx.com>
1778 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
1779 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
1780 * alpha-bsd-nat.c: Adjust include.
1781 * alpha-bsd-tdep.h: Adjust comment.
1782 * alpha-nbsd-tdep.c: Rename to ...
1783 * alpha-netbsd-tdep.c: ... this, adjust include.
1784 * amd64-nbsd-nat.c: Rename to ...
1785 * amd64-netbsd-nat.c: ... this, adjust include.
1786 * amd64-nbsd-tdep.c: Rename to ...
1787 * amd64-netbsd-tdep.c: ... this, adjust include.
1788 * amd64-tdep.h: Adjust include.
1789 * arm-nbsd-nat.c: Rename to ...
1790 * arm-netbsd-nat.c: ... this, adjust include.
1791 * arm-nbsd-tdep.c: Rename to ...
1792 * arm-netbsd-tdep.c: ... this, adjust include.
1793 * arm-nbsd-tdep.h: Rename to ...
1794 * arm-netbsd-tdep.h: ... this, adjust include.
1795 * configure.nat: Adjust file lists.
1796 * configure.tgt: Likewise.
1797 * hppa-nbsd-nat.c: Rename to ...
1798 * hppa-netbsd-nat.c: ... this, adjust include.
1799 * hppa-nbsd-tdep.c: Rename to ...
1800 * hppa-netbsd-tdep.c: ... this, adjust include.
1801 * i386-nbsd-nat.c: Rename to ...
1802 * i386-netbsd-nat.c: ... this, adjust include.
1803 * i386-nbsd-tdep.c: Rename to ...
1804 * i386-netbsd-tdep.c: ... this, adjust include.
1805 * m68k-bsd-nat.c: Adjust include.
1806 * mips-nbsd-nat.c: Rename to ...
1807 * mips-netbsd-nat.c: ... this, adjust include.
1808 * mips-nbsd-tdep.c: Rename to ...
1809 * mips-netbsd-tdep.c: ... this, adjust include.
1810 * mips-nbsd-tdep.h: Rename to ...
1811 * mips-netbsd-tdep.h: ... this.
1812 * nbsd-nat.c: Rename to ...
1813 * netbsd-nat.c: ... this, adjust include.
1814 * nbsd-nat.h: Rename to ...
1815 * netbsd-nat.h: ... this, adjust include.
1816 * nbsd-tdep.c: Rename to ...
1817 * netbsd-tdep.c: ... this, adjust include.
1818 * nbsd-tdep.h: Rename to ...
1819 * netbsd-tdep.h: ... this.
1820 * ppc-nbsd-nat.c: Rename to ...
1821 * ppc-netbsd-nat.c: ... this, adjust include.
1822 * ppc-nbsd-tdep.c: Rename to ...
1823 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
1824 * ppc-nbsd-tdep.h: Rename to ...
1825 * ppc-netbsd-tdep.h: ... this.
1826 * sh-nbsd-nat.c: Rename to ...
1827 * sh-netbsd-nat.c: ... this, adjust include.
1828 * sh-nbsd-tdep.c: Rename to ...
1829 * sh-netbsd-tdep.c: ... this, adjust include.
1830 * sparc-nbsd-nat.c: Rename to ...
1831 * sparc-netbsd-nat.c: ... this.
1832 * sparc-nbsd-tdep.c: Rename to ...
1833 * sparc-netbsd-tdep.c: ... this, adjust include.
1834 * sparc64-nbsd-nat.c: Rename to ...
1835 * sparc64-netbsd-nat.c: ... this.
1836 * sparc64-nbsd-tdep.c: Rename to ...
1837 * sparc64-netbsd-tdep.c: ... this, adjust include.
1838 * sparc64-tdep.h: Adjust comment.
1839 * vax-bsd-nat.c: Adjust include.
1840 * vax-nbsd-tdep.c: Rename to ...
1841 * vax-netbsd-tdep.c: ... this, adjust include.
1843 2020-10-12 Tom Tromey <tom@tromey.com>
1845 * target.h (struct target_ops) <get_section_table>: Update.
1846 (target_get_section_table): Update.
1847 * target.c (target_get_section_table, target_section_by_addr)
1848 (memory_xfer_partial_1): Update.
1849 * target-section.h (target_section_table): Now an alias.
1850 * target-delegates.c: Rebuild.
1851 * target-debug.h (target_debug_print_target_section_table_p):
1852 Rename from target_debug_print_struct_target_section_table_p.
1853 * symfile.c (build_section_addr_info_from_section_table): Update.
1854 * solib.c (solib_map_sections, solib_contains_address_p): Update.
1855 * solib-svr4.c (scan_dyntag): Update.
1856 * solib-dsbt.c (scan_dyntag): Update.
1857 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1859 * record-full.c (record_full_core_target::xfer_partial): Update.
1860 * progspace.h (struct program_space) <target_sections>: Update.
1861 * exec.h (print_section_info): Update.
1862 * exec.c (exec_target::close, build_section_table)
1863 (add_target_sections, add_target_sections_of_objfile)
1864 (remove_target_sections, exec_on_vfork)
1865 (section_table_available_memory)
1866 (section_table_xfer_memory_partial)
1867 (exec_target::get_section_table, exec_target::xfer_partial)
1868 (print_section_info, set_section_command)
1869 (exec_set_section_address, exec_target::has_memory): Update.
1870 * corelow.c (core_target::build_file_mappings)
1871 (core_target::xfer_partial, core_target::info_proc_mappings)
1872 (core_target::info_proc_mappings): Update.
1873 * bfd-target.c (class target_bfd): Update
1875 2020-10-12 Tom Tromey <tom@tromey.com>
1877 * progspace.c (program_space::~program_space): Don't call
1878 clear_section_table.
1879 * exec.h (clear_section_table): Don't declare.
1880 * exec.c (exec_target::close): Update.
1881 (clear_section_table): Remove.
1883 2020-10-12 Tom Tromey <tom@tromey.com>
1885 * exec.c (add_target_sections_of_objfile): Simplify.
1887 2020-10-12 Tom Tromey <tom@tromey.com>
1889 * solib.c (solib_map_sections): Update.
1890 * record-full.c (record_full_core_open_1): Update.
1891 * exec.h (build_section_table): Return a target_section_table.
1892 * exec.c (exec_file_attach): Update.
1893 (build_section_table): Return a target_section_table.
1894 * corelow.c (core_target::core_target): Update.
1895 * bfd-target.c (target_bfd::target_bfd): Update.
1897 2020-10-12 Tom Tromey <tom@tromey.com>
1899 * target.c (target_section_by_addr, memory_xfer_partial_1):
1901 * target-section.h (struct target_section_table): Use
1903 * symfile.h (build_section_addr_info_from_section_table): Take a
1904 target_section_table.
1905 * symfile.c (build_section_addr_info_from_section_table): Take a
1906 target_section_table.
1907 * solist.h (struct so_list) <sections>: Change type.
1908 <sections_end>: Remove.
1909 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
1910 (solib_contains_address_p): Update.
1911 * solib-svr4.c (scan_dyntag): Update.
1912 * solib-dsbt.c (scan_dyntag): Update.
1913 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1915 * record-full.c (record_full_core_start, record_full_core_end):
1917 (record_full_core_sections): New global.
1918 (record_full_core_open_1, record_full_core_target::xfer_partial):
1920 * exec.h (build_section_table, section_table_xfer_memory_partial)
1921 (add_target_sections): Take a target_section_table.
1922 * exec.c (exec_file_attach, clear_section_table): Update.
1923 (resize_section_table): Remove.
1924 (build_section_table, add_target_sections): Take a
1925 target_section_table.
1926 (add_target_sections_of_objfile, remove_target_sections)
1927 (exec_on_vfork): Update.
1928 (section_table_available_memory): Take a target_section_table.
1929 (section_table_read_available_memory): Update.
1930 (section_table_xfer_memory_partial): Take a target_section_table.
1931 (print_section_info, set_section_command)
1932 (exec_set_section_address, exec_target::has_memory): Update.
1933 * corelow.c (class core_target) <m_core_section_table,
1934 m_core_file_mappings>: Remove braces.
1935 <~core_target>: Remove.
1936 (core_target::core_target): Update.
1937 (core_target::~core_target): Remove.
1938 (core_target::build_file_mappings)
1939 (core_target::xfer_memory_via_mappings)
1940 (core_target::xfer_partial, core_target::info_proc_mappings):
1942 * bfd-target.c (target_bfd::xfer_partial): Update.
1943 (target_bfd::target_bfd): Update.
1944 (target_bfd::~target_bfd): Remove.
1946 2020-10-12 Tom Tromey <tom@tromey.com>
1948 * target.h (struct target_section, struct target_section_table):
1949 Move to target-section.h.
1950 * target-section.h: New file.
1952 2020-10-12 Pedro Alves <pedro@palves.net>
1955 * valops.c (struct struct_field_searcher): New.
1956 (update_search_result): Rename to ...
1957 (struct_field_searcher::update_result): ... this. Simplify
1958 prototype. Record all found fields.
1959 (do_search_struct_field): Rename to ...
1960 (struct_field_searcher::search): ... this. Simplify prototype.
1961 Maintain stack of visited baseclass path. Call update_result for
1962 fields too. Keep searching fields in baseclasses instead of
1963 stopping at the first found field.
1964 (search_struct_field): Use struct_field_searcher. When looking
1965 for fields, report ambiguous access attempts.
1967 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
1969 * frame.c (inside_main_func): Check full symbols as well as
1972 2020-10-09 Joel Brobecker <brobecker@adacore.com>
1974 * ada-lang.c (advance_wild_match): Rewrite the function's
1975 description. Change the type of target0, t0 and t1 to char.
1977 2020-10-09 Tom Tromey <tromey@adacore.com>
1979 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
1981 2020-10-09 Tom Tromey <tromey@adacore.com>
1983 * ada-lang.h (ada_encode): Return std::string.
1984 * ada-lang.c (ada_encode_1): Return std::string.
1985 (ada_encode): Likewise.
1986 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
1988 * ada-exp.y (block_lookup, write_var_or_type): Update.
1990 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
1993 * printcmd.c (print_formatted): Handle void results as
1996 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1998 * arch/aarch32.c (aarch32_create_target_description): Release the
1999 target_desc_up as late as possible.
2000 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2001 * arch/amd64.c (amd64_create_target_description): Likewise.
2002 * arch/arc.c (arc_create_target_description): Return a
2003 target_desc_up, don't release it.
2004 * arch/arc.h (arc_create_target_description): Update declaration.
2005 (arc_lookup_target_description): Move target_desc_up into the
2006 cache, and return a borrowed pointer.
2007 * arch/arm.c (arm_create_target_description): Release the
2008 target_desc_up as late as possible.
2009 * arch/i386.c (i386_create_target_description): Likewise.
2010 * arch/riscv.h (riscv_create_target_description): Update
2011 declaration to match definition.
2012 * arch/tic6x.c (tic6x_create_target_description): Release the
2013 target_desc_up as late as possible.
2015 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2017 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
2018 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
2020 2020-10-09 Jan Vrany <jan.vrany@labware.com>
2022 * source.c (directory_command): Notify observers that "directories"
2023 parameter has changed.
2025 2020-10-08 Tom Tromey <tom@tromey.com>
2027 * cli/cli-cmds.c (print_disassembly): Style function name and
2028 addresses. Add _() wrappers.
2030 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
2032 * NEWS: Mention ARC support in GDBserver.
2034 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
2036 * arch/aarch32.c (aarch32_create_target_description): Release
2037 unique_ptr returned from allocate_target_description.
2038 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2039 * arch/amd64.c (amd64_create_target_description): Likewise.
2040 * arch/arc.c (arc_create_target_description): Likewise.
2041 * arch/arm.c (arm_create_target_description): Likewise.
2042 * arch/i386.c (i386_create_target_description): Likewise.
2043 * arch/riscv.c (riscv_create_target_description): Update return
2044 type. Handle allocate_target_description returning a unique_ptr.
2045 (riscv_lookup_target_description): Update to handle unique_ptr.
2046 * arch/tic6x.c (tic6x_create_target_description): Release
2047 unique_ptr returned from allocate_target_description.
2048 * features/microblaze-with-stack-protect.c: Regenerate.
2049 * features/microblaze.c: Regenerate.
2050 * features/mips-dsp-linux.c: Regenerate.
2051 * features/mips-linux.c: Regenerate.
2052 * features/mips64-dsp-linux.c: Regenerate.
2053 * features/mips64-linux.c: Regenerate.
2054 * features/nds32.c: Regenerate.
2055 * features/nios2.c: Regenerate.
2056 * features/or1k.c: Regenerate.
2057 * features/rs6000/powerpc-32.c: Regenerate.
2058 * features/rs6000/powerpc-32l.c: Regenerate.
2059 * features/rs6000/powerpc-403.c: Regenerate.
2060 * features/rs6000/powerpc-403gc.c: Regenerate.
2061 * features/rs6000/powerpc-405.c: Regenerate.
2062 * features/rs6000/powerpc-505.c: Regenerate.
2063 * features/rs6000/powerpc-601.c: Regenerate.
2064 * features/rs6000/powerpc-602.c: Regenerate.
2065 * features/rs6000/powerpc-603.c: Regenerate.
2066 * features/rs6000/powerpc-604.c: Regenerate.
2067 * features/rs6000/powerpc-64.c: Regenerate.
2068 * features/rs6000/powerpc-64l.c: Regenerate.
2069 * features/rs6000/powerpc-7400.c: Regenerate.
2070 * features/rs6000/powerpc-750.c: Regenerate.
2071 * features/rs6000/powerpc-860.c: Regenerate.
2072 * features/rs6000/powerpc-altivec32.c: Regenerate.
2073 * features/rs6000/powerpc-altivec32l.c: Regenerate.
2074 * features/rs6000/powerpc-altivec64.c: Regenerate.
2075 * features/rs6000/powerpc-altivec64l.c: Regenerate.
2076 * features/rs6000/powerpc-e500.c: Regenerate.
2077 * features/rs6000/powerpc-e500l.c: Regenerate.
2078 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
2079 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
2080 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
2081 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
2082 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
2083 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
2084 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
2085 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
2086 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
2087 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
2088 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
2089 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
2090 * features/rs6000/powerpc-vsx32.c: Regenerate.
2091 * features/rs6000/powerpc-vsx32l.c: Regenerate.
2092 * features/rs6000/powerpc-vsx64.c: Regenerate.
2093 * features/rs6000/powerpc-vsx64l.c: Regenerate.
2094 * features/rs6000/rs6000.c: Regenerate.
2095 * features/rx.c: Regenerate.
2096 * features/s390-gs-linux64.c: Regenerate.
2097 * features/s390-linux32.c: Regenerate.
2098 * features/s390-linux32v1.c: Regenerate.
2099 * features/s390-linux32v2.c: Regenerate.
2100 * features/s390-linux64.c: Regenerate.
2101 * features/s390-linux64v1.c: Regenerate.
2102 * features/s390-linux64v2.c: Regenerate.
2103 * features/s390-te-linux64.c: Regenerate.
2104 * features/s390-tevx-linux64.c: Regenerate.
2105 * features/s390-vx-linux64.c: Regenerate.
2106 * features/s390x-gs-linux64.c: Regenerate.
2107 * features/s390x-linux64.c: Regenerate.
2108 * features/s390x-linux64v1.c: Regenerate.
2109 * features/s390x-linux64v2.c: Regenerate.
2110 * features/s390x-te-linux64.c: Regenerate.
2111 * features/s390x-tevx-linux64.c: Regenerate.
2112 * features/s390x-vx-linux64.c: Regenerate.
2113 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
2114 from allocate_target_description.
2115 * target-descriptions.c (allocate_target_description): Update
2117 (print_c_tdesc::visit_pre): Release unique_ptr returned from
2118 allocate_target_description.
2120 2020-10-07 Tom Tromey <tromey@adacore.com>
2122 * unittests/search-memory-selftests.c: New file.
2123 * Makefile.in (SELFTESTS_SRCS): Add
2124 unittests/search-memory-selftests.c.
2126 2020-10-07 Tom Tromey <tromey@adacore.com>
2129 * findcmd.c (_initialize_mem_search): Mention that the range is
2132 2020-10-07 Tom Tromey <tromey@adacore.com>
2134 * target.h (simple_search_memory): Don't declare.
2135 * target.c (simple_search_memory): Move to gdbsupport.
2136 (default_search_memory): Update.
2137 * remote.c (remote_target::search_memory): Update.
2139 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
2141 * Makefile.in (COMPILE): Add CXXFLAGS.
2142 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
2143 (check-headers): Add CXXFLAGS.
2145 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
2147 * arc-linux-tdep.h: New file.
2148 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
2149 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
2150 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
2151 arc_linux_gregset, arc_linux_v2_regset,
2152 arc_linux_iterate_over_regset_sections,
2153 arc_linux_core_read_description): Implement.
2154 (arc_linux_init_osabi): Set iterate_over_regset_sections.
2155 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
2156 (arc_gdbarch_features_create): Add.
2157 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
2159 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
2161 * arch/arc.h: Rename "arc_gdbarch_features" to
2162 "arc_arch_features".
2163 * arc-tdep.h: Likewise.
2164 * arc-tdep.c: Likewise.
2166 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2168 * infcmd.c (attach_command): Remove the redundant call to
2169 `clear_proceed_status`.
2171 2020-10-07 Kamil Rytarowski <n54@gmx.com>
2173 * nat/netbsd-nat.c (write_memory, read_memory): Update.
2175 2020-10-07 Kamil Rytarowski <n54@gmx.com>
2177 * nat/netbsd-nat.c (write_memory, read_memory): Add.
2178 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
2179 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
2181 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
2183 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
2184 (_initialize_break_catch_sig): Don't allocate array.
2186 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
2188 * symtab.c (find_pc_line): Return unmapped addresses when the
2189 requested address is also unmapped.
2191 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
2193 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
2196 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
2198 * amd64-windows-tdep.c (amd64_windows_return_value): Use
2199 type::is_vector instead of TYPE_VECTOR.
2201 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
2203 * auto-load.c (auto_load_objfile_script_1): Don't use
2204 debugfile_holder as temporary variable when stripping drive
2207 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
2209 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
2210 Add TYPE_CODE_COMPLEX.
2211 (amd64_windows_return_value): Fix types returned via XMM0.
2213 2020-10-05 Alan Hayward <alan.hayward@arm.com>
2215 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
2216 AArch64/ARM maintainers.
2218 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
2220 * NEWS: Mention set/show debug event-loop.
2222 2020-10-02 Tom Tromey <tromey@adacore.com>
2224 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
2227 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
2229 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
2230 * procfs.c (procfs_inferior_created): Remove.
2231 (_initialize_procfs): Don't register procfs_inferior_created.
2233 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2235 * async-event.c (invoke_async_signal_handlers): Add debug
2237 (check_async_event_handlers): Likewise.
2238 * event-top.c (show_debug_event_loop): New function.
2239 (_initialize_event_top): Register "set debug event-loop"
2242 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2244 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
2246 * infrun.c: Include gdbsupport/common-debug.h.
2247 * linux-nat.c: Likewise.
2249 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2251 * async-event.h (create_async_signal_handler): Add name
2253 (create_async_event_handler): Likewise.
2254 * async-event.c (struct async_signal_handler) <name>: New field.
2255 (struct async_event_handler) <name>: New field.
2256 (create_async_signal_handler): Assign name.
2257 (create_async_event_handler): Assign name.
2258 * event-top.c (async_init_signals): Pass name when creating
2260 * infrun.c (_initialize_infrun): Likewise.
2261 * record-btrace.c (record_btrace_push_target): Likewise.
2262 * record-full.c (record_full_open): Likewise.
2263 * remote-notif.c (remote_notif_state_allocate): Likewise.
2264 * remote.c (remote_target::open_1): Likewise.
2265 * tui/tui-win.c (tui_initialize_win): Likewise.
2267 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2269 * async-event.c (initialize_async_signal_handlers): Pass name to
2271 * event-top.c (ui_register_input_event_handler): Likewise.
2272 * linux-nat.c (linux_nat_target::async): Likewise.
2273 * run-on-main-thread.c (_initialize_run_on_main_thread):
2275 * ser-base.c (reschedule): Likewise.
2276 (ser_base_async): Likewise.
2277 * tui/tui-io.c: Likewise.
2278 * top.h (struct ui) <num>: New field.
2279 * top.c (highest_ui_num): New variable.
2280 (ui::ui): Initialize num.
2282 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2284 * observable.h <inferior_created>: Remove parameters. Update all
2286 * inferior.h (post_create_inferior): Remove target parameter.
2289 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
2291 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
2292 and DW_MACRO_undef_strx.
2293 (dwarf_decode_macros): Likewise
2294 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
2295 which is the value of DW_AT_str_offsets_base.
2296 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
2299 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2301 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
2303 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2305 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
2306 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
2308 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2310 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
2312 2020-09-30 Tom de Vries <tdevries@suse.de>
2315 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
2317 2020-09-30 Tom Tromey <tromey@adacore.com>
2319 * dwarf2/read.c (handle_variant): Use constant_value.
2321 2020-09-29 Tom Tromey <tom@tromey.com>
2323 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
2324 (read_file_scope, dwarf2_get_pc_bounds)
2325 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
2326 (read_structure_type, handle_struct_member_die)
2327 (read_enumeration_type, read_array_type, read_set_type)
2328 (read_tag_pointer_type, read_tag_reference_type)
2329 (read_subroutine_type, read_base_type, read_subrange_type)
2330 (read_full_die_1, partial_die_info::read)
2331 (partial_die_info::read, by, new_symbol)
2332 (dwarf2_const_value_data, dwarf2_const_value_attr)
2333 (dump_die_shallow, dwarf2_fetch_constant_bytes)
2334 (prepare_one_comp_unit): Update.
2335 * dwarf2/attribute.h (DW_UNSND): Remove.
2337 2020-09-29 Tom Tromey <tom@tromey.com>
2339 * dwarf2/read.c (read_func_scope, prototyped_function_p)
2340 (read_subroutine_type, partial_die_info::read)
2341 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
2342 (dwarf2_add_member_fn): Update.
2343 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
2344 * dwarf2/attribute.c (attribute::as_boolean): New method.
2346 2020-09-29 Tom Tromey <tom@tromey.com>
2348 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
2349 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
2351 * dwarf2/attribute.c (attribute::as_virtuality): New method.
2353 2020-09-29 Tom Tromey <tom@tromey.com>
2355 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
2356 the attribute's form.
2358 2020-09-29 Tom Tromey <tom@tromey.com>
2360 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
2361 (dwarf2_add_member_fn): Update.
2362 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
2363 * dwarf2/attribute.c (attribute::defaulted): New method, from
2364 is_valid_DW_AT_defaulted.
2366 2020-09-29 Tom Tromey <tom@tromey.com>
2368 * dwarf2/read.c (dw2_get_file_names_reader)
2369 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
2370 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
2371 (dwarf2_symbol_mark_computed): Use as_unsigned.
2372 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
2374 <form_is_section_offset>: Update comment.
2376 2020-09-29 Tom Tromey <tom@tromey.com>
2378 * dwarf2/read.c (dwarf2_access_attribute): Rename from
2379 dwarf2_default_access_attribute. Look up attribute.
2380 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
2383 2020-09-29 Tom Tromey <tom@tromey.com>
2385 * dwarf2/read.c (skip_one_die): Update.
2386 (read_full_die_1): Change how reprocessing is done.
2387 (partial_die_info::read): Update.
2388 (read_attribute_value): Remove need_reprocess parameter.
2389 (read_attribute): Likewise.
2390 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
2393 2020-09-29 Tom Tromey <tom@tromey.com>
2395 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
2396 (dwarf2_const_value_attr, dump_die_shallow)
2397 (dwarf2_fetch_constant_bytes): Update.
2398 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
2400 <set_address>: New method.
2402 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
2403 (attribute::as_string, attribute::as_address): Add assert.
2405 2020-09-29 Tom Tromey <tom@tromey.com>
2407 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
2408 (read_attribute_reprocess, read_attribute_value): Update.
2409 (read_attribute): Clear requires_reprocessing.
2410 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
2411 form_requires_reprocessing>: New methods.
2412 <string_init>: Clear requires_reprocessing.
2413 <set_unsigned_reprocess>: New method.
2414 <name>: Shrink by one bit.
2415 <requires_reprocessing>: New member.
2416 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
2419 2020-09-29 Tom Tromey <tom@tromey.com>
2421 * dwarf2/read.c (read_attribute_value): Update.
2422 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
2423 set_unsigned>: New methods.
2424 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
2426 2020-09-29 Tom Tromey <tom@tromey.com>
2428 * dwarf2/read.c (get_alignment, read_array_order)
2429 (read_attribute_value, dwarf2_const_value_attr)
2430 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
2431 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
2435 2020-09-29 Tom Tromey <tom@tromey.com>
2437 * dwarf2/read.c (read_attribute_value, lookup_die_type)
2438 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
2440 * dwarf2/attribute.h (struct attribute) <as_signature,
2441 set_signature>: New methods.
2442 (DW_SIGNATURE): Remove.
2444 2020-09-29 Tom Tromey <tom@tromey.com>
2446 * dwarf2/read.c (read_call_site_scope)
2447 (handle_data_member_location, dwarf2_add_member_fn)
2448 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2449 (partial_die_info::read, read_attribute_value)
2450 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
2451 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
2452 (dwarf2_symbol_mark_computed): Update.
2453 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
2456 * dwarf2/attribute.c (attribute::form_is_block): Add
2459 2020-09-29 Tom Tromey <tom@tromey.com>
2461 * dwarf2/read.c (read_cutu_die_from_dwo)
2462 (read_attribute_reprocess, read_attribute_value, read_attribute)
2463 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
2464 (dwarf2_fetch_constant_bytes): Update.
2465 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
2466 <set_string_noncanonical, set_string_canonical>: New methods.
2467 <string_is_canonical>: Update comment.
2468 <canonical_string_p>: Add assert.
2469 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
2470 * dwarf2/attribute.c (attribute::form_is_string): New method.
2471 (attribute::string): Use it.
2473 2020-09-29 Tom Tromey <tom@tromey.com>
2475 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
2476 (dump_die_shallow): Use canonical_string_p.
2477 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
2480 2020-09-29 Tom Tromey <tom@tromey.com>
2482 * dwarf2/read.c (partial_die_info::read)
2483 (dwarf2_const_value_attr, anonymous_struct_prefix, )
2484 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
2485 attribute::as_string.
2487 2020-09-29 Tom Tromey <tom@tromey.com>
2489 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
2491 (attribute::string): Don't use DW_STRING.
2492 (attribute::get_ref_die_offset): Don't use DW_UNSND.
2493 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
2495 2020-09-29 Tom Tromey <tom@tromey.com>
2497 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
2498 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
2499 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
2500 * dwarf2/attribute.h (struct attribute): Rename methods.
2501 * dwarf2/attribute.c (attribute::as_address): Rename from
2503 (attribute::as_string): Rename from value_as_string.
2505 2020-09-29 Tom Tromey <tom@tromey.com>
2507 * dwarf2/read.c (partial_die_info::read) <case
2508 DW_AT_linkage_name>: Use value_as_string.
2509 (dwarf2_string_attr): Use value_as_string.
2510 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
2512 * dwarf2/attribute.c (attribute::value_as_string): New method.
2514 2020-09-29 Pedro Alves <pedro@palves.net>
2516 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
2517 defined before using '#pragma GCC diagnostic' instead of checking
2520 2020-09-28 Tom Tromey <tom@tromey.com>
2522 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
2523 (handle_signal_stop): Update.
2524 * procfs.c (procfs_target::insert_watchpoint): Update.
2525 * target.h (target_have_steppable_watchpoint): Now a function.
2527 2020-09-28 Tom Tromey <tom@tromey.com>
2529 * infrun.c (set_schedlock_func): Update.
2530 * target.h (target_can_lock_scheduler): Now a function.
2532 2020-09-28 Tom Tromey <tom@tromey.com>
2534 * inferior.h (class inferior) <has_execution>: Update.
2535 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2536 * valops.c (find_function_in_inferior)
2537 (value_allocate_space_in_inferior): Update.
2538 * top.c (kill_or_detach): Update.
2539 * target.c (target_preopen, set_target_permissions): Update.
2540 (target_has_execution_current): Remove.
2541 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
2543 * solib.c (update_solib_list, reload_shared_libraries): Update.
2544 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
2545 * solib-dsbt.c (enable_break): Update.
2546 * score-tdep.c (score7_fetch_inst): Update.
2547 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
2549 * remote.c (remote_target::start_remote)
2550 (remote_target::remote_check_symbols, remote_target::open_1)
2551 (remote_target::remote_detach_1, remote_target::verify_memory)
2552 (remote_target::xfer_partial, remote_target::read_description)
2553 (remote_target::get_min_fast_tracepoint_insn_len): Update.
2554 * record-full.c (record_full_open_1): Update.
2555 * record-btrace.c (record_btrace_target_open): Update.
2556 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2557 (value_nsstring): Update.
2558 * linux-thread-db.c (add_thread_db_info)
2559 (thread_db_find_new_threads_silently, check_thread_db_callback)
2560 (try_thread_db_load_1, record_thread): Update.
2561 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
2563 * linux-fork.c (checkpoint_command): Update.
2564 * infrun.c (set_non_stop, set_observer_mode)
2565 (check_multi_target_resumption, for_each_just_stopped_thread)
2566 (maybe_remove_breakpoints, normal_stop)
2567 (class infcall_suspend_state): Update.
2568 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
2569 (info_program_command, attach_command): Update.
2570 * infcall.c (call_function_by_hand_dummy): Update.
2571 * inf-loop.c (inferior_event_handler): Update.
2572 * gcore.c (gcore_command, derive_heap_segment): Update.
2573 * exec.c (exec_file_command): Update.
2574 * eval.c (evaluate_subexp): Update.
2575 * compile/compile.c (compile_to_object): Update.
2576 * cli/cli-dump.c (restore_command): Update.
2577 * breakpoint.c (update_watchpoint)
2578 (update_inserted_breakpoint_locations)
2579 (insert_breakpoint_locations, get_bpstat_thread): Update.
2580 * target.h (target_has_execution): Remove macro.
2581 (target_has_execution_current): Don't declare.
2582 (target_has_execution): Rename from target_has_execution_1. Add
2585 2020-09-28 Tom Tromey <tom@tromey.com>
2587 * mi/mi-main.c (exec_reverse_continue)
2588 (mi_cmd_list_target_features): Update.
2589 * infrun.c (set_exec_direction_func): Update.
2590 * target.c (default_execution_direction): Update.
2591 * reverse.c (exec_reverse_once): Update.
2592 * target.h (target_can_execute_reverse): Now a function.
2594 2020-09-28 Tom Tromey <tom@tromey.com>
2596 * tui/tui-regs.c (tui_get_register)
2597 (tui_data_window::show_registers): Update.
2598 * thread.c (scoped_restore_current_thread::restore)
2599 (scoped_restore_current_thread::scoped_restore_current_thread):
2601 * regcache-dump.c (regcache_print): Update.
2602 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2604 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
2605 * mep-tdep.c (current_me_module, current_options): Update.
2606 * linux-thread-db.c (thread_db_load): Update.
2607 * infcmd.c (registers_info, info_vector_command)
2608 (info_float_command): Update.
2609 * ia64-tdep.c (ia64_frame_prev_register)
2610 (ia64_sigtramp_frame_prev_register): Update.
2611 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
2612 * gcore.c (derive_stack_segment): Update.
2613 * frame.c (get_current_frame, has_stack_frames): Update.
2614 * findvar.c (language_defn::read_var_value): Update.
2615 * arm-tdep.c (arm_pc_is_thumb): Update.
2616 * target.c (target_has_registers): Rename from
2617 target_has_registers_1.
2618 * target.h (target_has_registers): Remove macro.
2619 (target_has_registers): Rename from target_has_registers_1.
2621 2020-09-28 Tom Tromey <tom@tromey.com>
2623 * windows-tdep.c (tlb_make_value): Update.
2624 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2625 * thread.c (scoped_restore_current_thread::restore)
2626 (scoped_restore_current_thread::scoped_restore_current_thread)
2627 (thread_command): Update.
2628 * stack.c (backtrace_command_1, frame_apply_level_command)
2629 (frame_apply_all_command, frame_apply_command): Update.
2630 * infrun.c (siginfo_make_value, restore_infcall_control_state):
2632 * gcore.c (derive_stack_segment): Update.
2633 * frame.c (get_current_frame, has_stack_frames): Update.
2634 * auxv.c (info_auxv_command): Update.
2635 * ada-tasks.c (ada_build_task_list): Update.
2636 * target.c (target_has_stack): Rename from target_has_stack_1.
2637 * target.h (target_has_stack): Remove macro.
2638 (target_has_stack): Rename from target_has_stack_1.
2640 2020-09-28 Tom Tromey <tom@tromey.com>
2642 * target.c (target_has_memory): Rename from target_has_memory_1.
2643 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2644 * thread.c (scoped_restore_current_thread::restore)
2645 (scoped_restore_current_thread::scoped_restore_current_thread):
2647 * frame.c (get_current_frame, has_stack_frames): Update.
2648 * target.h (target_has_memory): Remove macro.
2649 (target_has_memory): Rename from target_has_memory_1.
2651 2020-09-28 Tom Tromey <tom@tromey.com>
2653 * target.c (target_has_all_memory_1): Remove.
2654 * target.h (target_has_all_memory): Remove define.
2655 (target_has_all_memory_1): Don't declare.
2657 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2659 * ser-base.c: Adjust comments formatting.
2661 2020-09-27 Tom Tromey <tom@tromey.com>
2664 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
2666 2020-09-27 Tom Tromey <tom@tromey.com>
2669 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
2671 2020-09-27 Tom Tromey <tom@tromey.com>
2673 * unittests/tui-selftests.c: Update.
2674 * tui/tui-winsource.h (struct tui_source_window_base)
2675 <extra_margin, show_line_number, refresh_pad>: New methods.
2676 <m_max_length, m_pad>: New members.
2677 (tui_copy_source_line): Update.
2678 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
2679 first_col, line_width, ndigits parameters. Add length.
2680 (tui_source_window_base::show_source_line): Write to pad. Line
2682 (tui_source_window_base::refresh_pad): New method.
2683 (tui_source_window_base::show_source_content): Write to pad. Call
2685 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
2687 (tui_source_window_base::update_exec_info): Call
2689 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
2691 <m_digits>: New member.
2692 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
2694 (tui_source_window::show_line_number): New method.
2695 * tui/tui-io.h (tui_puts): Fix comment.
2696 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
2699 2020-09-27 Tom Tromey <tom@tromey.com>
2701 * tui/tui-winsource.c
2702 (tui_source_window_base::set_is_exec_point_at): Don't call
2705 2020-09-27 Tom Tromey <tom@tromey.com>
2707 * python/py-tui.c (class tui_py_window) <refresh_window>: New
2710 <cursor_x, cursor_y>: Remove.
2711 <m_inner_window>: New member.
2712 (tui_py_window::rerender): Create inner window.
2713 (tui_py_window::output): Write to inner window.
2715 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
2718 * cli/cli-script.c (execute_control_commands): don't set
2719 instream to nullptr here as this breaks the from_tty argument
2720 to gdb.execute in Python.
2721 (execute_user_command): set instream to nullptr here instead.
2723 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
2725 * infrun.h (infrun_debug_printf): Fix formatting.
2726 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
2728 2020-09-25 Saagar Jha <saagar@saagarjha.com>
2730 * compile/compile-object-load.h (struct munmap_list): Add
2731 explicitly-defined move constructor.
2733 2020-09-24 Tom Tromey <tromey@adacore.com>
2736 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
2738 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
2739 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
2740 (tui_prev_win): Rewrite.
2742 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
2744 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
2745 in WOW64 processes as SIGINT.
2746 * nat/windows-nat.h: Make wow64_process a shared variable.
2747 * windows-nat.c: Remove static wow64_process variable.
2749 2020-09-23 Tom Tromey <tom@tromey.com>
2752 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
2753 offset and bit size.
2754 * printcmd.c (print_scalar_formatted): Handle zero-length
2756 (print_scalar_formatted): Use bit_size_differs_p.
2757 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
2759 (union type_specific): <int_stuff>: New member.
2760 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
2762 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
2763 TYPE_SPECIFIC_FIELD.
2764 (recursive_dump_type, copy_type_recursive): Update.
2765 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
2766 DW_AT_data_bit_offset.
2768 2020-09-23 Tom Tromey <tom@tromey.com>
2770 * utils.h (class gdb_argv): Add move operators.
2771 <append>: New methods.
2772 * compile/compile.c (build_argc_argv): Remove.
2773 (compile_args_argc): Remove.
2774 (compile_args_argv): Change type.
2775 (set_compile_args): Simplify.
2776 (append_args): Remove.
2777 (filter_args): Remove argcp parameter.
2778 (get_args): Return gdb_argv. Simplify.
2779 (compile_to_object): Update.
2781 2020-09-23 Tom Tromey <tom@tromey.com>
2783 * compile/compile-object-run.c (do_module_cleanup)
2784 <~do_module_cleanup> :Remove.
2785 (do_module_cleanup): Update.
2786 * compile/compile-object-load.h (struct munmap_list): Add move
2787 assignment operator.
2788 <source_file>: Now a std::string.
2789 <munmap_list>: Rename. No longer a pointer.
2790 * compile/compile-object-load.c (struct setup_sections_data): Add
2792 <setup_one_section>: Declare.
2793 <munmap_list>: Move earlier.
2794 <m_bfd>: New member.
2795 <m_last_size, m_last_section_first, m_last_prot,
2796 m_last_max_alignment>: Rename, add initializers where needed.
2797 (setup_sections_data::setup_one_section): Rename from
2798 setup_sections. Update.
2799 (compile_object_load): Update. Don't use bfd_map_over_sections.
2801 2020-09-23 Tom Tromey <tom@tromey.com>
2803 * compile/compile-object-run.c (struct do_module_cleanup): Add
2804 parameters to constructor. Update destructor.
2805 <source_file, scope, scope_data, out_value_type, out_value_addr,
2806 munmap_list_head, objfile_name_string>: Remove.
2807 <module>: New member.
2808 (do_module_cleanup): Update.
2809 (compile_object_run): Update.
2811 2020-09-23 Tom Tromey <tom@tromey.com>
2813 * compile/compile.c (eval_compile_command): Update.
2814 * compile/compile-object-run.h (compile_object_run): Take a
2816 * compile/compile-object-run.c (compile_object_run): Take a
2818 * compile/compile-object-load.h (struct compile_module): Add
2819 constructor, destructor.
2820 (compile_module_up): New typedef.
2821 (compile_object_load): Return compile_object_up.
2822 * compile/compile-object-load.c (compile_object_load): Return
2825 2020-09-23 Tom Tromey <tom@tromey.com>
2827 * compile/compile-object-run.c (struct do_module_cleanup): Add
2828 constructor, destructor.
2829 <objfile_name_string>: Don't use struct hack.
2830 (do_module_cleanup): Use delete.
2831 (compile_object_run): Use new.
2833 2020-09-23 Tom Tromey <tom@tromey.com>
2835 * compile/compile-cplus-types.c
2836 (compile_cplus_convert_struct_or_union): Use std::vector.
2837 (compile_cplus_convert_func): Likewise.
2838 * compile/compile-c-types.c (convert_func): Use std::vector.
2840 2020-09-21 Tom Tromey <tromey@adacore.com>
2842 * sparc-tdep.c (sparc32_skip_prologue): Use
2843 skip_prologue_using_sal.
2845 2020-09-19 Tom Tromey <tom@tromey.com>
2847 * symfile.c (add_section_size_callback): Remove.
2848 (load_one_section): Rename from load_section_callback. Change
2850 (generic_load): Use foreach.
2852 2020-09-19 Tom Tromey <tom@tromey.com>
2854 * exec.c (add_to_section_table): Remove.
2855 (build_section_table): Use foreach.
2857 2020-09-19 Tom Tromey <tom@tromey.com>
2859 * elfread.c (elf_locate_sections): Change parameters.
2860 (elf_symfile_read): Use foreach.
2862 2020-09-19 Tom Tromey <tom@tromey.com>
2864 * cli/cli-dump.c (struct callback_data): Remove.
2865 (restore_one_section): Rename from restore_section_callback.
2867 (restore_binary_file): Change parameters.
2868 (restore_command): Use foreach.
2870 2020-09-19 Tom Tromey <tom@tromey.com>
2872 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
2873 (gcore_copy_callback): Likewise.
2874 (gcore_memory_sections): Use foreach.
2876 2020-09-19 Tom Tromey <tom@tromey.com>
2878 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
2879 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
2881 (generic_elf_osabi_sniffer): Use foreach.
2882 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
2883 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
2885 2020-09-19 Tom Tromey <tom@tromey.com>
2887 * dwarf2/read.c (locate_dwz_sections): Change parameters.
2888 (dwarf2_get_dwz_file): Use foreach.
2889 (dwarf2_locate_dwo_sections): Change parameters.
2890 (open_and_init_dwo_file): Use foreach.
2891 (dwarf2_locate_common_dwp_sections): Change parameters.
2892 (open_and_init_dwp_file): Use foreach.
2894 2020-09-19 Tom Tromey <tom@tromey.com>
2896 * symfile.h: (find_lowest_section): Don't declare.
2897 * symfile.c (find_lowest_section): Now static. Change
2899 (struct place_section_arg): Remove.
2900 (place_section): Change parameters.
2901 (addr_info_make_relative): Use foreach.
2902 (symfile_dummy_outputs): Remove.
2903 (default_symfile_relocate): Use foreach.
2905 2020-09-19 Tom Tromey <tom@tromey.com>
2907 * objfiles.c (add_to_objfile_sections): Rename from
2908 add_to_objfile_sections_full.
2909 (add_to_objfile_sections): Remove.
2910 (build_objfile_section_table): Use foreach.
2912 2020-09-19 Tom Tromey <tom@tromey.com>
2914 * stap-probe.c (get_stap_base_address_1): Remove.
2915 (get_stap_base_address): Use foreach.
2917 2020-09-19 Tom Tromey <tom@tromey.com>
2919 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
2921 (gdb_bfd_close_or_warn): Use foreach.
2923 2020-09-19 Tom Tromey <tom@tromey.com>
2925 * corelow.c (add_to_thread_list): Change parameters.
2926 (core_target_open): Use foreach.
2928 2020-09-19 Tom Tromey <tom@tromey.com>
2930 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
2933 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2935 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
2938 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2940 * eval.c: Remove 'f-lang.h' include.
2941 (value_f90_subarray): Moved to f-lang.c.
2942 (eval_call): Renamed to...
2943 (evaluate_subexp_do_call): ...this, is no longer static, header
2944 comment moved into header file.
2945 (evaluate_funcall): Update call to eval_call.
2946 (skip_undetermined_arglist): Moved to f-lang.c.
2947 (fortran_value_subarray): Likewise.
2948 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2949 moved to evaluate_subexp_f.
2950 (calc_f77_array_dims): Moved to f-lang.c
2951 * expprint.c (print_subexp_funcall): New function.
2952 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2953 moved to print_subexp_f, OP_FUNCALL uses new function.
2954 (dump_subexp_body_funcall): New function.
2955 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
2956 moved to dump_subexp_f, OP_FUNCALL uses new function.
2957 * expression.h (evaluate_subexp_do_call): Declare.
2958 * f-lang.c (value_f90_subarray): Moved from eval.c.
2959 (skip_undetermined_arglist): Likewise.
2960 (calc_f77_array_dims): Likewise.
2961 (fortran_value_subarray): Likewise.
2962 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
2963 (operator_length_f): Likewise.
2964 (print_subexp_f): Likewise.
2965 (dump_subexp_body_f): Likewise.
2966 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
2967 declaration of this operation to here.
2968 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
2969 support moved to operator_length_f.
2970 * parser-defs.h (dump_subexp_body_funcall): Declare.
2971 (print_subexp_funcall): Declare.
2972 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
2973 fortran-operator.def.
2975 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2977 * eval.c (fortran_value_subarray): New function, content is taken
2979 (evaluate_subexp_standard): ...here, in two places. Now arrays
2980 and strings both call the new function.
2981 (calc_f77_array_dims): Add header comment, handle strings.
2983 2020-09-18 Victor Collod <vcollod@nvidia.com>
2986 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
2987 (i386_analyze_prologue): Call i386_skip_endbr.
2989 2020-09-18 Tom Tromey <tromey@adacore.com>
2991 * windows-nat.c (struct windows_nat_target) <wait>: Update.
2992 (windows_nat_target::wait): Update.
2993 * target/wait.h (enum target_wait_flag): New. Use
2994 DEF_ENUM_FLAGS_TYPE.
2995 * target/target.h (target_wait): Change type of options.
2996 * target.h (target_options_to_string, default_target_wait):
2998 (struct target_ops) <wait>: Change type of options.
2999 * target.c (target_wait, default_target_wait, do_option): Change
3001 (target_options_to_string): Likewise.
3002 * target-delegates.c: Rebuild.
3003 * target-debug.h (target_debug_print_target_wait_flags): Rename
3004 from target_debug_print_options.
3005 * sol-thread.c (class sol_thread_target) <wait>: Update.
3006 (sol_thread_target::wait): Update.
3007 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
3008 (rs6000_nat_target::wait): Update.
3009 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
3011 (remote_target::wait_ns, remote_target::wait_as): Change type of
3013 (remote_target::wait): Update.
3014 * remote-sim.c (struct gdbsim_target) <wait>: Update.
3015 (gdbsim_target::wait): Update.
3016 * record-full.c (class record_full_base_target) <wait>: Update.
3017 (record_full_wait_1): Change type of "options".
3018 (record_full_base_target::wait): Update.
3019 * record-btrace.c (class record_btrace_target) <wait>: Update.
3020 (record_btrace_target::wait): Update.
3021 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
3023 (ravenscar_thread_target::wait): Update.
3024 * procfs.c (class procfs_target) <wait>: Update.
3025 (procfs_target::wait): Update.
3026 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
3027 * obsd-nat.c (obsd_nat_target::wait): Update.
3028 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
3029 (nto_procfs_target::wait): Update.
3030 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
3031 * nbsd-nat.c (nbsd_wait): Change type of "options".
3032 (nbsd_nat_target::wait): Update.
3033 * linux-thread-db.c (class thread_db_target) <wait>: Update.
3034 (thread_db_target::wait): Update.
3035 * linux-nat.h (class linux_nat_target) <wait>: Update.
3036 * linux-nat.c (linux_nat_target::wait): Update.
3037 (linux_nat_wait_1): Update.
3038 * infrun.c (do_target_wait_1, do_target_wait): Change type of
3040 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
3041 * inf-ptrace.c (inf_ptrace_target::wait): Update.
3042 * go32-nat.c (struct go32_nat_target) <wait>: Update.
3043 (go32_nat_target::wait): Update.
3044 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
3045 * gnu-nat.c (gnu_nat_target::wait): Update.
3046 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
3047 * fbsd-nat.c (fbsd_nat_target::wait): Update.
3048 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
3049 * darwin-nat.c (darwin_nat_target::wait): Update.
3050 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
3051 (bsd_uthread_target::wait): Update.
3052 * aix-thread.c (class aix_thread_target) <wait>: Update.
3053 (aix_thread_target::wait): Update.
3055 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
3057 * compile/compile-object-run.c (create_copied_type_recursive): New
3059 (compile_object_run): Use new function.
3061 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
3063 * NEWS: Mention x86_64 Cygwin core file support.
3065 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3067 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
3068 (core_process_module_section): Handle NOTE_INFO_MODULE64.
3070 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3072 * windows-tdep.h: Add prototypes.
3073 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
3074 (i386_windows_core_pid_to_str): Move and rename ...
3075 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
3076 (windows_core_pid_to_str): ... and here.
3077 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
3079 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3080 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
3081 (amd64_windows_init_abi_common): ... and register.
3083 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3085 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
3086 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
3088 2020-09-18 Pedro Alves <pedro@palves.net>
3091 * thread.c (thread_find_command): Switch inferior before calling
3094 2020-09-17 Tom Tromey <tromey@adacore.com>
3096 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
3097 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
3098 (tdesc_arch_data_up): New typedef.
3099 (tdesc_use_registers, tdesc_data_alloc): Update.
3100 (tdesc_data_cleanup): Don't declare.
3101 * target-descriptions.c (tdesc_data_alloc): Return a
3103 (tdesc_arch_data_deleter::operator()): Rename from
3104 tdesc_data_cleanup. Change argument type.
3105 (tdesc_use_registers): Change early_data to an rvalue reference.
3106 (tdesc_use_registers): Don't use delete.
3107 * sparc-tdep.c (sparc32_gdbarch_init): Update.
3108 * s390-tdep.c (s390_gdbarch_init): Update.
3109 * rx-tdep.c (rx_gdbarch_init): Update.
3110 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3111 * riscv-tdep.c (riscv_gdbarch_init): Update.
3112 * or1k-tdep.c (or1k_gdbarch_init): Update.
3113 * nios2-tdep.c (nios2_gdbarch_init): Update.
3114 * nds32-tdep.c (nds32_gdbarch_init): Update.
3115 * mips-tdep.c (mips_gdbarch_init): Update.
3116 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
3117 * m68k-tdep.c (m68k_gdbarch_init): Update.
3118 * i386-tdep.c (i386_gdbarch_init): Update.
3119 * arm-tdep.c (arm_gdbarch_init): Update.
3120 * arc-tdep.c (arc_tdesc_init): Update.
3121 (arc_gdbarch_init): Update.
3122 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
3124 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
3126 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
3127 for WOW64 processes.
3129 2020-09-17 Tom Tromey <tom@tromey.com>
3131 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
3133 2020-09-17 Tom Tromey <tom@tromey.com>
3135 * value.c (preserve_values): Update.
3136 * python/py-type.c (save_objfile_types): Update.
3137 * guile/scm-type.c (save_objfile_types): Update.
3138 * gdbtypes.h (create_copied_types_hash): Return htab_up.
3139 * gdbtypes.c (create_copied_types_hash): Return htab_up.
3140 * compile/compile-object-run.c (compile_object_run): Update.
3142 2020-09-17 Tom Tromey <tom@tromey.com>
3144 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
3146 <m_table>: Now htab_up.
3147 * typeprint.c (typedef_hash_table::recursively_update)
3148 (typedef_hash_table::add_template_parameters)
3149 (typedef_hash_table::typedef_hash_table): Update.
3150 (typedef_hash_table::~typedef_hash_table): Remove.
3151 (typedef_hash_table::typedef_hash_table)
3152 (typedef_hash_table::find_global_typedef)
3153 (typedef_hash_table::find_typedef): Update.
3155 2020-09-17 Tom Tromey <tom@tromey.com>
3157 * target-descriptions.c (tdesc_use_registers): Use htab_up.
3159 2020-09-17 Tom Tromey <tom@tromey.com>
3161 * linespec.c (class decode_compound_collector)
3162 <~decode_compound_collector>: Remove.
3163 <m_unique_syms>: Now htab_up.
3164 (decode_compound_collector::operator ()): Update.
3165 (class symtab_collector) <~symtab_collector>: Remove.
3166 <m_symtab_table>: Now htab_up.
3167 (symtab_collector::operator ()): Update.
3169 2020-09-17 Tom Tromey <tom@tromey.com>
3171 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
3172 (filename_seen_cache::clear): Update.
3173 (~filename_seen_cache): Remove.
3174 (filename_seen_cache::seen): Update.
3175 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
3177 <~filename_seen_cache>: Remove.
3180 2020-09-17 Tom Tromey <tom@tromey.com>
3182 * completer.c (completion_tracker::discard_completions)
3183 (completion_tracker::~completion_tracker)
3184 (completion_tracker::maybe_add_completion)
3185 (completion_tracker::remove_completion)
3186 (completion_tracker::recompute_lowest_common_denominator)
3187 (completion_tracker::build_completion_result): Update.
3188 * completer.h (class completion_tracker) <have_completions>:
3190 <m_entries_hash>: Now htab_up.
3192 2020-09-17 Tom Tromey <tom@tromey.com>
3194 * breakpoint.c (ambiguous_names_p): Use htab_up.
3196 2020-09-17 Tom Tromey <tom@tromey.com>
3198 * auto-load.c (struct auto_load_pspace_info)
3199 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
3200 <loaded_script_files, loaded_script_texts>: Change type to
3202 (~auto_load_pspace_info) Remove.
3203 (init_loaded_scripts_info, maybe_add_script_file)
3204 (maybe_add_script_text, auto_load_info_scripts): Update.
3206 2020-09-17 Tom Tromey <tromey@adacore.com>
3208 * c-exp.y (name_obstack): Now static.
3210 2020-09-17 Chungyi Chi <demonic@csie.io>
3212 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
3214 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
3216 * breakpoint.h (init_catchpoint): Change int parameter to bool.
3217 (add_solib_catchpoint): Likewise.
3218 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
3220 (add_solib_catchpoint): Change int parameter/variable to bool.
3221 (catch_load_or_unload): Likewise.
3222 (init_catchpoint): Likewise.
3223 (create_fork_vfork_event_catchpoint): Likewise.
3224 (catch_fork_command_1): Likewise.
3225 (catch_exec_command_1): Likewise.
3227 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
3229 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
3230 Change instance_flags to m_instance_flags.
3232 2020-09-16 Tom Tromey <tromey@adacore.com>
3235 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
3237 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3239 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
3241 (fbsd_nat_target::insert_exec_catchpoint)
3242 (fbsd_nat_target::remove_exec_catchpoint): Always define.
3243 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
3244 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
3246 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3248 * configure.ac: Remove check for kinfo_getvmmap().
3249 * configure, config.in: Regenerate.
3250 * fbsd-nat.c (fbsd_read_mapping): Remove
3251 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
3252 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
3253 kinfo_get_vmmap() are always present.
3255 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3257 * fbsd-nat.c: Always include support for
3258 TARGET_OBJECT_SIGNAL_INFO.
3260 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3262 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
3263 sysctl and remove procfs fallback.
3265 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3267 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
3268 * fbsd-nat.h: Likewise.
3270 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3272 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
3275 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3277 * ada-lang.c (ada_language_data): Delete.
3278 (ada_language): Remove references to ada_language_data.
3279 * c-lang.c (c_language_data): Delete.
3280 (c_language): Remove references to c_language_data.
3281 (cplus_language_data): Delete.
3282 (cplus_language): Remove references to cplus_language_data.
3283 (asm_language_data): Delete.
3284 (asm_language): Remove references to asm_language_data.
3285 (minimal_language_data): Delete.
3286 (minimal_language): Remove references to minimal_language_data.
3287 * d-lang.c (d_language_data): Delete.
3288 (d_language): Remove references to d_language_data.
3289 * f-lang.c (f_language_data): Delete.
3290 (f_language): Remove references to f_language_data.
3291 * go-lang.c (go_language_data): Delete.
3292 (go_language): Remove references to go_language_data.
3293 * language.c (unknown_language_data): Delete.
3294 (unknown_language): Remove references to unknown_language_data.
3295 (auto_language_data): Delete.
3296 (auto_language): Remove references to auto_language_data.
3297 * language.h (language_data): Delete struct.
3298 (language_defn): No longer inherit from language_data.
3299 * m2-lang.c (m2_language_data): Delete.
3300 (m2_language): Remove references to m2_language_data.
3301 * objc-lang.c (objc_language_data): Delete.
3302 (objc_language): Remove references to objc_language_data.
3303 * opencl-lang.c (opencl_language_data): Delete.
3304 (opencl_language): Remove references to opencl_language_data.
3305 * p-lang.c (pascal_language_data): Delete.
3306 (pascal_language): Remove references to pascal_language_data.
3307 * rust-lang.c (rust_language_data): Delete.
3308 (rust_language): Remove references to rust_language_data.
3310 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3312 * ada-lang.c (ada_language_data): Remove la_op_print_tab
3314 (ada_language::opcode_print_table): New member function.
3315 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
3316 (c_language::opcode_print_table): New member function.
3317 (cplus_language_data): Remove la_op_print_tab initializer.
3318 (cplus_language::opcode_print_table): New member function.
3319 (asm_language_data): Remove la_op_print_tab initializer.
3320 (asm_language::opcode_print_table): New member function.
3321 (minimal_language_data): Remove la_op_print_tab initializer.
3322 (minimal_language::opcode_print_table): New member function.
3323 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
3324 (d_language::opcode_print_table): New member function.
3325 * expprint.c (print_subexp_standard): Update call to
3327 (op_string): Likewise.
3328 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
3329 (f_language::opcode_print_table): New member function.
3330 * go-lang.c (go_language_data): Remove la_op_print_tab
3332 (go_language::opcode_print_table): New member function.
3333 * language.c (unknown_language_data): Remove la_op_print_tab
3335 (unknown_language::opcode_print_table): New member function.
3336 (auto_language_data): Remove la_op_print_tab initializer.
3337 (auto_language::opcode_print_table): New member function.
3338 * language.h (language_data): Remove la_op_print_tab field.
3339 (language_defn::opcode_print_table): Declare new member function.
3340 * m2-lang.c (m2_language_data): Remove la_op_print_tab
3342 (m2_language::opcode_print_table): New member function.
3343 * objc-lang.c (objc_language_data): Remove la_op_print_tab
3345 (objc_language::opcode_print_table): New member function.
3346 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
3348 (opencl_language::opcode_print_table): New member function.
3349 * p-lang.c (pascal_language_data): Remove la_op_print_tab
3351 (pascal_language::opcode_print_table): New member function.
3352 * rust-lang.c (rust_language_data): Remove la_op_print_tab
3354 (rust_language::opcode_print_table): New member function.
3356 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3358 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
3359 (ada_language::expression_ops): New member function.
3360 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
3361 (c_language::expression_ops): New member function.
3362 (cplus_language_data): Remove la_exp_desc initializer.
3363 (cplus_language::expression_ops): New member function.
3364 (asm_language_data): Remove la_exp_desc initializer.
3365 (asm_language::expression_ops): New member function.
3366 (minimal_language_data): Remove la_exp_desc initializer.
3367 (minimal_language::expression_ops): New member function.
3368 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
3369 (d_language::expression_ops): New member function.
3370 * eval.c (evaluate_subexp): Update call to expression_ops.
3371 * expprint.c (print_subexp): Likewise.
3372 (op_name): Likewise.
3373 (dump_subexp_body): Likewise.
3374 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
3375 (f_language::expression_ops): New member function.
3376 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
3377 (go_language::expression_ops): New member function.
3378 * language.c (language_defn::expression_ops): New function.
3379 (unknown_language_data): Remove la_exp_desc initializer.
3380 (auto_language_data): Likewise.
3381 * language.h (language_data): Remove la_exp_desc field.
3382 (language_defn::expression_ops): Declare new member function.
3383 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
3384 (m2_language::expression_ops): New member function.
3385 * objc-lang.c (objc_language_data): Remove la_exp_desc
3387 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
3389 (opencl_language::expression_ops): New member function.
3390 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
3391 * parse.c (operator_length): Update call to expression_ops.
3392 (exp_iterate): Likewise.
3393 * rust-lang.c (rust_language_data): Remove la_exp_desc
3395 (ruse_language::expression_ops): New member function.
3397 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3399 * ada-lang.c (ada_language_data): Remove la_varobj_ops
3401 (ada_language::varobj_ops): New member function.
3402 * c-lang.c (c_language_data): Remove la_varobj_ops
3404 (cplus_language_data): Likewise.
3405 (cplus_language::varobj_ops): New member function.
3406 (asm_language_data): Remove la_varobj_ops initializer.
3407 (minimal_language_data): Likewise.
3408 * d-lang.c (d_language_data): Likewise.
3409 * f-lang.c (f_language_data): Likewise.
3410 * go-lang.c (go_language_data): Likewise.
3411 * language.c (language_defn::varobj_ops): New function.
3412 (unknown_language_data): Remove la_varobj_ops
3414 (auto_language_data): Likewise.
3415 * language.h (language_data): Remove la_varobj_ops field.
3416 (language_defn::varobj_ops): Declare new member function.
3417 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
3418 * objc-lang.c (objc_language_data): Likewise.
3419 * opencl-lang.c (opencl_language_data): Likewise.
3420 * p-lang.c (pascal_language_data): Likewise.
3421 * rust-lang.c (rust_language_data): Likewise.
3422 * varobj.c (varobj_create): Update call to varobj_ops.
3423 * varobj.h (default_varobj_ops): Delete define.
3425 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3427 * ada-lang.c (ada_language_data): Remove la_macro_expansion
3429 * c-lang.c (c_language_data): Likewise.
3430 (c_language::macro_expansion): New member function.
3431 (cplus_language_data): Likewise.
3432 (cplus_language::macro_expansion): New member function.
3433 (asm_language_data): Likewise.
3434 (asm_language::macro_expansion): New member function.
3435 (minimal_language_data): Likewise.
3436 (minimal_language::macro_expansion): New member function.
3437 * d-lang.c (d_language_data): Remove la_macro_expansion
3439 * f-lang.c (f_language_data): Likewise.
3440 * go-lang.c (go_language_data): Likewise.
3441 * language.c (unknown_language_data): Likewise.
3442 (auto_language_data): Likewise.
3443 * language.h (language_data): Remove la_macro_expansion field.
3444 (language_defn::macro_expansion): New member function.
3445 * m2-lang.c (m2_language_data): Remove la_macro_expansion
3447 * objc-lang.c (objc_language_data): Likewise.
3448 (objc_language::macro_expansion): New member function.
3449 * opencl-lang.c (opencl_language_data): Likewise.
3450 (opencl_language::macro_expansion): New member function.
3451 * p-lang.c (pascal_language_data): Remove la_macro_expansion
3453 * rust-lang.c (rust_language_data): Likewise.
3454 * symtab.c (default_collect_symbol_completion_matches_break_on):
3455 Update call to macro_expansion.
3457 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3459 * ada-lang.c (ada_language_data): Remove la_array_ordering
3461 * c-lang.c (c_language_data): Likewise.
3462 (cplus_language_data): Likewise.
3463 (asm_language_data): Likewise.
3464 (minimal_language_data): Likewise.
3465 * d-lang.c (d_language_data): Likewise.
3466 * dwarf2/read.c (read_array_order): Update for call to
3468 * f-lang.c (f_language_data): Remove la_array_ordering
3470 (f_language::array_ordering): New member function.
3471 * go-lang.c (go_language_data): Remove la_array_ordering
3473 * language.c (unknown_language_data): Likewise.
3474 (auto_language_data): Likewise.
3475 * language.h (language_data): Delete la_array_ordering field.
3476 (language_defn::array_ordering): New member function.
3477 * m2-lang.c (m2_language_data): Remove la_array_ordering
3479 * objc-lang.c (objc_language_data): Likewise.
3480 * opencl-lang.c (opencl_language_data): Likewise.
3481 * p-lang.c (pascal_language_data): Likewise.
3482 * rust-lang.c (rust_language_data): Likewise.
3484 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3486 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
3488 * c-lang.c (c_language_data): Likewise.
3489 (cplus_language_data): Likewise.
3490 (asm_language_data): Likewise.
3491 (minimal_language_data): Likewise.
3492 * d-lang.c (d_language_data): Likewise.
3493 * f-lang.c (f_language_data): Likewise.
3494 (f_language::case_sensitivity): New member function.
3495 * go-lang.c (go_language_data): Remove la_case_sensitivity
3497 * language.c (enum case_mode): Moved here from language.h.
3498 (case_mode): Make static.
3499 (show_case_command): Update for case_sensitivity being a method.
3500 (set_case_command): Likewise.
3501 (set_range_case): Likewise.
3502 (unknown_language_data): Remove la_case_sensitivity initializer.
3503 (auto_language_data): Likewise.
3504 * language.h (case_mode): Delete, move enum declaration to
3506 (language_data): Delete la_case_sensitivity field.
3507 (language_defn::case_sensitivity): New member function.
3508 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
3510 * objc-lang.c (objc_language_data): Likewise.
3511 * opencl-lang.c (opencl_language_data): Likewise.
3512 * p-lang.c (pascal_language_data): Likewise.
3513 * rust-lang.c (rust_language_data): Likewise.
3515 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3517 * ada-lang.c (ada_language_data): Remove la_range_check
3519 * c-lang.c (c_language_data): Likewise.
3520 (cplus_language_data): Likewise.
3521 (asm_language_data): Likewise.
3522 (minimal_language_data): Likewise.
3523 * d-lang.c (d_language_data): Likewise.
3524 * f-lang.c (f_language_data): Likewise.
3525 (f_language::range_checking_on_by_default): New member function.
3526 * go-lang.c (go_language_data): Remove la_range_check initializer.
3527 * language.c (enum range_mode): Moved here from language.h.
3528 (range_mode): Made static.
3529 (show_range_command): Update to use
3530 range_checking_on_by_default.
3531 (set_range_command): Likewise.
3532 (set_range_case): Likewise.
3533 (unknown_language_data): Remove la_range_check initializer.
3534 (auto_language_data): Likewise.
3535 * language.h (range_mode): Delete. Enum definition moved to
3537 (language_data): Remove la_range_check field.
3538 (language_defn::range_checking_on_by_default): New member
3540 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
3541 (m2_language::range_checking_on_by_default): New member function.
3542 * objc-lang.c (objc_language_data): Remove la_range_check
3544 * opencl-lang.c (opencl_language_data): Likewise.
3545 * p-lang.c (pascal_language_data): Likewise.
3546 (pascal_language::range_checking_on_by_default): New member
3548 * rust-lang.c (rust_language_data): Remove la_range_check
3550 (rust_language::range_checking_on_by_default): New member
3553 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3555 * dwarf2/read.c (dwarf2_physname): Remove special case for
3557 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
3560 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3562 * ada-lang.c (ada_language_data): Remove
3563 la_store_sym_names_in_linkage_form_p initializer.
3564 (ada_language::store_sym_names_in_linkage_form_p): New member
3566 * c-lang.c (c_language_data): Remove
3567 la_store_sym_names_in_linkage_form_p initializer.
3568 (c_language::store_sym_names_in_linkage_form_p): New member
3570 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
3572 (asm_language_data): Likewise.
3573 (asm_language::store_sym_names_in_linkage_form_p): New member
3575 (minimal_language_data): Remove
3576 la_store_sym_names_in_linkage_form_p initializer.
3577 (minimal_language::store_sym_names_in_linkage_form_p): New member
3579 * d-lang.c (d_language_data): Remove
3580 la_store_sym_names_in_linkage_form_p initializer.
3581 * dwarf2/read.c (dwarf2_physname): Update call to
3582 store_sym_names_in_linkage_form_p.
3583 * f-lang.c (f_language_data): Remove
3584 la_store_sym_names_in_linkage_form_p initializer.
3585 * go-lang.c (go_language_data): Remove
3586 la_store_sym_names_in_linkage_form_p initializer.
3587 * language.c (unknown_language_data): Remove
3588 la_store_sym_names_in_linkage_form_p initializer.
3589 (unknown_language::store_sym_names_in_linkage_form_p): New member
3591 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
3593 (auto_language::store_sym_names_in_linkage_form_p): New member
3595 * language.h (language_data): Remove
3596 la_store_sym_names_in_linkage_form_p member variable.
3597 (language_defn::store_sym_names_in_linkage_form_p): New member
3599 * m2-lang.c (m2_language_data): Remove
3600 la_store_sym_names_in_linkage_form_p initializer.
3601 * objc-lang.c (objc_language_data): Likewise.
3602 * opencl-lang.c (opencl_language_data): Likewise.
3603 * p-lang.c (pascal_language_data): Likewise.
3604 * rust-lang.c (rust_language_data): Likewise.
3606 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3608 * ada-lang.c (ada_language_data): Remove string_lower_bound
3610 * c-lang.c (c_language_data): Likewise.
3611 (cplus_language_data): Likewise.
3612 (asm_language_data): Likewise.
3613 (minimal_language_data): Likewise.
3614 * d-lang.c (d_language_data): Likewise.
3615 * f-lang.c (f_language_data): Likewise.
3616 * go-lang.c (go_language_data): Likewise.
3617 * language.c (unknown_language_data): Likewise.
3618 (auto_language_data): Likewise.
3619 * language.h (language_data): Remove string_lower_bound field.
3620 (language_defn::string_lower_bound): New member function.
3621 * m2-lang.c (m2_language_data): Remove string_lower_bound
3623 (m2_language::string_lower_bound): New member function.
3624 * objc-lang.c (objc_language_data): Remove string_lower_bound
3626 * opencl-lang.c (opencl_language_data): Likewise.
3627 * p-lang.c (pascal_language_data): Likewise.
3628 * rust-lang.c (rust_language_data): Likewise.
3629 * valops.c (value_cstring): Update call to string_lower_bound.
3630 (value_string): Likewise.
3631 * value.c (allocate_repeated_value): Likewise.
3633 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3635 * valops.c (value_repeat): Fix incorrect argument name in comment.
3637 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3639 * ada-lang.c (ada_language_data): Remove c_style_arrays
3641 (ada_language::c_style_arrays_p): New member fuction.
3642 * c-lang.c (c_language_data): Remove c_style_arrays
3644 (cplus_language_data): Likewise.
3645 (asm_language_data): Likewise.
3646 (minimal_language_data): Likewise.
3647 * d-lang.c (d_language_data): Likewise.
3648 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
3649 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
3650 (f_language::c_style_arrays_p): New member function.
3651 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
3652 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
3653 * language.c (unknown_language_data): Remove c_style_arrays
3655 (auto_language_data): Likewise.
3656 * language.h (language_data): Remove c_style_arrays field.
3657 (language_defn::c_style_arrays_p): New member function.
3658 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
3659 (m2_language::c_style_arrays_p): New member function.
3660 * objc-lang.c (objc_language_data): Remove c_style_arrays
3662 * opencl-lang.c (opencl_language_data): Likewise.
3663 * p-lang.c (pascal_language_data): Likewise.
3664 * rust-lang.c (rust_language_data): Likewise.
3665 * valarith.c (value_subscript): Update call to c_style_arrays_p,
3666 and update local variable to a bool.
3667 * valops.c (value_cast): Update call to c_style_arrays_p.
3668 (value_array): Likewise.
3669 * value.c (coerce_array): Likewise.
3671 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3673 * ada-lang.c (ada_language_data): Remove la_language initializer.
3674 * c-lang.c (c_language_data): Likewise.
3675 (cplus_language_data): Likewise.
3676 (asm_language_data): Likewise.
3677 (minimal_language_data): Likewise.
3678 * d-lang.c (d_language_data): Likewise.
3679 * f-lang.c (f_language_data): Likewise.
3680 * go-lang.c (go_language_data): Likewise.
3681 * language.c (unknown_language_data): Likewise.
3682 (auto_language_data): Likewise.
3683 * language.h (language_data): Remove la_language field.
3684 (language_defn::language_defn): Initialise la_language field.
3685 (language_defn::la_language): New member variable.
3686 * m2-lang.c (m2_language_data): Remove la_language field.
3687 * objc-lang.c (objc_language_data): Likewise.
3688 * opencl-lang.c (opencl_language_data): Likewise.
3689 * p-lang.c (pascal_language_data): Likewise.
3690 * rust-lang.c (rust_language_data): Likewise.
3692 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3694 * ada-lang.c (ada_extensions): Delete, moved into
3695 ada_language::filename_extensions.
3696 (ada_language_data): Remove la_filename_extensions initializer.
3697 (ada_language::filename_extensions): New member function.
3698 * c-lang.c (c_extensions): Delete, moved into
3699 c_language::filename_extensions.
3700 (c_language_data): Remove la_filename_extensions initializer.
3701 (c_language::filename_extensions): New member function.
3702 (cplus_extensions): Delete, moved into
3703 cplus_language::filename_extensions.
3704 (cplus_language_data): Remove la_filename_extensions initializer.
3705 (cplus_language::filename_extensions): New member function.
3706 (asm_extensions): Delete, moved into
3707 asm_language::filename_extensions.
3708 (asm_language_data): Remove la_filename_extensions initializer.
3709 (asm_language::filename_extensions): New member function.
3710 (minimal_language_data): Remove la_filename_extensions
3712 * d-lang.c (d_extensions): Delete, moved into
3713 d_language::filename_extensions.
3714 (d_language_data): Remove la_filename_extensions initializer.
3715 (d_language::filename_extensions): New member function.
3716 * f-lang.c (f_extensions): Delete, moved into
3717 f_language::filename_extensions.
3718 (f_language_data): Remove la_filename_extensions initializer.
3719 (f_language::filename_extensions): New member function.
3720 * go-lang.c (go_language_data): Remove la_filename_extensions
3722 * language.c (add_set_language_command): Update now that
3723 filename_extensions returns a vector.
3724 (unknown_language_data): Remove la_filename_extensions
3726 (auto_language_data): Likewise.
3727 * language.h (language_data): Remove la_filename_extensions field.
3728 (language_defn::filename_extensions): New member function.
3729 * m2-lang.c (m2_language_data): Remove la_filename_extensions
3731 * objc-lang.c (objc_extensions): Delete, moved into
3732 objc_language::filename_extensions.
3733 (objc_language_data): Remove la_filename_extensions initializer.
3734 (objc_language::filename_extensions): New member function.
3735 * opencl-lang.c (opencl_language_data): Remove
3736 la_filename_extensions initializer.
3737 * p-lang.c (pascal_extensions): Delete, moved into
3738 pascal_language::filename_extensions.
3739 (pascal_language_data): Remove la_filename_extensions initializer.
3740 (pascal_language::filename_extensions): New member function.
3741 * rust-lang.c (rust_extensions): Delete, moved into
3742 rust_language::filename_extensions.
3743 (rust_language_data): Remove la_filename_extensions initializer.
3744 (rust_language::filename_extensions): New member function.
3745 * symfile.c (add_filename_language): Add new assert.
3747 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3749 * ada-lang.c (ada_language_data): Remove la_name and
3750 la_natural_name initializers.
3751 (ada_language::name): New member function.
3752 (ada_language::natural_name): New member function.
3753 * c-lang.c (c_language_data): Remove la_name and
3754 la_natural_name initializers.
3755 (c_language::name): New member function.
3756 (c_language::natural_name): New member function.
3757 (cplus_language_data): Remove la_name and
3758 la_natural_name initializers.
3759 (cplus_language::name): New member function.
3760 (cplus_language::natural_name): New member function.
3761 (asm_language_data): Remove la_name and
3762 la_natural_name initializers.
3763 (asm_language::name): New member function.
3764 (asm_language::natural_name): New member function.
3765 (minimal_language_data): Remove la_name and
3766 la_natural_name initializers.
3767 (minimal_language::name): New member function.
3768 (minimal_language::natural_name): New member function.
3769 * compile/compile.c (compile_to_object): Update call to
3770 lanugage_defn::name.
3771 * d-lang.c (d_language_data): Remove la_name and
3772 la_natural_name initializers.
3773 (d_language::name): New member function.
3774 (d_language::natural_name): New member function.
3775 * expprint.c (print_subexp_standard): Update call to
3776 language_defn::name.
3777 (dump_raw_expression): Likewise
3778 (dump_prefix_expression): Likewise.
3779 * f-lang.c (f_language_data): Remove la_name and
3780 la_natural_name initializers.
3781 (f_language::name): New member function.
3782 (f_language::natural_name): New member function.
3783 * go-lang.c (go_language_data): Remove la_name and
3784 la_natural_name initializers.
3785 (go_language::name): New member function.
3786 (go_language::natural_name): New member function.
3787 * language.c (show_language_command): Update call to
3788 language_defn::name.
3789 (set_language_command): Likewise.
3790 (language_enum): Likewise.
3791 (language_str): Likewise.
3792 (add_set_language_command): Likewise, use
3793 language_defn::natural_name in the doc string.
3794 (unknown_language_data): Remove la_name and
3795 la_natural_name initializers.
3796 (unknown_language::name): New member function.
3797 (unknown_language::natural_name): New member function.
3798 (auto_language_data): Remove la_name and
3799 la_natural_name initializers.
3800 (auto_language::name): New member function.
3801 (auto_language::natural_name): New member function.
3802 (language_lookup_primitive_type_as_symbol): Update call to
3803 language_defn::name.
3804 * language.h (language_data): Remove la_name and la_natural_name
3806 (language_defn::name): New member function.
3807 (language_defn::natural_name): New member function.
3808 * m2-lang.c (m2_language_data): Remove la_name and
3809 la_natural_name initializers.
3810 (m2_language::name): New member function.
3811 (m2_language::natural_name): New member function.
3812 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
3813 language_defn::natural_name.
3814 * objc-lang.c (objc_language_data): Remove la_name and
3815 la_natural_name initializers.
3816 (objc_language::name): New member function.
3817 (objc_language::natural_name): New member function.
3818 * opencl-lang.c (opencl_language_data): Remove la_name and
3819 la_natural_name initializers.
3820 (opencl_language::name): New member function.
3821 (opencl_language::natural_name): New member function.
3822 * p-lang.c (pascal_language_data): Remove la_name and
3823 la_natural_name initializers.
3824 (pascal_language::name): New member function.
3825 (pascal_language::natural_name): New member function.
3826 * rust-lang.c (rust_language_data): Remove la_name and
3827 la_natural_name initializers.
3828 (rust_language::name): New member function.
3829 (rust_language::natural_name): New member function.
3830 * symtab.c (lookup_language_this): Update call to
3831 language_defn::name.
3833 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3835 * ada-lang.c (ada_language_data): Remove la_name_of_this
3837 * ax-gdb.c (gen_expr): Update call to name_of_this.
3838 * c-exp.y (classify_name): Likewise.
3839 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
3840 (cplus_language_data): Likewise.
3841 (cplus_language::name_of_this): New member function.
3842 (asm_language_data): Remove la_name_of_this initializer.
3843 (minimal_language_data): Likewise.
3844 * d-lang.c (d_language_data): Likewise.
3845 (d_language::name_of_this): New member function.
3846 * expprint.c (print_subexp_standard): Update call to name_of_this.
3847 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
3848 * go-lang.c (go_language_data): Likewise.
3849 * language.c (unknown_language_data): Likewise.
3850 (unknown_language::name_of_this): New member function.
3851 (auto_language_data): Remove la_name_of_this initializer.
3852 (auto_language::name_of_this): New member function.
3853 * language.h (language_data): Delete la_name_of_this member
3855 (language_defn::name_of_this): New member function.
3856 * m2-lang.c (m2_language_data): Remove la_name_of_this
3858 * objc-lang.c (objc_language_data): Likewise.
3859 (objc_language::name_of_this): New member function.
3860 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
3862 * p-lang.c (pascal_language_data): Likewise.
3863 (pascal_language::name_of_this): New member function.
3864 * rust-lang.c (rust_language_data): Remove la_name_of_this
3866 * symtab.c (lookup_language_this): Update call to name_of_this.
3867 (lookup_symbol_aux): Likewise.
3868 * valops.c (value_of_this): Likewise.
3870 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3872 * ada-lang.c (ada_language_data): Remove
3873 la_struct_too_deep_ellipsis initializer.
3874 (ada_language::struct_too_deep_ellipsis): New member function.
3875 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
3877 (cplus_language_data): Likewise.
3878 (asm_language_data): Likewise.
3879 (minimal_language_data): Likewise.
3880 * cp-valprint.c (cp_print_value): Update call to
3881 struct_too_deep_ellipsis.
3882 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
3884 * f-lang.c (f_language_data): Likewise.
3885 (f_language::struct_too_deep_ellipsis): New member function.
3886 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
3888 * language.c (unknown_language_data): Likewise.
3889 (auto_language_data): Likewise.
3890 * language.h (language_data): Delete la_struct_too_deep_ellipsis
3892 (language_defn::struct_too_deep_ellipsis): New member function.
3893 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
3895 * objc-lang.c (objc_language_data): Likewise.
3896 * opencl-lang.c (opencl_language_data): Likewise.
3897 * p-lang.c (pascal_language_data): Likewise.
3898 * rust-lang.c (rust_language_data): Likewise.
3899 * valprint.c (val_print_check_max_depth): Update call to
3900 struct_too_deep_ellipsis.
3902 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
3904 * MAINTAINERS (Write After Approval): Add myself.
3906 2020-09-15 Tom Tromey <tom@tromey.com>
3908 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
3911 2020-09-15 Tom Tromey <tom@tromey.com>
3913 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
3914 and TYPE_CODE_METHODPTR cases.
3915 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
3916 (c_value_print_inner): Update.
3917 * valprint.c (generic_value_print_memberptr): New function, from
3918 c_value_print_memberptr.
3919 (generic_value_print): Use it. Call cplus_print_method_ptr.
3921 2020-09-15 Tom Tromey <tromey@adacore.com>
3923 * python/python-internal.h (PyInt_FromLong): Remove define.
3924 * python/py-value.c (convert_value_from_python): Use
3925 gdb_py_object_from_longest.
3926 * python/py-type.c (typy_get_code): Use
3927 gdb_py_object_from_longest.
3928 * python/py-symtab.c (salpy_get_line): Use
3929 gdb_py_object_from_longest.
3930 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
3931 gdb_py_object_from_longest.
3932 * python/py-record.c (recpy_gap_reason_code): Use
3933 gdb_py_object_from_longest.
3934 * python/py-record-btrace.c (recpy_bt_insn_size)
3935 (recpy_bt_func_level, btpy_list_count): Use
3936 gdb_py_object_from_longest.
3937 * python/py-infthread.c (gdbpy_create_ptid_object): Use
3938 gdb_py_object_from_longest. Fix error handling.
3939 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
3940 gdb_py_object_from_longest.
3941 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
3942 gdb_py_object_from_longest.
3943 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
3944 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
3945 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
3947 2020-09-15 Tom Tromey <tromey@adacore.com>
3949 * python/python.c (gdbpy_parameter_value): Use
3950 gdb_py_object_from_ulongest.
3952 2020-09-15 Tom Tromey <tromey@adacore.com>
3954 * python/py-infevents.c (create_register_changed_event_object):
3955 Use gdb_py_object_from_longest.
3956 * python/py-exitedevent.c (create_exited_event_object): Use
3957 gdb_py_object_from_longest.
3959 2020-09-15 Tom Tromey <tromey@adacore.com>
3961 * python/python.c (gdbpy_parameter_value): Use
3962 gdb_py_object_from_longest.
3963 * python/py-type.c (convert_field, typy_range): Use
3964 gdb_py_object_from_longest.
3965 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
3966 gdb_py_object_from_longest.
3967 * python/py-lazy-string.c (stpy_get_length): Use
3968 gdb_py_object_from_longest.
3969 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
3970 gdb_py_object_from_longest.
3971 * python/py-infevents.c (create_memory_changed_event_object): Use
3972 gdb_py_object_from_longest.
3973 * python/py-inferior.c (infpy_get_num): Use
3974 gdb_py_object_from_longest.
3975 (infpy_get_pid): Likewise.
3977 2020-09-15 Tom Tromey <tromey@adacore.com>
3979 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
3981 * python/py-value.c (valpy_long): Use
3982 gdb_py_object_from_ulongest.
3983 * python/py-symtab.c (salpy_get_pc): Use
3984 gdb_py_object_from_ulongest.
3985 (salpy_get_last): Likewise.
3986 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
3987 gdb_py_object_from_ulongest.
3988 * python/py-lazy-string.c (stpy_get_address): Use
3989 gdb_py_object_from_ulongest.
3990 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
3991 * python/py-arch.c (archpy_disassemble): Use
3992 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
3995 2020-09-15 Tom Tromey <tromey@adacore.com>
3997 * python/python-internal.h (gdb_py_long_from_longest): Remove
3999 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
4000 * python/py-type.c (convert_field, typy_get_sizeof): Use
4001 gdb_py_object_from_longest.
4002 * python/py-record-btrace.c (btpy_list_index): Use
4003 gdb_py_object_from_longest.
4005 2020-09-15 Tom Tromey <tromey@adacore.com>
4007 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
4008 * python/py-record.c (recpy_element_number): Use
4009 gdb_py_object_from_longest.
4010 (recpy_gap_number): Likewise.
4012 2020-09-15 Tom Tromey <tromey@adacore.com>
4014 * top.c (ui::ui): Update.
4015 (highest_ui_num): Remove.
4016 * top.h (struct ui) <num>: Remove.
4018 2020-09-15 Tom Tromey <tromey@adacore.com>
4020 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
4021 * ui-style.c (ansi_regex_text): Now array.
4022 * rust-exp.y (number_regex_text): Now array.
4023 * linespec.c (linespec_quote_characters): Now array.
4024 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
4027 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4029 * debuginfod-support.c (debuginfod_client_deleter): New.
4030 (debuginfod_client_up): New.
4031 (debuginfod_init): Return debuginfod_client_up.
4032 (debuginfod_source_query): Adjust.
4033 (debuginfod_debuginfo_query): Adjust.
4035 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4037 * debuginfod-support.c (debuginfod_source_query): Use
4038 make_unique_xstrdup.
4040 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4042 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
4043 with `type::instance_flags`.
4045 2020-09-14 Michael Mullin <masmullin@gmail.com>
4047 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
4048 Remove baton parameter.
4050 2020-09-14 Pedro Alves <pedro@palves.net>
4052 * Makefile.in (SELFTESTS_SRCS): Add
4053 unittests/enum-flags-selftests.c.
4054 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
4055 btrace_function_flags instead of enum btrace_function_flag.
4056 * compile/compile-c-types.c (convert_qualified): Use
4058 * compile/compile-cplus-symbols.c (convert_one_symbol)
4059 (convert_symbol_bmsym):
4060 * compile/compile-cplus-types.c (compile_cplus_convert_method)
4061 (compile_cplus_convert_struct_or_union_methods)
4062 (compile_cplus_instance::convert_qualified_base):
4063 * go-exp.y (parse_string_or_char): Add cast to int.
4064 * unittests/enum-flags-selftests.c: New file.
4065 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
4066 type to btrace_thread_flags from btrace_thread_flag.
4067 (record_btrace_cancel_resume, record_btrace_step_thread): Change
4068 local's type to btrace_thread_flags from btrace_thread_flag. Add
4071 2020-09-14 Pedro Alves <pedro@palves.net>
4073 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
4074 * gdbtypes.c (address_space_name_to_int): Rename to ...
4075 (address_space_name_to_type_instance_flags): ... this.
4076 (address_space_int_to_name): Rename to ...
4077 (address_space_type_instance_flags_to_name): ... this.
4078 * gdbtypes.h (address_space_name_to_int): Rename to ...
4079 (address_space_name_to_type_instance_flags): ... this.
4080 (address_space_int_to_name): Rename to ...
4081 (address_space_type_instance_flags_to_name): ... this.
4082 * type-stack.c (type_stack::insert): Adjust to rename.
4083 * type-stack.h (type_stack::insert): Likewise.
4085 2020-09-14 Pedro Alves <pedro@palves.net>
4086 Andrew Burgess <andrew.burgess@embecosm.com>
4088 * avr-tdep.c (avr_address_class_type_flags): Return
4089 type_instance_flags.
4090 (avr_address_class_type_flags_to_name): Take a
4091 type_instance_flags.
4092 (avr_address_class_name_to_type_flags): Return bool and take a
4093 type_instance_flags.
4094 * d-lang.c (build_d_types): Use type::set_instance_flags.
4095 * ft32-tdep.c (ft32_address_class_type_flags): Return
4096 type_instance_flags.
4097 (ft32_address_class_type_flags_to_name): Take a
4098 type_instance_flags.
4099 (ft32_address_class_name_to_type_flags): Return bool and take a
4100 type_instance_flags.
4101 (ft32_gdbarch_init): Use type::set_instance_flags.
4102 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
4103 * gdbarch.h, gdbarch.c: Regenerate.
4104 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
4105 (address_class_name_to_type_flags): Use type_instance_flags and
4107 * gdbtypes.c (address_space_name_to_int)
4108 (address_space_int_to_name, make_qualified_type): Use
4109 type_instance_flags.
4110 (make_qualified_type): Use type_instance_flags and
4111 type::set_instance_flags.
4112 (make_type_with_address_space, make_cv_type, make_vector_type)
4113 (check_typedef): Use type_instance_flags.
4114 (recursive_dump_type): Cast type_instance_flags to unsigned for
4116 (copy_type_recursive): Use type::set_instance_flags.
4117 (gdbtypes_post_init): Use type::set_instance_flags.
4118 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
4119 <m_instance_flags>: ... this.
4120 <instance_flags, set_instance_flags>: New methods.
4121 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
4122 (SET_TYPE_INSTANCE_FLAGS): New.
4123 (address_space_name_to_int, address_space_int_to_name)
4124 (make_type_with_address_space): Pass flags using
4125 type_instance_flags instead of int.
4126 * stabsread.c (cleanup_undefined_types_noname): Use
4127 type::set_instance_flags.
4128 * s390-tdep.c (s390_address_class_type_flags): Return
4129 type_instance_flags.
4130 (s390_address_class_type_flags_to_name): Take a
4131 type_instance_flags.
4132 (s390_address_class_name_to_type_flags): Return bool and take a
4133 type_instance_flags.
4134 * type-stack.c (type_stack::follow_types): Use
4135 type_instance_flags.
4136 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
4138 2020-09-14 Tom Tromey <tromey@adacore.com>
4140 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
4141 * x86-tdep.c (x86_is_thunk_register_name)
4142 (x86_in_indirect_branch_thunk): Update.
4143 * sparc64-tdep.c (sparc64_fpu_register_names)
4144 (sparc64_cp0_register_names, sparc64_register_names)
4145 (sparc64_pseudo_register_names): Now const.
4146 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
4147 cp0_registers_num>: Now const.
4148 * sparc-tdep.c (sparc_core_register_names)
4149 (sparc32_fpu_register_names, sparc32_cp0_register_names)
4150 (sparc32_pseudo_register_names): Now const.
4151 (validate_tdesc_registers): Update.
4152 * rust-lang.c (rust_extensions): Now const.
4153 * p-lang.c (p_extensions): Now const.
4154 * objc-lang.c (objc_extensions): Now const.
4155 * nto-tdep.c (nto_thread_state_str): Now const.
4156 * moxie-tdep.c (moxie_register_names): Now const.
4157 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
4159 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
4160 (mips_linux_reg_names): Now const.
4161 (mips_gdbarch_init): Update.
4162 * microblaze-tdep.c (microblaze_register_names): Now const.
4163 * m68k-tdep.c (m68k_register_names): Now const.
4164 * m32r-tdep.c (m32r_register_names): Now const.
4165 * ia64-tdep.c (ia64_register_names): Now const.
4166 * i386-tdep.h (struct gdbarch_tdep) <register_names,
4167 ymmh_register_names, ymm16h_regnum, mpx_register_names,
4168 k_register_names, zmmh_register_names, xmm_avx512_register_names,
4169 ymm_avx512_register_names, pkeys_register_names>: Now const.
4170 * i386-tdep.c (i386_register_names, i386_zmm_names)
4171 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
4172 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
4173 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
4174 * f-lang.c (f_extensions): Now const.
4175 * d-lang.c (d_extensions): Now const.
4176 * csky-tdep.c (csky_register_names): Now const.
4177 * charset.c (default_charset_names, charset_enum): Now const.
4178 (_initialize_charset): Update.
4179 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
4181 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
4182 (bsd_uthread_solib_loaded): Update.
4183 (bsd_uthread_state): Now const.
4184 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
4185 (amd64_ymm_avx512_names, amd64_ymmh_names)
4186 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
4187 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
4188 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
4189 (amd64_dword_names): Now const.
4190 * agent.c (can_use_agent_enum): Now const.
4191 * ada-tasks.c (task_states, long_task_states): Now const.
4192 * ada-lang.c (known_runtime_file_name_patterns)
4193 (known_auxiliary_function_name_patterns, attribute_names)
4194 (standard_exc, ada_extensions): Now const.
4196 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4198 * bcache.h (struct bcache) <bcache>: Remove constructor.
4199 <m_hash_function, m_compare_function>: Remove.
4200 <~bcache>: Make virtual.
4201 <compare>: Remove static method, introduce virtual method.
4202 <default_hash>: Remove.
4203 <hash>: New virtual method.
4204 * bcache.c (bcache::expand_hash_table): Update.
4205 (bcache::insert): Update.
4206 (bcache::hash): New.
4207 (bcache::compare): Update comment and parameter names.
4208 * gdbtypes.c (types_deeply_equal): Update.
4209 * psymtab.h (struct psymbol_bcache): New struct.
4210 (class psymtab_storage) <psymtab_storage>: Make default.
4211 <psymbol_cache>: Change type to psymbol_bcache.
4212 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
4213 (psymbol_hash): Change to...
4214 (psymbol_bcache::hash): ... this.
4215 (psymbol_compare): Change to...
4216 (psymbol_bcache::compare): ... this.
4218 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4220 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
4221 checking for initial lwp.
4223 2020-09-14 Tom Tromey <tromey@adacore.com>
4225 * m68k-tdep.c (m68k_extract_return_value): Use
4226 pointer_result_regnum.
4227 (m68k_store_return_value): Likewise.
4228 (m68k_reg_struct_return_p): Handle vectors and arrays.
4229 (m68k_return_value): Handle arrays.
4230 (m68k_svr4_return_value): Fix single-element aggregate handling.
4231 Handle long double. Adjust for embedded ABI.
4232 (m68k_svr4_init_abi): Set pointer_result_regnum.
4233 (m68k_embedded_init_abi): New function.
4234 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
4235 (m68k_osabi_sniffer): New function.
4236 (_initialize_m68k_tdep): Register osabi sniffer.
4237 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
4240 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4242 * xml-support.c (xml_fetch_content_from_file): Replace xfree
4243 with gdb::unique_xmalloc_ptr<char>.
4245 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4247 * xml-support.h (xml_fetch_another): Change type to be a
4249 (xml_process_xincludes): Remove baton parameter.
4250 (xml_fetch_content_from_file): Change baton parameter to
4252 * xml-support.c (struct xinclude_parsing_data)
4253 <xinclude_parsing_data>: Remove baton parameter.
4254 <fetcher_baton>: Remove.
4255 (xinclude_start_include): Adjust.
4256 (xml_process_xincludes): Adjust.
4257 (xml_fetch_content_from_file): Replace baton parameter with
4259 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
4260 (xml_init_syscalls_info): Use a lambda.
4261 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
4262 (file_read_description_xml): Use a lambda.
4263 (fetch_available_features_from_target): Change baton parameter
4265 (target_read_description_xml): Use a lambda.
4266 (target_fetch_description_xml): Use a lambda.
4267 (string_read_description_xml): Update.
4269 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4271 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
4272 uses with type::endianity_is_not_default.
4274 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4276 * gdbtypes.h (struct type) <endianity_is_not_default,
4277 set_endianity_is_not_default>: New methods.
4278 (TYPE_ENDIANITY_NOT_DEFAULT): Use
4279 type::endianity_is_not_default, change all write call sites to
4280 use type::set_endianity_is_not_default.
4282 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4284 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
4285 uses with type::is_fixed_instance.
4287 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4289 * gdbtypes.h (struct type) <is_fixed_instance,
4290 set_is_fixed_instance>: New methods.
4291 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
4292 write call sites to use type::set_is_fixed_instance.
4294 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4296 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
4297 uses with type::is_gnu_ifunc.
4299 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4301 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
4302 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
4303 use type::set_is_gnu_ifunc.
4305 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4307 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
4308 uses with type::stub_is_supported.
4310 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4312 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
4313 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
4314 use type::set_stub_is_supported.
4316 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4318 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
4319 uses with type::is_vector.
4321 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4323 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
4324 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
4325 use type::set_is_vector.
4327 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4329 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
4330 uses with type::has_varargs.
4332 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4334 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
4335 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
4336 use type::set_has_varargs.
4338 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4340 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4341 uses with type::is_prototyped.
4343 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4345 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
4347 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
4348 call sites to use type::set_is_prototyped.
4350 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4352 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
4353 uses with type::target_is_stub.
4355 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4357 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
4359 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
4360 sites to use type::set_target_is_stub.
4362 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4364 * gdbtypes.h (TYPE_STUB): Remove, replace all
4365 uses with type::is_stub.
4367 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4369 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
4370 (TYPE_STUB): Use type::is_stub, change all write call sites to
4371 use type::set_is_stub.
4373 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4375 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
4376 type::has_no_signedness.
4378 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4380 * gdbtypes.h (struct type) <has_no_signedness,
4381 set_has_no_signedness>: New methods.
4382 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
4383 call sites to use type::set_has_no_signedness.
4385 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4387 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
4390 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4392 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
4394 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
4395 sites to use type::set_is_unsigned.
4397 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
4398 Adam Renquinha <arenquinha@cimeq.qc.ca>
4400 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
4401 pointer and stack frame offset when unwinding.
4403 2020-09-13 Pedro Alves <pedro@palves.net>
4405 * NEWS: Document "-break-insert --qualified".
4406 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
4408 2020-09-13 Pedro Alves <pedro@palves.net>
4410 * linespec.c (classify_mtype, compare_msyms): Delete.
4411 (search_minsyms_for_name): Remove classification logic. Instead
4412 filter out trampoline symbols if we also found an external
4413 function of the same name.
4415 2020-09-13 Joel Brobecker <brobecker@adacore.com>
4417 * NEWS: Create a new section for the next release branch.
4418 Rename the section of the current branch, now that it has
4421 2020-09-13 Joel Brobecker <brobecker@adacore.com>
4423 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
4424 * version.in: Bump version to 11.0.50.DATE-git.
4426 2020-09-12 Joel Brobecker <brobecker@adacore.com>
4428 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
4430 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
4431 Felix Willgerodt <Felix.Willgerodt@intel.com>
4433 * gdbarch.sh: Added bfloat16 type.
4434 * gdbarch.c: Regenerated.
4435 * gdbarch.h: Regenerated.
4436 * gdbtypes.c (floatformats_bfloat16): New struct.
4437 (gdbtypes_post_init): Add builtin_bfloat16.
4438 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
4439 (floatformats_bfloat16): New struct.
4440 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
4441 (i386_ymm_type): Add field "v16_bfloat16"
4442 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
4443 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
4444 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
4445 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
4446 * features/i386/64bit-avx512.xml: Add bfloat16 type.
4447 * features/i386/64bit-avx512.c: Regenerated.
4448 * features/i386/64bit-sse.xml: Add bfloat16 type.
4449 * features/i386/64bit-sse.c: Regenerated.
4451 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
4453 * i386-tdep.c (i386_zmm_type): Fix field names.
4454 (i386_ymm_type): Fix field names.
4456 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4458 * breakpoint.c: Fix typo in the help message of the
4459 "set breakpoint condition-evaluation" command.
4461 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4463 * nbsd-nat.c: Include "nat/netbsd-nat.h".
4464 * (nbsd_nat_target::pid_to_exec_file)
4465 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
4466 (nbsd_nat_target::post_startup_inferior)
4467 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
4468 (nbsd_add_threads): Switch local code to common gdb/nat functions.
4469 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
4470 * (nbsd_thread_lister): Remove.
4472 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4474 * fork-inferior.c (startup_inferior): Avoid double free.
4476 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4478 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
4479 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
4481 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4483 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
4484 * netbsd-nat.c: Include <sys/ptrace.h>.
4485 * (netbsd_nat::enable_proc_events): Add.
4487 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4489 * netbsd-nat.h: Include "gdbsupport/function-view.h".
4490 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4491 (netbsd_nat::for_each_thread): Add.
4492 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
4493 "gdbsupport/common-debug.h".
4494 * (netbsd_nat::netbsd_thread_lister)
4495 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4496 (netbsd_nat::for_each_thread): Add.
4498 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4500 * netbsd-nat.h: Include <unistd.h>.
4501 * (netbsd_nat::pid_to_exec_file): Add.
4502 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
4503 * (netbsd_nat::pid_to_exec_file) Add.
4505 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4507 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
4509 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4511 * netbsd-nat.h: New file.
4512 * netbsd-nat.c: Likewise.
4514 2020-09-09 Tom Tromey <tromey@adacore.com>
4516 * ada-lang.c (remove_extra_symbols): Do not increment when
4519 2020-09-08 Tom Tromey <tromey@adacore.com>
4521 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
4523 2020-09-08 Tom Tromey <tromey@adacore.com>
4526 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
4527 (gdb_bfd_init_data): New function.
4528 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
4530 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4532 * infrun.c (fetch_inferior_event): Use
4533 `switch_to_target_no_thread` to switch the target.
4535 2020-09-06 Tom Tromey <tom@tromey.com>
4537 * symfile.h (dwarf2_free_objfile): Don't declare.
4539 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4541 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
4542 to match 16 byte real/complex type generated by Flang compiler.
4544 2020-09-03 Tom de Vries <tdevries@suse.de>
4547 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
4548 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
4550 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
4552 * maint.c (index_digits): New function.
4553 (struct maint_print_section_data): Remove.
4554 (print_bfd_section_info): Remove print_data parameter, add arg
4556 (print_objfile_section_info): Likewise.
4557 (print_bfd_section_info_maybe_relocated): Likewise (plus
4559 (maintenance_info_sections): Adjust calls.
4561 2020-09-02 Tom Tromey <tromey@adacore.com>
4563 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
4565 (ada_varobj_adjust_for_child_access): Special-case null pointers.
4567 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
4569 * bcache.h (struct bcache) <insert>: Change type of `added` to
4571 * bcache.c (bcache::insert): Likewise.
4572 * gdbtypes.c (check_types_worklist): Adjust.
4573 * psymtab.c (add_psymbol_to_bcache): Adjust.
4575 2020-08-31 Kevin Buettner <kevinb@redhat.com>
4577 * corelow.c (unordered_set): Include.
4578 (class core_target): Add field 'm_core_unavailable_mappings'.
4579 (core_target::build_file_mappings): Print only one warning
4580 per inaccessible file. Add unavailable/broken mappings
4581 to m_core_unavailable_mappings.
4582 (core_target::xfer_partial): Call...
4583 (core_target::xfer_memory_via_mappings): New method.
4585 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4587 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
4590 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4592 * dwarf2/read.c (struct field_info): Fix indentation.
4594 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4596 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
4597 ordering in comment.
4598 * frame.c (frame_id_eq): Fix indentation.
4600 2020-08-31 Scott Linder <scott@scottlinder.com>
4601 Simon Marchi <simon.marchi@efficios.com>
4603 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
4604 inline frame ids in outer frame.
4606 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4608 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
4609 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
4610 (outer_frame_id): Use FID_STACK_OUTER instead of
4612 (frame_id_p): Don't check for outer_frame_id.
4614 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4616 * frame-unwind.c (frame_unwind_got_optimized): Don't set
4617 regnum/frame in value. Call allocate_value_lazy.
4618 * frame.c (frame_unwind_register_value): Use
4619 val_print_not_saved.
4621 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4623 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
4625 2020-08-29 Pedro Alves <pedro@palves.net>
4627 * progspace.c (print_program_space): Use all_inferiors. Switch to
4628 the inferior before calling target_pid_to_str.
4630 2020-08-28 Tom Tromey <tom@tromey.com>
4632 * xcoffread.c (xcoff_end_psymtab): Update comment.
4633 * dbxread.c (dbx_end_psymtab): Update comment.
4635 2020-08-28 Tom de Vries <tdevries@suse.de>
4638 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
4640 (create_breakpoint): Same.
4641 (base_breakpoint_decode_location): Same.
4642 (bkpt_create_sals_from_location): Same.
4643 (bkpt_decode_location): Same.
4644 (bkpt_probe_create_sals_from_location): Same.
4645 (bkpt_probe_decode_location): Same.
4646 (tracepoint_create_sals_from_location): Same.
4647 (tracepoint_decode_location): Same.
4648 (tracepoint_probe_decode_location): Same.
4649 (strace_marker_create_sals_from_location): Same.
4650 (strace_marker_decode_location): Same.
4651 (create_sals_from_location_default): Same.
4652 (decode_location_default): Same.
4653 * breakpoint.h (struct breakpoint_ops): Same.
4654 (create_breakpoint): Same.
4655 * linespec.h (decode_line_full): Same.
4656 * linespec.c (decode_line_full): Same. Throw error if
4657 result.size () == 0.
4659 2020-08-27 Pedro Alves <pedro@palves.net>
4662 * breakpoint.c (until_break_fsm) <location_breakpoint,
4663 caller_breakpoint>: Delete fields.
4664 <breakpoints>: New field.
4665 <until_break_fsm>: Adjust to save a breakpoint vector instead of
4666 two individual breakpoints.
4667 (until_break_fsm::should_stop): Loop over breakpoints in the
4669 (until_break_fsm::clean_up): Adjust to clear the breakpoints
4671 (until_break_command): Handle location expanding into multiple
4674 2020-08-27 Pedro Alves <pedro@palves.net>
4677 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
4678 bp_until breakpoints user-specified locations. Update intro
4681 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
4683 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
4684 gdb_bfd_sections): New.
4685 * maint.c (print_bfd_section_info): Change param type to
4686 maint_print_section_data.
4687 (print_objfile_section_info): Likewise.
4688 (print_bfd_section_info_maybe_relocated): Likewise.
4689 (maintenance_info_sections): Use gdb_bfd_sections.
4691 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4693 * MAINTAINERS: Add ARC target and maintainer.
4695 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
4697 * configure.tgt: ARC support for GNU/Linux.
4698 * Makefile.in (ALL_TARGET_OBJS): Likewise.
4699 * arc-linux-tdep.c: New file.
4700 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
4701 * arc-tdep.c (arc_write_pc): Use it.
4703 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4705 * arc-tdep.c (arc_check_for_hardware_loop): New.
4706 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
4708 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4710 * arc-tdep.h: Include "gdbarch.h".
4712 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4715 (arc_gdbarch_features): New class to stir the selection of target XML.
4716 (arc_create_target_description): Use FEATURES to choose XML target.
4717 (arc_lookup_target_description): Use arc_create_target_description
4718 to create _new_ target descriptions or return the already created
4719 ones if the FEATURES is the same.
4720 * arch/arc.c: Implementation of prototypes described above.
4721 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
4722 (arc_gdbarch_features_init): Initialize the FEATURES struct.
4723 * arc-tdep.c (*_feature_name): Make feature names consistent.
4724 (arc_register_feature): A new struct to hold information about
4725 registers of a particular target/feature.
4726 (arc_check_tdesc_feature): Check if XML provides registers in
4727 compliance with ARC_REGISTER_FEATURE structs.
4728 (arc_update_acc_reg_names): Add aliases for r58 and r59.
4729 (determine_*_reg_feature_set): Which feature name to look for.
4730 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
4731 (mach_type_to_arc_isa): Convert from a set of binutils machine types
4732 to expected ISA enums to be used in arc_gdbarch_features structs.
4733 * features/Makefile (FEATURE_XMLFILES): Add new files.
4734 * gdb/features/arc/v1-aux.c: New file.
4735 * gdb/features/arc/v1-aux.xml: Likewise.
4736 * gdb/features/arc/v1-core.c: Likewise.
4737 * gdb/features/arc/v1-core.xml: Likewise.
4738 * gdb/features/arc/v2-aux.c: Likewise.
4739 * gdb/features/arc/v2-aux.xml: Likewise.
4740 * gdb/features/arc/v2-core.c: Likewise.
4741 * gdb/features/arc/v2-core.xml: Likewise.
4742 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
4744 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
4745 Andrew Burgess <andrew.burgess@embecosm.com>
4748 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
4749 an assert. Remove single element array indexing pattern as the
4750 MULTI_SUBSCRIPT support will handle this case too.
4752 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
4754 * value.h (valprint_check_validity): Move declaration from
4756 * valprint.h (valprint_check_validity): ... to here.
4758 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
4760 * debug.h: New file.
4761 * debug.c (debug_prefixed_vprintf): New function.
4762 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
4763 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
4765 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
4767 * infrun.h (infrun_debug_printf_1): New function declaration.
4768 (infrun_debug_printf): New macro.
4769 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
4771 (infrun_debug_printf): New function.
4772 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
4773 (handle_jit_event): Likewise.
4775 2020-08-21 Mark Wielaard <mark@klomp.org>
4777 * ada-lex.l: Extend register warnings diagnostics comment for g++.
4779 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
4781 * frame.c (enum class frame_id_status): New.
4782 (struct frame_info) <this_id::p>: Change type to frame_id_status.
4783 (fprintf_frame): Update.
4784 (compute_frame_id): Set frame id status to "computing" on entry.
4785 Set it back to "not_computed" on failure and to "computed" on
4787 (get_frame_id): Assert the frame id is not being computed.
4788 (create_sentinel_frame): Use frame_id_status::COMPUTED.
4789 (create_new_frame): Likewise.
4790 (frame_cleanup_after_sniffer): Update assert.
4792 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4794 * regcache.c (pid_ptid_regcache_map): New type.
4795 (target_ptid_regcache_map): Remove.
4796 (target_pid_ptid_regcache_map): New type.
4797 (regcaches): Change type to target_pid_ptid_regcache_map.
4798 (get_thread_arch_aspace_regcache): Update.
4799 (regcache_thread_ptid_changed): Update, handle pid-like ptid
4801 (regcaches_size): Update.
4802 (regcache_count): Update.
4803 (registers_changed_ptid_target_pid_test): New.
4804 (_initialize_regcache): Register new test.
4806 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4808 * regcache.c (regcache_count): New.
4809 (struct regcache_test_data): New.
4810 (regcache_test_data_up): New.
4811 (populate_regcaches_for_test): New.
4812 (regcaches_test): Remove.
4813 (get_thread_arch_aspace_regcache_test): New.
4814 (registers_changed_ptid_all_test): New.
4815 (registers_changed_ptid_target_test): New.
4816 (registers_changed_ptid_target_ptid_test): New.
4817 (regcache_thread_ptid_changed): Remove regcache_count lambda.
4818 (_initialize_regcache): Register new tests.
4820 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4822 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
4823 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
4824 gdbarch and aspace parameter. Use current inferior's aspace.
4825 Validate regcache's arch value.
4826 (regcaches_test): Update.
4828 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4830 * regcache.c (regcaches_test): Call registers_changed.
4832 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4834 * infrun.c (process_event_stop_test): Fix typo "breapoint".
4836 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4838 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
4839 to find the end of prologue for flang compiled binaries.
4840 * arm-tdep.c (arm_skip_prologue): Likewise.
4841 * i386-tdep.c (i386_skip_prologue): Likewise.
4842 * producer.c (producer_is_llvm): New function.
4843 (producer_parsing_tests): Added new tests for clang/flang.
4844 * producer.h (producer_is_llvm): New declaration.
4846 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
4848 * linux-nat.c (linux_nat_debug_printf): New function.
4849 (linux_nat_debug_printf_1): New macro. Use throughout the file.
4851 2020-08-18 Aaron Merey <amerey@redhat.com>
4853 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
4854 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
4855 (CLIBS): Add DEBUGINFOD_LIBS.
4857 2020-08-17 Sergei Trofimovich <siarheit@google.com>
4859 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
4862 2020-08-17 Tom Tromey <tromey@adacore.com>
4864 * ada-varobj.c (ada_varobj_decode_var): Handle case where
4865 ada_get_decoded_value returns NULL.
4867 2020-08-17 Tom Tromey <tromey@adacore.com>
4869 * python/py-inferior.c (infpy_search_memory): Use
4870 gdb_py_object_from_ulongest.
4871 * python/py-infevents.c (create_inferior_call_event_object)
4872 (create_memory_changed_event_object): Use
4873 gdb_py_object_from_ulongest.
4874 * python/py-linetable.c (ltpy_entry_get_pc): Use
4875 gdb_py_object_from_ulongest.
4877 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
4879 * loc.c (class symbol_needs_eval_context): Fix indentation.
4881 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
4883 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
4886 2020-08-17 Tom de Vries <tdevries@suse.de>
4889 * gdbtypes.c (dump_dynamic_prop): New function.
4890 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
4892 2020-08-15 Tom de Vries <tdevries@suse.de>
4895 * stack.c (print_frame_args): Temporarily set the selected
4896 frame to FRAME while printing the frame's arguments.
4898 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4900 PR breakpoints/26385
4901 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
4902 Always clear watchpoint with PTRACE_SET_DEBUGREG.
4904 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4906 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
4907 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
4908 and >= to check return value instead of == -1 and != -1.
4910 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
4912 * utils.h (class gdb_argv) <as_array_view>: New method.
4913 * utils.c (gdb_argv_as_array_view_test): New.
4914 (_initialize_utils): Register selftest.
4915 * maint.c (maintenance_selftest): Use the new method.
4917 2020-08-13 Kamil Rytarowski <n54@gmx.com>
4919 * target.h (supports_dumpcore, dumpcore): New
4920 function declarations.
4921 * target.c (supports_dumpcore, dumpcore): New
4923 * target-delegates.c: Rebuild.
4924 * gcore.c (gcore_command): Use target_supports_dumpcore ()
4925 and target_dumpcore ().
4927 2020-08-13 Aaron Merey <amerey@redhat.com>
4929 * debuginfod-support.c: Replace global variables with user_data.
4931 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
4933 * maint.c (maintenance_selftest): Split args and pass array_view
4936 2020-08-12 Luis Machado <luis.machado@linaro.org>
4938 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
4940 Use %s and pulongest to print the length.
4942 2020-08-12 Pedro Alves <palves@redhat.com>
4944 * NEWS: Move "Multi-target debugging support" item to the
4945 "Changes since GDB 9" section.
4947 2020-08-12 Pedro Alves <palves@redhat.com>
4950 * progspace.c (program_space::remove_objfile): Invalidate the
4953 2020-08-11 Tom de Vries <tdevries@suse.de>
4955 * MAINTAINERS: Mark ms1 as deleted.
4957 2020-08-10 Luis Machado <luis.machado@linaro.org>
4961 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
4963 (aarch64_analyze_prologue_test): Add more unit tests to exercise
4964 movz/str/stur/stp skipping behavior.
4966 2020-08-10 Luis Machado <luis.machado@linaro.org>
4968 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
4969 struct user_sve_header instead of struct sve_context.
4971 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
4973 * read.h (dwarf2_fetch_die_loc_sect_off,
4974 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
4975 `void *` parameter with function_view.
4976 * read.c (dwarf2_fetch_die_loc_sect_off,
4977 dwarf2_fetch_die_loc_cu_off): Likewise.
4978 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
4979 (per_cu_dwarf_call): Adjust.
4980 (get_frame_address_in_block_wrapper): Remove.
4981 (indirect_synthetic_pointer): Adjust.
4982 (get_ax_pc): Remove.
4983 (dwarf2_compile_expr_to_ax): Adjust.
4985 2020-08-08 Tom de Vries <tdevries@suse.de>
4988 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
4990 * regcache.c (get_thread_arch_aspace_regcache): Same.
4992 2020-08-07 Tom Tromey <tromey@adacore.com>
4994 * ravenscar-thread.c
4995 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
4997 (ravenscar_thread_target::wait): Check
4998 runtime_initialized.
4999 (ravenscar_thread_target::prepare_to_store)
5000 (ravenscar_thread_target::stopped_by_sw_breakpoint)
5001 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5002 (ravenscar_thread_target::stopped_by_watchpoint)
5003 (ravenscar_thread_target::stopped_data_address)
5004 (ravenscar_thread_target::core_of_thread): Use
5005 scoped_restore_current_thread and
5006 set_base_thread_from_ravenscar_task.
5008 2020-08-07 Tom Tromey <tromey@adacore.com>
5010 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
5012 2020-08-07 Tom Tromey <tromey@adacore.com>
5014 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
5015 update_inferior_ptid before update_thread_list.
5016 (temporarily_change_regcache_ptid): New class.
5017 (ravenscar_thread_target::fetch_registers)
5018 (ravenscar_thread_target::store_registers)
5019 (ravenscar_thread_target::prepare_to_store): Use base thread when
5020 forwarding operation.
5022 2020-08-07 Tom Tromey <tromey@adacore.com>
5024 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
5027 2020-08-07 Tom Tromey <tromey@adacore.com>
5029 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
5031 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
5033 (ravenscar_thread_target::add_thread): Rename from
5034 ravenscar_add_thread.
5035 (ravenscar_thread_target::update_thread_list): Use a lambda.
5036 (ravenscar_thread_target::xfer_partial): New method.
5038 2020-08-07 Tom Tromey <tromey@adacore.com>
5040 * ada-lang.h (ada_task_list_iterator_ftype): Now a
5042 (iterate_over_live_ada_tasks): Change type of argument.
5043 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
5046 2020-08-07 Tom Tromey <tromey@adacore.com>
5048 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
5050 (ravenscar_thread_target::extra_thread_info): Remove.
5051 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
5052 defer to target beneath for non-Ravenscar threads.
5054 2020-08-07 Tom Tromey <tromey@adacore.com>
5056 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
5057 get_base_thread_from_ravenscar_task>: Now methods.
5058 <m_cpu_map>: New member.
5059 (ravenscar_thread_target::get_thread_base_cpu): Rename from
5060 ravenscar_get_thread_base_cpu. Check m_cpu_map.
5061 (ravenscar_thread_target::task_is_currently_active): Update.
5062 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
5064 (ravenscar_thread_target::add_active_thread): Put initial thread
5067 2020-08-07 Tom Tromey <tromey@adacore.com>
5069 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
5072 2020-08-07 Tom Tromey <tromey@adacore.com>
5074 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
5075 runtime_initialized.
5077 2020-08-07 Tom Tromey <tromey@adacore.com>
5079 * ravenscar-thread.c (ravenscar_thread_target): Don't call
5081 (ravenscar_thread_target::add_active_thread): Now public.
5082 (ravenscar_inferior_created): Call add_active_thread after pushing
5085 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
5087 * regcache.c (ptid_regcache_map): New type.
5088 (target_ptid_regcache_map): New type.
5089 (regcaches): Change type to target_ptid_regcache_map.
5090 (get_thread_arch_aspace_regcache): Update to regcaches' new
5092 (regcache_thread_ptid_changed): Likewise.
5093 (registers_changed_ptid): Likewise.
5094 (regcaches_size): Likewise.
5095 (regcaches_test): Update.
5096 (regcache_thread_ptid_changed): Update.
5097 * regcache.h (regcache_up): New type.
5098 * gdbsupport/ptid.h (hash_ptid): New struct.
5100 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
5102 * observable.h (thread_ptid_changed): Add parameter
5103 `process_stratum_target *`.
5104 * infrun.c (infrun_thread_ptid_changed): Add parameter
5105 `process_stratum_target *` and use it.
5106 (selftests): New namespace.
5107 (infrun_thread_ptid_changed): New function.
5108 (_initialize_infrun): Register selftest.
5109 * regcache.c (regcache_thread_ptid_changed): Add parameter
5110 `process_stratum_target *` and use it.
5111 (regcache_thread_ptid_changed): New function.
5112 (_initialize_regcache): Register selftest.
5113 * thread.c (thread_change_ptid): Pass target to
5114 thread_ptid_changed observable.
5116 2020-08-06 Caroline Tice <cmtice@google.com>
5118 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
5119 (struct dwp_sections): Update field comments. Add loclists and
5121 (struct virtual_v2_dwo_sections): Rename struct to
5122 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
5123 size & offset fields for loclists and rnglists.
5124 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
5125 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
5126 skipping dummy type units.
5127 (create_dwp_hash_table): Update the large comment above the function to
5128 discuss Version 5 DWP files as well, with references. Update all the
5129 version checks in the function to check for version 5 as well. Add new
5130 section at the end to create dwp hash table for version 5.
5131 (create_dwp_v2_section): Rename function to
5132 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
5133 Add V5 to error message text.
5134 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
5135 into calls to create_dwp_v2_or_v5_section.
5136 (create_dwo_unit_in_dwp_v5): New function.
5137 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
5138 check for version2; add else clause to handle version 5.
5139 (open_and_init_dwo_file): Add code to check dwarf version & only call
5140 create_debug_types_hash_table (with sections.types) if version is not 5;
5141 else call create_debug_type_hash_table, with sections.info.
5142 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
5144 (dwarf2_locate_v5_dwp_sections): New function.
5145 (open_and_init_dwp_file): Add else-if clause for version 5 to call
5146 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
5148 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
5150 * regcache.h (class regcache): Remove friend
5151 registers_changed_ptid.
5152 <regcache_thread_ptid_changed>: Remove.
5153 <regcaches>: Remove.
5154 * regcache.c (regcache::regcaches): Rename to...
5155 (regcaches): ... this. Make static.
5156 (get_thread_arch_aspace_regcache): Update.
5157 (regcache::regcache_thread_ptid_changed): Rename to...
5158 (regcache_thread_ptid_changed): ... this. Update.
5159 (class regcache_access): Remove.
5160 (regcaches_test): Update.
5161 (_initialize_regcache): Update.
5162 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
5165 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
5167 * regcache.h (class regcache) <current_regcache>: Rename to...
5168 <regcaches>: ... this. Move doc here.
5169 * regcache.c (regcache::current_regcache) Rename to...
5170 (regcache::regcaches): ... this. Move doc to header.
5171 (get_thread_arch_aspace_regcache): Update.
5172 (regcache::regcache_thread_ptid_changed): Update.
5173 (registers_changed_ptid): Update.
5174 (class regcache_access) <current_regcache_size>: Rename to...
5175 <regcaches_size>: ... this.
5176 (current_regcache_test): Rename to...
5177 (regcaches_test): ... this.
5178 (_initialize_regcache): Update.
5180 2020-08-06 Victor Collod <vcollod@nvidia.com>
5182 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
5184 2020-08-05 Kevin Buettner <kevinb@redhat.com>
5186 * corelow.c (core_target::build_file_mappings): Don't output
5187 null pathname in warning.
5189 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
5191 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
5192 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
5193 gdb.dwarf2/dw2-single-line-discriminators.exp,
5194 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
5196 2020-08-05 Tom Tromey <tromey@adacore.com>
5199 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
5200 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
5201 Fix off-by-one and type size errors in ordinary case.
5203 2020-08-05 Tom de Vries <tdevries@suse.de>
5205 * gdbtypes.c (type_not_allocated, type_not_associated): Use
5206 "prop->const_val () == 0" instead of "prop->const_val () != 0".
5208 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
5210 * frame.h (frame_id_p): Return bool.
5211 (frame_id_artificial_p): Return bool.
5212 (frame_id_eq): Return bool.
5213 (has_stack_frames): Return bool.
5214 (get_selected_frame): Fix typo in comment.
5215 (get_frame_pc_if_available): Return bool.
5216 (get_frame_address_in_block_if_available): Return bool.
5217 (get_frame_func_if_available): Return bool.
5218 (read_frame_register_unsigned): Return bool.
5219 (get_frame_register_bytes): Return bool.
5220 (safe_frame_unwind_memory): Return bool.
5221 (deprecated_frame_register_read): Return bool.
5222 (frame_unwinder_is): Return bool.
5223 * frame.c (struct frame_info) <prev_arch::p>: Change type to
5225 <this_id::p>: Likewise.
5227 (frame_stash_add): Return bool.
5228 (get_frame_id): Use bool.
5229 (frame_id_build_special) Use bool.
5230 (frame_id_build_unavailable_stack): Use bool.
5231 (frame_id_build): Use bool.
5232 (frame_id_p): Return bool, use true/false instead of 1/0.
5233 (frame_id_artificial_p): Likewise.
5234 (frame_id_eq): Likewise.
5235 (frame_id_inner): Likewise.
5236 (get_frame_func_if_available): Likewise.
5237 (read_frame_register_unsigned): Likewise.
5238 (deprecated_frame_register_read): Likewise.
5239 (get_frame_register_bytes): Likewise.
5240 (has_stack_frames): Likewise.
5241 (inside_main_func): Likewise.
5242 (inside_entry_func): Likewise.
5243 (get_frame_pc_if_available): Likewise.
5244 (get_frame_address_in_block_if_available): Likewise.
5245 (frame_unwinder_is): Likewise.
5246 (safe_frame_unwind_memory): Likewise.
5247 (frame_unwind_arch): Likewise.
5249 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
5251 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
5252 type to cached_copy_status.
5253 (fprintf_frame): Adjust.
5254 (get_frame_func_if_available): Adjust.
5255 (frame_cleanup_after_sniffer): Adjust.
5257 2020-08-04 Mark Wielaard <mark@klomp.org>
5259 * MAINTAINERS (Write After Approval): Update email address.
5261 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5263 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
5264 dynamic_prop::const_val.
5266 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5268 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
5271 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5273 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
5275 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
5277 * configure.tgt: Set gdb_sim for bpf-*-* targets.
5279 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
5280 Jose E. Marchesi <jose.marchesi@oracle.com>
5282 * configure.tgt: Add entry for bpf-*-*.
5283 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
5284 (ALLDEPFILES): Add bpf-tdep.c.
5285 * bpf-tdep.c: New file.
5286 * MAINTAINERS: Add bpf target and maintainer.
5287 * NEWS: Mention the support for the new target.
5289 2020-08-04 Tom de Vries <tdevries@suse.de>
5292 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
5295 2020-08-03 John Baldwin <jhb@FreeBSD.org>
5297 * syscalls/freebsd.xml: Regenerate.
5299 2020-08-03 John Baldwin <jhb@FreeBSD.org>
5301 * syscalls/update-freebsd.sh: Fix usage and year range.
5303 2020-08-03 Tom de Vries <tdevries@suse.de>
5306 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
5307 DW_LNE_lo_user/DW_LNE_hi_user range.
5309 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
5312 * ada-lang.c (ada_modulus): Return 0 if property is not of const
5315 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5317 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
5319 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5321 * breakpoint.c (set_breakpoint_condition): Update the condition
5322 expressions after checking that the input condition string parses
5323 successfully and does not contain junk at the end.
5325 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5327 * breakpoint.c (set_breakpoint_condition): Update the
5328 condition string after parsing the new condition successfully.
5330 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5332 * proc-api.c (_STRUCTURED_PROC): Don't define.
5333 * proc-events.c: Likewise.
5334 * proc-flags.c: Likewise.
5335 * proc-why.c: Likewise.
5336 * procfs.c: Likewise.
5338 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
5339 * configure, config.in: Regenerate.
5341 2020-07-30 Tom de Vries <tdevries@suse.de>
5344 * ui-style.h (struct ui_file_style::color): Wrap m_value and
5345 m_red/m_green/m_blue in a union.
5347 2020-07-29 Tom de Vries <tdevries@suse.de>
5350 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
5352 2020-07-28 Tom Tromey <tromey@adacore.com>
5355 * symtab.h (find_pc_partial_function_sym): Declare.
5356 * cli/cli-cmds.c (disassemble_command): Use
5357 find_pc_partial_function_sym. Check asm_demangle.
5358 * blockframe.c (cache_pc_function_sym): New global.
5359 (cache_pc_function_name): Remove.
5360 (clear_pc_function_cache): Update.
5361 (find_pc_partial_function_sym): New function, from
5362 find_pc_partial_function.
5363 (find_pc_partial_function): Rewrite using
5364 find_pc_partial_function_sym.
5366 2020-07-28 Tom Tromey <tromey@adacore.com>
5368 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
5371 2020-07-28 Tom Tromey <tromey@adacore.com>
5373 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
5374 <DW_OP_GNU_variable_value>: Cast to address type.
5376 2020-07-28 Kamil Rytarowski <n54@gmx.com>
5378 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
5379 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
5380 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
5381 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
5382 (nbsd_get_siginfo_type): New.
5383 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5384 (_initialize_nbsd_tdep): New.
5386 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5389 * configure: Regenerated.
5391 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5394 * configure: Regenerated.
5396 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5398 * python/py-frame.c: Remove 'user-regs.h' include.
5399 (frapy_read_register): Rewrite to make use of
5400 gdbpy_parse_register_id.
5401 * python/py-registers.c (gdbpy_parse_register_id): New function,
5402 moved here from python/py-unwind.c. Updated the return type, and
5403 also accepts register descriptor objects.
5404 * python/py-unwind.c: Remove 'user-regs.h' include.
5405 (pyuw_parse_register_id): Moved to python/py-registers.c.
5406 (unwind_infopy_add_saved_register): Update to use
5407 gdbpy_parse_register_id.
5408 (pending_framepy_read_register): Likewise.
5409 * python/python-internal.h (gdbpy_parse_register_id): Declare.
5411 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5413 * python/py-registers.c: Add 'user-regs.h' include.
5414 (register_descriptor_iter_find): New function.
5415 (register_descriptor_iterator_object_methods): New static global
5417 (register_descriptor_iterator_object_type): Add pointer to methods
5420 2020-07-27 John Baldwin <jhb@FreeBSD.org>
5422 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
5423 for all architectures on FreeBSD 11.3 and later.
5425 2020-07-27 Tom Tromey <tromey@adacore.com>
5427 * gcore.h (load_corefile): Don't declare.
5429 2020-07-27 Tom de Vries <tdevries@suse.de>
5431 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
5432 * config.in: Regenerate.
5433 * configure: Regenerate.
5435 2020-07-26 Eli Zaretskii <eliz@gnu.org>
5437 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
5438 ws2tcpip.h. When checking whether socklen_t type is defined, use
5439 ws2tcpip.h if it is available and sys/socket.h isn't.
5440 * configure: Regenerate.
5441 * config.in: Regenerate.
5443 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
5447 * valops.c (value_ind): Pass address to
5448 readjust_indirect_value_type.
5449 * value.c (readjust_indirect_value_type): Make parameter
5450 non-const, and add extra address parameter. Resolve original type
5452 * value.h (readjust_indirect_value_type): Update function
5453 signature and comment.
5455 2020-07-25 Tom de Vries <tdevries@suse.de>
5458 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
5461 2020-07-24 Aaron Merey <amerey@redhat.com>
5463 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
5464 * configure: Rebuild.
5466 2020-07-23 Kevin Buettner <kevinb@redhat.com>
5469 * corelow.c (_initialize_corelow): Add period to help text
5470 for "maintenance print core-file-backed-mappings".
5472 2020-07-23 Pedro Alves <pedro@palves.net>
5474 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
5475 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
5477 * frame.c (frame_cache_generation, get_frame_cache_generation):
5479 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
5480 (get_prev_frame_if_no_cycle): On exception, don't touch
5481 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
5482 * frame.h (get_frame_cache_generation): Declare.
5484 2020-07-23 Tom de Vries <tdevries@suse.de>
5487 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
5488 New default constructor.
5490 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
5492 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
5493 exclude non-statement entries.
5495 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5497 * NEWS (New commands): Mention new command
5498 "maintenance print core-file-backed-mappings".
5500 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5502 * corelow.c (gdbcmd.h): Include.
5503 (core_target::info_proc_mappings): New method.
5504 (get_current_core_target): New function.
5505 (maintenance_print_core_file_backed_mappings): New function.
5506 (_initialize_corelow): Add core-file-backed-mappings to
5507 "maint print" commands.
5509 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5511 * linux-tdep.c (dump_note_entry_p): New function.
5512 (linux_dump_mapping_p_ftype): New typedef.
5513 (linux_find_memory_regions_full): Add new parameter,
5514 should_dump_mapping_p.
5515 (linux_find_memory_regions): Adjust call to
5516 linux_find_memory_regions_full.
5517 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
5518 call to linux_find_memory_regions_full.
5520 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5522 * corelow.c (solist.h, unordered_map): Include.
5523 (class core_target): Add field m_core_file_mappings and
5524 method build_file_mappings.
5525 (core_target::core_target): Call build_file_mappings.
5526 (core_target::~core_target): Free memory associated with
5527 m_core_file_mappings.
5528 (core_target::build_file_mappings): New method.
5529 (core_target::xfer_partial): Use m_core_file_mappings
5530 for memory transfers.
5531 * linux-tdep.c (linux_read_core_file_mappings): New
5533 (linux_core_info_proc_mappings): Rewrite to use
5534 linux_read_core_file_mappings.
5535 (linux_init_abi): Register linux_read_core_file_mappings.
5537 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5539 * arch-utils.c (default_read_core_file_mappings): New function.
5540 * arch-utils.c (default_read_core_file_mappings): Declare.
5541 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
5542 * gdbarch.h, gdbarch.c: Regenerate.
5544 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5547 * corelow.c (core_target:xfer_partial): Revise
5548 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
5549 case after first checking the stratum beneath the core
5551 (has_all_memory): Return true.
5552 * target.c (raw_memory_xfer_partial): Revise comment
5553 regarding use of has_all_memory.
5555 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5557 * exec.h (section_table_xfer_memory): Revise declaration,
5558 replacing section name parameter with an optional callback
5560 * exec.c (section_table_xfer_memory): Likewise.
5561 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
5562 of section_table_xfer_memory.
5564 2020-07-22 Tom Tromey <tromey@adacore.com>
5566 * mi/mi-cmd-stack.c (list_args_or_locals): Use
5567 lookup_symbol_search_name.
5569 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5571 * python/py-registers.c (gdbpy_register_object_data_init): Remove
5572 redundant local variable.
5573 (gdbpy_get_register_descriptor): Extract descriptor vector as a
5574 reference, not pointer, update code accordingly.
5576 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5577 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5579 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
5580 * jit.c (jit_breakpoint_re_set_internal): Use the
5581 `skip_jit_symbol_lookup` field.
5583 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5584 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5586 * jit.c (jit_read_descriptor): Define the descriptor address once,
5588 (jit_breakpoint_deleted): Move the declaration of the loop variable
5589 `iter` into the loop header.
5590 (jit_breakpoint_re_set_internal): Move the declaration of the local
5591 variable `objf_data` to the first point of definition.
5592 (jit_event_handler): Move the declaration of local variables
5593 `code_entry`, `entry_addr`, and `objf` to their first point of use.
5594 Rename `objf` to `jited`.
5596 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5598 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
5600 * jit.c (get_jiter_objfile_data): Update.
5602 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5603 Simon Marchi <simon.marchi@polymtl.ca>
5605 * jit.c (struct jit_program_space_data): Remove.
5606 (jit_program_space_key): Remove.
5607 (jiter_objfile_data::~jiter_objfile_data): Remove program space
5609 (get_jit_program_space_data): Remove.
5610 (jit_breakpoint_deleted): Iterate on all of the program space's
5612 (jit_inferior_init): Likewise.
5613 (jit_breakpoint_re_set_internal): Likewise. Also change return
5615 (jit_breakpoint_re_set): Pass current_program_space to
5616 jit_breakpoint_re_set_internal.
5618 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5620 * jit.h (struct jiter_objfile_data) <cached_code_address,
5621 jit_breakpoint>: Move to here from ...
5622 * jit.c (jit_program_space_data): ... here.
5623 (jiter_objfile_data::~jiter_objfile_data): Update.
5624 (jit_breakpoint_deleted): Update.
5625 (jit_breakpoint_re_set_internal): Update.
5627 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5629 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
5631 (jit_read_descriptor): Remove NULL check.
5632 (jit_event_handler): Add an assertion.
5634 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5636 * jit.h (struct jit_objfile_data): Split into...
5637 (struct jiter_objfile_data): ... this ...
5638 (struct jited_objfile_data): ... and this.
5639 * objfiles.h (struct objfile) <jit_data>: Remove.
5640 <jiter_data, jited_data>: New fields.
5641 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
5642 (jiter_objfile_data::~jiter_objfile_data): ... this.
5643 (get_jit_objfile_data): Rename to ...
5644 (get_jiter_objfile_data): ... this.
5645 (add_objfile_entry): Update.
5646 (jit_read_descriptor): Use get_jiter_objfile_data.
5647 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
5648 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
5649 (jit_inferior_exit_hook): Use objfile's jited_data field.
5651 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5653 * jit.h: Forward-declare `struct minimal_symbol`.
5654 (struct jit_objfile_data): Migrate to here from jit.c; also add a
5655 constructor, destructor, and an objfile* field.
5656 * jit.c (jit_objfile_data): Remove.
5657 (struct jit_objfile_data): Migrate from here to jit.h.
5658 (jit_objfile_data::~jit_objfile_data): New destructor
5659 implementation with code moved from free_objfile_data.
5660 (free_objfile_data): Delete.
5661 (get_jit_objfile_data): Update to use the jit_data field of objfile.
5662 (jit_find_objf_with_entry_addr): Ditto.
5663 (jit_inferior_exit_hook): Ditto.
5664 (_initialize_jit): Remove the call to
5665 register_objfile_data_with_cleanup.
5666 * objfiles.h (struct objfile) <jit_data>: New field.
5668 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5670 * jit.h: Forward-declare `struct objfile`.
5671 (jit_event_handler): Add a second parameter, the JITer objfile.
5672 * jit.c (jit_read_descriptor): Change the signature to take the
5673 JITer objfile as an argument instead of the jit_program_space_data.
5674 (jit_inferior_init): Update the call to jit_read_descriptor.
5675 (jit_event_handler): Use the new JITer objfile argument when calling
5676 jit_read_descriptor.
5677 * breakpoint.c (handle_jit_event): Update the call to
5678 jit_event_handler to pass the JITer objfile.
5680 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5682 * gdbarch.c: Regenerate.
5683 * gdbarch.h: Regenerate.
5684 * gdbarch.sh (handle_segmentation_fault): Remove method.
5685 * infrun.c (handle_segmentation_fault): Remove.
5686 (print_signal_received_reason): Remove call to
5687 handle_segmentation_fault.
5689 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5691 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5692 Rename to sparc64_linux_report_signal_info and add siggnal
5694 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
5695 instead of sparc64_linux_handle_segmentation_fault.
5697 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5699 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
5700 i386_linux_report_signal_info instead of
5701 i386_linux_handle_segmentation_fault.
5702 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
5703 to i386_linux_report_signal_info and add siggnal argument.
5704 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
5705 of i386_linux_handle_segmentation_fault.
5706 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
5707 to i386_linux_report_signal_info and add siggnal argument.
5709 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5711 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
5714 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5716 * gdbarch.c: Regenerate.
5717 * gdbarch.h: Regenerate.
5718 * gdbarch.sh (report_signal_info): New method.
5719 * infrun.c (print_signal_received_reason): Invoke gdbarch
5720 report_signal_info hook if present.
5722 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5724 * python/py-registers.c : Add 'unordered_map' include.
5725 (gdbpy_new_reggroup): Renamed to...
5726 (gdbpy_get_reggroup): ...this. Update to only create register
5727 group descriptors when needed.
5728 (gdbpy_reggroup_iter_next): Update.
5730 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5732 * python/py-registers.c (gdbpy_register_object_data): New static
5734 (gdbpy_register_object_data_init): New function.
5735 (gdbpy_new_register_descriptor): Renamed to...
5736 (gdbpy_get_register_descriptor): ...this, and update to reuse
5737 existing register descriptors where possible.
5738 (gdbpy_register_descriptor_iter_next): Update.
5739 (gdbpy_initialize_registers): Register new gdbarch data.
5741 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
5743 * linux-nat.c (stopped_pids): Make static.
5745 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
5748 * gdbtypes.c (ada_discrete_type_low_bound,
5749 ada_discrete_type_high_bound): Handle undefined bounds.
5751 2020-07-21 Kamil Rytarowski <n54@gmx.com>
5753 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
5755 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
5758 2020-07-20 John Baldwin <jhb@FreeBSD.org>
5760 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
5761 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
5762 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
5763 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
5764 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
5767 2020-07-20 Ludovic Courtès <ludo@gnu.org>
5769 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
5770 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
5771 which are deprecated in Guile 3.0.
5772 * configure.ac (try_guile_versions): Add "guile-3.0".
5773 * configure (try_guile_versions): Regenerate.
5774 * NEWS: Update entry.
5776 2020-07-20 Ludovic Courtès <ludo@gnu.org>
5777 Doug Evans <dje@google.com>
5780 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
5781 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
5782 USING_GUILE_BEFORE_2_2.
5783 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
5784 Change type to 'scm_t_port_type *'.
5785 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
5786 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
5787 parameter and honor it. Update callers.
5788 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
5789 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
5791 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
5792 USING_GUILE_BEFORE_2_2.
5793 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
5794 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
5795 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
5796 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
5797 and 'SCM_PORT_TYPE'.
5798 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
5799 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
5800 (gdbscm_memory_port_read, gdbscm_memory_port_write)
5801 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
5802 [!USING_GUILE_BEFORE_2_2]: New functions.
5803 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
5804 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
5805 'gdbscm_memory_port_read'.
5806 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
5807 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
5808 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
5810 (ioscm_init_memory_port): Remove.
5811 (ioscm_init_memory_port_stream): New function
5812 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
5814 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5815 Return scm_from_uint (0).
5816 (gdbscm_set_memory_port_read_buffer_size_x)
5817 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5818 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5819 Return scm_from_uint (0).
5820 (gdbscm_set_memory_port_write_buffer_size_x)
5821 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5822 * configure.ac (try_guile_versions): Add "guile-2.2".
5823 * configure: Regenerate.
5826 2020-07-18 Tom Tromey <tom@tromey.com>
5828 * linux-nat.c (linux_multi_process): Remove.
5829 (linux_nat_target::supports_multi_process): Return true.
5831 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5833 * arch/riscv.c (riscv_tdesc_cache): Change map type.
5834 (riscv_lookup_target_description): Return pointer out of
5836 * target-descriptions.c (allocate_target_description): Add
5838 (target_desc_deleter::operator()): Likewise.
5839 * target-descriptions.h (struct target_desc_deleter): Moved to
5841 (target_desc_up): Likewise.
5843 2020-07-17 Tom Tromey <tromey@adacore.com>
5845 * linux-nat.c (linux_nat_target::supports_non_stop)
5846 (linux_nat_target::always_non_stop_p): Use "true".
5847 (linux_nat_target::supports_disable_randomization): Use "true" and
5850 2020-07-16 Caroline Tice <cmtice@google.com>
5852 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
5853 (RNGLIST_HEADER_SIZE64): New constant definition.
5854 (struct dwop_section_names): Add rnglists_dwo.
5855 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
5856 (struct loclist_header): Rename to 'loclists_rnglists_header'.
5857 (struct dwo_sections): Add rnglists field.
5858 (read_attribut_reprocess): Add tag parameter.
5859 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
5860 (cu_debug_rnglists_section): New function (decl & definition).
5861 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
5862 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
5863 die whose range is being checked; get rnglist section from
5864 cu_debug_rnglists_section, to get from either objfile or dwo file as
5865 appropriate. Add cases for DW_RLE_base_addressx,
5866 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
5867 the base address to DW_RLE_offset_pairs (not to all ranges), moving
5868 test inside if-condition and updating complaint message.
5869 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
5870 dwarf2_rnglists_process.
5871 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
5872 dwarf2_ranges_process.
5873 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
5874 need_ranges_base and update comment appropriately. Also pass die tag
5875 to dwarf2_ranges_read.
5876 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
5877 need_ranges_base and update comment appropriately. Also pass die tag
5878 to dwarf2_ranges_process.
5879 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
5880 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
5881 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
5882 need_ranges_base and update comment appropriately. Also pass die tag
5883 to read_attribute_reprocess and dwarf2_ranges_read.
5884 (read_loclist_header): Rename function to read_loclists_rnglists_header,
5885 and update function comment appropriately.
5886 (read_loclist_index): Call read_loclists_rnglists_header instead of
5887 read_loclist_header.
5888 (read_rnglist_index): New function.
5889 (read_attribute_reprocess): Add tag parameter. Add code for
5890 DW_FORM_rnglistx, passing tag to read_rnglist_index.
5891 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
5893 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
5895 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
5898 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
5900 * arch-utils.c (show_architecture): Update formatting of messages.
5902 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5904 * gdbtypes.h (struct type) <bounds>: Handle array and string
5906 * ada-lang.c (assign_aggregate): Use type::bounds on
5908 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
5909 * c-varobj.c (c_number_of_children): Likewise.
5910 (c_describe_child): Likewise.
5911 * eval.c (evaluate_subexp_for_sizeof): Likewise.
5912 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
5913 (f_type_print_base): Likewise.
5914 * f-valprint.c (f77_array_offset_tbl): Likewise.
5915 (f77_get_upperbound): Likewise.
5916 (f77_print_array_1): Likewise.
5917 * guile/scm-type.c (gdbscm_type_range): Likewise.
5918 * m2-typeprint.c (m2_array): Likewise.
5919 (m2_is_long_set_of_type): Likewise.
5920 * m2-valprint.c (get_long_set_bounds): Likewise.
5921 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
5922 * python/py-type.c (typy_range): Likewise.
5923 * rust-lang.c (rust_internal_print_type): Likewise.
5924 * type-stack.c (type_stack::follow_types): Likewise.
5925 * valarith.c (value_subscripted_rvalue): Likewise.
5926 * valops.c (value_cast): Likewise.
5928 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5930 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
5931 callers to use the equivalent accessor methods.
5933 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5935 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
5936 (struct type) <bit_stride>: New method.
5937 (TYPE_BIT_STRIDE): Remove.
5938 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
5940 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5942 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
5943 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
5944 callers to use the equivalent accessor methods instead.
5946 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5948 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
5949 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
5950 callers to use the equivalent accessor methods instead.
5952 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5954 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
5955 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
5956 to use dynamic_prop::kind.
5958 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5960 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
5961 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
5962 to get the bound property's kind and check against
5965 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5967 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
5968 all callers to use type::range_bounds followed by
5969 dynamic_prop::{low,high}.
5971 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5973 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
5974 const_val, set_const_val, baton, set_locexpr, set_loclist,
5975 set_addr_offset, variant_parts, set_variant_parts,
5976 original_type, set_original_type>: New methods.
5977 <kind>: Rename to...
5978 <m_kind>: ... this. Update all users to use the new methods
5980 <data>: Rename to...
5981 <m_data>: ... this. Update all users to use the new methods
5984 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5986 * gdbtypes.c (get_discrete_bounds): Return failure if
5987 the range type's bounds are not both defined and constant
5989 (get_array_bounds): Update comment. Remove undefined bound check.
5991 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5993 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
5994 the type::bounds method directly.
5996 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5998 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
5999 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
6000 are used to set the range type's bounds to use set_bounds.
6002 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6004 * exec.c (_initialize_exec): Update exec-file-mismatch help.
6006 2020-07-10 Pedro Alves <pedro@palves.net>
6008 * gdbthread.h (inferior_ref): Define.
6009 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
6010 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
6012 (scoped_restore_current_thread::restore):
6013 Adjust to gdb::ref_ptr.
6014 (scoped_restore_current_thread::~scoped_restore_current_thread):
6015 Remove manual decref handling.
6016 (scoped_restore_current_thread::scoped_restore_current_thread):
6018 inferior_ref::new_reference/thread_info_ref::new_reference.
6019 Incref the thread before calling get_frame_id instead of after.
6020 Let TARGET_CLOSE_ERROR propagate.
6022 2020-07-10 Pedro Alves <pedro@palves.net>
6024 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
6025 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
6026 NOT_AVAILABLE_ERROR.
6027 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
6028 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
6030 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6031 Pedro Alves <pedro@palves.net>
6034 * infrun.c (threads_are_resumed_pending_p): Delete.
6035 (do_target_wait): Remove threads_are_executing and
6036 threads_are_resumed_pending_p checks from the inferior_matches
6037 lambda. Update comments.
6039 2020-07-10 Pedro Alves <pedro@palves.net>
6042 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
6045 2020-07-10 Pedro Alves <pedro@palves.net>
6048 * infrun.c (handle_no_resumed): Handle multiple targets.
6050 2020-07-10 Pedro Alves <pedro@palves.net>
6053 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
6056 2020-07-10 Pedro Alves <pedro@palves.net>
6059 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
6060 threads, not all threads.
6062 2020-07-10 Pedro Alves <pedro@palves.net>
6065 * remote.c (remote_target::open_1): Pass remote target pointer as
6066 data to create_async_event_handler.
6067 (remote_async_inferior_event_handler): Mark async event handler
6068 before returning if the remote target still has either pending
6069 events or unacknowledged notifications.
6071 2020-07-10 John Baldwin <jhb@FreeBSD.org>
6073 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
6075 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
6078 2020-07-09 John Baldwin <jhb@FreeBSD.org>
6080 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
6083 2020-07-09 John Baldwin <jhb@FreeBSD.org>
6085 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
6086 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
6087 AT_FREEBSD_PS_STRINGS.
6089 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
6091 * auto-load.c (auto_load_objfile_script_1): Convert drive part
6092 of debugfile path on Windows.
6094 2020-07-08 John Baldwin <jhb@FreeBSD.org>
6096 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
6099 2020-07-08 Tom Tromey <tromey@adacore.com>
6101 * ada-lang.c (ada_exception_message_1): Use read_memory.
6103 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6106 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
6107 special handling for inline frames.
6108 * findvar.c (value_of_register_lazy): Skip inline frames when
6109 creating lazy register values.
6110 * frame.c (frame_id_computed_p): Delete definition.
6111 * frame.h (frame_id_computed_p): Delete declaration.
6113 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6115 * NEWS: Mention additions to Python API.
6116 * python/py-arch.c (archpy_register_groups): New function.
6117 (arch_object_methods): Add 'register_groups' method.
6118 * python/py-registers.c (reggroup_iterator_object): New struct.
6119 (reggroup_object): New struct.
6120 (gdbpy_new_reggroup): New function.
6121 (gdbpy_reggroup_to_string): New function.
6122 (gdbpy_reggroup_name): New function.
6123 (gdbpy_reggroup_iter): New function.
6124 (gdbpy_reggroup_iter_next): New function.
6125 (gdbpy_new_reggroup_iterator): New function
6126 (gdbpy_initialize_registers): Register new types.
6127 (reggroup_iterator_object_type): Define new Python type.
6128 (gdbpy_reggroup_getset): New static global.
6129 (reggroup_object_type): Define new Python type.
6130 * python/python-internal.h
6132 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6134 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
6135 * python/py-arch.c (archpy_registers): New function.
6136 (arch_object_methods): Add 'registers' method.
6137 * python/py-registers.c: New file.
6138 * python/python-internal.h
6139 (gdbpy_new_register_descriptor_iterator): Declare.
6140 (gdbpy_initialize_registers): Declare.
6141 * python/python.c (do_start_initialization): Call
6142 gdbpy_initialize_registers.
6143 * NEWS: Mention additions to the Python API.
6145 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6147 * NEWS: Mention new Python API method.
6148 * python/py-unwind.c (pending_framepy_architecture): New function.
6149 (pending_frame_object_methods): Add architecture method.
6151 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6153 * gdbarch.c: Regenerate.
6154 * gdbarch.h: Regenerate.
6155 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
6156 (gdbarch_data): Use internal_error for the case where
6157 deprecated_set_gdbarch_data was originally needed.
6158 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
6159 and use passed in obstack.
6160 (libunwind_frame_set_descr): Should no longer get back NULL from
6162 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
6164 * user-regs.c (user_regs_init): Update parameters, and use passed
6166 (user_reg_add): Should no longer get back NULL from gdbarch_data.
6167 (_initialize_user_regs): Register as a pre-init gdbarch data type.
6169 2020-07-06 Tom de Vries <tdevries@suse.de>
6171 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
6172 End-Of-Sequence in lte_is_less_than.
6173 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
6174 "gdb: Don't reorder line table entries too much when sorting".
6176 2020-07-06 Tom de Vries <tdevries@suse.de>
6179 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
6181 2020-07-05 Tom de Vries <tdevries@suse.de>
6184 * inferior.h (struct infcall_suspend_state_deleter): If available, use
6185 std::uncaught_exceptions instead of deprecated
6186 std::uncaught_exception.
6188 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6190 * macroexp.h (macro_stringify): Return
6191 gdb::unique_xmalloc_ptr<char>.
6192 * macroexp.c (macro_stringify): Likewise.
6193 * macrotab.c (fixup_definition): Update.
6195 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6197 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
6198 (lex_one_token): Update.
6199 * macroexp.c (struct macro_buffer) <release>: Return
6200 gdb::unique_xmalloc_ptr<char>.
6201 (macro_stringify): Update.
6202 (macro_expand): Update.
6203 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
6204 * macroexp.h (macro_expand_next): Likewise.
6206 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
6208 * macroexp.h (macro_lookup_ftype): Remove.
6209 (macro_expand, macro_expand_once, macro_expand_next): Remove
6210 lookup function parameters, add scope parameter.
6211 * macroexp.c (scan, substitute_args, expand, maybe_expand,
6212 macro_expand, macro_expand_once, macro_expand_next): Likewise.
6213 * macroscope.h (standard_macro_lookup): Change parameter type
6215 * macroscope.c (standard_macro_lookup): Likewise.
6216 * c-exp.y (lex_one_token): Update.
6217 * macrocmd.c (macro_expand_command): Likewise.
6218 (macro_expand_once_command): Likewise.
6220 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6222 * inf-loop.c (inferior_event_handler): Remove client_data param.
6223 * inf-loop.h (inferior_event_handler): Likewise.
6224 * infcmd.c (step_1): Adjust.
6225 * infrun.c (proceed): Adjust.
6226 (fetch_inferior_event): Remove client_data param.
6227 (infrun_async_inferior_event_handler): Adjust.
6228 * infrun.h (fetch_inferior_event): Remove `void *` param.
6229 * linux-nat.c (handle_target_event): Adjust.
6230 * record-btrace.c (record_btrace_handle_async_inferior_event):
6232 * record-full.c (record_full_async_inferior_event_handler):
6234 * remote.c (remote_async_inferior_event_handler): Adjust.
6236 2020-07-01 Tom Tromey <tom@tromey.com>
6238 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
6239 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
6241 2020-07-01 Tom Tromey <tom@tromey.com>
6243 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
6245 (tui_win_info::make_window): Merge with
6246 tui_gen_win_info::make_window.
6247 (tui_win_info::make_visible): Move from tui_gen_win_info.
6248 * tui/tui-win.c (tui_win_info::max_width): Move from
6250 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
6252 <window_factory>: Likewise.
6253 * tui/tui-layout.c (tui_win_info::resize): Move from
6255 (make_standard_window): Change return type.
6256 (get_locator_window, tui_get_window_by_name): Likewise.
6257 (tui_layout_window::apply): Remove a cast.
6258 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
6259 (struct tui_win_info): Merge with tui_gen_win_info.
6260 (struct tui_gen_win_info): Remove.
6262 2020-07-01 Tom Tromey <tom@tromey.com>
6264 * tui/tui-stack.h (struct tui_locator_window): Derive from
6266 <do_scroll_horizontal, do_scroll_vertical>: New methods.
6267 <can_box>: New method.
6269 2020-07-01 Tom Tromey <tom@tromey.com>
6271 * tui/tui-stack.h (struct tui_locator_window): Remove body.
6273 2020-07-01 Tom Tromey <tom@tromey.com>
6275 * tui/tui-regs.c (tui_data_window::display_registers_from)
6276 (tui_data_window::display_registers_from)
6277 (tui_data_window::first_data_item_displayed)
6278 (tui_data_window::delete_data_content_windows): Update.
6279 (tui_data_window::refresh_window, tui_data_window::no_refresh):
6281 (tui_data_window::check_register_values): Update.
6282 (tui_data_item_window::rerender): Add parameters. Update.
6283 (tui_data_item_window::refresh_window): Remove.
6284 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
6286 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
6288 <refresh_window, max_height, min_height>: Remove.
6289 <rerender>: Add parameters.
6290 <x, y, visible>: New members.
6291 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
6292 <m_item_width>: New member.
6294 2020-07-01 Tom Tromey <tom@tromey.com>
6296 * tui/tui-regs.c (tui_data_window::show_register_group)
6297 (tui_data_window::check_register_values): Update.
6298 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
6301 2020-07-01 Tom Tromey <tom@tromey.com>
6303 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
6306 2020-07-01 Tom Tromey <tom@tromey.com>
6308 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
6309 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
6311 2020-07-01 Tom Tromey <tom@tromey.com>
6313 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
6314 * tui/tui-winsource.h (enum tui_line_or_address_kind)
6315 (struct tui_line_or_address): Move from tui-data.h.
6316 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
6317 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
6318 (tui_cmd_window, tui_source_window_base, tui_source_window)
6319 (tui_disasm_window): Don't declare.
6320 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
6322 (SINGLE_KEY): Move to tui-stack.c.
6324 2020-07-01 Tom Tromey <tom@tromey.com>
6326 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
6328 * tui/tui-regs.c (class tab_expansion_file): New.
6329 (tab_expansion_file::write): New method.
6330 (tui_register_format): Change return type. Use
6332 (tui_get_register, tui_data_window::display_registers_from)
6333 (tui_data_item_window::rerender): Update.
6334 * tui/tui-io.h (tui_expand_tabs): Don't declare.
6335 * tui/tui-io.c (tui_expand_tabs): Remove.
6337 2020-07-01 Tom Tromey <tom@tromey.com>
6339 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
6341 2020-07-01 Fangrui Song <maskray@google.com>
6343 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
6345 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6347 * dwarf2/read.c (set_die_type): Removed conditions to restrict
6348 forms for DW_AT_associated and DW_AT_allocated attributes,
6349 which is already checked in function attr_to_dynamic_prop.
6351 2020-06-30 Tom Tromey <tromey@adacore.com>
6353 * dwarf2/read.c (quirk_rust_enum): Correctly call
6354 alloc_rust_variant for default-less enum.
6356 2020-06-30 Tom Tromey <tromey@adacore.com>
6359 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
6362 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
6364 * gdbarch.sh (displaced_step_copy_insn): Update doc.
6365 * gdbarch.h: Re-generate.
6367 2020-06-28 Tom Tromey <tom@tromey.com>
6369 * command.h (cmd_types): Remove.
6370 (cmd_type): Don't declare.
6371 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
6373 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
6374 * cli/cli-decode.c (cmd_type): Remove.
6376 2020-06-27 Pedro Alves <palves@redhat.com>
6378 * fork-child.c (prefork_hook): Adjust.
6379 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
6381 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
6382 * inferior.c (inferior::set_tty, inferior::tty): New methods.
6383 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
6384 Remove declarations.
6385 (struct inferior) <set_tty, tty>: New methods.
6386 (struct inferior) <terminal>: Rename to ...
6387 (struct inferior) <m_terminal>: ... this and make private.
6388 * main.c (captured_main_1): Adjust.
6389 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
6390 (mi_cmd_inferior_tty_show): Adjust.
6391 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
6392 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
6394 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
6396 * configure.ac: Add --enable-libctf: handle --disable-static
6398 * acinclude.m4: sinclude ../config/enable.m4.
6399 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
6400 (LIBCTF): Substitute in.
6401 (CTF_DEPS): New, likewise.
6402 (CLIBS): libctf needs symbols from libbfd: move earlier.
6403 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
6405 * ctfread.c: Surround in ENABLE_LIBCTF.
6406 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
6407 * configure: Regenerate.
6408 * config.in: Likewise.
6410 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
6412 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
6414 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
6416 * inferior.h (struct inferior) <terminal>: Change type to
6417 gdb::unique_xmalloc_ptr<char>.
6418 * inferior.c (inferior::~inferior): Don't free inf->terminal.
6419 * infcmd.c (set_inferior_io_terminal): Don't free terminal
6420 field, adjust to unique pointer.
6421 (get_inferior_io_terminal): Adjust to unique pointer.
6423 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6425 * riscv-tdep.c (riscv_print_registers_info): Loop over all
6426 registers, not just the known core set of registers.
6428 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6430 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
6431 fflags, frm, and fcsr registers.
6432 (riscv_register_reggroup_p): Remove unknown CSRs from save and
6434 (riscv_tdesc_unknown_reg): New function.
6435 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
6436 tdesc_use_registers.
6437 * riscv-tdep.h (struct gdbarch_tdep): Add
6438 unknown_csrs_first_regnum, unknown_csrs_count,
6439 duplicate_fflags_regnum, duplicate_frm_regnum, and
6440 duplicate_fcsr_regnum fields.
6442 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6444 * target-descriptions.c (tdesc_use_registers): Add new parameter a
6445 callback, use the callback (when not null) to help number unknown
6447 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
6448 (tdesc_use_registers): Add extra parameter to declaration.
6450 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6452 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
6454 (class riscv_pending_register_alias): Likewise.
6455 (riscv_register_feature::register_info): Change 'required_p' field
6456 to 'required', and change its type. Add 'check' member function.
6457 (riscv_register_feature::register_info::check): Define new member
6459 (riscv_xreg_feature): Change initialisation of 'required' field.
6460 (riscv_freg_feature): Likewise.
6461 (riscv_virtual_feature): Likewise.
6462 (riscv_csr_feature): Likewise.
6463 (riscv_check_tdesc_feature): Take extra parameter, the csr
6464 tdesc_feature, rewrite the function to use the new
6465 riscv_register_feature::register_info::check function.
6466 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
6468 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6470 * features/Makefile: Remove all references to the deleted files
6472 * features/riscv/32bit-csr.c: Deleted.
6473 * features/riscv/32bit-csr.xml: Deleted.
6474 * features/riscv/64bit-csr.c: Deleted.
6475 * features/riscv/64bit-csr.xml: Deleted.
6476 * features/riscv/rebuild-csr-xml.sh: Deleted.
6478 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6480 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
6481 whitespace error for declaration of names member variable.
6482 (struct riscv_register_feature): Add new prefer_first_name member
6483 variable, and fix whitespace error in declaration of registers.
6484 (riscv_xreg_feature): Initialize prefer_first_name field.
6485 (riscv_freg_feature): Likewise.
6486 (riscv_virtual_feature): Likewise.
6487 (riscv_csr_feature): Likewise.
6488 (riscv_register_name): Expand on comments. Remove register name
6489 modifications for CSR and virtual registers.
6491 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6493 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
6496 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6498 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
6500 (class riscv_pending_register_alias): New class.
6501 (riscv_check_tdesc_feature): Take vector of pending aliases and
6502 populate it as appropriate.
6503 (riscv_setup_register_aliases): Delete.
6504 (riscv_gdbarch_init): Create vector of pending aliases and pass it
6505 to riscv_check_tdesc_feature in all cases. Use the vector to
6506 create the register aliases.
6508 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6510 * sol2-tdep.c (sol2_static_transform_name): Remove.
6511 (sol2_init_abi): Don't register it.
6512 * gdbarch.sh (static_transform_name): Remove.
6513 * gdbarch.c, gdbarch.h: Regenerate.
6515 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
6516 gdbarch_static_transform_name.
6517 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
6518 * stabsread.c (define_symbol) <'X'>: Remove.
6519 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
6522 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
6523 <'S'>: Remove call to gdbarch_static_transform_name.
6525 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6527 * procfs.c (procfs_pre_trace): New function.
6528 (procfs_target::create_inferior): Pass it to fork_inferior.
6530 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6532 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
6533 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
6534 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
6535 sol2-tdep.o, sparc-sol2-tdep.o.
6536 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
6537 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
6538 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
6539 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
6541 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6543 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
6544 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
6546 Remove calls to set_gdbarch_skip_solib_resolver,
6547 set_gdbarch_core_pid_to_str.
6548 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
6549 (i386_sol2_static_transform_name): Remove.
6550 (i386_sol2_init_abi): Call sol2_init_abi.
6551 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6552 set_gdbarch_static_transform_name,
6553 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6554 Use sol2_sigtramp_p.
6555 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
6556 (sol2_sigtramp_p): New function.
6557 (sol2_static_transform_name): New function.
6558 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
6559 (sol2_init_abi): New function.
6560 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
6561 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
6562 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
6563 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
6564 (sparc_sol2_static_transform_name): Remove.
6565 (sparc32_sol2_init_abi): Call sol2_init_abi.
6566 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6567 set_gdbarch_static_transform_name,
6568 set_gdbarch_skip_solib_resolver,
6569 set_gdbarch_core_pid_to_str.
6570 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
6571 (sparc_sol2_static_transform_name): Remove
6572 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
6573 call sol2_sigtramp_p.
6574 (sparc64_sol2_init_abi): Call sol2_init_abi.
6575 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6576 set_gdbarch_static_transform_name,
6577 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6579 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6581 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
6582 * exec.c (validate_exec_file): If from_tty, set both
6583 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
6584 * symfile.c (symbol_file_add_with_addrs): if always_confirm
6585 and from_tty, unconditionally ask a confirmation.
6587 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6589 * target-descriptions.c (tdesc_architecture_name): Protect against
6590 NULL pointer dereference.
6591 (maint_print_xml_tdesc_cmd): New function.
6592 (_initialize_target_descriptions): Register new 'maint print
6593 xml-tdesc' command and give it the filename completer.
6594 * NEWS: Mention new 'maint print xml-tdesc' command.
6596 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6598 * target-descriptions.c (class tdesc_compatible_info): New class.
6599 (struct target_desc): Change type of compatible vector.
6600 (tdesc_compatible_p): Update for change in type of
6601 target_desc::compatible.
6602 (tdesc_compatible_info_list): New function.
6603 (tdesc_compatible_info_arch_name): New function.
6604 (tdesc_add_compatible): Update for change in type of
6605 target_desc::compatible.
6606 (print_c_tdesc::visit_pre): Likewise.
6608 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6610 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
6611 whitespace to underscore.
6612 (maint_print_c_tdesc_cmd): Use fake filename for target
6613 descriptions that came from the target.
6614 (_initialize_target_descriptions): Add filename command completion
6615 for 'maint print c-tdesc'.
6617 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
6619 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
6622 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
6624 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
6626 (dwarf2_find_location_expression): Likewise.
6627 (call_site_parameter_matches): Likewise.
6628 (dwarf2_compile_expr_to_ax): Likewise.
6629 (disassemble_dwarf_expression): Likewise.
6630 (loclist_describe_location): Likewise.
6632 2020-06-23 Pedro Alves <palves@redhat.com>
6634 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
6635 progspace-and-thread.h. Include scoped-mock-context.h instead.
6636 (register_to_value_test): Use scoped_mock_context.
6637 * regcache.c: Include "scoped-mock-context.h".
6638 (cooked_read_test): Don't error out if a target is already pushed.
6639 Use scoped_mock_context. Adjust.
6640 * scoped-mock-context.h: New file.
6642 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6644 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
6646 (ada_language::is_string_type_p): New member function.
6647 * c-lang.c (c_language_data): Delete la_is_string_type_p
6649 (cplus_language_data): Likewise.
6650 (asm_language_data): Likewise.
6651 (minimal_language_data): Likewise.
6652 * d-lang.c (d_language_data): Likewise.
6653 * f-lang.c (f_is_string_type_p): Delete function, implementation
6654 moved to f_language::is_string_type_p.
6655 (f_language_data): Delete la_is_string_type_p initializer.
6656 (f_language::is_string_type_p): New member function,
6657 implementation from f_is_string_type_p.
6658 * go-lang.c (go_is_string_type_p): Delete function, implementation
6659 moved to go_language::is_string_type_p.
6660 (go_language_data): Delete la_is_string_type_p initializer.
6661 (go_language::is_string_type_p): New member function,
6662 implementation from go_is_string_type_p.
6663 * language.c (language_defn::is_string_type_p): Define new member
6665 (default_is_string_type_p): Make static, add comment copied from
6667 (unknown_language_data): Delete la_is_string_type_p initializer.
6668 (unknown_language::is_string_type_p): New member function.
6669 (auto_language_data): Delete la_is_string_type_p initializer.
6670 (auto_language::is_string_type_p): New member function.
6671 * language.h (language_data): Delete la_is_string_type_p field.
6672 (language_defn::is_string_type_p): Declare new function.
6673 (default_is_string_type_p): Delete desclaration, move comment to
6675 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
6676 moved to m2_language::is_string_type_p.
6677 (m2_language_data): Delete la_is_string_type_p initializer.
6678 (m2_language::is_string_type_p): New member function,
6679 implementation from m2_is_string_type_p.
6680 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
6682 * opencl-lang.c (opencl_language_data): Likewise.
6683 * p-lang.c (pascal_is_string_type_p): Delete function,
6684 implementation moved to pascal_language::is_string_type_p.
6685 (pascal_language_data): Delete la_is_string_type_p initializer.
6686 (pascal_language::is_string_type_p): New member function,
6687 implementation from pascal_is_string_type_p.
6688 * rust-lang.c (rust_is_string_type_p): Delete function,
6689 implementation moved to rust_language::is_string_type_p.
6690 (rust_language_data): Delete la_is_string_type_p initializer.
6691 (rust_language::is_string_type_p): New member function,
6692 implementation from rust_is_string_type_p.
6693 * valprint.c (val_print_scalar_or_string_type_p): Update call to
6696 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6698 * ada-lang.c (ada_language_data): Delete la_print_typedef
6700 (ada_language::print_typedef): New member function.
6701 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
6702 (cplus_language_data): Likewise.
6703 (asm_language_data): Likewise.
6704 (minimal_language_data): Likewise.
6705 * d-lang.c (d_language_data): Likewise.
6706 * f-lang.c (f_language_data): Likewise.
6707 (f_language::print_typedef): New member function.
6708 * go-lang.c (go_language_data): Delete la_print_typedef
6710 * language.c (language_defn::print_typedef): Define member
6712 (unknown_language_data): Delete la_print_typedef initializer.
6713 (unknown_language::print_typedef): New member function.
6714 (auto_language_data): Delete la_print_typedef initializer.
6715 (auto_language::print_typedef): New member function.
6716 * language.h (language_data): Delete la_print_typedef field.
6717 (language_defn::print_typedef): Declare new member function.
6718 (LA_PRINT_TYPEDEF): Update call to print_typedef.
6719 (default_print_typedef): Delete declaration.
6720 * m2-lang.c (m2_language_data): Delete la_print_typedef
6722 (m2_language::print_typedef): New member function.
6723 * objc-lang.c (objc_language_data): Delete la_print_typedef
6725 * opencl-lang.c (opencl_language_data): Likewise.
6726 * p-lang.c (pascal_language_data): Likewise.
6727 (pascal_language::print_typedef): New member function.
6728 * rust-lang.c (rust_print_typedef): Delete function,
6729 implementation moved to rust_language::print_typedef.
6730 (rust_language): Delete la_print_typedef initializer.
6731 (rust_language::print_typedef): New member function,
6732 implementation from rust_print_typedef.
6733 * typeprint.c (default_print_typedef): Delete.
6735 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6737 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
6738 (ada_language::printstr): New member function.
6739 * c-lang.c (c_language_data): Delete la_printstr initializer.
6740 (cplus_language_data): Likewise.
6741 (asm_language_data): Likewise.
6742 (minimal_language_data): Likewise.
6743 * d-lang.c (d_language_data): Likewise.
6744 * f-lang.c (f_printstr): Rename to f_language::printstr.
6745 (f_language_data): Delete la_printstr initializer.
6746 (f_language::printstr): New member function, implementation from
6748 * go-lang.c (go_language_data): Delete la_printstr initializer.
6749 * language.c (language_defn::printstr): Define new member
6751 (unk_lang_printstr): Delete.
6752 (unknown_language_data): Delete la_printstr initializer.
6753 (unknown_language::printstr): New member function.
6754 (auto_language_data): Delete la_printstr initializer.
6755 (auto_language::printstr): New member function.
6756 * language.h (language_data): Delete la_printstr field.
6757 (language_defn::printstr): Declare new member function.
6758 (LA_PRINT_STRING): Update call to printstr.
6759 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
6760 (m2_language_data): Delete la_printstr initializer.
6761 (m2_language::printstr): New member function, implementation from
6763 * objc-lang.c (objc_language_data): Delete la_printstr
6765 * opencl-lang.c (opencl_language_data): Likewise.
6766 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
6767 (pascal_language_data): Delete la_printstr initializer.
6768 (pascal_language::printstr): New member function, implementation
6769 from pascal_printstr.
6770 * p-lang.h (pascal_printstr): Delete declaration.
6771 * rust-lang.c (rust_printstr): Update header comment.
6772 (rust_language_data): Delete la_printstr initializer.
6773 (rust_language::printstr): New member function.
6775 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6777 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
6778 (ada_language::printchar): New member function.
6779 * c-lang.c (c_language_data): Delete la_printchar initializer.
6780 (cplus_language_data): Likewise.
6781 (asm_language_data): Likewise.
6782 (minimal_language_data): Likewise.
6783 * d-lang.c (d_language_data): Likewise.
6784 * f-lang.c (f_printchar): Rename to f_language::printchar.
6785 (f_language_data): Delete la_printchar initializer.
6786 (f_language::printchar): New member function, implementation from
6788 * go-lang.c (go_language_data): Delete la_printchar initializer.
6789 * language.c (unk_lang_printchar): Delete.
6790 (language_defn::printchar): Define new member function.
6791 (unknown_language_data): Delete la_printchar initializer.
6792 (unknown_language::printchar): New member function.
6793 (auto_language_data): Delete la_printchar initializer.
6794 (auto_language::printchar): New member function.
6795 * language.h (language_data): Delete la_printchar field.
6796 (language_defn::printchar): Declare new member function.
6797 (LA_PRINT_CHAR): Update call to printchar.
6798 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
6799 (m2_language::printchar): New member function.
6800 * objc-lang.c (objc_language_data): Delete la_printchar
6802 * opencl-lang.c (opencl_language_data): Likewise.
6803 * p-lang.c (pascal_language_data): Delete la_printchar
6805 (pascal_language::printchar): New member function.
6806 * rust-lang.c (rust_printchar): Rename to
6807 rust_language::printchar.
6808 (rust_language_data): Delete la_printchar initializer.
6809 (rust_language::printchar): New member function, implementation
6810 from rust_printchar.
6812 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6814 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
6815 (ada_language_data): Delete la_emitchar initializer.
6816 (ada_language::emitchar): New member function, implementation from
6818 * c-lang.c (c_language_data): Delete la_emitchar initializer.
6819 (cplus_language_data): Likewise.
6820 (asm_language_data): Likewise.
6821 (minimal_language_data): Likewise.
6822 * d-lang.c (d_language_data): Likewise.
6823 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
6824 (f_language_data): Delete la_emitchar initializer.
6825 (f_language::emitchar): New member function, implementation from
6827 * go-lang.c (go_language_data): Delete la_emitchar initializer.
6828 * language.c (unk_lang_emit_char): Delete.
6829 (language_defn::emitchar): New member function definition.
6830 (unknown_language_data): Delete la_emitchar initializer.
6831 (unknown_language::emitchar): New member function.
6832 (auto_language_data): Delete la_emitchar initializer.
6833 (auto_language::emitchar): New member function.
6834 * language.h (language_data): Delete la_emitchar field.
6835 (language_defn::emitchar): New member field declaration.
6836 (LA_EMIT_CHAR): Update call to emitchar.
6837 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
6838 (m2_language_data): Delete la_emitchar initializer.
6839 (m2_language::emitchar): New member function, implementation from
6841 * objc-lang.c (objc_language_data): Delete la_emitchar
6843 * opencl-lang.c (opencl_language_data): Likewise.
6844 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
6845 (pascal_language_data): Delete la_emitchar initializer.
6846 (pascal_language::emitchar): New member function, implementation
6847 from pascal_emit_char.
6848 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
6849 (rust_language_data): Delete la_emitchar initializer.
6850 (rust_language::emitchar): New member function, implementation
6853 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6855 * ada-lang.c (resolve): Rename to ada_language::post_parser.
6856 (ada_language_data): Delete la_post_parser initializer.
6857 (ada_language::post_parser): New member function.
6858 * c-lang.c (c_language_data): Delete la_post_parser initializer.
6859 (cplus_language_data): Likewise.
6860 (asm_language_data): Likewise.
6861 (minimal_language_data): Likewise.
6862 * d-lang.c (d_language_data): Likewise.
6863 * f-lang.c (f_language_data): Likewise.
6864 * go-lang.c (go_language_data): Likewise.
6865 * language.c (unknown_language_data): Likewise.
6866 (auto_language_data): Likewise.
6867 * language.h (language_data): Delete la_post_parser field.
6868 (language_defn::post_parser): New member function.
6869 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
6870 * objc-lang.c (objc_language_data): Likewise.
6871 * opencl-lang.c (opencl_language_data): Likewise.
6872 * p-lang.c (pascal_language_data): Likewise.
6873 * parse.c (parse_exp_in_context): Update call to post_parser.
6874 (null_post_parser): Delete definition.
6875 * parser-defs.h (null_post_parser): Delete declaration.
6876 * rust-lang.c (rust_language_data): Delete la_post_parser
6879 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6881 * ada-lang.c (parse): Rename to ada_language::parser.
6882 (ada_language_data): Delete la_parser initializer.
6883 (ada_language::parser): New member function, implementation from
6885 * c-lang.c (c_language_data): Delete la_parser initializer.
6886 (cplus_language_data): Likewise.
6887 (asm_language_data): Likewise.
6888 (minimal_language_data): Likewise.
6889 * d-lang.c (d_language_data): Likewise.
6890 (d_language::parser): New member function.
6891 * f-lang.c (f_language_data): Delete la_parser initializer.
6892 (f_language::parser): New member function.
6893 * go-lang.c (go_language_data): Delete la_parser initializer.
6894 (go_language::parser): New member function.
6895 * language.c (unk_lang_parser): Delete.
6896 (language_defn::parser): Define new member function.
6897 (unknown_language_data): Delete la_parser initializer.
6898 (unknown_language::parser): New member function.
6899 (auto_language_data): Delete la_parser initializer.
6900 (auto_language::parser): New member function.
6901 * language.h (language_data): Delete la_parser field.
6902 (language_defn::parser): Declare new member function.
6903 * m2-lang.c (m2_language_data): Delete la_parser initializer.
6904 (m2_language::parser): New member function.
6905 * objc-lang.c (objc_language_data): Delete la_parser initializer.
6906 * opencl-lang.c (opencl_language_data): Likewise.
6907 * p-lang.c (pascal_language_data): Likewise.
6908 (pascal_language::parser): New member function.
6909 * parse.c (parse_exp_in_context): Update call to parser.
6910 * rust-lang.c (rust_language_data): Delete la_parser initializer.
6911 (rust_language::parser): New member function.
6913 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6915 * top.c (print_gdb_configuration): Print --with-python-libdir
6916 configuration value.
6918 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6920 * NEWS: Mention change to the alias command.
6922 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6924 * cli/cli-cmds.c (lookup_cmd_for_default_args)
6925 (alias_command_completer)
6926 (make_alias_options_def_group): New functions.
6927 (alias_opts, alias_option_defs): New struct and array.
6928 (alias_usage_error): Update usage.
6929 (alias_command): Handles optional DEFAULT-ARGS... arguments.
6930 Use option framework.
6931 (_initialize_cli_cmds): Update alias command help.
6932 Update aliases command help.
6934 Add NULL for new default_args lookup_cmd argument.
6935 (valid_command_p): Rename to validate_aliased_command.
6936 Add NULL for new default_args lookup_cmd argument. Verify that the
6937 aliased_command has no default args.
6938 * cli/cli-decode.c (help_cmd): Show aliases definitions.
6939 (lookup_cmd_1, lookup_cmd): New argument default_args.
6941 Add NULL for new default_args lookup_cmd argument.
6942 (print_help_for_command): Show default args under the layout
6943 alias some_alias = some_aliased_cmd some_alias_default_arg.
6944 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
6945 xfree default_args in destructor.
6946 * cli/cli-script.c (process_next_line, do_define_command):
6947 Add NULL for new default_args lookup_cmd argument.
6948 * command.h: Declare new default_args argument in lookup_cmd
6950 * completer.c (complete_line_internal_1):
6951 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6952 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
6953 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
6955 * infcmd.c (_initialize_infcmd): Likewise.
6956 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
6957 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
6958 * python/py-param.c (add_setshow_generic): Likewise.
6959 * remote.c (_initialize_remote): Likewise.
6960 * top.c (execute_command): Prepend default_args if command has some.
6962 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6963 * tracepoint.c (validate_actionline, encode_actions_1):
6964 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6966 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6968 * jit.c (jit_read_descriptor): Use bool as the return type.
6969 (jit_breakpoint_re_set_internal): Use bool as the return type.
6970 Invert the return value logic; return true if the jit breakpoint
6971 has been successfully initialized.
6972 (jit_inferior_init): Update the call to
6973 jit_breakpoint_re_set_internal.
6975 2020-06-22 Pedro Alves <palves@redhat.com>
6978 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
6979 Use the current inferior instead. Don't return
6980 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
6982 * sol-thread.c (sol_thread_target::wait): Don't reference
6984 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
6985 (sol_update_thread_list_callback): Use the current inferior's pid
6986 instead of inferior_ptid.
6988 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6990 * procfs.c: Cleanup many comments.
6992 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
6993 (AFTER_WATCHFLAG): Replace by value.
6995 (MAIN_PROC_NAME_FORMAT): Inline ...
6996 (create_procinfo): ... here.
6998 (procfs_debug_inferior): Remove SYS_exec handling.
6999 (syscall_is_exec): Likewise.
7000 (procfs_set_exec_trap): Likewise.
7002 (syscall_is_lwp_exit): Inline in callers.
7003 (syscall_is_exit): Likewise.
7004 (syscall_is_exec): Likewise.
7005 (syscall_is_lwp_create): Likewise.
7007 (invalidate_cache): Remove #if 0 code.
7009 (make_signal_thread_runnable): Remove.
7010 (procfs_target::resume): Remove #if 0 code.
7012 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7015 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
7017 (procfs_target::create_inferior): ... here.
7019 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7021 * exec.c (validate_exec_file): Ensure the build-id is up to
7022 date by calling reopen_exec_file (that checks file timestamp
7023 to decide to re-read the file).
7025 2020-06-18 Pedro Alves <palves@redhat.com>
7028 * gdbthread.h (delete_thread, delete_thread_silent)
7029 (find_thread_ptid): Update comments.
7030 * thread.c (current_thread_): New global.
7031 (is_current_thread): Move higher, and reimplement.
7032 (inferior_thread): Reimplement.
7033 (set_thread_exited): Use bool. Add assertions.
7034 (add_thread_silent): Simplify thread-reuse handling by always
7035 calling delete_thread.
7036 (delete_thread): Remove intro comment.
7037 (find_thread_ptid): Skip exited threads.
7038 (switch_to_thread_no_regs): Write to current_thread_.
7039 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
7040 INFERIOR_PTID. Clear current_thread_.
7042 2020-06-18 Pedro Alves <palves@redhat.com>
7044 * aix-thread.c (pd_update): Use switch_to_thread.
7046 2020-06-18 Pedro Alves <palves@redhat.com>
7048 * ravenscar-thread.c (ravenscar_thread_target): Update.
7049 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
7050 (ravenscar_thread_target::add_active_thread): ... this. Don't
7051 set m_base_ptid here. Update to avoid referencing inferior_ptid.
7052 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
7054 2020-06-18 Pedro Alves <palves@redhat.com>
7056 * nat/windows-nat.c (current_windows_thread): Remove.
7057 * nat/windows-nat.h (current_windows_thread): Remove.
7058 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
7060 (display_selectors): Adjust to fetch the current
7061 windows_thread_info based on inferior_ptid.
7062 (fake_create_process): No longer write to current_windows_thread.
7063 (windows_nat_target::get_windows_debug_event):
7064 Don't set inferior_ptid or current_windows_thread.
7065 (windows_nat_target::wait): Adjust to not rely on
7066 current_windows_thread.
7067 (do_initial_windows_stuff): Now a method of windows_nat_target.
7068 Switch to the last_ptid thread.
7069 (windows_nat_target::attach): Adjust.
7070 (windows_nat_target::detach): Use switch_to_no_thread instead of
7071 writing to inferior_ptid directly.
7072 (windows_nat_target::create_inferior): Adjust.
7074 2020-06-18 Pedro Alves <palves@redhat.com>
7076 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
7078 2020-06-18 Pedro Alves <palves@redhat.com>
7080 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
7081 after creating it, instead of writing to inferior_ptid. Don't
7082 write to inferior_ptid.
7084 2020-06-18 Pedro Alves <palves@redhat.com>
7086 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
7088 2020-06-18 Pedro Alves <palves@redhat.com>
7090 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
7091 it, instead of writing to inferior_ptid.
7093 2020-06-18 Pedro Alves <palves@redhat.com>
7095 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
7098 2020-06-18 Pedro Alves <palves@redhat.com>
7100 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
7101 instead of writing to inferior_ptid directly.
7103 2020-06-18 Pedro Alves <palves@redhat.com>
7105 * corelow.c (core_target::close): Use switch_to_no_thread instead
7106 of writing to inferior_ptid directly.
7107 (add_to_thread_list, core_target_open): Use switch_to_thread
7108 instead of writing to inferior_ptid directly.
7110 2020-06-18 Pedro Alves <palves@redhat.com>
7112 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
7114 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
7116 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
7117 inferior_ptid directly.
7118 (darwin_nat_target::init_thread_list): Switch to thread, instead
7119 of writing to inferior_ptid.
7120 (darwin_nat_target::attach): Don't write to inferior_ptid.
7121 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
7123 2020-06-18 Pedro Alves <palves@redhat.com>
7125 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
7127 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
7128 Instead use switch_to_thread.
7129 (gnu_nat_target::detach): Use switch_to_no_thread
7130 instead of writing to inferior_ptid directly. Used passed-in
7131 inferior instead of looking up the inferior by pid.
7133 2020-06-18 Pedro Alves <palves@redhat.com>
7135 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
7138 2020-06-18 Pedro Alves <palves@redhat.com>
7140 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
7142 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
7144 (nto_procfs_target::detach): Avoid referencing
7145 inferior_ptid. Use switch_to_no_thread instead of writing to
7146 inferior_ptid directly.
7147 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
7148 instead of writing to inferior_ptid directly.
7149 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
7152 2020-06-18 Pedro Alves <palves@redhat.com>
7154 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
7155 after creating it, instead of writing to inferior_ptid.
7156 (gdbsim_target_open): Use switch_to_no_thread instead of writing
7157 to inferior_ptid directly.
7158 (gdbsim_target::wait): Don't write to inferior_ptid.
7160 2020-06-18 Pedro Alves <palves@redhat.com>
7162 * remote.c (remote_target::remote_notice_new_inferior): Use
7163 switch_to_thread instead of writing to inferior_ptid directly.
7164 (remote_target::add_current_inferior_and_thread): Use
7165 switch_to_no_thread instead of writing to inferior_ptid directly.
7166 (extended_remote_target::attach): Use switch_to_inferior_no_thread
7167 and switch_to_thread instead of using set_current_inferior or
7168 writing to inferior_ptid directly.
7170 2020-06-18 Pedro Alves <palves@redhat.com>
7172 * tracectf.c (ctf_target_open): Switch to added thread instead of
7173 writing to inferior_ptid directly.
7174 (ctf_target::close): Use switch_to_no_thread instead of writing to
7175 inferior_ptid directly.
7177 2020-06-18 Pedro Alves <palves@redhat.com>
7179 * tracefile-tfile.c (tfile_target_open): Don't write to
7180 inferior_ptid directly, instead switch to added thread.
7181 (tfile_target::close): Use switch_to_no_thread instead of writing
7182 to inferior_ptid directly.
7184 2020-06-18 Pedro Alves <palves@redhat.com>
7186 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
7187 (procfs_target::detach): Use switch_to_no_thread
7188 instead of writing to inferior_ptid directly.
7189 (do_attach): Change return type to void. Switch to the added
7191 (procfs_target::create_inferior): Switch to the added thread.
7192 (procfs_do_thread_registers): Don't write to inferior_ptid.
7194 2020-06-18 Pedro Alves <palves@redhat.com>
7196 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
7197 of writing to inferior_ptid.
7198 (scoped_restore_exited_inferior): Delete.
7199 (handle_vfork_child_exec_or_exit): Simplify using
7200 scoped_restore_current_pspace_and_thread. Use switch_to_thread
7201 instead of writing to inferior_ptid.
7202 (THREAD_STOPPED_BY): Delete.
7203 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
7204 (thread_stopped_by_hw_breakpoint): Delete.
7205 (save_waitstatus): Use
7206 scoped_restore_current_thread+switch_to_thread, and call
7207 target_stopped_by_watchpoint instead of
7208 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
7209 instead of thread_stopped_by_sw_breakpoint, and
7210 target_stopped_by_hw_breakpoint instead of
7211 thread_stopped_by_hw_breakpoint.
7212 (handle_inferior_event)
7213 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
7214 inferior_ptid directly, nor
7215 set_current_inferior/set_current_program_space. Use
7216 switch_to_thread / switch_to_inferior_no_thread instead.
7218 2020-06-18 Pedro Alves <palves@redhat.com>
7220 * target.c (generic_mourn_inferior): Use switch_to_no_thread
7221 instead of writing to inferior_ptid.
7223 2020-06-18 Pedro Alves <palves@redhat.com>
7225 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
7227 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
7228 to the added thread.
7229 (inf_ptrace_target::detach_success): Use switch_to_no_thread
7230 instead of writing to inferior_ptid.
7232 2020-06-18 Pedro Alves <palves@redhat.com>
7234 * gdbarch-selftests.c: Include "progspace-and-thread.h".
7235 (register_to_value_test): Mock a program_space too. Heap-allocate
7236 the address space. Don't write to inferior_ptid. Use
7237 switch_to_thread instead.
7239 2020-06-18 Pedro Alves <palves@redhat.com>
7241 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
7243 (find_signalled_thread()): New, factored out from
7244 linux_make_corefile_notes and adjusted to handle exited threads.
7245 (linux_make_corefile_notes): Adjust to use the new
7246 find_signalled_thread.
7248 2020-06-18 Pedro Alves <palves@redhat.com>
7250 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
7251 of saving/restoring inferior_ptid.
7253 2020-06-17 Tom Tromey <tom@tromey.com>
7255 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
7256 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
7258 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
7260 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
7262 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
7265 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7267 * regformats/reg-arm.dat: Remove.
7268 * regformats/reg-bfin.dat: Remove.
7269 * regformats/reg-cris.dat: Remove.
7270 * regformats/reg-crisv32.dat: Remove.
7271 * regformats/reg-m32r.dat: Remove.
7272 * regformats/reg-tilegx.dat: Remove.
7273 * regformats/reg-tilegx32.dat: Remove.
7275 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7277 * features/Makefile (WHICH): Remove arm files.
7278 * regformats/arm/arm-with-iwmmxt.dat: Remove.
7279 * regformats/arm/arm-with-neon.dat: Remove.
7280 * regformats/arm/arm-with-vfpv2.dat: Remove.
7281 * regformats/arm/arm-with-vfpv3.dat: Remove.
7283 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7285 * features/Makefile (XMLTOC): Remove rx.xml.
7287 2020-06-17 Pedro Alves <palves@redhat.com>
7289 * gdbthread.h (thread_control_state) <trap_expected> Update
7292 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7294 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
7295 ada_language::lookup_symbol_nonlocal.
7296 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
7297 (ada_language::lookup_symbol_nonlocal): New member function,
7298 implementation from ada_lookup_symbol_nonlocal.
7299 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
7301 (cplus_language_data): Delete la_lookup_symbol_nonlocal
7303 (cplus_language::lookup_symbol_nonlocal): New member function.
7304 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
7305 (minimal_language_data) Likewise.
7306 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
7307 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
7309 (d_language::lookup_symbol_nonlocal): New member function.
7310 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
7312 (f_language::lookup_symbol_nonlocal): New member function.
7313 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
7315 * language.c (unknown_language_data): Likewise.
7316 (auto_language_data): Likewise.
7317 * language.h (language_data): Delete la_lookup_symbol_nonlocal
7319 (language_defn::lookup_symbol_nonlocal): New member function.
7320 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
7322 * objc-lang.c (objc_language_data): Likewise.
7323 * opencl-lang.c (opencl_language_data): Likewise.
7324 * p-lang.c (pascal_language_data): Likewise.
7325 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
7326 rust_language::lookup_symbol_nonlocal.
7327 (rust_language_data): Delete la_lookup_symbol_nonlocal
7329 (rust_language::lookup_symbol_nonlocal): New member function,
7330 implementation from rust_lookup_symbol_nonlocal.
7331 * symtab.c (lookup_symbol_aux): Update call to
7332 lookup_symbol_nonlocal.
7333 (basic_lookup_symbol_nonlocal): Rename to...
7334 (language_defn::lookup_symbol_nonlocal): ...this, and update
7335 header comment. Remove language_defn parameter, and replace with
7337 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
7339 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7341 * ada-lang.c (ada_language_data): Delete la_value_print_inner
7343 (ada_language::value_print_inner): New member function.
7344 * c-lang.c (c_language_data): Delete la_value_print_inner
7346 (cplus_language_data): Likewise.
7347 (asm_language_data): Likewise.
7348 (minimal_language_data): Likewise.
7349 * d-lang.c (d_language_data): Likewise.
7350 (d_language::value_print_inner): New member function.
7351 * f-lang.c (f_language_data): Delete la_value_print_inner
7353 (f_language::value_print_inner): New member function.
7354 * f-lang.h (f_value_print_innner): Rename to...
7355 (f_value_print_inner): ...this (note spelling of 'inner').
7356 * f-valprint.c (f_value_print_innner): Rename to...
7357 (f_value_print_inner): ...this (note spelling of 'inner').
7358 * go-lang.c (go_language_data): Delete la_value_print_inner
7360 (go_language::value_print_inner): New member function.
7361 * language.c (language_defn::value_print_inner): Define new member
7363 (unk_lang_value_print_inner): Delete.
7364 (unknown_language_data): Delete la_value_print_inner initializer.
7365 (unknown_language::value_print_inner): New member function.
7366 (auto_language_data): Delete la_value_print_inner initializer.
7367 (auto_language::value_print_inner): New member function.
7368 * language.h (language_data): Delete la_value_print_inner field.
7369 (language_defn::value_print_inner): Delcare new member function.
7370 * m2-lang.c (m2_language_data): Delete la_value_print_inner
7372 (m2_language::value_print_inner): New member function.
7373 * objc-lang.c (objc_language_data): Delete la_value_print_inner
7375 * opencl-lang.c (opencl_language_data): Likewise.
7376 * p-lang.c (pascal_language_data): Likewise.
7377 (pascal_language::value_print_inner): New member function.
7378 * rust-lang.c (rust_language_data): Delete la_value_print_inner
7380 (rust_language::value_print_inner): New member function.
7381 * valprint.c (do_val_print): Update call to value_print_inner.
7383 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7385 * ada-lang.c (ada_language_data): Delete la_value_print
7387 (ada_language::value_print): New member function.
7388 * c-lang.c (c_language_data): Delete la_value_print initializer.
7389 (cplus_language_data): Likewise.
7390 (asm_language_data): Likewise.
7391 (minimal_language_data): Likewise.
7392 * d-lang.c (d_language_data): Likewise.
7393 * f-lang.c (f_language_data): Likewise.
7394 * go-lang.c (go_language_data): Likewise.
7395 * language.c (unk_lang_value_print): Delete.
7396 (language_defn::value_print): Define new member function.
7397 (unknown_language_data): Delete la_value_print initializer.
7398 (unknown_language::value_print): New member function.
7399 (auto_language_data): Delete la_value_print initializer.
7400 (auto_language::value_print): New member function.
7401 * language.h (language_data): Delete la_value_print field.
7402 (language_defn::value_print): Declare new member function.
7403 (LA_VALUE_PRINT): Update call to value_print.
7404 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
7405 * objc-lang.c (objc_language_data): Likewise.
7406 * opencl-lang.c (opencl_language_data): Likewise.
7407 * p-lang.c (pascal_language_data): Likewise.
7408 (pascal_language::value_print): New member function.
7409 * rust-lang.c (rust_language_data): Delete la_value_print
7412 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7414 * ada-lang.c (ada_watch_location_expression): Rename to
7415 ada_language::watch_location_expression.
7416 (ada_language_data): Delete la_watch_location_expression
7418 (ada_language::watch_location_expression): New member function,
7419 implementation from ada_watch_location_expression.
7420 * breakpoint.c (watch_command_1): Update call to
7421 watch_location_expression.
7422 * c-lang.c (c_watch_location_expression): Rename to
7423 language_defn::watch_location_expression.
7424 (c_language_data): Delete la_watch_location_expression
7426 (cplus_language_data): Likewise.
7427 (asm_language_data): Likewise.
7428 (minimal_language_data): Likewise.
7429 * c-lang.h (c_watch_location_expression): Delete declaration.
7430 * d-lang.c (d_language_data): Delete la_watch_location_expression
7432 * f-lang.c (f_language_data): Likewise.
7433 * go-lang.c (go_language_data): Likewise.
7434 * language.c (language_defn::watch_location_expression): Member
7435 function implementation from c_watch_location_expression.
7436 (unknown_language_data): Delete la_watch_location_expression
7438 (auto_language_data): Likewise.
7439 * language.h (language_data): Delete la_watch_location_expression
7441 (language_defn::watch_location_expression): Declare new member
7443 * m2-lang.c (m2_language_data): Delete
7444 la_watch_location_expression initializer.
7445 * objc-lang.c (objc_language_data): Likewise.
7446 * opencl-lang.c (opencl_language_data): Likewise.
7447 * p-lang.c (pascal_language_data): Likewise.
7448 * rust-lang.c (rust_watch_location_expression): Rename to
7449 rust_language::watch_location_expression.
7450 (rust_language_data): Delete la_watch_location_expression
7452 (rust_language::watch_location_expression): New member function,
7453 implementation from rust_watch_location_expression.
7455 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7457 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
7458 ada_language::collect_symbol_completion_matches.
7459 (ada_language_data): Delete la_collect_symbol_completion_matches
7461 (ada_language::collect_symbol_completion_matches): New member
7462 function, implementation from
7463 ada_collect_symbol_completion_matches.
7464 * c-lang.c (c_language_data): Delete
7465 la_collect_symbol_completion_matches initializer.
7466 (cplus_language_data): Likewise.
7467 (asm_language_data): Likewise.
7468 (minimal_language_data): Likewise.
7469 * d-lang.c (d_language_data): Likewise.
7470 * f-lang.c (f_collect_symbol_completion_matches): Rename to
7471 f_language::collect_symbol_completion_matches.
7472 (f_language_data): Delete la_collect_symbol_completion_matches
7474 (f_language::collect_symbol_completion_matches) New member
7475 function, implementation from f_collect_symbol_completion_matches.
7476 * go-lang.c (go_language_data): Delete
7477 la_collect_symbol_completion_matches initializer.
7478 * language.c (unknown_language_data): Likewise.
7479 (auto_language_data): Likewise.
7480 * language.h (language_data): Delete
7481 la_collect_symbol_completion_matches field.
7482 (language_defn::collect_symbol_completion_matches): New member
7484 * m2-lang.c (m2_language_data): Delete
7485 la_collect_symbol_completion_matches initializer.
7486 * objc-lang.c (objc_language_data): Likewise.
7487 * opencl-lang.c (opencl_language_data): Likewise.
7488 * p-lang.c (pascal_language_data): Likewise.
7489 * rust-lang.c (rust_language_data): Likewise.
7490 * symtab.c (default_collect_symbol_completion_matches): Delete.
7491 (collect_symbol_completion_matches): Update call to
7492 collect_symbol_completion_matches.
7493 (collect_symbol_completion_matches_type): Likewise.
7494 * symtab.h (default_collect_symbol_completion_matches): Delete
7497 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7499 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
7500 (ada_language_data): Delete la_word_break_characters initializer.
7501 (ada_language::word_break_characters): New member function.
7502 * c-lang.c (c_language_data): Delete la_word_break_characters
7504 (cplus_language_data): Likewise.
7505 (asm_language_data): Likewise.
7506 (minimal_language_data): Likewise.
7507 * completer.c: Update global comment.
7508 (advance_to_expression_complete_word_point): Update call to
7509 word_break_characters.
7510 (complete_files_symbols): Likewise.
7511 (complete_line_internal_1): Likewise.
7512 (default_completer_handle_brkchars): Likewise.
7513 (skip_quoted_chars): Likewise.
7514 * d-lang.c (d_language_data): Delete la_word_break_characters
7516 * f-lang.c (f_word_break_characters): Delete.
7517 (f_language_data): Delete la_word_break_characters initializer.
7518 (f_language::word_break_characters): New member function.
7519 * go-lang.c (go_language_data): Delete la_word_break_characters
7521 * language.c (unknown_language_data): Likewise.
7522 (auto_language_data): Likewise.
7523 * language.h (default_word_break_characters): Move declaration to
7524 earlier in the file.
7525 (language_data): Delete la_word_break_characters field.
7526 (language_defn::word_break_characters): New member function.
7527 * m2-lang.c (m2_language_data): Delete la_word_break_characters
7529 * objc-lang.c (objc_language_data): Likewise.
7530 * opencl-lang.c (opencl_language_data): Likewise.
7531 * p-lang.c (pascal_language_data): Likewise.
7532 * rust-lang.c (rust_language_data): Likewise.
7534 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7536 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
7537 (ada_language_data): Delete la_get_symbol_name_matcher
7539 (language_defn::get_symbol_name_matcher_inner): New member
7541 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
7543 (cplus_language_data): Likewise.
7544 (cplus_language::get_symbol_name_matcher_inner): New member
7546 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
7547 (minimal_language_data): Likewise.
7548 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
7549 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
7551 * dictionary.c (iter_match_first_hashed): Update call to
7552 get_symbol_name_matcher.
7553 (iter_match_next_hashed): Likewise.
7554 (iter_match_next_linear): Likewise.
7555 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
7556 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
7558 (f_language::get_symbol_name_matcher_inner): New member function.
7559 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
7561 * language.c (default_symbol_name_matcher): Update header comment,
7563 (language_defn::get_symbol_name_matcher): New definition.
7564 (language_defn::get_symbol_name_matcher_inner): Likewise.
7565 (get_symbol_name_matcher): Delete.
7566 (unknown_language_data): Delete la_get_symbol_name_matcher
7568 (auto_language_data): Likewise.
7569 * language.h (language_data): Delete la_get_symbol_name_matcher
7571 (language_defn::get_symbol_name_matcher): New member function.
7572 (language_defn::get_symbol_name_matcher_inner): Likewise.
7573 (default_symbol_name_matcher): Delete declaration.
7574 * linespec.c (find_methods): Update call to
7575 get_symbol_name_matcher.
7576 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
7578 * minsyms.c (lookup_minimal_symbol): Update call to
7579 get_symbol_name_matcher.
7580 (iterate_over_minimal_symbols): Likewise.
7581 * objc-lang.c (objc_language_data): Delete
7582 la_get_symbol_name_matcher initializer.
7583 * opencl-lang.c (opencl_language_data): Likewise.
7584 * p-lang.c (pascal_language_data): Likewise.
7585 * psymtab.c (psymbol_name_matches): Update call to
7586 get_symbol_name_matcher.
7587 * rust-lang.c (rust_language_data): Delete
7588 la_get_symbol_name_matcher initializer.
7589 * symtab.c (symbol_matches_search_name): Update call to
7590 get_symbol_name_matcher.
7591 (compare_symbol_name): Likewise.
7593 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7595 * ada-lang.c (ada_language_data): Delete la_compute_program
7597 * c-lang.c (c_language_data): Likewise.
7598 (c_language::compute_program): New member function.
7599 (cplus_language_data): Delete la_compute_program initializer.
7600 (cplus_language::compute_program): New member function.
7601 (asm_language_data): Delete la_compute_program initializer.
7602 (minimal_language_data): Likewise.
7603 * c-lang.h (c_compute_program): Update comment.
7604 (cplus_compute_program): Likewise.
7605 * compile/compile-c-support.c (c_compute_program): Likewise.
7606 (cplus_compute_program): Likewise.
7607 * compile/compile.c (compile_to_object): Update call to
7609 * d-lang.c (d_language_data): Delete la_compute_program
7611 * f-lang.c (f_language_data): Likewise.
7612 * go-lang.c (go_language_data): Likewise.
7613 * language.c (unknown_language_data): Likewise.
7614 (auto_language_data): Likewise.
7615 * language.h (language_data): Delete la_compute_program field.
7616 (language_defn::compute_program): New member function.
7617 * m2-lang.c (m2_language_data): Delete la_compute_program
7619 * objc-lang.c (objc_language_data): Likewise.
7620 * opencl-lang.c (opencl_language_data): Likewise.
7621 * p-lang.c (pascal_language_data): Likewise.
7622 * rust-lang.c (rust_language_data): Likewise.
7624 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7626 * ada-lang.c (ada_language_data) Delete
7627 la_class_name_from_physname initializer.
7628 * c-lang.c (c_language_data): Likewise.
7629 (cplus_language_data): Likewise.
7630 (cplus_language::class_name_from_physname): New member function.
7631 (asm_language_data): Delete la_class_name_from_physname
7633 (minimal_language_data): Likewise.
7634 * d-lang.c (d_language_data): Likewise.
7635 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
7636 method on language_defn class.
7637 (guess_full_die_structure_name): Likewise.
7638 * f-lang.c (f_language_data): Delete la_class_name_from_physname
7640 * go-lang.c (go_language_data): Likewise.
7641 * language.c (language_class_name_from_physname): Delete.
7642 (unk_lang_class_name): Delete.
7643 (unknown_language_data): Delete la_class_name_from_physname
7645 (auto_language_data): Likewise.
7646 * language.h (language_data): Delete la_class_name_from_physname
7648 (language_defn::class_name_from_physname): New function.
7649 (language_class_name_from_physname): Delete declaration.
7650 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
7652 * objc-lang.c (objc_language_data): Likewise.
7653 * opencl-lang.c (opencl_language_data): Likewise.
7654 * p-lang.c (pascal_language_data): Likewise.
7655 * rust-lang.c (rust_language_data): Likewise.
7657 2020-06-16 Tom Tromey <tom@tromey.com>
7659 * tui/tui-data.h (STATUS_NAME): New macro.
7660 * tui/tui-layout.c (tui_remove_some_windows)
7661 (initialize_known_windows, tui_register_window)
7662 (tui_layout_split::remove_windows, initialize_layouts)
7663 (tui_new_layout_command): Don't use hard-coded window names.
7665 2020-06-16 Tom Tromey <tom@tromey.com>
7668 * tui/tui.c (tui_ensure_readline_initialized): Rename from
7669 tui_initialize_readline. Only run once. Call rl_initialize.
7670 * tui/tui.h (tui_ensure_readline_initialized): Rename from
7671 tui_initialize_readline.
7672 * tui/tui-io.c (tui_setup_io): Call
7673 tui_ensure_readline_initialized.
7674 * tui/tui-interp.c (tui_interp::init): Update.
7676 2020-06-16 Tom Tromey <tom@tromey.com>
7678 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
7679 Also preserve the status window.
7681 2020-06-16 Tom Tromey <tom@tromey.com>
7683 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
7684 where m_window==nullptr.
7686 2020-06-15 Tom Tromey <tromey@adacore.com>
7688 * windows-nat.c (windows_nat::handle_output_debug_string):
7690 (windows_nat::handle_ms_vc_exception): Update.
7691 * target.h (target_read_string): Change API.
7692 * target.c (target_read_string): Change API.
7693 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
7695 * solib-frv.c (frv_current_sos): Update.
7696 * solib-dsbt.c (dsbt_current_sos): Update.
7697 * solib-darwin.c (darwin_current_sos): Update.
7698 * linux-thread-db.c (inferior_has_bug): Update.
7699 * expprint.c (print_subexp_standard): Update.
7700 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
7701 (ada_exception_message_1): Update.
7703 2020-06-15 Tom Tromey <tromey@adacore.com>
7705 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
7707 2020-06-15 Tom Tromey <tromey@adacore.com>
7709 * valprint.c (read_string): Update comment.
7710 * target.c (MIN): Remove.
7711 (target_read_string): Rewrite.
7713 2020-06-15 Tom Tromey <tromey@adacore.com>
7715 * corefile.c (read_memory_string): Remove.
7716 * ada-valprint.c (ada_value_print_ptr): Update.
7717 * ada-lang.h (ada_tag_name): Change return type.
7718 * ada-lang.c (type_from_tag): Update.
7719 (ada_tag_name_from_tsd): Change return type. Use
7721 (ada_tag_name): Likewise.
7722 * gdbcore.h (read_memory_string): Don't declare.
7724 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
7726 * symtab.c (rbreak_command): Ignore Windows drive colon.
7728 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
7730 * NEWS: Mention removed GDBserver host support.
7732 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
7734 * features/riscv/rebuild-csr-xml.sh: Updated.
7736 2020-06-11 Tom Tromey <tom@tromey.com>
7739 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
7741 2020-06-09 Jonny Grant <jg@jguk.org>
7742 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
7744 * main.c (captured_main_1): Don't print new line after help.
7745 (print_gdb_help): add mailing list and IRC channel information
7746 to --help. Add new lines between items in the footer. Remove
7747 quotes around bug url.
7749 2020-06-11 Keith Seitz <keiths@redhat.com>
7752 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
7753 Resolve typedefs for type length calculations.
7755 2020-06-10 Tom de Vries <tdevries@suse.de>
7758 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
7759 (write_psymbols): Enable .gdb_index for ada.
7760 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
7763 2020-06-10 Tom de Vries <tdevries@suse.de>
7765 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
7766 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
7767 namei" instead of "const char *name" argument.
7768 (dw2_map_matching_symbols): Use "offset_type namei" variant of
7769 dw2_symtab_iter_init.
7771 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7773 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
7774 to use type::field and field::type instead.
7776 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7778 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
7779 to use field::type instead.
7781 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7783 * gdbtypes.h (struct field) <type, set_type>: New methods.
7784 Rename `type` field to...
7785 <m_type>: ... this. Change references throughout to use type or
7787 (FIELD_TYPE): Use field::type. Change call sites that modify
7788 the field's type to use field::set_type instead.
7790 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7792 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
7793 to use type::index_type instead.
7795 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7797 * gdbtypes.h (struct type) <index_type, set_index_type>: New
7799 (TYPE_INDEX_TYPE): Use type::index_type.
7800 * gdbtypes.c (create_array_type_with_stride): Likewise.
7802 2020-06-07 Tom Tromey <tom@tromey.com>
7804 * valprint.c (generic_val_print_float): Remove "embedded_offset"
7806 (generic_value_print): Update.
7808 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7810 Revert commit 982a38f60b0.
7811 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
7813 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7815 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
7816 avoid use after free.
7818 2020-06-05 Tom de Vries <tdevries@suse.de>
7822 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
7824 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
7826 (dwarf2_read_debug_names): Likewise.
7827 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
7828 object when re-using a per_bfd object with an index.
7830 2020-06-03 Tom de Vries <tdevries@suse.de>
7833 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
7835 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
7838 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7840 * ada-lang.c (ada_language_data): Delete skip_trampoline
7842 * c-lang.c (c_language_data): Likewise.
7843 (cplus_language_data): Likewise.
7844 (cplus_language::skip_trampoline): New member function.
7845 (asm_language_data): Delete skip_trampoline initializer.
7846 (minimal_language_data): Likewise.
7847 * d-lang.c (d_language_data): Likewise.
7848 * f-lang.c (f_language_data): Likewise.
7849 * go-lang.c (go_language_data): Likewise.
7850 * language.c (unk_lang_trampoline): Delete function.
7851 (skip_language_trampoline): Update.
7852 (unknown_language_data): Delete skip_trampoline initializer.
7853 (auto_language_data): Likewise.
7854 * language.h (language_data): Delete skip_trampoline field.
7855 (language_defn::skip_trampoline): New function.
7856 * m2-lang.c (m2_language_data): Delete skip_trampoline
7858 * objc-lang.c (objc_skip_trampoline): Delete function, move
7859 implementation to objc_language::skip_trampoline.
7860 (objc_language_data): Delete skip_trampoline initializer.
7861 (objc_language::skip_trampoline): New member function with
7862 implementation from objc_skip_trampoline.
7863 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
7865 * p-lang.c (pascal_language_data): Likewise.
7866 * rust-lang.c (rust_language_data): Likewise.
7868 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7870 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
7871 (ada_language::demangle): New member function.
7872 * c-lang.c (c_language_data): Delete la_demangle initializer.
7873 (cplus_language_data): Delete la_demangle initializer.
7874 (cplus_language::demangle): New member function.
7875 (asm_language_data): Delete la_demangle initializer.
7876 (minimal_language_data): Delete la_demangle initializer.
7877 * d-lang.c (d_language_data): Delete la_demangle initializer.
7878 (d_language::demangle): New member function.
7879 * f-lang.c (f_language_data): Delete la_demangle initializer.
7880 (f_language::demangle): New member function.
7881 * go-lang.c (go_language_data): Delete la_demangle initializer.
7882 (go_language::demangle): New member function.
7883 * language.c (language_demangle): Update.
7884 (unk_lang_demangle): Delete.
7885 (unknown_language_data): Delete la_demangle initializer.
7886 (unknown_language::demangle): New member function.
7887 (auto_language_data): Delete la_demangle initializer.
7888 (auto_language::demangle): New member function.
7889 * language.h (language_data): Delete la_demangle field.
7890 (language_defn::demangle): New function.
7891 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
7892 * objc-lang.c (objc_language_data): Delete la_demangle
7894 (objc_language::demangle): New member function.
7895 * opencl-lang.c (opencl_language_data): Delete la_demangle
7897 * p-lang.c (pascal_language_data): Likewise.
7898 * rust-lang.c (rust_language_data): Likewise.
7899 (rust_language::demangle): New member function.
7901 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7903 * ada-lang.c (ada_language_data): Delete la_print_type
7905 (ada_language::print_type): New member function.
7906 * c-lang.c (c_language_data): Delete la_print_type initializer.
7907 (c_language::print_type): New member function.
7908 (cplus_language_data): Delete la_print_type initializer.
7909 (cplus_language::print_type): New member function.
7910 (asm_language_data): Delete la_print_type initializer.
7911 (asm_language::print_type): New member function.
7912 (minimal_language_data): Delete la_print_type initializer.
7913 (minimal_language::print_type): New member function.
7914 * d-lang.c (d_language_data): Delete la_print_type initializer.
7915 (d_language::print_type): New member function.
7916 * f-lang.c (f_language_data): Delete la_print_type initializer.
7917 (f_language::print_type): New member function.
7918 * go-lang.c (go_language_data): Delete la_print_type initializer.
7919 (go_language::print_type): New member function.
7920 * language.c (unk_lang_print_type): Delete.
7921 (unknown_language_data): Delete la_print_type initializer.
7922 (unknown_language::print_type): New member function.
7923 (auto_language_data): Delete la_print_type initializer.
7924 (auto_language::print_type): New member function.
7925 * language.h (language_data): Delete la_print_type field.
7926 (language_defn::print_type): New function.
7927 (LA_PRINT_TYPE): Update.
7928 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
7929 (m2_language::print_type): New member function.
7930 * objc-lang.c (objc_language_data): Delete la_print_type
7932 (objc_language::print_type): New member function.
7933 * opencl-lang.c (opencl_print_type): Delete, implementation moved
7934 to opencl_language::print_type.
7935 (opencl_language_data): Delete la_print_type initializer.
7936 (opencl_language::print_type): New member function, implementation
7937 from opencl_print_type.
7938 * p-lang.c (pascal_language_data): Delete la_print_type
7940 (pascal_language::print_type): New member function.
7941 * rust-lang.c (rust_print_type): Delete, implementation moved to
7942 rust_language::print_type.
7943 (rust_language_data): Delete la_print_type initializer.
7944 (rust_language::print_type): New member function, implementation
7945 from rust_print_type.
7947 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7949 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
7950 implementation moves to...
7951 (ada_language::sniff_from_mangled_name): ...here. Update return
7953 (ada_language_data): Delete la_sniff_from_mangled_name
7955 * c-lang.c (c_language_data): Likewise.
7956 (cplus_language_data): Likewise.
7957 (cplus_language::sniff_from_mangled_name): New member function,
7958 implementation taken from gdb_sniff_from_mangled_name.
7959 (asm_language_data): Delete la_sniff_from_mangled_name
7961 (minimal_language_data): Likewise.
7962 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
7963 implementation moves to cplus_language::sniff_from_mangled_name.
7964 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
7965 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
7967 (d_language::sniff_from_mangled_name): ...here.
7968 (d_language_data): Delete la_sniff_from_mangled_name initializer.
7969 * f-lang.c (f_language_data): Likewise.
7970 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
7972 (go_language::sniff_from_mangled_name): ...here.
7973 (go_language_data): Delete la_sniff_from_mangled_name initializer.
7974 * language.c (language_sniff_from_mangled_name): Delete.
7975 (unknown_language_data): Delete la_sniff_from_mangled_name
7977 (auto_language_data): Likewise.
7978 * language.h (language_data): Delete la_sniff_from_mangled_name
7980 (language_defn::sniff_from_mangled_name): New function.
7981 (language_sniff_from_mangled_name): Delete declaration.
7982 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
7984 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
7985 implementation moves to...
7986 (objc_language::sniff_from_mangled_name): ...here.
7987 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
7988 * opencl-lang.c (opencl_language_data): Likewise.
7989 * p-lang.c (pascal_language_data): Likewise.
7990 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
7991 implementation moves to...
7992 (rust_language::sniff_from_mangled_name): ...here.
7993 (rust_language_data): Delete la_sniff_from_mangled_name
7995 * symtab.c (symbol_find_demangled_name): Call
7996 sniff_from_mangled_name member function.
7998 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8000 * ada-lang.c (ada_language_data): Delete la_search_name_hash
8002 * c-lang.c (c_language_data): Likewise.
8003 (cplus_language_data): Likewise.
8004 (cplus_language::search_name_hash): New member function.
8005 (asm_language_data): Delete la_search_name_hash initializer.
8006 (minimal_language_data): Likewise.
8007 * d-lang.c (d_language_data): Likewise.
8008 * dictionary.c (default_search_name_hash): Rename to...
8009 (language_defn::search_name_hash): ...this.
8010 * f-lang.c (f_language_data): Likewise.
8011 (f_language::search_name_hash): New member function.
8012 * go-lang.c (go_language_data): Delete la_search_name_hash
8014 * language.c (unknown_language_data): Likewise.
8015 (auto_language_data): Likewise.
8016 * language.h (struct language_data): Delete la_search_name_hash
8018 (language_defn::search_name_hash): Declare new member function.
8019 (default_search_name_hash): Delete declaration.
8020 * m2-lang.c (m2_language_data): Delete la_search_name_hash
8022 * objc-lang.c (objc_language_data): Likewise.
8023 * opencl-lang.c (opencl_language_data): Likewise.
8024 * p-lang.c (pascal_language_data): Likewise.
8025 * rust-lang.c (rust_language_data): Likewise.
8026 * symtab.c (search_name_hash): Update call.
8028 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8030 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
8032 * c-lang.c (class compile_instance): Declare.
8033 (c_language_data): Delete la_get_compile_instance initializer.
8034 (c_language::get_compile_instance): New member function.
8035 (cplus_language_data): Delete la_get_compile_instance initializer.
8036 (cplus_language::get_compile_instance): New member function.
8037 (asm_language_data): Delete la_get_compile_instance initializer.
8038 (minimal_language_data): Likewise.
8039 * c-lang.h (c_get_compile_context): Update comment.
8040 (cplus_get_compile_context): Update comment.
8041 * compile/compile.c (compile_to_object): Update calls, don't rely
8042 on function pointer being NULL.
8043 * d-lang.c (d_language_data): Delete la_get_compile_instance
8045 * f-lang.c (f_language_data): Likewise.
8046 * go-lang.c (go_language_data): Likewise.
8047 * language.c (unknown_language_data): Likewise.
8048 (auto_language_data): Likewise.
8049 * language.h (language_data): Delete la_get_compile_instance field.
8050 (language_defn::get_compile_instance): New member function.
8051 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
8053 * objc-lang.c (objc_language_data): Likewise.
8054 * opencl-lang.c (opencl_language_data): Likewise.
8055 * p-lang.c (pascal_language_data): Likewise.
8056 * rust-lang.c (rust_language_data): Likewise.
8058 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8060 * ada-lang.c (ada_add_all_symbols): Update comment.
8061 (ada_iterate_over_symbols): Delete, move implementation to...
8062 (ada_language::iterate_over_symbols): ...here, a new member
8063 function, rewrite to use range based for loop.
8064 (ada_language_data): Delete la_iterate_over_symbols initializer.
8065 * c-lang.c (c_language_data): Likewise.
8066 (cplus_language_data): Likewise.
8067 (asm_language_data): Likewise.
8068 (minimal_language_data): Likewise.
8069 * d-lang.c (d_language_data): Likewise.
8070 * f-lang.c (f_language_data): Likewise.
8071 * go-lang.c (go_language_data): Likewise.
8072 * language.c (unknown_language_data): Likewise.
8073 (auto_language_data): Likewise.
8074 * language.h (language_data): Delete la_iterate_over_symbols field.
8075 (language_defn::iterate_over_symbols): New member function.
8076 (LA_ITERATE_OVER_SYMBOLS): Update.
8077 * linespec.c (iterate_over_all_matching_symtabs): Update.
8078 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
8080 * objc-lang.c (objc_language_data): Likewise.
8081 * opencl-lang.c (opencl_language_data): Likewise.
8082 * p-lang.c (pascal_language_data): Likewise.
8083 * rust-lang.c (rust_language_data): Likewise.
8085 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8087 * ada-lang.c (ada_language_data): Delete
8088 la_lookup_transparent_type initializer.
8089 * c-lang.c (c_language_data): Likewise.
8090 (cplus_language_data): Likewise.
8091 (cplus_language::lookup_transparent_type): New member function.
8092 (asm_language_data): Delete la_lookup_transparent_type
8094 (minimal_language_data): Likewise.
8095 * d-lang.c (d_language_data): Likewise.
8096 * f-lang.c (f_language_data): Likewise.
8097 * go-lang.c (go_language_data): Likewise.
8098 * language.c (unknown_language_data): Likewise.
8099 (auto_language_data): Likewise.
8100 * language.h (struct language_data): Delete
8101 la_lookup_transparent_type field.
8102 (language_defn::lookup_transparent_type): New member function.
8103 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
8105 * objc-lang.c (objc_language_data): Likewise.
8106 * opencl-lang.c (opencl_language_data): Likewise.
8107 * p-lang.c (pascal_language_data): Likewise.
8108 * rust-lang.c (rust_language_data): Likewise.
8109 * symtab.c (symbol_matches_domain): Update call.
8111 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8113 * ada-lang.c (ada_language_arch_info): Delete function, move
8114 implementation to...
8115 (ada_language::language_arch_info): ...here, a new member
8117 (ada_language_data): Delete la_language_arch_info.
8118 * c-lang.c (c_language_data): Likewise.
8119 (c_language::language_arch_info): New member function.
8120 (cplus_language_arch_info): Delete function, move
8121 implementation to...
8122 (cplus_language::language_arch_info): ...here, a new member
8124 (cplus_language_data): Delete la_language_arch_info.
8125 (asm_language_data): Likewise.
8126 (asm_language::language_arch_info): New member function.
8127 (minimal_language_data): Delete la_language_arch_info.
8128 (minimal_language::language_arch_info): New member function.
8129 * d-lang.c (d_language_arch_info): Delete function, move
8130 implementation to...
8131 (d_language::language_arch_info): ...here, a new member
8133 (d_language_data): Delete la_language_arch_info.
8134 * f-lang.c (f_language_arch_info): Delete function, move
8135 implementation to...
8136 (f_language::language_arch_info): ...here, a new member
8138 (f_language_data): Delete la_language_arch_info.
8139 * go-lang.c (go_language_arch_info): Delete function, move
8140 implementation to...
8141 (go_language::language_arch_info): ...here, a new member
8143 (go_language_data): Delete la_language_arch_info.
8144 * language.c (unknown_language_data): Likewise.
8145 (unknown_language::language_arch_info): New member function.
8146 (auto_language_data): Delete la_language_arch_info.
8147 (auto_language::language_arch_info): New member function.
8148 (language_gdbarch_post_init): Update call to
8149 la_language_arch_info.
8150 * language.h (language_data): Delete la_language_arch_info
8152 (language_defn::language_arch_info): New function.
8153 * m2-lang.c (m2_language_arch_info): Delete function, move
8154 implementation to...
8155 (m2_language::language_arch_info): ...here, a new member
8157 (m2_language_data): Delete la_language_arch_info.
8158 * objc-lang.c (objc_language_arch_info): Delete function, move
8159 implementation to...
8160 (objc_language::language_arch_info): ...here, a new member
8162 (objc_language_data): Delete la_language_arch_info.
8163 * opencl-lang.c (opencl_language_arch_info): Delete function, move
8164 implementation to...
8165 (opencl_language::language_arch_info): ...here, a new member
8167 (opencl_language_data): Delete la_language_arch_info.
8168 * p-lang.c (pascal_language_arch_info): Delete function, move
8169 implementation to...
8170 (pascal_language::language_arch_info): ...here, a new member
8172 (pascal_language_data): Delete la_language_arch_info.
8173 * rust-lang.c (rust_language_arch_info): Delete function, move
8174 implementation to...
8175 (rust_language::language_arch_info): ...here, a new member
8177 (rust_language_data): Delete la_language_arch_info.
8179 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8181 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
8183 * c-lang.c (c_language_data): Likewise.
8184 (cplus_language_data): Likewise.
8185 (cplus_language::pass_by_reference_info): New method.
8186 (asm_language_data): Delete la_pass_by_reference initializer.
8187 (minimal_language_data): Likewise.
8188 * cp-abi.c (cp_pass_by_reference): Remove use of
8189 default_pass_by_reference.
8190 * d-lang.c (d_language_data): Likewise.
8191 * f-lang.c (f_language_data): Likewise.
8192 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
8193 default_pass_by_reference.
8194 * go-lang.c (go_language_data): Likewise.
8195 * language.c (language_pass_by_reference): Update.
8196 (default_pass_by_reference): Delete.
8197 (unknown_language_data): Delete la_pass_by_reference
8199 (auto_language_data): Likewise.
8200 * language.h (struct language_data): Delete la_pass_by_reference
8202 (language_defn::pass_by_reference_info): New member function.
8203 (default_pass_by_reference): Delete declaration.
8204 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
8206 * objc-lang.c (objc_language_data): Likewise.
8207 * opencl-lang.c (opencl_language_data): Likewise.
8208 * p-lang.c (pascal_language_data): Likewise.
8209 * rust-lang.c (rust_language_data): Likewise.
8211 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8213 * ada-lang.c (ada_read_var_value): Delete function, move
8214 implementation to...
8215 (ada_language::read_var_value): ...here.
8216 (ada_language_data): Delete la_read_var_value initializer.
8217 * c-lang.c (c_language_data): Likewise.
8218 (cplus_language_data): Likewise.
8219 (minimal_language_data): Likewise.
8220 * d-lang.c (d_language_data): Likewise.
8221 * f-lang.c (f_language_data): Likewise.
8222 * findvar.c (default_read_var_value): Rename to...
8223 (language_defn::read_var_value): ...this.
8224 * findvar.c (read_var_value): Update header comment, and change to
8225 call member function instead of function pointer.
8226 * go-lang.c (go_language_data): Likewise.
8227 * language.c (unknown_language_data): Delete la_read_var_value
8229 (auto_language_data): Likewise.
8230 * language.h (struct language_data): Delete la_read_var_value
8232 (language_defn::read_var_value): New member function.
8233 (default_read_var_value): Delete declaration.
8234 * m2-lang.c (m2_language_data): Delete la_read_var_value
8236 * objc-lang.c (objc_language_data): Likewise.
8237 * opencl-lang.c (opencl_language_data): Likewise.
8238 * p-lang.c (pascal_language_data): Likewise.
8239 * rust-lang.c (rust_language_data): Likewise.
8240 * value.h (default_read_var_value): Delete declaration.
8242 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8244 * ada-lang.c (ada_print_array_index): Delete function, move
8245 implementation to...
8246 (ada_language::print_array_index): ...here.
8247 (ada_language_data): Delete la_print_array_index initializer.
8248 * c-lang.c (c_language_data): Likewise.
8249 (cplus_language_data): Likewise.
8250 (minimal_language_data): Likewise.
8251 * d-lang.c (d_language_data): Likewise.
8252 * f-lang.c (f_language_data): Likewise.
8253 * go-lang.c (go_language_data): Likewise.
8254 * language.c (default_print_array_index): Delete function, move
8255 implementation to...
8256 (language_defn::print_array_index): ...here.
8257 (unknown_language_data): Delete la_print_array_index initializer.
8258 (auto_language_data): Likewise.
8259 * language.h (struct language_data): Delete la_print_array_index
8261 (language_defn::print_array_index): New member function.
8262 (LA_PRINT_ARRAY_INDEX): Update.
8263 (default_print_array_index): Delete declaration.
8264 * m2-lang.c (m2_language_data): Delete la_print_array_index
8266 * objc-lang.c (objc_language_data): Likewise.
8267 * opencl-lang.c (opencl_language_data): Likewise.
8268 * p-lang.c (pascal_language_data): Likewise.
8269 * rust-lang.c (rust_language_data): Likewise.
8271 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8273 * gdb/ada-lang.c (ada_language_defn): Convert to...
8274 (ada_language_data): ...this.
8275 (class ada_language): New class.
8276 (ada_language_defn): New static global.
8277 * gdb/c-lang.c (c_language_defn): Convert to...
8278 (c_language_data): ...this.
8279 (class c_language): New class.
8280 (c_language_defn): New static global.
8281 (cplus_language_defn): Convert to...
8282 (cplus_language_data): ...this.
8283 (class cplus_language): New class.
8284 (cplus_language_defn): New static global.
8285 (asm_language_defn): Convert to...
8286 (asm_language_data): ...this.
8287 (class asm_language): New class.
8288 (asm_language_defn): New static global.
8289 (minimal_language_defn): Convert to...
8290 (minimal_language_data): ...this.
8291 (class minimal_language): New class.
8292 (minimal_language_defn): New static global.
8293 * gdb/d-lang.c (d_language_defn): Convert to...
8294 (d_language_data): ...this.
8295 (class d_language): New class.
8296 (d_language_defn): New static global.
8297 * gdb/f-lang.c (f_language_defn): Convert to...
8298 (f_language_data): ...this.
8299 (class f_language): New class.
8300 (f_language_defn): New static global.
8301 * gdb/go-lang.c (go_language_defn): Convert to...
8302 (go_language_data): ...this.
8303 (class go_language): New class.
8304 (go_language_defn): New static global.
8305 * gdb/language.c (unknown_language_defn): Remove declaration.
8306 (current_language): Initialize to nullptr, real initialization is
8307 moved to _initialize_language.
8308 (languages): Delete global.
8309 (language_defn::languages): Define.
8310 (set_language_command): Use language_defn::languages.
8311 (set_language): Likewise.
8312 (range_error): Likewise.
8313 (language_enum): Likewise.
8314 (language_def): Likewise.
8315 (add_set_language_command): Use language_def::languages for the
8316 language list, and language_def to lookup language pointers.
8317 (skip_language_trampoline): Use language_defn::languages.
8318 (unknown_language_defn): Convert to...
8319 (unknown_language_data): ...this.
8320 (class unknown_language): New class.
8321 (unknown_language_defn): New static global.
8322 (auto_language_defn): Convert to...
8323 (auto_language_data): ...this.
8324 (class auto_language): New class.
8325 (auto_language_defn): New static global.
8326 (language_gdbarch_post_init): Use language_defn::languages.
8327 (_initialize_language): Initialize current_language.
8328 * gdb/language.h (struct language_defn): Rename to...
8329 (struct language_data): ...this.
8330 (struct language_defn): New.
8331 (auto_language_defn): Delete.
8332 (unknown_language_defn): Delete.
8333 (minimal_language_defn): Delete.
8334 (ada_language_defn): Delete.
8335 (asm_language_defn): Delete.
8336 (c_language_defn): Delete.
8337 (cplus_language_defn): Delete.
8338 (d_language_defn): Delete.
8339 (f_language_defn): Delete.
8340 (go_language_defn): Delete.
8341 (m2_language_defn): Delete.
8342 (objc_language_defn): Delete.
8343 (opencl_language_defn): Delete.
8344 (pascal_language_defn): Delete.
8345 (rust_language_defn): Delete.
8346 * gdb/m2-lang.c (m2_language_defn): Convert to...
8347 (m2_language_data): ...this.
8348 (class m2_language): New class.
8349 (m2_language_defn): New static global.
8350 * gdb/objc-lang.c (objc_language_defn): Convert to...
8351 (objc_language_data): ...this.
8352 (class objc_language): New class.
8353 (objc_language_defn): New static global.
8354 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
8355 (opencl_language_data): ...this.
8356 (class opencl_language): New class.
8357 (opencl_language_defn): New static global.
8358 * gdb/p-lang.c (pascal_language_defn): Convert to...
8359 (pascal_language_data): ...this.
8360 (class pascal_language): New class.
8361 (pascal_language_defn): New static global.
8362 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
8363 language pointer, update comment format.
8364 * gdb/rust-lang.c (rust_language_defn): Convert to...
8365 (rust_language_data): ...this.
8366 (class rust_language): New class.
8367 (rust_language_defn): New static global.
8369 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
8371 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
8373 <m_stmt_at_address>: New member variable.
8374 (lnp_state_machine::record_line): Don't record some lines, update
8375 tracking of is_stmt at the same address.
8376 (lnp_state_machine::lnp_state_machine): Initialise new member
8379 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
8381 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
8382 "-include gnu-nat-mig.h".
8383 * gnu-nat-mig.h: New file.
8384 * gnu-nat.c: Include "gnu-nat-mig.h".
8385 (exc_server, msg_reply_server, notify_server,
8386 process_reply_server): Remove declarations.
8388 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8390 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
8391 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
8392 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
8393 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
8394 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
8395 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
8396 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
8397 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
8398 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
8399 to gnu_nat_target class.
8400 * gnu-nat.c: Likewise.
8401 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
8402 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
8403 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
8405 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
8406 instead of `gnu_target'.
8408 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8410 * i386-gnu-tdep.c: Include "gdbcore.h"
8411 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
8412 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
8413 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
8414 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
8415 i386_gnu_sigcontext_addr): New functions
8416 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
8417 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
8420 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8422 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
8423 before fork_inferior call. Avoid calling it if target_is_pushed returns
8426 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8428 * gnu-nat.h (gnu_target): New variable declaration.
8429 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
8431 * gnu-nat.c (gnu_target): New variable.
8432 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
8433 add_thread_silent, and add_thread calls.
8434 (gnu_nat_target::create_inferior): Pass gnu_target to
8435 add_thread_silent, thread_change_ptid call.
8436 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
8439 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8441 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
8442 (gnu_nat_target::find_memory_regions): Remove unused
8443 `old_address' variable.
8445 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8447 * gnu-nat.c: Include "gdbarch.h".
8449 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8451 * reply_mig_hack.awk (Error return): Cast function through
8452 void *, to bypass compiler function call check.
8454 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8456 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
8457 $(srcdir)/reply_mig_hack.awk.
8459 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8461 * gnu-nat.h (gnu_debug_flag): Set type to bool.
8463 2020-05-30 Jonny Grant <jg@jguk.org>
8465 * configure.ac (ACX_BUGURL): change bug URL to https.
8467 2020-05-30 Pedro Alves <palves@redhat.com>
8469 * cp-support.c (replace_typedefs_template): New.
8470 (replace_typedefs_qualified_name): Handle
8471 DEMANGLE_COMPONENT_TEMPLATE.
8473 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
8475 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
8476 dwarf2/index-cache.h, dwarf2/index-write.c,
8477 dwarf2/index-write.h, dwarf2/line-header.c,
8478 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
8479 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
8480 variables and fields from `dwarf2_per_objfile` to just
8481 `per_objfile` throughout.
8483 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
8485 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8486 <push_dwarf_reg_entry_value>: Add comment.
8488 2020-05-28 Kevin Buettner <kevinb@redhat.com>
8489 Keith Seitz <keiths@redhat.com>
8491 * python/python.c (do_start_initialization): Call PyEval_SaveThread
8492 instead of PyEval_ReleaseLock.
8493 (class gdbpy_gil): Move to earlier in file.
8494 (finalize_python): Set gdb_python_initialized.
8495 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
8496 when not initialized.
8498 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
8500 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8501 <push_dwarf_reg_entry_value>: Remove assert. Override
8502 per_objfile with caller_per_objfile.
8504 2020-05-28 Tom de Vries <tdevries@suse.de>
8506 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
8507 PR gold/15646 workaround to symbol kind "type".
8509 2020-05-27 Tom Tromey <tromey@adacore.com>
8511 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
8513 2020-05-27 Tom Tromey <tromey@adacore.com>
8515 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
8516 Use htab_find_with_hash.
8517 <add_abbrev>: Remove "abbrev_number" parameter.
8518 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
8519 "abbrev_number" parameter. Use htab_find_slot_with_hash.
8520 (hash_abbrev): Add comment.
8521 (abbrev_table::lookup_abbrev): Move to header file.
8522 (abbrev_table::read): Update.
8524 2020-05-27 Tom Tromey <tromey@adacore.com>
8526 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
8528 <canonical_name>: New member.
8529 <raw_name>: Rename from "name".
8530 (partial_die_info): Initialize canonical_name.
8531 (scan_partial_symbols): Check raw_name.
8532 (partial_die_parent_scope, partial_die_full_name)
8533 (add_partial_symbol, add_partial_subprogram)
8534 (add_partial_enumeration, load_partial_dies): Use "name" method.
8535 (partial_die_info::name): New method.
8536 (partial_die_info::read, guess_partial_die_structure_name)
8537 (partial_die_info::fixup): Update.
8539 2020-05-27 Tom Tromey <tromey@adacore.com>
8541 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
8542 <get_ref_die_offset>: Inline.
8543 <get_ref_die_offset_complaint>: New method.
8544 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
8545 (attribute::get_ref_die_offset_complaint): Rename from
8546 get_ref_die_offset. Just issue complaint.
8548 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8550 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
8552 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8554 * exec.c (exec_file_attach): Use errno value of first openp failure.
8556 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8558 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
8559 Don't close thread handle.
8561 2020-05-27 Tom Tromey <tom@tromey.com>
8562 Simon Marchi <simon.marchi@efficios.com>
8564 * objfiles.h (struct objfile) <partial_symtabs>: Now a
8566 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
8568 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
8569 dwarf2_per_bfd_objfile_data_key>: New globals.
8570 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
8571 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
8572 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
8574 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
8575 short-circuit when sharing.
8576 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
8577 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
8579 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8581 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
8583 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
8584 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
8586 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8588 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
8589 build_name_components, find_name_components_bounds>:
8590 Add per_objfile parameter.
8591 (struct mapped_index) <symbol_name_at>: Likewise.
8592 (struct mapped_debug_names): Remove constructor.
8593 <dwarf2_per_objfile>: Remove field.
8594 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
8595 (mapped_index_base::find_name_components_bounds,
8596 mapped_index_base::build_name_components,
8597 dw2_expand_symtabs_matching_symbol): Likewise.
8598 (class mock_mapped_index) <symbol_name_at>: Likewise.
8599 (check_match): Likewise.
8600 (check_find_bounds_finds): Likewise.
8601 (test_mapped_index_find_name_component_bounds): Update.
8602 (CHECK_MATCH): Update.
8603 (dw2_expand_symtabs_matching): Update.
8604 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
8605 per_objfile parameter.
8606 <find_vec_in_debug_names>: Likewise.
8607 <m_per_objfile>: New field.
8608 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
8610 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
8611 (dw2_debug_names_iterator::next): Update.
8612 (dw2_debug_names_lookup_symbol): Update.
8613 (dw2_debug_names_expand_symtabs_for_function): Update.
8614 (dw2_debug_names_map_matching_symbols): Update.
8615 (dw2_debug_names_expand_symtabs_matching): Update.
8616 (dwarf2_read_debug_names): Update.
8618 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8620 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
8621 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
8622 move to dwarf2_per_objfile.
8623 <read_in_chain>: Remove.
8624 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
8625 remove_all_cus, age_comp_units>: New methods.
8626 <m_dwarf2_cus>: New member.
8627 (struct dwarf2_per_cu_data) <cu>: Remove.
8628 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
8629 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
8630 moved to methods of dwarf2_per_objfile.
8631 (dwarf2_clear_marks): Remove.
8632 (dwarf2_queue_item::~dwarf2_queue_item): Update.
8633 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
8634 (dwarf2_per_bfd::free_cached_comp_units): Remove.
8635 (dwarf2_per_objfile::remove_all_cus): New.
8636 (class free_cached_comp_units) <~free_cached_comp_units>:
8639 (dw2_do_instantiate_symtab): Adjust.
8640 (fill_in_sig_entry_from_dwo_entry): Adjust.
8641 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8642 (cutu_reader::cutu_reader): Likewise.
8643 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
8644 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
8645 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
8646 and dwarf2_per_objfile::age_comp_units.
8647 (load_partial_comp_unit): Update.
8648 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
8649 (process_queue): Likewise.
8650 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
8652 (dwarf2_read_addr_index): Likewise.
8653 (follow_die_offset): Likewise.
8654 (dwarf2_fetch_die_loc_sect_off): Likewise.
8655 (dwarf2_fetch_constant_bytes): Likewise.
8656 (dwarf2_fetch_die_type_sect_off): Likewise.
8657 (follow_die_sig_1): Likewise.
8658 (load_full_type_unit): Likewise.
8659 (read_signatured_type): Likewise.
8660 (dwarf2_cu::dwarf2_cu): Don't set cu field.
8661 (dwarf2_cu::~dwarf2_cu): Remove.
8662 (dwarf2_per_objfile::get_cu): New.
8663 (dwarf2_per_objfile::set_cu): New.
8664 (age_cached_comp_units): Rename to...
8665 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
8666 to std::unordered_map.
8667 (free_one_cached_comp_unit): Rename to...
8668 (dwarf2_per_objfile::remove_cu): ... this. Adjust
8669 to std::unordered_map.
8670 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
8671 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
8672 a dwarf2_per_objfile in data.
8673 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
8674 (dwarf2_clear_marks): Remove.
8676 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8678 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
8679 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
8680 (init_tu_and_read_dwo_dies): Likewise.
8681 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
8682 (cutu_reader::cutu_reader): Likewise.
8683 (load_partial_comp_unit): Likewise.
8684 (process_psymtab_comp_unit): Update.
8685 (build_type_psymtabs_1): Update.
8686 (process_skeletonless_type_unit): Update.
8687 (load_full_comp_unit): Update.
8688 (find_partial_die): Update.
8689 (dwarf2_read_addr_index): Update.
8690 (read_signatured_type): Update.
8692 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8694 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
8695 m_header_read_in>: New fields.
8696 <get_header>: New method.
8697 * dwarf2/read.c (per_cu_header_read_in): Remove.
8698 (dwarf2_per_cu_data::get_header): New.
8699 (dwarf2_per_cu_data::addr_size): Update.
8700 (dwarf2_per_cu_data::offset_size): Update.
8701 (dwarf2_per_cu_data::ref_addr_size): Update.
8703 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8705 * dwarf2/read.c (load_cu): Return dwarf2_cu.
8706 (dw2_do_instantiate_symtab): Update.
8707 (queue_and_load_all_dwo_tus): Change parameter from
8708 dwarf2_per_cu_data to dwarf2_cu.
8709 (dwarf2_fetch_die_loc_sect_off): Update.
8710 (dwarf2_fetch_constant_bytes): Update.
8711 (dwarf2_fetch_die_type_sect_off): Update.
8713 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8715 * dwarf2/read.c (process_full_comp_unit,
8716 process_full_type_unit): Remove per_cu, per_objfile paramters.
8717 Add dwarf2_cu parameter.
8718 (process_queue): Update.
8720 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8722 * dwarf2/read.c (create_cu_from_index_list): Replace
8723 dwarf2_per_objfile parameter with dwarf2_per_bfd.
8724 (create_cus_from_index_list): Likewise.
8725 (create_cus_from_index): Likewise.
8726 (create_signatured_type_table_from_index): Likewise.
8727 (create_cus_from_debug_names_list): Likewise.
8728 (create_cus_from_debug_names): Likewise.
8729 (dwarf2_read_gdb_index): Update.
8730 (dwarf2_read_debug_names): Update.
8732 2020-05-27 Tom Tromey <tom@tromey.com>
8733 Simon Marchi <simon.marchi@efficios.com>
8735 * dwarf2/read.h (struct dwarf2_per_objfile)
8736 <get_type_for_signatured_type, set_type_for_signatured_type>:
8738 <m_type_map>: New member.
8739 (struct signatured_type) <type>: Remove.
8741 (dwarf2_per_objfile::get_type_for_signatured_type,
8742 dwarf2_per_objfile::set_type_for_signatured_type): New.
8743 (get_signatured_type): Use new methods.
8745 2020-05-27 Tom Tromey <tom@tromey.com>
8746 Simon Marchi <simon.marchi@efficios.com>
8748 * dwarf2/read.h (struct type_unit_group_unshareable): New.
8749 (struct dwarf2_per_objfile) <type_units>: New member.
8750 <get_type_unit_group_unshareable>: New method.
8751 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
8752 num_symtabs, symtabs>: Remove; move to
8753 type_unit_group_unshareable.
8754 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
8755 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
8756 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
8758 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8760 * dwarf2/read.h (struct dwarf2_per_cu_data):
8761 <dwarf2_per_objfile>: Remove.
8762 * dwarf2/read.c (create_cu_from_index_list): Don't assign
8764 (create_signatured_type_table_from_index): Likewise.
8765 (create_signatured_type_table_from_debug_names): Likewise.
8766 (create_debug_type_hash_table): Likewise.
8767 (fill_in_sig_entry_from_dwo_entry): Likewise.
8768 (create_type_unit_group): Likewise.
8769 (read_comp_units_from_section): Likewise.
8770 (create_cus_hash_table): Likewise.
8772 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8774 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
8775 dwarf2_per_cu_data::dwarf2_per_objfile.
8776 (compute_compunit_symtab_includes): Likewise.
8777 (dwarf2_cu::start_symtab): Likewise.
8779 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8781 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
8783 * dwarf2/read.c (get_die_type_at_offset): Likewise.
8784 (read_namespace_alias): Update.
8785 (lookup_die_type): Update.
8786 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
8787 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
8789 (disassemble_dwarf_expression): Update.
8791 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8793 * dwarf2/read.h (struct dwarf2_queue_item): Add
8794 dwarf2_per_objfile parameter, assign new parameter.
8795 <per_objfile>: New field.
8796 * dwarf2/read.c (free_one_cached_comp_unit): Add
8797 dwarf2_per_objfile parameter.
8798 (queue_comp_unit): Likewise.
8799 (dw2_do_instantiate_symtab): Update.
8800 (process_psymtab_comp_unit): Update.
8801 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
8802 (process_imported_unit_die): Update.
8803 (queue_and_load_dwo_tu): Update.
8804 (follow_die_offset): Update.
8805 (follow_die_sig_1): Update.
8807 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8809 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
8810 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
8811 (read_call_site_scope): Assign per_objfile.
8812 (dwarf2_per_cu_data::objfile): Remove.
8813 * gdbtypes.h (struct call_site) <per_objfile>: New member.
8814 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
8815 dwarf2_per_objfile parameter.
8816 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
8817 dwarf2_per_objfile parameter.
8818 (dwarf_expr_reg_to_entry_parameter): Add output
8819 dwarf2_per_objfile parameter.
8820 (locexpr_get_frame_base): Update.
8821 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
8822 <push_dwarf_reg_entry_value>: Update.
8823 <call_site_to_target_addr>: Update.
8824 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
8826 (value_of_dwarf_reg_entry): Update.
8827 (rw_pieced_value): Update.
8828 (indirect_synthetic_pointer): Update.
8829 (dwarf2_evaluate_property): Update.
8830 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
8832 (locexpr_read_variable): Update.
8833 (locexpr_get_symbol_read_needs): Update.
8834 (loclist_read_variable): Update.
8836 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8838 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8839 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8840 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8842 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8843 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8844 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8846 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
8847 sect_variable_value): Add dwarf2_per_objfile parameter.
8848 (class dwarf_evaluate_loc_desc) <dwarf_call,
8849 dwarf_variable_value>: Update.
8850 (fetch_const_value_from_synthetic_pointer): Add
8851 dwarf2_per_objfile parameter.
8852 (fetch_const_value_from_synthetic_pointer): Update.
8853 (coerced_pieced_ref): Update.
8854 (class symbol_needs_eval_context) <dwarf_call,
8855 dwarf_variable_value>: Update.
8856 (dwarf2_compile_expr_to_ax): Update.
8858 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8860 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
8862 (dwarf2_evaluate_loc_desc_full): Update.
8864 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8866 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
8868 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
8869 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
8870 dwarf2_per_objfile parameter.
8871 (decode_debug_loc_dwo_addresses): Likewise.
8872 (dwarf2_find_location_expression): Update.
8873 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
8874 (locexpr_describe_location_piece): Add dwarf2_per_objfile
8876 (disassemble_dwarf_expression): Add dwarf2_per_objfile
8878 (locexpr_describe_location_1): Likewise.
8879 (locexpr_describe_location): Update.
8881 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8883 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
8885 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
8886 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
8887 (dwarf2_compile_property_to_c): Update.
8888 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
8889 use text offset from objfile.
8890 (locexpr_tracepoint_var_ref): Update.
8891 (locexpr_generate_c_location): Update.
8892 (loclist_describe_location): Update.
8893 (loclist_tracepoint_var_ref): Update.
8894 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
8895 dwarf2_per_objfile parameter.
8896 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
8897 use text offset from objfile.
8898 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
8900 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8902 * dwarf2/expr.h (struct dwarf_expr_context)
8903 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
8905 <per_objfile>: New member.
8906 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
8907 dwarf2_per_objfile parameter. Don't set offset, set
8909 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
8910 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
8911 a dwarf2_per_objfile object instead of an offset.
8912 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
8914 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
8915 to dwarf2_expr_executor constructor. Don't set offset.
8916 (dwarf2_fetch_cfa_info): Update.
8917 (struct dwarf2_frame_cache) <text_offset>: Remove.
8918 <per_objfile>: New field.
8919 (dwarf2_frame_cache): Update.
8920 (dwarf2_frame_prev_register): Update.
8921 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8922 <dwarf_evaluate_loc_desc>: Add constructor.
8923 (dwarf2_evaluate_loc_desc_full): Update.
8924 (dwarf2_locexpr_baton_eval): Update.
8925 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
8927 (dwarf2_loc_desc_get_symbol_read_needs): Update.
8929 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8931 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
8932 addr_sized_int_type>: Move to dwarf2_cu.
8933 <int_type>: Move to dwarf2_per_objfile.
8934 (struct dwarf2_per_objfile) <int_type>: Move here.
8935 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
8936 addr_sized_int_type>: Move here.
8937 (read_func_scope): Update.
8938 (read_array_type): Update.
8939 (read_tag_string_type): Update.
8940 (attr_to_dynamic_prop): Update.
8941 (dwarf2_per_cu_data::int_type): Rename to...
8942 (dwarf2_per_objfile::int_type): ... this.
8943 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
8944 (dwarf2_cu::addr_sized_int_type): ... this.
8945 (read_subrange_type): Update.
8946 (dwarf2_per_cu_data::addr_type): Rename to...
8947 (dwarf2_cu::addr_type): ... this.
8948 (set_die_type): Update.
8950 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8952 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
8953 data through per_cu->cu.
8955 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8957 * dwarf2/read.c (lookup_dwo_comp_unit): Change
8958 dwarf2_per_cu_data parameter fo dwarf2_cu.
8959 (lookup_dwo_type_unit): Likewise.
8960 (read_cutu_die_from_dwo): Likewise.
8961 (lookup_dwo_unit): Likewise.
8962 (open_and_init_dwo_file): Likewise.
8963 (lookup_dwo_cutu): Likewise.
8964 (lookup_dwo_comp_unit): Likewise.
8965 (lookup_dwo_type_unit): Likewise.
8966 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8967 (cutu_reader::cutu_reader): Update.
8969 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8971 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
8973 (process_full_type_unit): Likewise.
8974 (process_queue): Update.
8976 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8978 * dwarf2/read.c (recursively_compute_inclusions): Add
8979 dwarf2_per_objfile parameter.
8980 (compute_compunit_symtab_includes): Likewise.
8981 (process_cu_includes): Update.
8983 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8985 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
8987 (create_type_unit_group): Update.
8988 (process_psymtab_comp_unit_reader): Update.
8989 (build_type_psymtabs_reader): Update.
8991 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8993 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
8994 object through m_this_cu->cu.
8996 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8998 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
9000 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
9002 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9004 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
9005 per_objfile parameter.
9006 (load_full_type_unit): Add per_objfile parameter.
9007 (read_signatured_type): Likewise.
9008 (load_full_comp_unit): Likewise.
9009 (load_cu): Likewise.
9010 (dw2_do_instantiate_symtab): Likewise.
9011 (dw2_get_file_names): Likewise.
9012 (dw2_map_symtabs_matching_filename): Update.
9013 (dw_expand_symtabs_matching_file_matcher): Update.
9014 (dw2_map_symbol_filenames): Update.
9015 (process_psymtab_comp_unit): Add per_objfile parameter.
9016 (build_type_psymtabs_1): Update.
9017 (process_skeletonless_type_unit): Update.
9018 (dwarf2_build_psymtabs_hard): Update.
9019 (load_partial_comp_unit): Add per_objfile parameter.
9020 (scan_partial_symbols): Update.
9021 (load_full_comp_unit): Add per_objfile parameter.
9022 (process_imported_unit_die): Update.
9023 (create_cus_hash_table): Update.
9024 (find_partial_die): Update.
9025 (dwarf2_read_addr_index): Update.
9026 (follow_die_offset): Update.
9027 (dwarf2_fetch_die_loc_sect_off): Update.
9028 (dwarf2_fetch_constant_bytes): Update.
9029 (dwarf2_fetch_die_type_sect_off): Update.
9030 (follow_die_sig_1): Update.
9031 (load_full_type_unit): Add per_objfile parameter.
9032 (read_signatured_type): Likewise.
9034 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9036 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
9039 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9041 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
9042 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9043 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
9045 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9046 (create_cus_from_index): Update.
9047 (dwarf2_read_gdb_index): Update.
9048 (create_cus_from_debug_names): Update.
9049 (dwarf2_read_debug_names): Update.
9050 (get_abbrev_section_for_cu): Update.
9051 (create_all_comp_units): Update.
9052 (read_attribute_value): Update.
9053 (get_debug_line_section): Update.
9054 * dwarf2/index-cache.c (index_cache::store): Update.
9055 * dwarf2/index-write.c (save_gdb_index_command): Update.
9056 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
9058 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9060 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
9062 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
9063 dwarf2_per_cu_data::per_bfd.
9064 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
9065 (create_type_unit_group): Likewise.
9066 (queue_comp_unit): Remove reference to
9067 per_cu->dwarf2_per_objfile.
9068 (maybe_queue_comp_unit): Likewise.
9069 (fill_in_sig_entry_from_dwo_entry): Assign new field.
9070 (create_cus_hash_table): Assign new field.
9072 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9074 * dwarf2/read.c: Replace
9075 dwarf2_cu->per_cu->dwarf2_per_objfile references with
9076 dwarf2_cu->per_objfile throughout.
9078 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9080 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
9081 parameter, don't use per_cu->dwarf2_per_objfile.
9082 (dw2_instantiate_symtab): Likewise.
9083 (dw2_find_last_source_symtab): Update.
9084 (dw2_map_expand_apply): Update.
9085 (dw2_lookup_symbol): Update.
9086 (dw2_expand_symtabs_for_function): Update.
9087 (dw2_expand_all_symtabs): Update.
9088 (dw2_expand_symtabs_with_fullname): Update.
9089 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
9090 don't use per_cu->dwarf2_per_objfile.
9091 (dw2_expand_marked_cus): Update.
9092 (dw2_find_pc_sect_compunit_symtab): Update.
9093 (dw2_debug_names_lookup_symbol): Update.
9094 (dw2_debug_names_expand_symtabs_for_function): Update.
9095 (dw2_debug_names_map_matching_symbols): Update.
9096 (dwarf2_psymtab::expand_psymtab): Update.
9098 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9100 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
9101 <per_objfile>: New member.
9102 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
9103 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
9105 (cutu_reader::cutu_reader): Update.
9106 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
9108 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9110 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
9111 struct dwarf2_per_objfile.
9112 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
9114 * dwarf2/read.c (set_die_type): Update.
9115 (get_die_type_at_offset): Update.
9117 2020-05-27 Tom Tromey <tom@tromey.com>
9118 Simon Marchi <simon.marchi@efficios.com>
9120 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
9122 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
9123 get_symtab, set_symtab>: New methods.
9124 <m_symtabs>: New field.
9125 (struct dwarf2_psymtab): Derive from partial_symtab.
9126 <readin_p, get_compunit_symtab>: Declare methods.
9127 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
9128 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
9130 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
9131 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
9132 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9133 (dw2_symtab_iter_next, dw2_print_stats)
9134 (dw2_expand_symtabs_with_fullname)
9135 (dw2_expand_symtabs_matching_one)
9136 (dw_expand_symtabs_matching_file_matcher)
9137 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
9138 (dw2_debug_names_iterator::next)
9139 (dw2_debug_names_map_matching_symbols)
9140 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
9141 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
9142 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
9144 (get_compunit_symtab, process_full_comp_unit)
9145 (process_full_type_unit): Update.
9146 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
9148 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9150 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
9151 then introduce a new dwarf2_per_objfile type.
9152 <read_line_string>: Move to the new dwarf2_per_objfile type.
9153 <objfile>: Likewise.
9154 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
9155 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
9156 dwarf2_per_objfile->per_bfd.
9157 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
9158 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
9159 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
9160 (dwarf2_per_bfd::free_cached_comp_units): ... this.
9161 (dwarf2_has_info): Allocate dwarf2_per_bfd.
9162 (dwarf2_per_objfile::locate_sections): Rename to...
9163 (dwarf2_per_bfd::locate_sections): ... this.
9164 (dwarf2_per_objfile::get_cutu): Rename to...
9165 (dwarf2_per_bfd::get_cutu): ... this.
9166 (dwarf2_per_objfile::get_cu): Rename to...
9167 (dwarf2_per_bfd::get_cu): ... this.
9168 (dwarf2_per_objfile::get_tu): Rename to...
9169 (dwarf2_per_bfd::get_tu): ... this.
9170 (dwarf2_per_objfile::allocate_per_cu): Rename to...
9171 (dwarf2_per_bfd::allocate_per_cu): ... this.
9172 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
9173 (dwarf2_per_bfd::allocate_signatured_type): ... this.
9174 (get_gdb_index_contents_ftype): Change parameter from
9175 dwarf2_per_objfile to dwarf2_per_bfd.
9176 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
9177 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
9179 2020-05-27 Tom Tromey <tom@tromey.com>
9180 Simon Marchi <simon.marchi@efficios.com>
9182 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
9183 (allocate_piece_closure): Set "per_objfile" member.
9184 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
9185 (locexpr_describe_location, loclist_describe_location): Use new
9187 * dwarf2/read.c (read_call_site_scope)
9188 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
9189 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
9190 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
9191 handle_data_member_location): Set per_objfile member.
9192 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
9194 (struct dwarf2_loclist_baton) <per_objfile>: New member.
9196 2020-05-27 Tom Tromey <tom@tromey.com>
9198 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
9199 allocate_signatured_type>: Declare new methods.
9200 <m_num_psymtabs>: New member.
9201 (struct dwarf2_per_cu_data) <index>: New member.
9202 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
9203 (dwarf2_per_objfile::allocate_signatured_type): New methods.
9204 (create_cu_from_index_list): Use allocate_per_cu.
9205 (create_signatured_type_table_from_index)
9206 (create_signatured_type_table_from_debug_names)
9207 (create_debug_type_hash_table, add_type_unit)
9208 (read_comp_units_from_section): Use allocate_signatured_type.
9210 2020-05-27 Tom Tromey <tom@tromey.com>
9212 * psymtab.c (partial_map_expand_apply)
9213 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9214 (psym_lookup_global_symbol_language)
9215 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9216 (psym_print_stats, psym_expand_symtabs_for_function)
9217 (psym_map_symbol_filenames, psym_map_matching_symbols)
9218 (psym_expand_symtabs_matching)
9219 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9220 (maintenance_check_psymtabs): Update.
9221 * psympriv.h (struct partial_symtab) <readin_p,
9222 get_compunit_symtab>: Add objfile parameter.
9223 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
9225 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
9226 get_compunit_symtab>: Likewise.
9227 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
9229 2020-05-27 Tom Tromey <tom@tromey.com>
9231 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
9233 * dwarf2/read.c (delete_file_name_entry): Fix comment.
9234 (create_cu_from_index_list)
9235 (create_signatured_type_table_from_index)
9236 (create_signatured_type_table_from_debug_names)
9237 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
9238 (dwarf2_create_include_psymtab)
9239 (create_debug_type_hash_table, add_type_unit)
9240 (create_type_unit_group, read_comp_units_from_section)
9241 (dwarf2_compute_name, create_cus_hash_table)
9242 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9243 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
9245 (dw2_get_real_path): Likewise. Change argument to
9248 2020-05-27 Luis Machado <luis.machado@linaro.org>
9251 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
9252 for ldrd (immediate).
9254 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9256 * command.h: Add comment giving the name of class_tui.
9257 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
9258 create the fake command for the help for class_tui.
9260 2020-05-26 Tom Tromey <tromey@adacore.com>
9262 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
9263 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
9264 (val_atr): New function.
9265 (value_val_atr): Use it.
9266 * ada-valprint.c (print_optional_low_bound): Change low bound
9268 (val_print_packed_array_elements): Don't call discrete_position.
9269 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
9270 discrete_position for enum types.
9271 * language.c (default_print_array_index): Change type.
9272 * language.h (struct language_defn) <la_print_array_index>: Add
9273 index_type parameter, change type of index_value.
9274 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
9275 (default_print_array_index): Update.
9276 * valprint.c (maybe_print_array_index): Don't call
9277 value_from_longest. Update.
9278 (value_print_array_elements): Don't call discrete_position.
9280 2020-05-26 Tom Tromey <tromey@adacore.com>
9282 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
9283 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
9285 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
9288 * avr-tdep.c (avr_integer_to_address): Return data or code
9289 address accordingly to the second 'type' argument of the
9292 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
9294 * infcmd.c, inferior.h: (construct_inferior_arguments):
9295 Moved function from here to gdbsupport/common-inferior.{h,cc}
9297 2020-05-23 Tom Tromey <tom@tromey.com>
9299 Revert commit eca1f90c:
9300 * NEWS: Remove entry for completion styling.
9301 * completer.c (_rl_completion_prefix_display_length): Move
9303 (gdb_fnprint): Revert.
9304 (gdb_display_match_list_1): Likewise.
9305 * cli/cli-style.c (completion_prefix_style)
9306 (completion_difference_style, completion_suffix_style): Remove.
9307 (_initialize_cli_style): Revert.
9308 * cli/cli-style.h (completion_prefix_style)
9309 (completion_difference_style, completion_suffix_style): Don't
9312 2020-05-24 Pedro Alves <palves@redhat.com>
9314 * symtab.c (completion_list_add_name): Return boolean indication
9315 of whether the symbol matched.
9316 (completion_list_add_symbol): Don't try to remove C++ aliases if
9317 the symbol didn't match in the first place.
9318 * symtab.h (completion_list_add_name): Return bool.
9320 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
9322 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
9325 2020-05-23 Joel Brobecker <brobecker@adacore.com>
9329 2020-05-23 Tom Tromey <tom@tromey.com>
9331 * NEWS: Add entry for completion styling.
9332 * completer.c (_rl_completion_prefix_display_length): Move
9333 declaration earlier.
9334 (gdb_fnprint): Use completion_style.
9335 (gdb_display_match_list_1): Likewise.
9336 * cli/cli-style.c (completion_prefix_style)
9337 (completion_difference_style, completion_suffix_style): New
9339 (_initialize_cli_style): Register new globals.
9340 * cli/cli-style.h (completion_prefix_style)
9341 (completion_difference_style, completion_suffix_style): Declare.
9343 2020-05-23 Pedro Alves <palves@redhat.com>
9345 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
9346 (parse_escape): Use ISDIGIT instead of isdigit.
9347 (puts_debug): Use gdb_isprint instead of isprint.
9348 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
9349 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
9350 ISSPACE instead of isspace.
9351 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
9353 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
9354 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
9355 instead of isxdigit and ISDIGIT instead of isdigit.
9357 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9359 * gdbtypes.h (struct type) <field>: New method.
9360 (TYPE_FIELDS): Remove, replace all uses with either type::fields
9363 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9365 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
9366 (TYPE_FIELDS): Use type::fields. Change all call sites that
9367 modify the propery to use type::set_fields instead.
9369 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9371 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
9372 type::num_fields instead.
9374 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9376 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
9378 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
9379 that modify the number of fields to use type::set_num_fields
9382 2020-05-22 Tom Tromey <tromey@adacore.com>
9384 * compile/compile-object-load.h (munmap_list_free): Don't
9387 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
9389 * annotate.c (annotate_source_line): Update return type, add call
9390 to update current symtab and line.
9391 * annotate.h (annotate_source_line): Update return type, and
9392 extend header comment.
9393 * source.c (info_line_command): Check annotation_level before
9394 calling annotate_source_line.
9395 * stack.c (print_frame_info): If calling annotate_source_line
9396 returns true, then don't print any other source line information.
9398 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
9400 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
9402 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
9404 * coffread.c (patch_type): Remove NULL check before xfree.
9405 * corefile.c (set_gnutarget): Likewise.
9406 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
9407 * exec.c (build_section_table): Likewise.
9408 * remote.c (remote_target::pass_signals): Likewise.
9409 * utils.c (n_spaces): Likewise.
9410 * cli/cli-script.c (document_command): Likewise.
9411 * i386-windows-tdep.c (core_process_module_section): Likewise.
9412 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
9414 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
9416 * symfile.c (reread_symbols): Clear objfile's section_offsets
9417 vector and section indices, re-compute them by calling
9420 2020-05-20 Tom Tromey <tromey@adacore.com>
9422 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
9423 (desc_one_bound, desc_index_type): Compute field name.
9425 2020-05-20 Tom de Vries <tdevries@suse.de>
9428 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
9430 2020-05-20 Alan Modra <amodra@gmail.com>
9433 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
9435 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
9436 passed to bfd_set_filename.
9437 * symfile-mem.c (add_vsyscall_page): Likewise for string
9438 passed to symbol_file_add_from_memory.
9439 (symbol_file_add_from_memory): Make name param a const char* and
9442 2020-05-20 Alan Modra <amodra@gmail.com>
9444 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
9445 rather than accessing bfd->filename directly.
9446 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
9447 and use bfd_section_name.
9448 * dwarf2/frame.c (decode_frame_entry): Likewise.
9449 * exec.c (exec_set_section_address): Likewise.
9450 * solib-aix.c (solib_aix_bfd_open): Likewise.
9451 * stap-probe.c (get_stap_base_address): Likewise.
9452 * symfile.c (reread_symbols): Likewise.
9454 2020-05-19 Tom Tromey <tromey@adacore.com>
9456 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
9458 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9460 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
9462 2020-05-19 Pedro Alves <palves@redhat.com>
9464 * NEWS (set exec-file-mismatch): Adjust entry.
9465 * exec.c: Include "build-id.h".
9466 (validate_exec_file): Try to match build IDs instead of filenames.
9467 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
9468 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
9469 and pass down 'warn_if_slow'.
9470 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
9471 gdb_bfd_open_closure to pass it down.
9472 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
9474 2020-05-19 Pedro Alves <palves@redhat.com>
9476 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
9477 * target.c (target_fileio_open_1): Rename to target_fileio_open
9478 and make extern. Use bool.
9479 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
9480 (target_fileio_read_alloc_1): Adjust.
9481 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
9482 (target_fileio_open_warn_if_slow): Delete declaration.
9484 2020-05-19 Pedro Alves <palves@redhat.com>
9486 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
9489 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
9491 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
9492 whether disp is negative.
9494 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9496 * symfile.h (struct symfile_segment_data)
9497 <~symfile_segment_data>: Remove.
9498 <segment_info>: Change to std::vector.
9499 * symfile.c (default_symfile_segments): Update.
9500 * elfread.c (elf_symfile_segments): Update.
9502 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9504 * symfile.h (struct symfile_segment_data) <struct segment>: New.
9506 <segment_bases, segment_sizes>: Remove.
9507 * symfile.c (default_symfile_segments): Update.
9508 * elfread.c (elf_symfile_segments): Update.
9509 * remote.c (remote_target::get_offsets): Update.
9510 * solib-target.c (solib_target_relocate_section_addresses):
9513 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9515 * symfile.h (struct symfile_segment_data): Initialize fields.
9516 <~symfile_segment_data>: Add.
9517 (symfile_segment_data_up): New.
9518 (struct sym_fns) <sym_segments>: Return a
9519 symfile_segment_data_up.
9520 (default_symfile_segments): Return a symfile_segment_data_up.
9521 (free_symfile_segment_data): Remove.
9522 (get_symfile_segment_data): Return a symfile_segment_data_up.
9523 * symfile.c (default_symfile_segments): Likewise.
9524 (get_symfile_segment_data): Likewise.
9525 (free_symfile_segment_data): Remove.
9526 (symfile_find_segment_sections): Update.
9527 * elfread.c (elf_symfile_segments): Return a
9528 symfile_segment_data_up.
9529 * remote.c (remote_target::get_offsets): Update.
9530 * solib-target.c (solib_target_relocate_section_addresses):
9532 * symfile-debug.c (debug_sym_segments): Return a
9533 symfile_segment_data_up.
9535 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9538 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
9539 Hardcode register numbers.
9542 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
9543 procfs_find_LDT_entry): Remove.
9544 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
9545 procfs_find_LDT_entry): Remove.
9546 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
9549 2020-05-17 Pedro Alves <palves@redhat.com>
9550 Andrew Burgess <andrew.burgess@embecosm.com>
9551 Keno Fischer <keno@juliacomputing.com>
9554 * breakpoint.c (build_target_condition_list): Update comments.
9555 (build_target_command_list): Update comments and skip matching
9557 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
9558 a separate function. Simplify "set breakpoint auto-hw off"
9560 (insert_breakpoints): Update comment.
9561 (tracepoint_locations_match): New parameter. For breakpoints,
9562 compare location types too, if the caller wants to.
9563 (handle_automatic_hardware_breakpoints): New functions.
9564 (bp_location_is_less_than): Also sort by location type and
9565 hardware breakpoint length.
9566 (update_global_location_list): Handle "set breakpoint auto-hw on"
9568 (update_breakpoint_locations): Ask breakpoint_locations_match to
9569 ignore location types.
9571 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9573 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
9576 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9578 * gdbtypes.h (struct type) <name, set_name>: New methods.
9579 (TYPE_CODE): Use type::name. Change all call sites used to set
9580 the name to use type::set_name instead.
9582 2020-05-16 Tom Tromey <tom@tromey.com>
9584 * top.c (quit_force): Update.
9585 * infrun.c (handle_no_resumed): Update.
9586 * top.h (all_uis): New function.
9589 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9591 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
9593 2020-05-16 Pedro Alves <palves@redhat.com>
9596 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
9598 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
9600 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
9602 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
9603 (sparc64_adi_info): Likewise.
9605 2020-05-15 Tom Tromey <tom@tromey.com>
9607 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
9609 (lookup_objfile_from_block): Remove.
9610 (lookup_symbol_in_block, lookup_symbol_in_static_block)
9611 (lookup_global_symbol): Use block_objfile.
9612 * symtab.h (lookup_objfile_from_block): Don't declare.
9613 * printcmd.c (clear_dangling_display_expressions): Use
9615 * parse.c (operator_check_standard): Use block_objfile.
9617 2020-05-15 Tom Tromey <tom@tromey.com>
9619 * language.c (language_alloc_type_symbol): Set
9621 * symtab.c (initialize_objfile_symbol): Remove.
9622 (allocate_symbol): Remove.
9623 (allocate_template_symbol): Remove.
9624 * dwarf2/read.c (fixup_go_packaging): Use "new".
9625 (new_symbol): Use "new".
9626 (read_variable): Don't call initialize_objfile_symbol. Use
9628 (read_func_scope): Use "new".
9629 * xcoffread.c (process_xcoff_symbol): Don't call
9630 initialize_objfile_symbol.
9631 (SYMBOL_DUP): Remove.
9632 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
9634 * symtab.h (allocate_symbol, initialize_objfile_symbol)
9635 (allocate_template_symbol): Don't declare.
9636 (struct symbol): Add copy constructor. Change defaults.
9637 * jit.c (finalize_symtab): Use "new".
9638 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
9640 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9641 (common_block_end): Use "new".
9642 * mdebugread.c (parse_symbol): Use "new".
9643 (new_symbol): Likewise.
9645 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9647 * NEWS: Mention changes to help and apropos.
9649 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9651 * command.h (enum command_class): Improve comments, document
9652 that class_alias is for user-defined aliases, give the class
9653 name for each class, remove unused class_xdb.
9654 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
9655 * breakpoint.c (_initialize_breakpoint): Replace class_alias
9657 * infcmd.c (_initialize_infcmd): Likewise.
9658 * reverse.c (_initialize_reverse): Likewise.
9659 * stack.c (_initialize_stack): Likewise.
9660 * symfile.c (_initialize_symfile): Likewise.
9661 * tracepoint.c (_initialize_tracepoint): Likewise.
9663 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9665 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
9666 when their aliased command is traversed.
9667 (help_cmd): Add fput_command_names_styled call to
9668 output command name and aliases when command has an alias.
9670 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9672 * cli/cli-decode.h (help_cmd_list): Remove declaration.
9673 * cli/cli-decode.c (help_cmd_list): Declare as static,
9674 remove prefix argument, use bool for recurse arg, rework to show the aliases of
9675 a command together with the command.
9676 (fput_command_name_styled, fput_command_names_styled): New functions.
9677 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
9678 fput_command_name_styled.
9679 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
9680 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
9682 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9684 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
9685 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
9686 * command.h (cmd_show_list): Likewise.
9687 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
9688 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
9690 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9692 * unittests/command-def-selftests.c (traverse_command_structure):
9693 Verify all commands of a list have the same prefix command and
9694 that only the top cmdlist commands have a null prefix.
9696 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9698 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
9699 as prefix, not one of its aliases.
9700 (set_cmd_prefix): Remove.
9701 (do_add_cmd): Centralize the setting of the prefix of a command, when
9702 command is defined after its full chain of prefix commands.
9703 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
9704 (add_setshow_cmd_full): Likewise.
9705 (update_prefix_field_of_prefixed_commands): New function.
9706 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
9707 update_prefix_field_of_prefixed_commands.
9708 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
9709 addresses of remote_set_cmdlist and remote_show_cmdlist given
9710 as argument, not the address of an argument.
9711 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
9712 * gdb/remote.c (_initialize_remote): Likewise.
9714 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9716 * cli/cli-cmds.c (alias_command): Check for an existing alias
9717 using lookup_cmd_composition, as valid_command_p is too strict
9718 and forbids aliases that are the prefix of an existing alias
9720 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
9721 command is properly recognised as a valid command.
9723 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9725 * unittests/help-doc-selftests.c: Rename to
9726 unittests/command-def-selftests.c
9727 * unittests/command-def-selftests.c (help_doc_tests): Update some
9729 (command_structure_tests, traverse_command_structure): New namespace
9731 (command_structure_invariants_tests): New function.
9732 (_initialize_command_def_selftests) Renamed from
9733 _initialize_help_doc_selftests, register command_structure_invariants
9736 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9738 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
9741 2020-05-15 Joel Brobecker <brobecker@adacore.com>
9743 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
9744 ada_is_fixed_point_type. Update all callers.
9745 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
9747 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
9749 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
9750 print_fixed_point_type. Update all callers.
9751 * ada-valprint.c (ada_value_print_num): Replace call to
9752 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
9754 2020-05-14 Kevin Buettner <kevinb@redhat.com>
9756 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
9758 (cpu_supports_bts): Add CV_AMD case.
9760 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
9761 Simon Marchi <simon.marchi@efficios.com>
9763 * infrun.c (stop_all_threads): Collect multiple wait events at
9766 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
9768 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
9771 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
9773 * gdbtypes.h (struct type) <code, set_code>: New methods.
9774 (TYPE_CODE): Use type::code. Change all call sites used to set
9775 the code to use type::set_code instead.
9777 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9778 Tom de Vries <tdevries@suse.de>
9779 Pedro Alves <palves@redhat.com>
9782 * infrun.c (stop_all_threads): Do NOT ignore
9783 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
9784 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
9786 (handle_no_resumed): Remove code handling a live inferior with no
9788 * remote.c (has_single_non_exited_thread): New.
9789 (remote_target::update_thread_list): Do not delete a thread if is
9790 the last thread of the process.
9791 * thread.c (thread_select): Call delete_exited_threads instead of
9794 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9796 * infrun.c (stop_all_threads): Enable/disable thread events of all
9797 targets. Move a debug message denoting the end of the function
9798 into the SCOPED_EXIT block.
9800 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9802 * process-stratum-target.h: Include <set>.
9803 (all_non_exited_process_targets, switch_to_target_no_thread): New
9804 function declarations.
9805 * process-stratum-target.c (all_non_exited_process_targets)
9806 (switch_to_target_no_thread): New function implementations.
9808 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9810 * infrun.c (handle_inferior_event): Extract out a piece of code
9812 (mark_non_executing_threads): ...this new function.
9814 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9816 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
9819 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9821 * regcache.c (regcache_read_pc_protected): New function
9822 implementation that returns 0 if the PC cannot read via
9824 * infrun.c (proceed): Call 'regcache_read_pc_protected'
9825 instead of 'regcache_read_pc'.
9826 (keep_going_pass_signal): Ditto.
9828 2020-05-13 Tom Tromey <tromey@adacore.com>
9830 * ada-lang.c (align_value): Remove.
9831 (ada_template_to_fixed_record_type_1): Use align_up.
9833 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9835 * async-event.c: Update the copyright year.
9836 * async-event.h: Update the copyright year.
9838 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
9840 * objfiles.h (is_addr_in_objfile,
9841 shared_objfile_contains_address_p): Return bool.
9842 * objfile.c (is_addr_in_objfile,
9843 shared_objfile_contains_address_p): Return bool.
9845 2020-05-11 Tom Tromey <tromey@adacore.com>
9847 * cli/cli-cmds.c (info_command): Restore.
9848 (_initialize_cli_cmds): Use add_prefix_command for "info".
9849 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
9851 2020-05-11 Tom Tromey <tromey@adacore.com>
9853 * ada-lang.c (ada_value_primitive_field): Now public.
9854 * ada-lang.h (ada_value_primitive_field): Declare.
9855 * ada-valprint.c (print_field_values): Use
9856 ada_value_primitive_field for wrapper fields.
9858 2020-05-11 Tom de Vries <tdevries@suse.de>
9860 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
9863 2020-05-11 Tom de Vries <tdevries@suse.de>
9866 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
9867 with length 0, if not gdb-produced.
9868 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
9870 2020-05-09 Tom de Vries <tdevries@suse.de>
9873 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
9876 2020-05-09 Tom Tromey <tom@tromey.com>
9878 * top.c (server_command): Now bool.
9879 * top.h (server_command): Now bool.
9881 2020-05-08 Tom Tromey <tromey@adacore.com>
9883 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
9884 already being processed.
9886 2020-05-08 Tom Tromey <tom@tromey.com>
9888 * printcmd.c (struct display) <next>: Remove.
9889 <display>: New constructor.
9890 <exp_string>: Now a std::string.
9891 <enabled_p>: Now a bool.
9892 (display_number): Move definition earlier.
9893 (displays): Rename from display_chain. Now a std::vector.
9894 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
9895 (display_command): Update.
9896 (do_one_display, disable_display)
9897 (enable_disable_display_command, do_enable_disable_display):
9899 (free_display): Remove.
9900 (clear_displays): Rewrite.
9901 (delete_display): Update.
9902 (map_display_numbers): Use function_view. Remove "data"
9904 (do_delete_display): Remove.
9905 (undisplay_command): Update.
9906 (do_one_display, do_displays, disable_display)
9907 (info_display_command): Update.
9908 (do_enable_disable_display): Remove.
9909 (enable_disable_display_command)
9910 (clear_dangling_display_expressions): Update.
9912 2020-05-08 Tom Tromey <tom@tromey.com>
9914 * symtab.c (set_symbol_cache_size)
9915 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
9916 (maintenance_print_symbol_cache_statistics): Update.
9917 * symmisc.c (print_symbol_bcache_statistics)
9918 (print_objfile_statistics, maintenance_print_objfiles)
9919 (maintenance_info_symtabs, maintenance_check_symtabs)
9920 (maintenance_expand_symtabs, maintenance_info_line_tables):
9922 * symfile-debug.c (set_debug_symfile): Update.
9923 * source.c (forget_cached_source_info): Update.
9924 * python/python.c (gdbpy_progspaces): Update.
9925 * psymtab.c (maintenance_info_psymtabs): Update.
9926 * probe.c (parse_probes): Update.
9927 * linespec.c (iterate_over_all_matching_symtabs)
9928 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
9929 * guile/scm-progspace.c (gdbscm_progspaces): Update.
9930 * exec.c (exec_target::close): Update.
9931 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
9932 * breakpoint.c (print_one_breakpoint_location)
9933 (create_longjmp_master_breakpoint)
9934 (create_std_terminate_master_breakpoint): Update.
9935 * progspace.c (program_spaces): Now a std::vector.
9936 (maybe_new_address_space): Update.
9937 (add_program_space): Remove.
9938 (program_space::program_space): Update.
9939 (remove_program_space): Update.
9940 (number_of_program_spaces): Remove.
9941 (print_program_space, update_address_spaces): Update.
9942 * progspace.h (program_spaces): Change type.
9943 (ALL_PSPACES): Remove.
9944 (number_of_program_spaces): Don't declare.
9945 (struct program_space) <next>: Remove.
9947 2020-05-08 Tom Tromey <tom@tromey.com>
9949 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
9950 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
9951 (enable_break): Update.
9952 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
9953 (frv_fdpic_find_canonical_descriptor): Update.
9954 (frv_fetch_objfile_link_map): Update.
9955 * progspace.c (program_space::free_all_objfiles): Update.
9956 (program_space::solibs): New method.
9957 * progspace.h (struct program_space) <solibs>: New method.
9958 * solist.h (master_so_list): Don't declare.
9959 (ALL_SO_LIBS): Remove.
9960 * solib.h (so_list_head): Remove.
9961 (update_solib_list): Update comment.
9962 * solib.c (master_so_list): Remove.
9963 (solib_used, update_solib_list, solib_add)
9964 (info_sharedlibrary_command, clear_solib)
9965 (reload_shared_libraries_1, remove_user_added_objfile): Update.
9967 2020-05-08 Tom Tromey <tom@tromey.com>
9969 * extension.c (extension_languages): Now a std::array.
9970 (ALL_EXTENSION_LANGUAGES): Remove.
9971 (get_ext_lang_defn, get_ext_lang_of_file)
9972 (eval_ext_lang_from_control_command): Update.
9973 (finish_ext_lang_initialization)
9974 (auto_load_ext_lang_scripts_for_objfile)
9975 (ext_lang_type_printers::ext_lang_type_printers)
9976 (apply_ext_lang_type_printers)
9977 (ext_lang_type_printers::~ext_lang_type_printers)
9978 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
9979 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
9980 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
9981 (get_matching_xmethod_workers, ext_lang_colorize)
9982 (ext_lang_before_prompt): Update.
9983 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
9985 2020-05-08 Tom Tromey <tom@tromey.com>
9987 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
9989 <swap_string, m_string>: Remove.
9990 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
9992 * stabsread.c (define_symbol, read_type): Update.
9993 * linespec.c (find_linespec_symbols): Update.
9994 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
9995 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
9996 * dbxread.c (read_dbx_symtab): Update.
9997 * cp-support.h (cp_canonicalize_string_full)
9998 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
9999 Return unique_xmalloc_ptr.
10000 * cp-support.c (inspect_type): Update.
10001 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
10002 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
10004 * c-typeprint.c (print_name_maybe_canonical): Update.
10005 * break-catch-throw.c (check_status_exception_catchpoint):
10008 2020-05-08 Tom de Vries <tdevries@suse.de>
10010 * infrun.c (follow_fork): Copy current_line and current_symtab to
10013 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10015 * async-event.c (struct async_signal_handler, struct
10016 async_event_handler): Reformat, remove typedef.
10018 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10020 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
10021 access thistype->main_type->dyn_prop_list directly.
10023 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10025 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
10026 (remove_dyn_prop): Remove. Update all users to use
10027 type::remove_dyn_prop.
10028 * gdbtypes.c (remove_dyn_prop): Rename to...
10029 (type::remove_dyn_prop): ... this.
10031 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
10033 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
10034 (add_dyn_prop): Remove. Update all users to use
10035 type::add_dyn_prop.
10036 * gdbtypes.c (add_dyn_prop): Rename to...
10037 (type::add_dyn_prop): ... this.
10039 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10041 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
10042 (get_dyn_prop): Remove. Update all users to use
10044 * gdbtypes.c (get_dyn_prop): Rename to...
10045 (type::dyn_prop): ... this.
10047 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
10049 * gdbtypes.h (struct main_type) <flag_static>: Remove.
10051 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
10053 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
10054 instruction, skip it if it's there.
10056 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
10058 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
10060 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
10062 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
10063 * gdbtypes.c (recursive_dump_type): Remove use of
10066 2020-05-03 Tom Tromey <tom@tromey.com>
10068 * breakpoint.c (catch_command, tcatch_command): Remove.
10069 (_initialize_breakpoint): Use add_basic_prefix_cmd,
10070 add_show_prefix_cmd.
10071 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
10072 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
10074 (add_internal_problem_command): Use add_basic_prefix_cmd,
10075 add_show_prefix_cmd.
10076 * mips-tdep.c (set_mipsfpu_command): Remove.
10077 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
10078 * dwarf2/index-cache.c (set_index_cache_command): Remove.
10079 (_initialize_index_cache): Use add_basic_prefix_cmd.
10080 * memattr.c (dummy_cmd): Remove.
10081 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
10082 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
10083 (_initialize_tui_win): Use add_basic_prefix_cmd,
10084 add_show_prefix_cmd.
10085 * cli/cli-logging.c (set_logging_command): Remove.
10086 (_initialize_cli_logging): Use add_basic_prefix_cmd,
10087 add_show_prefix_cmd.
10088 (show_logging_command): Remove.
10089 * target.c (target_command): Remove.
10090 (add_target): Use add_basic_prefix_cmd.
10092 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
10094 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
10096 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10098 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
10101 2020-04-30 Kamil Rytarowski <n54@gmx.com>
10103 * nbsd-nat.c (nbsd_enable_proc_events)
10104 (nbsd_nat_target::post_startup_inferior): Add.
10105 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
10106 (nbsd_nat_target::update_thread_list): Rewrite.
10107 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
10108 "PTRACE_LWP_CREATE".
10109 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
10111 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10113 * stack.c (_initialize_stack): Remove duplicated creation
10114 of "frame" command and "f" alias.
10116 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
10119 * gdbtypes.c (check_typedef): Calculate size of array of
10122 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
10125 * i386-tdep.c (i386_push_dummy_call): Call
10126 i386_thiscall_push_dummy_call.
10127 (i386_thiscall_push_dummy_call): New function.
10128 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
10129 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
10130 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
10132 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10134 * gdbarch.sh (do_read): Add shellcheck disable directive for
10137 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10139 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
10140 "referenced but not assigned" warning.
10142 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10144 * gdbarch.sh: Remove code that sets fallbackdefault.
10146 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10148 * gdbarch.sh: Use shell operators && and || instead of
10151 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10153 * gdbarch.sh: Use $(...) instead of `...`.
10155 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10157 * gdbarch.sh: Use double quotes around variables.
10159 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10161 * gdbarch.sh: Use %s with printf, instead of variables in the
10164 2020-04-29 Tom Tromey <tromey@adacore.com>
10167 * dwarf2/read.c (update_enumeration_type_from_children): Compute
10169 (read_enumeration_type): Call
10170 update_enumeration_type_from_children later. Update comments.
10171 (process_enumeration_scope): Don't create type fields.
10173 2020-04-29 Kamil Rytarowski <n54@gmx.com>
10175 * nbsd-tdep.c: Include "xml-syscall.h".
10176 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
10178 2020-04-29 Kamil Rytarowski <n54@gmx.com>
10180 * nbsd-nat.c: Include "sys/wait.h".
10181 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
10182 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
10183 (nbsd_nat_target::remove_exec_catchpoint)
10184 (nbsd_nat_target::set_syscall_catchpoint): Add.
10185 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
10186 (nbsd_nat_target::insert_exec_catchpoint)
10187 (nbsd_nat_target::remove_exec_catchpoint)
10188 (nbsd_nat_target::set_syscall_catchpoint): Add.
10189 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
10190 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
10191 `nbsd_get_syscall_number'.
10193 2020-04-29 Tom Tromey <tom@tromey.com>
10195 * stack.c (print_block_frame_labels): Remove.
10197 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
10200 * ada-valprint.c (val_print_packed_array_elements): Move array
10201 end bracket to new line.
10202 (ada_val_print_string): Remove extra spaces before first array
10204 * c-valprint.c (c_value_print_array): Likewise.
10205 * m2-valprint.c (m2_print_array_contents): Likewise.
10206 (m2_value_print_inner): Likewise.
10207 * p-valprint.c (pascal_value_print_inner): Likewise.
10208 * valprint.c (generic_val_print_array): Likewise.
10209 (value_print_array_elements): Move first array element and array
10210 end bracket to new line.
10212 2020-04-29 Tom de Vries <tdevries@suse.de>
10215 * linespec.c (find_method): Fix ix calculation.
10217 2020-04-28 Kamil Rytarowski <n54@gmx.com>
10219 * syscalls/update-netbsd.sh: New file.
10220 * syscalls/netbsd.xml: Regenerate.
10221 * data-directory/Makefile.in: Register `netbsd.xml' in
10224 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
10226 * syscalls/update-freebsd.sh: Add double quotes.
10228 2020-04-28 Tom Tromey <tom@tromey.com>
10231 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
10232 (cmdpy_init): Allow class_tui.
10234 2020-04-28 Mark Williams <mark@myosotissp.com>
10237 * dwarf2read.c: Add missing assingments to list_in_scope when
10238 start_symtab was already called.
10240 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
10243 * dwarf2/read.c (offset_map_type): Use
10244 gdb:hash_enum<sect_offset> as hash function.
10246 2020-04-28 Tom de Vries <tdevries@suse.de>
10248 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
10249 with DW_AT_signature.
10251 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
10253 * configure.ac: Remove check for fs_base/gs_base in
10255 * configure: Re-generate.
10256 * config.in: Re-generate.
10257 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
10258 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
10259 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
10261 2020-04-27 Luis Machado <luis.machado@linaro.org>
10263 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
10264 problematic inline frame unwinding situation.
10265 * frame.c (frame_id_computed_p): New function.
10266 * frame.h (frame_id_computed_p): New prototype.
10268 2020-04-26 Tom Tromey <tom@tromey.com>
10270 * command.h (enum command_class) <class_pseudo>: Remove.
10272 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10274 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
10277 2020-04-25 Kamil Rytarowski <n54@gmx.com>
10279 * inf-ptrace.c (inf_ptrace_target::wait): Remove
10280 `PT_GET_PROCESS_STATE' block.
10282 2020-04-24 Tom Tromey <tom@tromey.com>
10284 * symtab.h (symbol_get_demangled_name): Don't declare.
10285 * symtab.c (symbol_get_demangled_name): Remove.
10286 (general_symbol_info::natural_name)
10287 (general_symbol_info::demangled_name): Update.
10289 2020-04-24 Tom Tromey <tom@tromey.com>
10292 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
10294 2020-04-24 Tom Tromey <tom@tromey.com>
10297 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
10299 (new_symbol): Likewise.
10300 * compile/compile-object-load.c (get_out_value_type): Use
10301 symbol_matches_search_name.
10303 2020-04-24 Tom Tromey <tom@tromey.com>
10305 * dwarf2/read.c (add_partial_symbol): Do not call
10306 compute_and_set_names.
10308 2020-04-24 Tom Tromey <tom@tromey.com>
10310 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
10313 2020-04-24 Tom Tromey <tom@tromey.com>
10315 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
10316 (add_psymbol_to_list): New overload. Make old overload call new
10318 * psympriv.h (add_psymbol_to_list): New overload.
10320 2020-04-24 Tom Tromey <tom@tromey.com>
10322 * dwarf2/read.c (partial_die_info::read) <case
10323 DW_AT_linkage_name>: Use value_as_string.
10324 (dwarf2_string_attr): Use value_as_string.
10325 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
10327 * dwarf2/attribute.c (attribute::value_as_string): New method.
10329 2020-04-24 Tom Tromey <tom@tromey.com>
10331 * symtab.c (general_symbol_info::natural_name)
10332 (general_symbol_info::demangled_name): Check for language_rust.
10334 2020-04-24 Tom Tromey <tom@tromey.com>
10336 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
10337 (dwarf2_physname): ... from here.
10338 (partial_die_info::read): Add Rust "{" hack.
10340 2020-04-24 Tom Tromey <tom@tromey.com>
10342 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
10344 (symbol_set_demangled_name): Don't declare.
10345 * symtab.c (general_symbol_info::set_demangled_name): Rename from
10346 symbol_set_demangled_name.
10347 (general_symbol_info::set_language)
10348 (general_symbol_info::compute_and_set_names): Update.
10349 * minsyms.c (minimal_symbol_reader::install): Update.
10350 * dwarf2/read.c (new_symbol): Update.
10352 2020-04-24 Tom Tromey <tromey@adacore.com>
10355 * python/py-type.c (convert_field): Handle
10356 FIELD_LOC_KIND_DWARF_BLOCK.
10357 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
10358 (typy_get_dynamic): Nw function.
10359 (type_object_getset): Add "dynamic".
10362 2020-04-24 Tom Tromey <tromey@adacore.com>
10364 * ada-typeprint.c (print_choices, print_variant_part)
10365 (print_record_field_types_dynamic): New functions.
10366 (print_record_field_types): Use print_record_field_types_dynamic.
10368 2020-04-24 Tom Tromey <tromey@adacore.com>
10370 * dwarf2/read.c (handle_data_member_location): New overload.
10371 (dwarf2_add_field): Use it.
10372 (decode_locdesc): Add "computed" parameter. Update comment.
10373 * gdbtypes.c (is_dynamic_type_internal): Also look for
10374 FIELD_LOC_KIND_DWARF_BLOCK.
10375 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
10376 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
10377 virtual base classes.
10378 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
10379 FIELD_LOC_KIND_DWARF_BLOCK.
10381 2020-04-24 Tom Tromey <tromey@adacore.com>
10383 * dwarf2/read.c (read_structure_type): Handle dynamic length.
10384 * gdbtypes.c (is_dynamic_type_internal): Check
10385 TYPE_HAS_DYNAMIC_LENGTH.
10386 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
10387 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
10389 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
10392 2020-04-24 Tom Tromey <tromey@adacore.com>
10394 * dwarf2/read.c (struct variant_field): Rewrite.
10395 (struct variant_part_builder): New.
10396 (struct nextfield): Remove "variant" field. Add "offset".
10397 (struct field_info): Add "current_variant_part" and
10399 (alloc_discriminant_info): Remove.
10400 (alloc_rust_variant): New function.
10401 (quirk_rust_enum): Update.
10402 (dwarf2_add_field): Set "offset" member. Don't handle
10403 DW_TAG_variant_part.
10404 (offset_map_type): New typedef.
10405 (convert_variant_range, create_one_variant)
10406 (create_one_variant_part, create_variant_parts)
10407 (add_variant_property): New functions.
10408 (dwarf2_attach_fields_to_type): Call add_variant_property.
10409 (read_structure_type): Don't handle DW_TAG_variant_part.
10410 (handle_variant_part, handle_variant): New functions.
10411 (handle_struct_member_die): Use them.
10412 (process_structure_scope): Don't handle variant parts.
10413 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
10414 (struct discriminant_info): Remove.
10415 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
10416 (struct main_type) <flag_discriminated_union>: Remove.
10417 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
10418 (rust_enum_variant): Return int. Remove "contents". Rewrite.
10419 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
10421 * valops.c (value_union_variant): Remove.
10422 * value.h (value_union_variant): Don't declare.
10424 2020-04-24 Tom Tromey <tromey@adacore.com>
10426 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
10427 (ada_value_primitive_packed_val): Update.
10428 * ada-valprint.c (ada_value_print_1): Update.
10429 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
10430 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
10431 just an address. Use evaluate_for_locexpr_baton.
10432 (dwarf2_evaluate_property): Update.
10433 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
10435 * findvar.c (default_read_var_value): Update.
10436 * gdbtypes.c (compute_variant_fields_inner)
10437 (resolve_dynamic_type_internal): Update.
10438 (resolve_dynamic_type): Change type of valaddr parameter.
10439 * gdbtypes.h (resolve_dynamic_type): Update.
10440 * valarith.c (value_subscripted_rvalue): Update.
10441 * value.c (value_from_contents_and_address): Update.
10443 2020-04-24 Tom Tromey <tromey@adacore.com>
10445 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
10446 "push_initial_value" parameter.
10447 (dwarf2_evaluate_property): Likewise.
10448 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
10450 2020-04-24 Tom Tromey <tromey@adacore.com>
10452 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
10453 (variant::matches, compute_variant_fields_recurse)
10454 (compute_variant_fields_inner, compute_variant_fields): New
10456 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
10457 Use resolved_type after type is made.
10458 (operator==): Add new cases.
10459 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
10460 (struct discriminant_range, struct variant, struct variant_part):
10462 (union dynamic_prop_data) <variant_parts, original_type>: New
10464 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
10465 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
10467 * value.c (unpack_bits_as_long): Now public.
10468 * value.h (unpack_bits_as_long): Declare.
10470 2020-04-24 Tom Tromey <tromey@adacore.com>
10472 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
10473 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
10475 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
10477 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
10479 2020-04-24 Kamil Rytarowski <n54@gmx.com>
10481 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
10482 (remove_fork_catchpoint, post_startup_inferior)
10483 (post_attach): Move...
10484 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
10485 (remove_fork_catchpoint, post_startup_inferior)
10486 (post_attach): ...here.
10487 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
10488 (remove_fork_catchpoint, post_startup_inferior)
10489 (post_attach): Move...
10490 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
10491 (remove_fork_catchpoint, post_startup_inferior)
10492 (post_attach): ...here.
10494 2020-04-24 Tom Tromey <tromey@adacore.com>
10496 * nat/windows-nat.h (struct windows_thread_info)
10497 <pc_adjusted>: New member.
10498 * windows-nat.c (windows_fetch_one_register): Check
10500 (windows_nat_target::get_windows_debug_event)
10501 (windows_nat_target::wait): Set pc_adjusted.
10503 2020-04-24 Tom de Vries <tdevries@suse.de>
10505 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
10506 Run gdb-add-index inside temp dir.
10508 2020-04-23 Tom Tromey <tromey@adacore.com>
10510 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
10513 2020-04-23 Luis Machado <luis.machado@linaro.org>
10515 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10516 get_frame_register instead of gdbarch_unwind_pc.
10518 2020-04-23 Tom de Vries <tdevries@suse.de>
10520 * symtab.c (lookup_global_symbol): Prefer def over decl.
10522 2020-04-23 Tom de Vries <tdevries@suse.de>
10525 * block.c (best_symbol, better_symbol): Promote to external.
10526 * block.h (best_symbol, better_symbol): Declare.
10527 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
10530 2020-04-23 Tom Tromey <tromey@adacore.com>
10533 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
10534 "const char *", not a "const std::string &".
10535 <name_and_matcher::operator==>: Update.
10536 * unittests/lookup_name_info-selftests.c: Change type of
10539 2020-04-23 Tom Tromey <tom@tromey.com>
10541 * inferior.h (iterate_over_inferiors): Don't declare.
10542 * inferior.c (iterate_over_inferiors): Remove.
10543 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
10545 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
10546 use iterate_over_inferiors.
10547 (darwin_resume_inferior_it)
10548 (struct resume_inferior_threads_param)
10549 (darwin_resume_inferior_threads_it): Remove.
10550 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
10552 2020-04-23 Tom de Vries <tdevries@suse.de>
10554 * blockframe.c (find_pc_partial_function): Use
10555 find_pc_sect_compunit_symtab rather than
10556 objfile->sf->qf->find_pc_sect_compunit_symtab.
10558 2020-04-22 Tom de Vries <tdevries@suse.de>
10561 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
10564 2020-04-22 Tom de Vries <tdevries@suse.de>
10567 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
10570 2020-04-22 Tom de Vries <tdevries@suse.de>
10573 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
10574 CU if already created.
10576 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10578 * infrun.c (displaced_step_fixup): Switch to the event_thread
10579 before calling displaced_step_restore, not after.
10581 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10583 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
10584 its inferior is not recorded by us.
10585 (record_btrace_target_open): Replace call to
10586 all_non_exited_threads () with call to current_inferior
10587 ()->non_exited_threads ().
10588 (record_btrace_target::stop_recording): Likewise.
10589 (record_btrace_target::close): Likewise.
10590 (record_btrace_target::wait): Likewise.
10591 (record_btrace_target::record_stop_replaying): Likewise.
10593 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10595 * btrace.c (btrace_enable): Throw an error on double enables and
10596 when enabling recording fails.
10597 (btrace_disable): Throw an error if the thread is not recorded.
10599 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10601 * record-btrace.c (record_btrace_target::fetch_registers): Forward
10602 request if we do not have a thread_info.
10604 2020-04-21 Tom de Vries <tdevries@suse.de>
10608 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
10609 exception in get_frame_id.
10611 2020-04-20 Tom Tromey <tromey@adacore.com>
10613 * python/python.c (struct gdbpy_event): Mark move constructor as
10615 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
10616 constructor as noexcept.
10617 * completer.h (struct completion_result): Mark move constructor as
10619 * completer.c (completion_result::completion_result): Use
10620 initialization style. Don't call reset_match_list.
10622 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
10624 * MAINTAINERS (Write After Approval): Add myself.
10626 2020-04-18 Tom Tromey <tom@tromey.com>
10628 * windows-tdep.c (init_w32_command_list)
10629 (w32_prefix_command_valid): Restore.
10630 (_initialize_windows_tdep): Call init_w32_command_list.
10632 2020-04-18 Tom Tromey <tom@tromey.com>
10634 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
10635 * value.c (value_fn_field): Update.
10636 * valops.c (find_function_in_inferior)
10637 (value_allocate_space_in_inferior): Update.
10638 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10640 * tui/tui-source.c (tui_source_window::set_contents): Update.
10641 * symtab.c (lookup_global_or_static_symbol)
10642 (find_function_start_sal_1, skip_prologue_sal)
10643 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
10644 * symmisc.c (dump_msymbols, dump_symtab_1)
10645 (maintenance_print_one_line_table): Update.
10646 * symfile.c (init_entry_point_info, section_is_mapped)
10647 (list_overlays_command, simple_read_overlay_table)
10648 (simple_overlay_update_1): Update.
10649 * stap-probe.c (handle_stap_probe): Update.
10650 * stabsread.c (dbx_init_float_type, define_symbol)
10651 (read_one_struct_field, read_enum_type, read_range_type): Update.
10652 * source.c (info_line_command): Update.
10653 * python/python.c (gdbpy_source_objfile_script)
10654 (gdbpy_execute_objfile_script): Update.
10655 * python/py-type.c (save_objfile_types): Update.
10656 * python/py-objfile.c (py_free_objfile): Update.
10657 * python/py-inferior.c (python_new_objfile): Update.
10658 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
10659 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
10660 (maintenance_check_psymtabs): Update.
10661 * printcmd.c (info_address_command): Update.
10662 * objfiles.h (struct objfile) <arch>: New method, from
10664 (get_objfile_arch): Don't declare.
10665 * objfiles.c (get_objfile_arch): Remove.
10666 (filter_overlapping_sections): Update.
10667 * minsyms.c (msymbol_is_function): Update.
10668 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
10669 (output_nondebug_symbol): Update.
10670 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
10671 (mdebug_expand_psymtab): Update.
10672 * machoread.c (macho_add_oso_symfile): Update.
10673 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
10675 * linux-fork.c (checkpoint_command): Update.
10676 * linespec.c (convert_linespec_to_sals): Update.
10677 * jit.c (finalize_symtab): Update.
10678 * infrun.c (insert_exception_resume_from_probe): Update.
10679 * ia64-tdep.c (ia64_find_unwind_table): Update.
10680 * hppa-tdep.c (internalize_unwinds): Update.
10681 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
10683 * gcore.c (call_target_sbrk): Update.
10684 * elfread.c (record_minimal_symbol, elf_symtab_read)
10685 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
10686 (elf_gnu_ifunc_resolve_by_got): Update.
10687 * dwarf2/read.c (create_addrmap_from_index)
10688 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10689 (read_debug_names_from_section)
10690 (process_psymtab_comp_unit_reader, add_partial_symbol)
10691 (add_partial_subprogram, process_full_comp_unit)
10692 (read_file_scope, read_func_scope, read_lexical_block_scope)
10693 (read_call_site_scope, dwarf2_ranges_read)
10694 (dwarf2_record_block_ranges, dwarf2_add_field)
10695 (mark_common_block_symbol_computed, read_tag_pointer_type)
10696 (read_tag_string_type, dwarf2_init_float_type)
10697 (dwarf2_init_complex_target_type, read_base_type)
10698 (partial_die_info::read, partial_die_info::read)
10699 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
10700 (dwarf2_fetch_die_loc_sect_off): Update.
10701 * dwarf2/loc.c (dwarf2_find_location_expression)
10702 (class dwarf_evaluate_loc_desc, rw_pieced_value)
10703 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
10704 (dwarf2_loc_desc_get_symbol_read_needs)
10705 (locexpr_describe_location_piece, locexpr_describe_location_1)
10706 (loclist_describe_location): Update.
10707 * dwarf2/index-write.c (write_debug_names): Update.
10708 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
10709 * dtrace-probe.c (dtrace_process_dof): Update.
10710 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
10711 (process_one_symbol): Update.
10712 * ctfread.c (ctf_init_float_type, read_base_type): Update.
10713 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
10714 (coff_read_enum_type): Update.
10715 * cli/cli-cmds.c (edit_command, list_command): Update.
10716 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
10717 * breakpoint.c (create_overlay_event_breakpoint)
10718 (create_longjmp_master_breakpoint)
10719 (create_std_terminate_master_breakpoint)
10720 (create_exception_master_breakpoint, get_sal_arch): Update.
10721 * block.c (block_gdbarch): Update.
10722 * annotate.c (annotate_source_line): Update.
10724 2020-04-17 Tom Tromey <tromey@adacore.com>
10726 * auto-load.c (show_auto_load_cmd): Remove.
10727 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
10728 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
10729 (maintenance_print_arc_command): Remove.
10730 * tui/tui-win.c (tui_command): Remove.
10731 (tui_get_cmd_list): Use add_basic_prefix_cmd.
10732 * tui/tui-layout.c (tui_layout_command): Remove.
10733 (_initialize_tui_layout): Use add_basic_prefix_cmd.
10734 * python/python.c (user_set_python, user_show_python): Remove.
10735 (_initialize_python): Use add_basic_prefix_cmd,
10736 add_show_prefix_cmd.
10737 * guile/guile.c (set_guile_command, show_guile_command): Remove.
10738 (install_gdb_commands): Use add_basic_prefix_cmd,
10739 add_show_prefix_cmd.
10740 (info_guile_command): Remove.
10741 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
10742 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
10743 add_show_prefix_cmd.
10744 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
10745 Remove do_set and do_show parameters.
10746 * cli/cli-style.c (set_style, show_style): Remove.
10747 (_initialize_cli_style): Use add_basic_prefix_cmd,
10748 add_show_prefix_cmd.
10749 (cli_style_option::add_setshow_commands): Remove do_set and
10750 do_show parameters.
10751 (cli_style_option::add_setshow_commands): Use
10752 add_basic_prefix_cmd, add_show_prefix_cmd.
10753 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
10754 (set_style_name): Remove.
10755 * cli/cli-dump.c (dump_command, append_command): Remove.
10756 (srec_dump_command, ihex_dump_command, verilog_dump_command)
10757 (tekhex_dump_command, binary_dump_command)
10758 (binary_append_command): Remove.
10759 (_initialize_cli_dump): Use add_basic_prefix_cmd.
10760 * windows-tdep.c (w32_prefix_command_valid): Remove global.
10761 (init_w32_command_list): Remove; move into ...
10762 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
10763 * valprint.c (set_print, show_print, set_print_raw)
10764 (show_print_raw): Remove.
10765 (_initialize_valprint): Use add_basic_prefix_cmd,
10766 add_show_prefix_cmd.
10767 * typeprint.c (set_print_type, show_print_type): Remove.
10768 (_initialize_typeprint): Use add_basic_prefix_cmd,
10769 add_show_prefix_cmd.
10770 * record.c (set_record_command, show_record_command): Remove.
10771 (_initialize_record): Use add_basic_prefix_cmd,
10772 add_show_prefix_cmd.
10773 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
10774 add_show_prefix_cmd.
10775 (info_command, show_command, set_debug, show_debug): Remove.
10776 * top.h (set_history, show_history): Don't declare.
10777 * top.c (set_history, show_history): Remove.
10778 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
10779 (unset_tdesc_cmd): Remove.
10780 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
10781 add_show_prefix_cmd.
10782 * symtab.c (info_module_command): Remove.
10783 (_initialize_symtab): Use add_basic_prefix_cmd.
10784 * symfile.c (overlay_command): Remove.
10785 (_initialize_symfile): Use add_basic_prefix_cmd.
10786 * sparc64-tdep.c (info_adi_command): Remove.
10787 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
10788 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
10789 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
10790 add_show_prefix_cmd.
10791 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
10792 (_initialize_serial): Use add_basic_prefix_cmd,
10793 add_show_prefix_cmd.
10794 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
10795 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
10796 add_show_prefix_cmd.
10797 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
10798 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
10799 add_show_prefix_cmd.
10800 * riscv-tdep.c (show_riscv_command, set_riscv_command)
10801 (show_debug_riscv_command, set_debug_riscv_command): Remove.
10802 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
10803 add_show_prefix_cmd.
10804 * remote.c (remote_command, set_remote_cmd): Remove.
10805 (_initialize_remote): Use add_basic_prefix_cmd.
10806 * record-full.c (set_record_full_command)
10807 (show_record_full_command): Remove.
10808 (_initialize_record_full): Use add_basic_prefix_cmd,
10809 add_show_prefix_cmd.
10810 * record-btrace.c (cmd_set_record_btrace)
10811 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
10812 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
10813 (cmd_show_record_btrace_pt): Remove.
10814 (_initialize_record_btrace): Use add_basic_prefix_cmd,
10815 add_show_prefix_cmd.
10816 * ravenscar-thread.c (set_ravenscar_command)
10817 (show_ravenscar_command): Remove.
10818 (_initialize_ravenscar): Use add_basic_prefix_cmd,
10819 add_show_prefix_cmd.
10820 * mips-tdep.c (show_mips_command, set_mips_command)
10821 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
10822 add_show_prefix_cmd.
10823 * maint.c (maintenance_command, maintenance_info_command)
10824 (maintenance_check_command, maintenance_print_command)
10825 (maintenance_set_cmd, maintenance_show_cmd): Remove.
10826 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
10827 add_show_prefix_cmd.
10828 (show_per_command_cmd): Remove.
10829 * maint-test-settings.c (maintenance_set_test_settings_cmd):
10831 (maintenance_show_test_settings_cmd): Remove.
10832 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
10833 add_show_prefix_cmd.
10834 * maint-test-options.c (maintenance_test_options_command):
10836 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
10837 * macrocmd.c (macro_command): Remove
10838 (_initialize_macrocmd): Use add_basic_prefix_cmd.
10839 * language.c (set_check, show_check): Remove.
10840 (_initialize_language): Use add_basic_prefix_cmd,
10841 add_show_prefix_cmd.
10842 * infcmd.c (unset_command): Remove.
10843 (_initialize_infcmd): Use add_basic_prefix_cmd.
10844 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
10845 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
10846 add_show_prefix_cmd.
10847 * go32-nat.c (go32_info_dos_command): Remove.
10848 (_initialize_go32_nat): Use add_basic_prefix_cmd.
10849 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
10850 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
10851 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
10852 (_initialize_frame): Use add_basic_prefix_cmd,
10853 add_show_prefix_cmd.
10854 * dcache.c (set_dcache_command, show_dcache_command): Remove.
10855 (_initialize_dcache): Use add_basic_prefix_cmd,
10856 add_show_prefix_cmd.
10857 * cp-support.c (maint_cplus_command): Remove.
10858 (_initialize_cp_support): Use add_basic_prefix_cmd.
10859 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
10860 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
10861 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
10862 add_basic_prefix_cmd, add_show_prefix_cmd.
10863 * breakpoint.c (save_command): Remove.
10864 (_initialize_breakpoint): Use add_basic_prefix_cmd.
10865 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
10866 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
10867 add_show_prefix_cmd.
10868 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
10869 (set_ada_command, show_ada_command): Remove.
10870 (_initialize_ada_language): Use add_basic_prefix_cmd,
10871 add_show_prefix_cmd.
10872 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
10874 2020-04-16 Kamil Rytarowski <n54@gmx.com>
10876 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
10877 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
10879 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
10881 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
10884 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
10886 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
10887 import table is not at beginning of .idata section.
10889 2020-04-16 Pedro Alves <palves@redhat.com>
10891 * inferior.c (delete_inferior): Use delete operator directly
10892 instead of delete_program_space.
10893 * progspace.c (add_program_space): New, factored out from
10894 program_space::program_space.
10895 (remove_program_space): New, factored out from
10896 delete_program_space.
10897 (program_space::program_space): Remove intro comment. Rewrite.
10898 (program_space::~program_space): Remove intro comment. Call
10899 remove_program_space.
10900 (delete_program_space): Delete.
10901 * progspace.h (program_space::program_space): Make explicit. Move
10902 intro comment here, adjusted.
10903 (program_space::~program_space): Move intro comment here,
10905 (delete_program_space): Remove.
10907 2020-04-16 Tom Tromey <tromey@adacore.com>
10909 * windows-nat.c (windows_nat::handle_access_violation): New
10911 * nat/windows-nat.h (handle_access_violation): Declare.
10912 * nat/windows-nat.c (handle_exception): Move Cygwin code to
10913 windows-nat.c. Call handle_access_violation.
10915 2020-04-16 Tom de Vries <tdevries@suse.de>
10918 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
10919 CUs without psymtab.
10921 2020-04-16 Kevin Buettner <kevinb@redhat.com>
10923 * python/python.c (do_start_initialization): Don't call
10924 PyEval_InitThreads for Python 3.9 and beyond.
10926 2020-04-15 Kamil Rytarowski <n54@gmx.com>
10928 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
10930 (obsd_nat_target::wait): Likewise.
10932 2020-04-15 Tom Tromey <tromey@adacore.com>
10934 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
10935 (DEBUG_EXCEPT): Use debug_printf.
10937 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
10939 * completer.c (class completion_tracker::completion_hash_entry)
10940 <hash_name>: New member function.
10941 (completion_tracker::discard_completions): New callback to hash a
10942 completion_hash_entry, pass this to htab_create_alloc.
10944 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
10946 * windows-nat.c (windows_make_so): Warn rather than stopping with
10947 an error if realpath() fails.
10949 2020-04-14 Kamil Rytarowski <n54@gmx.com>
10951 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
10952 (nbsd_nat_target::info_proc): Add do_status.
10954 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
10955 Tom de Vries <tdevries@suse.de>
10958 * psympriv.h (struct partial_symtab::read_symtab)
10959 (struct partial_symtab::expand_psymtab)
10960 (struct partial_symtab::read_dependencies): Update comments.
10961 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
10962 read_symtab for includer.
10963 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
10964 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
10965 (struct dwarf2_include_psymtab::m_readin): Remove.
10966 (struct dwarf2_include_psymtab::includer): New member function.
10967 (dwarf2_psymtab::expand_psymtab): Assert !readin.
10969 2020-04-14 Tom de Vries <tdevries@suse.de>
10972 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
10973 with NULL symbol_matcher and lookup_name.
10974 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
10976 * dwarf2/read.c (dw2_expand_symtabs_matching)
10977 (dw2_debug_names_expand_symtabs_matching): Same.
10978 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
10979 Make lookup_name a pointer. Update comment.
10980 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
10981 lookup_name being a pointer.
10982 * symfile.c (expand_symtabs_matching): Same.
10983 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
10984 * linespec.c (iterate_over_all_matching_symtabs): Same.
10986 2020-04-13 Tom Tromey <tom@tromey.com>
10988 * run-on-main-thread.c: Update include.
10989 * unittests/main-thread-selftests.c: Update include.
10990 * tui/tui-win.c: Update include.
10991 * tui/tui-io.c: Update include.
10992 * tui/tui-interp.c: Update include.
10993 * tui/tui-hooks.c: Update include.
10994 * top.h: Update include.
10995 * top.c: Update include.
10996 * ser-base.c: Update include.
10997 * remote.c: Update include.
10998 * remote-notif.c: Update include.
10999 * remote-fileio.c: Update include.
11000 * record-full.c: Update include.
11001 * record-btrace.c: Update include.
11002 * python/python.c: Update include.
11003 * posix-hdep.c: Update include.
11004 * mingw-hdep.c: Update include.
11005 * mi/mi-main.c: Update include.
11006 * mi/mi-interp.c: Update include.
11007 * main.c: Update include.
11008 * linux-nat.c: Update include.
11009 * interps.c: Update include.
11010 * infrun.c: Update include.
11011 * inf-loop.c: Update include.
11012 * event-top.c: Update include.
11013 * event-loop.c: Move to ../gdbsupport/.
11014 * event-loop.h: Move to ../gdbsupport/.
11015 * async-event.h: Update include.
11016 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
11018 2020-04-13 Tom Tromey <tom@tromey.com>
11020 * tui/tui-win.c: Include async-event.h.
11021 * remote.c: Include async-event.h.
11022 * remote-notif.c: Include async-event.h.
11023 * record-full.c: Include async-event.h.
11024 * record-btrace.c: Include async-event.h.
11025 * infrun.c: Include async-event.h.
11026 * event-top.c: Include async-event.h.
11027 * event-loop.h: Move some declarations to async-event.h.
11028 * event-loop.c: Don't include ser-event.h or top.h. Move some
11029 code to async-event.c.
11030 * async-event.h: New file.
11031 * async-event.c: New file.
11032 * Makefile.in (COMMON_SFILES): Add async-event.c.
11033 (HFILES_NO_SRCDIR): Add async-event.h.
11035 2020-04-13 Tom Tromey <tom@tromey.com>
11037 * utils.c (flush_streams): New function.
11038 * event-loop.c (gdb_wait_for_event): Call flush_streams.
11040 2020-04-13 Tom Tromey <tom@tromey.com>
11042 * event-loop.c (handle_file_event): Use warning, not
11045 2020-04-13 Tom Tromey <tom@tromey.com>
11047 * event-loop.c: Include <chrono>.
11049 2020-04-13 Tom Tromey <tom@tromey.com>
11051 * gdb_select.h: Move to ../gdbsupport/.
11052 * event-loop.c: Update include path.
11053 * top.c: Update include path.
11054 * ser-base.c: Update include path.
11055 * ui-file.c: Update include path.
11056 * ser-tcp.c: Update include path.
11057 * guile/scm-ports.c: Update include path.
11058 * posix-hdep.c: Update include path.
11059 * ser-unix.c: Update include path.
11060 * gdb_usleep.c: Update include path.
11061 * mingw-hdep.c: Update include path.
11062 * inflow.c: Update include path.
11063 * infrun.c: Update include path.
11064 * event-top.c: Update include path.
11066 2020-04-13 Tom Tromey <tom@tromey.com>
11068 * configure: Rebuild.
11069 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
11071 2020-04-13 Tom Tromey <tom@tromey.com>
11073 * event-loop.h (start_event_loop): Don't declare.
11074 * event-loop.c (start_event_loop): Move...
11075 * main.c (start_event_loop): ...here. Now static.
11077 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
11079 * MAINTAINERS: Update my email address.
11081 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11083 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
11086 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11088 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
11089 (nbsd_nat_target::info_proc): Add do_cmdline.
11091 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11093 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
11094 (nbsd_nat_target::info_proc): Add do_cwd.
11096 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11098 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
11100 2020-04-11 Kamil Rytarowski <n54@gmx.com>
11102 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
11103 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
11104 (nbsd_nat_target::info_proc): New functions.
11105 * nbsd-nat.c (kinfo_get_vmmap): New function.
11106 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
11107 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
11108 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
11109 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
11111 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
11112 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
11113 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
11114 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
11115 (KINFO_VME_FLAG_GROWS_DOWN): New.
11117 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
11119 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
11122 2020-04-10 Tom Tromey <tromey@adacore.com>
11124 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
11126 2020-04-10 Tom Tromey <tromey@adacore.com>
11128 * symtab.c (get_symbol_address, get_msymbol_address): Skip
11129 separate debug files.
11131 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
11133 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11135 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11137 * windows-nat.c (windows_nat_target::get_windows_debug_event):
11138 Check for STATUS_WX86_BREAKPOINT.
11139 (windows_nat_target::wait): Same.
11141 2020-04-10 Tom de Vries <tdevries@suse.de>
11144 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
11146 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11148 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
11149 (Write After Approval): Remove Tom de Vries.
11151 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
11154 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11156 * buildsym.c (record_line): Fix undefined behavior and preserve
11159 2020-04-09 Kamil Rytarowski <n54@gmx.com>
11161 * auxv.h (svr4_auxv_parse): New.
11162 * auxv.c (default_auxv_parse): Split into default_auxv_parse
11163 and generic_auxv_parse.
11164 (svr4_auxv_parse): Add.
11165 * obsd-tdep.c: Include "auxv.h".
11166 (obsd_auxv_parse): Remove.
11167 (obsd_init_abi): Remove comment.
11168 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
11169 from `obsd_auxv_parse' to `svr4_auxv_parse'.
11170 * nbsd-tdep.c: Include "auxv.h".
11171 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
11173 2020-04-08 Tom Tromey <tromey@adacore.com>
11175 * nat/windows-nat.h (last_wait_event): Don't declare.
11176 (wait_for_debug_event): Update comment.
11177 * nat/windows-nat.c (last_wait_event): Now static.
11179 2020-04-08 Tom Tromey <tromey@adacore.com>
11181 * windows-nat.c (wait_for_debug_event): Move to
11183 * nat/windows-nat.h (wait_for_debug_event): Declare.
11184 * nat/windows-nat.c (wait_for_debug_event): Move from
11185 windows-nat.c. No longer static.
11187 2020-04-08 Tom Tromey <tromey@adacore.com>
11189 * windows-nat.c (get_windows_debug_event): Use
11190 fetch_pending_stop.
11191 * nat/windows-nat.h (fetch_pending_stop): Declare.
11192 * nat/windows-nat.c (fetch_pending_stop): New function.
11194 2020-04-08 Tom Tromey <tromey@adacore.com>
11196 * windows-nat.c (windows_continue): Use matching_pending_stop and
11197 continue_last_debug_event.
11198 * nat/windows-nat.h (matching_pending_stop)
11199 (continue_last_debug_event): Declare.
11200 * nat/windows-nat.c (DEBUG_EVENTS): New define.
11201 (matching_pending_stop, continue_last_debug_event): New
11204 2020-04-08 Tom Tromey <tromey@adacore.com>
11206 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
11207 (handle_exception_result): Move to nat/windows-nat.h.
11208 (DEBUG_EXCEPTION_SIMPLE): Remove.
11209 (windows_nat::handle_ms_vc_exception): New function.
11210 (handle_exception): Move to nat/windows-nat.c.
11211 (get_windows_debug_event): Update.
11212 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
11214 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
11215 (handle_exception_result): Move from windows-nat.c.
11216 (handle_exception): Declare.
11217 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
11218 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
11221 2020-04-08 Tom Tromey <tromey@adacore.com>
11223 * windows-nat.c (exception_count, event_count): Remove.
11224 (handle_exception, get_windows_debug_event)
11225 (do_initial_windows_stuff): Update.
11227 2020-04-08 Tom Tromey <tromey@adacore.com>
11229 * windows-nat.c (windows_nat::handle_load_dll)
11230 (windows_nat::handle_unload_dll): Rename. No longer static.
11231 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
11234 2020-04-08 Tom Tromey <tromey@adacore.com>
11236 * complaints.h (stop_whining): Declare at top-level.
11237 (complaint): Don't declare stop_whining.
11239 2020-04-08 Tom Tromey <tromey@adacore.com>
11241 * windows-nat.c (windows_nat::handle_output_debug_string):
11242 Rename. No longer static.
11243 * nat/windows-nat.h (handle_output_debug_string): Declare.
11245 2020-04-08 Tom Tromey <tromey@adacore.com>
11247 * windows-nat.c (current_process_handle, current_process_id)
11248 (main_thread_id, last_sig, current_event, last_wait_event)
11249 (current_windows_thread, desired_stop_thread_id, pending_stops)
11250 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
11251 (display_selectors, fake_create_process)
11252 (get_windows_debug_event): Update.
11253 * nat/windows-nat.h (current_process_handle, current_process_id)
11254 (main_thread_id, last_sig, current_event, last_wait_event)
11255 (current_windows_thread, desired_stop_thread_id, pending_stops)
11256 (struct pending_stop, siginfo_er): Move from windows-nat.c.
11257 * nat/windows-nat.c (current_process_handle, current_process_id)
11258 (main_thread_id, last_sig, current_event, last_wait_event)
11259 (current_windows_thread, desired_stop_thread_id, pending_stops)
11260 (siginfo_er): New globals. Move from windows-nat.c.
11262 2020-04-08 Tom Tromey <tromey@adacore.com>
11264 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
11265 (handle_load_dll): Update.
11266 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
11268 2020-04-08 Tom Tromey <tromey@adacore.com>
11270 * windows-nat.c (enum thread_disposition_type): Move to
11272 (windows_nat::thread_rec): Rename from thread_rec. No longer
11274 (windows_add_thread, windows_nat_target::fetch_registers)
11275 (windows_nat_target::store_registers, handle_exception)
11276 (windows_nat_target::resume, get_windows_debug_event)
11277 (windows_nat_target::get_tib_address)
11278 (windows_nat_target::thread_name)
11279 (windows_nat_target::thread_alive): Update.
11280 * nat/windows-nat.h (enum thread_disposition_type): Move from
11282 (thread_rec): Declare.
11284 2020-04-08 Tom Tromey <tromey@adacore.com>
11286 * windows-nat.c: Add "using namespace".
11287 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
11288 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
11290 2020-04-08 Tom Tromey <tromey@adacore.com>
11292 * nat/windows-nat.h (struct windows_thread_info): Declare
11294 * nat/windows-nat.c (~windows_thread_info): New.
11296 2020-04-08 Tom Tromey <tromey@adacore.com>
11299 * windows-nat.c (current_event): Update comment.
11300 (last_wait_event, desired_stop_thread_id): New globals.
11301 (struct pending_stop): New.
11302 (pending_stops): New global.
11303 (windows_nat_target) <stopped_by_sw_breakpoint>
11304 <supports_stopped_by_sw_breakpoint>: New methods.
11305 (windows_fetch_one_register): Add assertions. Adjust PC.
11306 (windows_continue): Handle pending stops. Suspend other threads
11307 when stepping. Use last_wait_event
11308 (wait_for_debug_event): New function.
11309 (get_windows_debug_event): Use wait_for_debug_event. Handle
11310 pending stops. Queue spurious stops.
11311 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
11312 (windows_nat_target::kill): Use wait_for_debug_event.
11313 * nat/windows-nat.h (struct windows_thread_info)
11314 <stopped_at_software_breakpoint>: New field.
11315 * nat/windows-nat.c (windows_thread_info::resume): Clear
11316 stopped_at_software_breakpoint.
11318 2020-04-08 Tom Tromey <tromey@adacore.com>
11320 * windows-nat.c (enum thread_disposition_type): New.
11321 (thread_rec): Replace "get_context" parameter with "disposition";
11323 (windows_add_thread, windows_nat_target::fetch_registers)
11324 (windows_nat_target::store_registers, handle_exception)
11325 (windows_nat_target::resume, get_windows_debug_event)
11326 (windows_nat_target::get_tib_address)
11327 (windows_nat_target::thread_name)
11328 (windows_nat_target::thread_alive): Update.
11330 2020-04-08 Tom Tromey <tromey@adacore.com>
11332 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
11333 (windows_continue): Use windows_continue::resume.
11334 * nat/windows-nat.h (struct windows_thread_info) <suspend,
11335 resume>: Declare new methods.
11336 * nat/windows-nat.c: New file.
11337 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
11339 2020-04-08 Tom Tromey <tromey@adacore.com>
11341 * windows-nat.c (windows_add_thread, windows_delete_thread)
11342 (windows_nat_target::fetch_registers)
11343 (windows_nat_target::store_registers, fake_create_process)
11344 (windows_nat_target::resume, windows_nat_target::resume)
11345 (get_windows_debug_event, windows_nat_target::wait)
11346 (windows_nat_target::pid_to_str)
11347 (windows_nat_target::get_tib_address)
11348 (windows_nat_target::get_ada_task_ptid)
11349 (windows_nat_target::thread_name)
11350 (windows_nat_target::thread_alive): Use lwp, not tid.
11352 2020-04-08 Tom Tromey <tromey@adacore.com>
11354 * windows-nat.c (handle_exception)
11355 (windows_nat_target::thread_name): Update.
11356 * nat/windows-nat.h (windows_thread_info): Remove destructor.
11357 <name>: Now unique_xmalloc_ptr.
11359 2020-04-08 Tom Tromey <tromey@adacore.com>
11361 * windows-nat.c (thread_rec)
11362 (windows_nat_target::fetch_registers): Update.
11363 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
11365 <debug_registers_changed, reload_context>: Now bool.
11367 2020-04-08 Tom Tromey <tromey@adacore.com>
11369 * windows-nat.c (windows_add_thread): Use new.
11370 (windows_init_thread_list, windows_delete_thread): Use delete.
11371 (get_windows_debug_event): Update.
11372 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
11373 destructor, and initializers.
11375 2020-04-08 Tom Tromey <tromey@adacore.com>
11377 * windows-nat.c (struct windows_thread_info): Remove.
11378 * nat/windows-nat.h: New file.
11380 2020-04-08 Tom Tromey <tromey@adacore.com>
11382 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
11383 (thread_rec, windows_add_thread, windows_delete_thread)
11384 (windows_continue): Update.
11386 2020-04-08 Tom Tromey <tromey@adacore.com>
11388 * windows-nat.c (struct windows_thread_info): Remove typedef.
11389 (thread_head): Remove.
11390 (thread_list): New global.
11391 (thread_rec, windows_add_thread, windows_init_thread_list)
11392 (windows_delete_thread, windows_continue): Update.
11394 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11396 * windows-tdep.h (windows_init_abi): Add comment.
11397 (cygwin_init_abi): New declaration.
11398 * windows-tdep.c: Split signal enumeration in two, one for
11399 Windows and one for Cygwin.
11400 (windows_gdb_signal_to_target): Only deal with signal of the
11402 (cygwin_gdb_signal_to_target): New function.
11403 (windows_init_abi): Rename to windows_init_abi_common, don't set
11404 gdb_signal_to_target gdbarch method. Add new new function with
11406 (cygwin_init_abi): New function.
11407 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
11408 comment. Don't call windows_init_abi.
11409 (amd64_windows_init_abi): Add comment, call windows_init_abi.
11410 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
11411 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
11412 i386_windows_init_abi_common, don't call windows_init_abi. Add
11413 a new function of this name.
11414 (i386_cygwin_init_abi): New function.
11415 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
11418 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11420 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
11422 (dwarf2_read_gdb_index): Update.
11424 2020-04-07 Kamil Rytarowski <n54@gmx.com>
11426 * nbsd-tdep.c: Include "objfiles.h".
11427 (nbsd_skip_solib_resolver): New.
11428 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
11430 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11432 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
11433 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
11434 with DW_LLE_base_addressx are being emitted in DWARFv5.
11435 Add the newly added kind DW_LOC_OFFSET_PAIR also.
11436 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
11439 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11441 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
11442 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
11443 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
11444 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
11445 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
11446 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
11447 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
11450 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11452 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
11453 (read_loclist_index): New function definition.
11454 (lookup_loclist_base): New function definition.
11455 (read_loclist_header): New function definition.
11456 (dwarf2_cu): Add loclist_base and loclist_header field.
11457 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
11458 (read_full_die_1): Read the value of DW_AT_loclists_base.
11459 (read_attribute_reprocess): Handle DW_FORM_loclistx.
11460 (read_attribute_value): Handle DW_FORM_loclistx.
11461 (skip_one_die): Handle DW_FORM_loclistx.
11462 (loclist_header): New structure declaration.
11463 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
11465 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11467 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
11468 constructor. Remove `addr` parameter from other constructor and
11469 add `per_cu` parameter.
11470 * dwarf2/read.c (create_partial_symtab): Update.
11472 2020-04-07 Tom de Vries <tdevries@suse.de>
11475 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
11476 (partial_die_info::fixup): Inherit has_const_value.
11478 2020-04-07 Tom de Vries <tdevries@suse.de>
11480 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
11481 symbols without address.
11483 2020-04-06 Kamil Rytarowski <n54@gmx.com>
11485 * nbsd-nat.h (struct thread_info): Add forward declaration.
11486 (nbsd_nat_target::thread_alive): Add.
11487 (nbsd_nat_target::thread_name): Likewise.
11488 (nbsd_nat_target::update_thread_list): Likewise.
11489 (update_thread_list::post_attach): Likewise.
11490 (post_attach::pid_to_str): Likewise.
11491 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
11492 (nbsd_thread_lister): Add.
11493 (nbsd_nat_target::thread_alive): Likewise.
11494 (nbsd_nat_target::thread_name): Likewise.
11495 (nbsd_add_threads): Likewise.
11496 (update_thread_list::post_attach): Likewise.
11497 (nbsd_nat_target::update_thread_list): Likewise.
11498 (post_attach::pid_to_str): Likewise.
11500 2020-04-06 Tom Tromey <tromey@adacore.com>
11502 * ada-valprint.c (print_variant_part): Extract the variant field.
11503 (print_field_values): Use the field as the outer value when
11506 2020-04-06 Tom Tromey <tromey@adacore.com>
11508 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
11509 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
11510 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
11511 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
11512 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
11514 2020-04-06 Tom Tromey <tromey@adacore.com>
11516 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
11519 2020-04-06 Kamil Rytarowski <n54@gmx.com>
11521 * nbsd-tdep.c: Include "gdbarch.h".
11522 Define enum with NetBSD signal numbers.
11523 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
11524 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
11525 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
11526 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
11527 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
11528 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
11529 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
11530 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11531 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
11532 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
11533 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
11534 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
11536 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
11539 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
11541 2020-04-03 Tom Tromey <tromey@adacore.com>
11543 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
11544 Read constant block.
11546 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11548 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
11549 (gdb_bfd_get_full_section_contents): New declaration.
11550 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
11551 * windows-tdep.c (is_linked_with_cygwin_dll): Use
11552 gdb_bfd_get_full_section_contents.
11554 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11556 * exec.c (build_section_table): Replace internal_error with
11558 (section_table_xfer_memory_partial): Likewise.
11559 * mdebugread.c (parse_partial_symbols): Likewise.
11560 * psymtab.c (lookup_partial_symbol): Likewise.
11561 * utils.c (wrap_here): Likewise.
11563 2020-04-02 Tom Tromey <tromey@adacore.com>
11565 * f-lang.c (build_fortran_types): Use arch_type to initialize
11566 builtin_complex_s32 in the TYPE_CODE_ERROR case.
11568 2020-04-02 Tom Tromey <tromey@adacore.com>
11570 * dwarf2/read.c (partial_die_info::read): Do not create a vector
11573 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
11574 Bernd Edlinger <bernd.edlinger@hotmail.de>
11575 Tom Tromey <tromey@adacore.com>
11577 * buildsym.c (buildsym_compunit::record_line): Remove
11578 deduplication code.
11580 2020-04-02 Tom de Vries <tdevries@suse.de>
11583 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
11585 2020-04-02 Tom de Vries <tdevries@suse.de>
11587 * dwarf2/read.c (dwarf2_gdb_index_functions,
11588 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
11590 * psymtab.c (psym_lookup_global_symbol_language): New function.
11591 (psym_functions): Init psym_lookup_global_symbol_language with
11592 psym_lookup_global_symbol_language.
11593 * symfile-debug.c (debug_sym_quick_functions): Init
11594 lookup_global_symbol_language with NULL.
11595 * symfile.c (set_initial_language): Remove fixme comment.
11596 * symfile.h (struct quick_symbol_functions): Add
11597 lookup_global_symbol_language.
11598 * symtab.c (find_quick_global_symbol_language): New function.
11599 (find_main_name): Use find_quick_global_symbol_language.
11601 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11603 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
11605 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11607 * buildsym.c (record_line): Fix undefined behavior and preserve
11610 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11612 * buildsym.c (record_line): Fix the resizing condition.
11614 2020-04-01 Tom Tromey <tom@tromey.com>
11616 * value.h (value_literal_complex): Add comment.
11617 * valops.c (value_literal_complex): Refer to value.h.
11619 2020-04-01 Tom Tromey <tom@tromey.com>
11621 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
11622 (scalar_type): New rule, from typebase.
11623 (typebase): Use scalar_type. Recognize complex types.
11624 (field_name): Handle FLOAT_KEYWORD.
11625 (ident_tokens): Add _Complex and __complex__.
11627 2020-04-01 Tom Tromey <tom@tromey.com>
11630 * valarith.c (promotion_type, complex_binop): New functions.
11631 (scalar_binop): Handle complex numbers. Use promotion_type.
11632 (value_pos, value_neg, value_complement): Handle complex numbers.
11634 2020-04-01 Tom Tromey <tom@tromey.com>
11636 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
11637 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
11638 (parse_number): Handle complex numbers.
11640 2020-04-01 Tom Tromey <tom@tromey.com>
11642 * c-valprint.c (c_decorations): Change complex suffix to "i".
11644 2020-04-01 Tom Tromey <tom@tromey.com>
11646 * valprint.c (generic_value_print_complex): Use accessors.
11647 * value.h (value_real_part, value_imaginary_part): Declare.
11648 * valops.c (value_real_part, value_imaginary_part): New
11650 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
11652 2020-04-01 Tom Tromey <tom@tromey.com>
11654 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
11655 (read_range_type): Update.
11656 * mdebugread.c (basic_type): Update.
11657 * go-lang.c (build_go_types): Use init_complex_type.
11658 * gdbtypes.h (struct main_type) <complex_type>: New member.
11659 (init_complex_type): Update.
11660 (arch_complex_type): Don't declare.
11661 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
11662 Make name if none given. Use alloc_type_copy. Look for cached
11664 (arch_complex_type): Remove.
11665 (gdbtypes_post_init): Use init_complex_type.
11666 * f-lang.c (build_fortran_types): Use init_complex_type.
11667 * dwarf2/read.c (read_base_type): Update.
11668 * d-lang.c (build_d_types): Use init_complex_type.
11669 * ctfread.c (read_base_type): Update.
11671 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11673 * infrun.c (stop_all_threads): Update assertion, plus when
11674 stopping threads, take into account that we might be trying
11675 to stop an all-stop target.
11676 (stop_waiting): Call 'stop_all_threads' if there exists a
11679 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11681 * target.h (exists_non_stop_target): New function declaration.
11682 * target.c (exists_non_stop_target): New function.
11684 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
11687 * eval.c (is_integral_or_integral_reference): New function.
11688 (evaluate_subexp_standard): Allow integer references in
11689 pointer arithmetic.
11691 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11693 * remote.c (remote_target::remote_parse_stop_reply): Remove the
11694 check for no ptid in the stop reply when the target is non-stop.
11696 2020-04-01 Tom Tromey <tromey@adacore.com>
11698 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
11699 "name" parameter to rvalue reference. Initialize m_name_holder.
11700 <lookup_name_info>: New overloads.
11701 <name>: Return gdb::string_view.
11702 <c_str>: New method.
11703 <make_ignore_params>: Update.
11704 <search_name_hash>: Update.
11705 <language_lookup_name>: Return const char *.
11706 <m_name>: Change type.
11707 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
11708 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
11709 (lookup_name_info::match_any): Update.
11710 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
11712 * minsyms.c (linkage_name_str): Update.
11713 * language.c (default_symbol_name_matcher): Update.
11714 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
11716 * ada-lang.c (ada_fold_name): Change parameter to string_view.
11717 (ada_lookup_name_info::ada_lookup_name_info): Update.
11718 (literal_symbol_name_matcher): Update.
11720 2020-04-01 Tom Tromey <tromey@adacore.com>
11722 * psymtab.c (psymtab_search_name): Remove function.
11723 (psym_lookup_symbol): Create search name and lookup name here.
11724 (lookup_partial_symbol): Remove "name" parameter; add
11726 (psym_expand_symtabs_for_function): Update.
11728 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
11731 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
11733 2020-03-31 Tom Tromey <tromey@adacore.com>
11735 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
11738 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
11740 * features/riscv/32bit-csr.xml: Regenerated.
11741 * features/riscv/64bit-csr.xml: Regenerated.
11743 2020-03-30 Tom Tromey <tromey@adacore.com>
11745 * ada-valprint.c (print_variant_part): Update.
11746 * ada-lang.h (ada_which_variant_applies): Update.
11747 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
11748 outer_valaddr parameters; replace with "outer" value parameter.
11749 (to_fixed_variant_branch_type): Update.
11751 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11753 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
11754 <list>. Remove inclusion of observable.h.
11755 (PPC_DEBUG_CURRENT_VERSION): Move up define.
11756 (struct arch_lwp_info): New struct.
11757 (class ppc_linux_dreg_interface): New class.
11758 (struct ppc_linux_process_info): New struct.
11759 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
11760 <low_new_clone, low_forget_process, low_prepare_to_resume>
11761 <copy_thread_dreg_state, mark_thread_stale>
11762 <mark_debug_registers_changed, register_hw_breakpoint>
11763 <clear_hw_breakpoint, register_wp, clear_wp>
11764 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
11765 <num_memory_accesses, get_trigger_type>
11766 <create_watchpoint_request, hwdebug_point_cmp>
11767 <init_arch_lwp_info, get_arch_lwp_info>
11768 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
11770 <struct ptid_hash>: New inner struct.
11771 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
11773 (saved_dabr_value, hwdebug_info, max_slots_number)
11774 (struct hw_break_tuple, struct thread_points, ppc_threads)
11775 (have_ptrace_hwdebug_interface)
11776 (hwdebug_find_thread_points_by_tid)
11777 (hwdebug_insert_point, hwdebug_remove_point): Remove.
11778 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
11779 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
11780 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
11781 use m_dreg_interface.
11782 (hwdebug_point_cmp): Change to...
11783 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
11784 reference arguments instead of pointers.
11785 (ppc_linux_nat_target::ranged_break_num_registers): Use
11787 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
11788 m_dreg_interface. Call register_hw_breakpoint.
11789 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
11790 m_dreg_interface. Call clear_hw_breakpoint.
11791 (get_trigger_type): Change to...
11792 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
11794 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
11795 use m_dreg_interface. Call register_hw_breakpoint.
11796 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
11797 use m_dreg_interface. Call clear_hw_breakpoint.
11798 (can_use_watchpoint_cond_accel): Change to...
11799 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
11800 method. Update comment, use m_dreg_interface and
11802 (calculate_dvc): Change to...
11803 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
11805 (num_memory_accesses): Change to...
11806 (ppc_linux_nat_target::num_memory_accesses): ...this method.
11807 (check_condition): Change to...
11808 (ppc_linux_nat_target::check_condition): ...this method.
11809 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
11810 comment, use m_dreg_interface.
11811 (create_watchpoint_request): Change to...
11812 (ppc_linux_nat_target::create_watchpoint_request): ...this
11813 method. Use m_dreg_interface.
11814 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
11815 m_dreg_interface. Call register_hw_breakpoint or register_wp.
11816 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
11817 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
11818 (ppc_linux_nat_target::low_forget_process)
11819 (ppc_linux_nat_target::low_new_fork)
11820 (ppc_linux_nat_target::low_new_clone)
11821 (ppc_linux_nat_target::low_delete_thread)
11822 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
11823 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
11824 only call mark_thread_stale.
11825 (ppc_linux_thread_exit): Remove.
11826 (ppc_linux_nat_target::stopped_data_address): Change to...
11827 (ppc_linux_nat_target::low_stopped_data_address): This. Add
11828 comment, use m_dreg_interface and m_thread_hw_breakpoints.
11829 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
11830 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
11831 comment. Call low_stopped_data_address.
11832 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
11834 (ppc_linux_nat_target::masked_watch_num_registers): Use
11836 (ppc_linux_nat_target::copy_thread_dreg_state)
11837 (ppc_linux_nat_target::mark_thread_stale)
11838 (ppc_linux_nat_target::mark_debug_registers_changed)
11839 (ppc_linux_nat_target::register_hw_breakpoint)
11840 (ppc_linux_nat_target::clear_hw_breakpoint)
11841 (ppc_linux_nat_target::register_wp)
11842 (ppc_linux_nat_target::clear_wp)
11843 (ppc_linux_nat_target::init_arch_lwp_info)
11844 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
11845 (_initialize_ppc_linux_nat): Remove observer callback.
11847 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11849 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
11850 (ppc_linux_nat_target::auxv_parse)
11851 (ppc_linux_nat_target::read_description)
11852 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
11855 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11857 * linux-nat.h (low_new_clone): New method.
11858 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
11860 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11862 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
11863 (dbx_expand_psymtab): ... this.
11864 (start_psymtab): Update.
11865 * mdebugread.c (psymtab_to_symtab_1): Rename to...
11866 (mdebug_expand_psymtab): ... this.
11867 (parse_partial_symbols): Update.
11868 (new_psymtab): Update.
11869 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
11870 (xcoff_expand_psymtab): ... this.
11871 (xcoff_start_psymtab): Update.
11873 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11875 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
11876 <expand_dependencies>: ... this.
11877 * psymtab.c (partial_symtab::read_dependencies): Rename to...
11878 (partial_symtab::expand_dependencies): ... this.
11879 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
11881 (dwarf2_psymtab::expand_psymtab): Update.
11882 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11883 * mdebugread.c (psymtab_to_symtab_1): Update.
11884 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11886 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11888 * psympriv.h (discard_psymtab): Remove.
11889 * dbxread.c (dbx_end_psymtab): Update.
11890 * xcoffread.c (xcoff_end_psymtab): Update.
11892 2020-03-28 Tom Tromey <tom@tromey.com>
11894 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
11897 2020-03-28 Tom Tromey <tom@tromey.com>
11899 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
11901 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
11903 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11905 2020-03-26 John Baldwin <jhb@FreeBSD.org>
11907 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
11909 2020-03-26 Tom Tromey <tom@tromey.com>
11911 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
11912 (mark_common_block_symbol_computed, read_tag_string_type)
11913 (attr_to_dynamic_prop, read_subrange_type): Update.
11914 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
11915 to be methods on struct attribute.
11916 (skip_one_die, process_imported_unit_die, read_namespace_alias)
11917 (read_call_site_scope, partial_die_info::read)
11918 (partial_die_info::read, lookup_die_type, follow_die_ref):
11920 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
11921 from dwarf2_get_ref_die_offset.
11922 (attribute::constant_value): New method, from
11923 dwarf2_get_attr_constant_value.
11924 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
11926 <constant_value>: New method.
11928 2020-03-26 Tom Tromey <tom@tromey.com>
11930 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
11931 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
11932 (dwarf_type_encoding_name): Move to stringify.c.
11933 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
11934 * dwarf2/stringify.c: New file.
11935 * dwarf2/stringify.h: New file.
11937 2020-03-26 Tom Tromey <tom@tromey.com>
11939 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
11942 2020-03-26 Tom Tromey <tom@tromey.com>
11944 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
11946 * dwarf2/read.c (lookup_addr_base): Move to die.h.
11947 (lookup_ranges_base): Likewise.
11948 (read_cutu_die_from_dwo, read_full_die_1): Update.
11950 2020-03-26 Tom Tromey <tom@tromey.com>
11952 * dwarf2/read.c (read_import_statement, read_file_scope)
11953 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
11954 (read_lexical_block_scope, read_call_site_scope)
11955 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
11956 (handle_struct_member_die, process_structure_scope)
11957 (update_enumeration_type_from_children)
11958 (process_enumeration_scope, read_array_type, read_common_block)
11959 (read_namespace, read_module, read_subroutine_type): Update.
11960 (sibling_die): Remove.
11962 2020-03-26 Tom Tromey <tom@tromey.com>
11964 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
11965 (build_type_psymtabs_reader, read_structure_type)
11966 (read_enumeration_type, read_full_die_1): Update.
11967 (dwarf2_attr_no_follow): Move to die.h.
11968 * dwarf2/die.h (struct die_info) <attr>: New method.
11970 2020-03-26 Tom Tromey <tom@tromey.com>
11972 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
11973 <base_address>: Now an optional.
11974 (dwarf2_find_base_address, dwarf2_rnglists_process)
11975 (dwarf2_ranges_process, fill_in_loclist_baton)
11976 (dwarf2_symbol_mark_computed): Update.
11978 2020-03-26 Tom Tromey <tom@tromey.com>
11980 * dwarf2/read.c (struct die_info): Move to die.h.
11981 * dwarf2/die.h: New file.
11983 2020-03-26 Tom Tromey <tom@tromey.com>
11985 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
11987 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11988 Move to line-header.c.
11989 (read_checked_initial_length_and_offset, read_formatted_entries):
11991 (dwarf_decode_line_header): Split into two.
11992 * dwarf2/line-header.c
11993 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11995 (read_checked_initial_length_and_offset, read_formatted_entries):
11997 (dwarf_decode_line_header): New function, split from read.c.
11999 2020-03-26 Tom Tromey <tom@tromey.com>
12001 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
12003 * dwarf2/read.c (read_attribute_value): Update.
12004 (dwarf2_per_objfile::read_line_string): Rename from
12005 read_indirect_line_string.
12006 (read_formatted_entries): Update.
12008 2020-03-26 Tom Tromey <tom@tromey.com>
12010 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
12013 2020-03-26 Tom Tromey <tom@tromey.com>
12015 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
12017 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
12018 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
12021 2020-03-26 Tom Tromey <tom@tromey.com>
12023 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
12024 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
12025 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
12026 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
12028 2020-03-26 Tom Tromey <tom@tromey.com>
12030 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
12031 file_names_size, file_full_name, file_file_name>: Use const.
12032 <file_name_at, file_names>: Add const overload.
12033 * dwarf2/line-header.c (line_header::file_file_name)
12034 (line_header::file_full_name): Update.
12036 2020-03-26 Tom Tromey <tom@tromey.com>
12038 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
12039 (macro_start_file, consume_improper_spaces)
12040 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
12041 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
12042 (dwarf_decode_macros): Move to macro.c.
12043 * dwarf2/macro.c: New file.
12044 * dwarf2/macro.h: New file.
12045 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
12047 2020-03-26 Tom Tromey <tom@tromey.com>
12049 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
12051 * dwarf2/section.c: New method. From
12052 read_indirect_string_at_offset_from.
12053 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
12054 (read_indirect_string_at_offset_from): Move to section.c.
12055 (read_indirect_string_at_offset): Rewrite.
12056 (read_indirect_line_string_at_offset): Remove.
12057 (read_indirect_string, read_indirect_line_string)
12058 (dwarf_decode_macro_bytes): Update.
12060 2020-03-26 Tom Tromey <tom@tromey.com>
12062 * dwarf2/section.h (struct dwarf2_section_info)
12063 <overload_complaint>: Declare.
12064 (dwarf2_section_buffer_overflow_complaint): Don't declare.
12065 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
12066 Rename from dwarf2_section_buffer_overflow_complaint.
12067 * dwarf2/read.c (skip_one_die, partial_die_info::read)
12068 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
12070 2020-03-26 Tom Tromey <tom@tromey.com>
12072 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
12074 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
12076 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
12079 2020-03-26 Tom Tromey <tom@tromey.com>
12081 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
12083 2020-03-26 Tom Tromey <tom@tromey.com>
12085 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
12087 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
12089 (dwarf_decode_macros): Update.
12091 2020-03-26 Tom Tromey <tom@tromey.com>
12093 * dwarf2/read.c (read_attribute_value): Update.
12094 (read_indirect_string_from_dwz): Move to dwz.c; change into
12096 (dwarf_decode_macro_bytes): Update.
12097 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
12098 * dwarf2/dwz.c: New file.
12099 * Makefile.in (COMMON_SFILES): Add dwz.c.
12101 2020-03-26 Tom Tromey <tom@tromey.com>
12103 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
12104 * dwarf2/read.c: Add include.
12105 * dwarf2/index-write.c: Add include.
12106 * dwarf2/index-cache.c: Add include.
12107 * dwarf2/dwz.h: New file.
12109 2020-03-25 Tom Tromey <tom@tromey.com>
12111 * compile/compile-object-load.c (get_out_value_type): Mention
12112 correct symbol name in error message.
12114 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
12116 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12118 2020-03-25 Tom de Vries <tdevries@suse.de>
12120 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
12121 * symmisc.c (dump_symtab_1): Print user and includes fields.
12122 (maintenance_info_symtabs): Same.
12124 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
12127 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
12128 (riscv_regcache_cooked_write): New function.
12129 (riscv_push_dummy_call): Use new function.
12130 (riscv_return_value): Likewise.
12132 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
12134 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
12135 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
12136 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
12137 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
12138 * infrun.c (follow_fork): Likewise.
12139 (follow_fork_inferior): Likewise.
12140 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
12141 * linux-nat.h (class linux_nat_target): Likewise.
12142 * remote.c (class remote_target) <follow_fork>: Likewise.
12143 (remote_target::follow_fork): Likewise.
12144 * target-delegates.c: Re-generate.
12145 * target.c (default_follow_fork): Likewise.
12146 (target_follow_fork): Likewise.
12147 * target.h (struct target_ops) <follow_fork>: Likewise.
12148 (target_follow_fork): Likewise.
12150 2020-03-24 Tom de Vries <tdevries@suse.de>
12152 * psymtab.c (maintenance_info_psymtabs): Print user field.
12154 2020-03-20 Tom Tromey <tromey@adacore.com>
12156 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
12158 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
12161 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
12163 * ptrace.m4: Don't check for ptrace declaration.
12164 * config.in: Re-generate.
12165 * configure: Re-generate.
12166 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
12169 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12171 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
12173 * i386-bsd-nat.c (gdb_ptrace): Likewise.
12174 * sparc-nat.c (gdb_ptrace): Likewise.
12175 * x86-bsd-nat.c (gdb_ptrace): Likewise.
12177 2020-03-20 Tom Tromey <tromey@adacore.com>
12179 * c-exp.y (lex_one_token): Fix assert.
12181 2020-03-20 Tom Tromey <tromey@adacore.com>
12183 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
12184 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
12187 2020-03-20 Tom Tromey <tromey@adacore.com>
12189 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
12191 2020-03-20 Tom Tromey <tromey@adacore.com>
12193 * ada-valprint.c (print_variant_part): Remove parameters; switch
12194 to value-based API.
12195 (print_field_values): Likewise.
12196 (ada_val_print_struct_union): Likewise.
12197 (ada_value_print_1): Update.
12199 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12201 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
12202 nbsd_nat_target instead of inf_ptrace_target.
12203 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12206 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12208 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
12209 it to the ptrace call.
12210 * (store_registers): Likewise.
12212 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12214 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
12215 it to the ptrace call.
12216 * (store_registers): Likewise.
12218 2020-03-19 Luis Machado <luis.machado@linaro.org>
12220 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
12221 valid, fetch vg value from ptrace.
12223 2020-03-19 Kamil Rytarowski <n54@gmx.com>
12224 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
12225 * inf-ptrace.c: Likewise.
12226 * (gdb_ptrace): Add.
12227 * (inf_ptrace_target::resume): Update.
12228 * (inf_ptrace_target::xfer_partial): Likewise.
12229 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
12230 * (inf_ptrace_peek_poke): Update.
12232 2020-03-19 Kamil Rytarowski <n54@gmx.com>
12234 * x86-bsd-nat.c (gdb_ptrace): New.
12235 * (x86bsd_dr_set): Add new argument `ptid'.
12236 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
12237 x86bsd_dr_set_addr): Update.
12239 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12241 * remote.c (remote_target::process_stop_reply): Handle events for
12242 all threads differently.
12244 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12246 * completer.c (completion_tracker::remove_completion): Define new
12248 * completer.h (completion_tracker::remove_completion): Declare new
12250 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
12251 when adding a C++ function symbol.
12253 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12255 * completer.c (completion_tracker::completion_hash_entry): Define
12257 (advance_to_filename_complete_word_point): Call
12258 recompute_lowest_common_denominator.
12259 (completion_tracker::completion_tracker): Call discard_completions
12260 to setup the hash table.
12261 (completion_tracker::discard_completions): Allow for being called
12262 from the constructor, pass new equal function, and element deleter
12263 when constructing the hash table. Initialise new class member
12265 (completion_tracker::maybe_add_completion): Remove use of
12266 m_entries_vec, and store more information into m_entries_hash.
12267 (completion_tracker::recompute_lcd_visitor): New function, most
12268 content taken from...
12269 (completion_tracker::recompute_lowest_common_denominator):
12270 ...here, this now just visits each item in the hash calling the
12272 (completion_tracker::build_completion_result): Remove use of
12273 m_entries_vec, call recompute_lowest_common_denominator.
12274 * completer.h (completion_tracker::have_completions): Remove use
12276 (completion_tracker::completion_hash_entry): Declare new class.
12277 (completion_tracker::recompute_lowest_common_denominator): Change
12278 function signature.
12279 (completion_tracker::recompute_lcd_visitor): Declare new function.
12280 (completion_tracker::m_entries_vec): Delete.
12281 (completion_tracker::m_entries_hash): Initialize to NULL.
12282 (completion_tracker::m_lowest_common_denominator_valid): New
12284 (completion_tracker::m_lowest_common_denominator_max_length): New
12287 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12289 * regformats/regdef.h: Put reg in gdb namespace.
12291 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12293 * i386-bsd-nat.c (gdb_ptrace): New.
12294 * (i386bsd_fetch_inferior_registers,
12295 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12296 * (i386bsd_fetch_inferior_registers,
12297 i386bsd_store_inferior_registers) Use gdb_ptrace.
12299 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12301 * amd64-bsd-nat.c (gdb_ptrace): New.
12302 * (amd64bsd_fetch_inferior_registers,
12303 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12304 * (amd64bsd_fetch_inferior_registers,
12305 amd64bsd_store_inferior_registers) Use gdb_ptrace.
12307 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12309 * user-regs.c (user_reg::read): Rename to...
12310 (user_reg::xread): ...this.
12311 * (append_user_reg): Rename argument `read' to `xread'.
12312 * (user_reg_add_builtin): Likewise.
12313 * (user_reg_add): Likewise.
12314 * (value_of_user_reg): Likewise.
12316 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12318 * sparc-nat.c (gdb_ptrace): New.
12319 * sparc-nat.c (sparc_fetch_inferior_registers)
12320 (sparc_store_inferior_registers) Remove obsolete comment.
12321 * sparc-nat.c (sparc_fetch_inferior_registers)
12322 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
12323 * sparc-nat.c (sparc_fetch_inferior_registers)
12324 (sparc_store_inferior_registers) Use gdb_ptrace.
12326 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12328 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
12329 it to the ptrace call.
12330 * sh-nbsd-nat.c (store_registers): Likewise.
12332 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12334 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
12335 nbsd_nat_target instead of inf_ptrace_target.
12336 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12339 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12341 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
12343 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12345 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
12347 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
12349 2020-03-17 Tom de Vries <tdevries@suse.de>
12352 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
12354 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
12356 (process_imported_unit_die): Skip import of c++ CUs.
12358 2020-03-16 Tom Tromey <tom@tromey.com>
12360 * p-valprint.c (pascal_object_print_value): Initialize
12363 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
12364 Shahab Vahedi <shahab@synopsys.com>
12366 * Makefile.in: Add arch/arc.o
12367 * configure.tgt: Likewise.
12368 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
12369 (_initialize_arc_tdep): Don't initialize old target descriptions.
12370 (arc_read_description): New function to cache target descriptions.
12371 * arc-tdep.h (arc_read_description): Add proto type.
12372 * arch/arc.c: New file.
12373 * arch/arc.h: Likewise.
12374 * features/Makefile: Replace old target descriptions with new.
12375 * features/arc-arcompact.c: Remove.
12376 * features/arc-arcompact.xml: Likewise.
12377 * features/arc-v2.c: Likewise
12378 * features/arc-v2.xml: Likewise
12379 * features/arc/aux-arcompact.xml: New file.
12380 * features/arc/aux-v2.xml: Likewise.
12381 * features/arc/core-arcompact.xml: Likewise.
12382 * features/arc/core-v2.xml: Likewise.
12383 * features/arc/aux-arcompact.c: Generate.
12384 * features/arc/aux-v2.c: Likewise.
12385 * features/arc/core-arcompact.c: Likewise.
12386 * features/arc/core-v2.c: Likewise.
12387 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
12389 2020-03-16 Tom Tromey <tromey@adacore.com>
12392 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
12393 putting value into bcache.
12395 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12398 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
12400 (amd64_windows_init_abi_common): ... this. Don't set size of
12402 (amd64_windows_init_abi): New function.
12403 (amd64_cygwin_init_abi): New function.
12404 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
12406 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
12409 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12411 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
12412 * windows-tdep.c (CYGWIN_DLL_NAME): New.
12413 (pe_import_directory_entry): New struct type.
12414 (is_linked_with_cygwin_dll): New function.
12415 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
12416 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
12417 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
12419 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12421 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
12422 i386_cygwin_core_osabi_sniffer.
12424 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12426 * i386-cygwin-tdep.c: Rename to...
12427 * i386-windows-tdep.c: ... this.
12428 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
12429 i386-windows-tdep.c.
12430 * configure.tgt: Likewise.
12432 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12434 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
12435 * osabi.c (gdb_osabi_names): Add "Windows".
12436 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
12437 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
12438 (i386_cygwin_core_osabi_sniffer): New function, extracted from
12439 i386_cygwin_osabi_sniffer.
12440 (_initialize_i386_cygwin_tdep): Register OS ABI
12441 GDB_OSABI_WINDOWS for i386.
12442 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
12443 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
12444 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
12446 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
12447 when the target matches '*-*-mingw*'.
12449 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12451 * defs.h (enum gdb_osabi): Move to...
12452 * osabi.h (enum gdb_osabi): ... here.
12453 * gdbarch.sh: Include osabi.h in gdbarch.h.
12454 * gdbarch.h: Re-generate.
12456 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12458 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
12460 (_initialize_amd64_windows_tdep): Register osabi sniffer.
12462 2020-03-14 Tom Tromey <tom@tromey.com>
12464 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
12466 (c_type_print_modifier): Likewise. Add "language" parameter.
12467 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
12468 (c_type_print_base_1): Update.
12469 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
12471 * type-stack.c (type_stack::insert): Handle tp_atomic and
12473 (type_stack::follow_type_instance_flags): Likewise.
12474 (type_stack::follow_types): Likewise. Merge type-following code.
12475 * c-exp.y (RESTRICT, ATOMIC): New tokens.
12476 (space_identifier, cv_with_space_id)
12477 (const_or_volatile_or_space_identifier_noopt)
12478 (const_or_volatile_or_space_identifier): Remove.
12479 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
12481 (ptr_operator, typebase): Update.
12482 (enum token_flag) <FLAG_C>: New constant.
12483 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
12485 (lex_one_token): Handle FLAG_C.
12487 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12489 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
12490 it to the ptrace call.
12491 * m68k-bsd-nat.c (store_registers): Likewise.
12493 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12495 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
12497 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
12498 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
12499 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
12501 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12503 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
12504 nbsd_nat_target instead of inf_ptrace_target.
12505 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12508 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12510 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
12513 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12515 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
12516 it to the ptrace call.
12517 * alpha-bsd-nat.c (store_registers): Likewise.
12519 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12521 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
12523 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
12524 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
12525 fill_fpregset): Likewise.
12527 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12529 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
12530 nbsd_nat_target instead of inf_ptrace_target.
12531 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12534 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12536 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
12539 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12541 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
12542 it to the ptrace call.
12543 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
12544 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
12545 * arm-nbsd-nat.c (store_register): Likewise.
12546 * arm-nbsd-nat.c (store_regs): Likewise.
12547 * arm-nbsd-nat.c (store_fp_register): Likewise.
12548 * arm-nbsd-nat.c (store_fp_regs): Likewise.
12550 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12552 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
12553 nbsd_nat_target instead of inf_ptrace_target.
12554 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12557 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12559 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
12560 it to the ptrace call.
12561 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
12563 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12565 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
12566 it to the ptrace call.
12567 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
12569 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12571 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
12573 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
12575 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12577 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
12578 instead of inf_ptrace_target.
12579 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12582 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12584 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12587 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12589 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12592 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12594 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
12597 2020-03-13 Tom Tromey <tom@tromey.com>
12599 * value.h (val_print): Don't declare.
12600 * valprint.h (val_print_array_elements)
12601 (val_print_scalar_formatted, generic_val_print): Don't declare.
12602 * valprint.c (generic_val_print_array): Take a struct value.
12603 (generic_val_print_ptr, generic_val_print_memberptr)
12604 (generic_val_print_bool, generic_val_print_int)
12605 (generic_val_print_char, generic_val_print_complex)
12606 (generic_val_print): Remove.
12607 (generic_value_print): Update.
12608 (do_val_print): Remove unused parameters. Don't call
12610 (val_print): Remove.
12611 (common_val_print): Update. Don't call value_check_printable.
12612 (val_print_scalar_formatted, val_print_array_elements): Remove.
12613 * rust-lang.c (rust_val_print): Remove.
12614 (rust_language_defn): Update.
12615 * p-valprint.c (pascal_val_print): Remove.
12616 (pascal_value_print_inner): Update.
12617 (pascal_object_print_val_fields, pascal_object_print_val):
12619 (pascal_object_print_static_field): Update.
12620 * p-lang.h (pascal_val_print): Don't declare.
12621 * p-lang.c (pascal_language_defn): Update.
12622 * opencl-lang.c (opencl_language_defn): Update.
12623 * objc-lang.c (objc_language_defn): Update.
12624 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
12625 * m2-lang.h (m2_val_print): Don't declare.
12626 * m2-lang.c (m2_language_defn): Update.
12627 * language.h (struct language_defn) <la_val_print>: Remove.
12628 * language.c (unk_lang_value_print_inner): Rename. Change
12630 (unknown_language_defn, auto_language_defn): Update.
12631 * go-valprint.c (go_val_print): Remove.
12632 * go-lang.h (go_val_print): Don't declare.
12633 * go-lang.c (go_language_defn): Update.
12634 * f-valprint.c (f_val_print): Remove.
12635 * f-lang.h (f_value_print): Don't declare.
12636 * f-lang.c (f_language_defn): Update.
12637 * d-valprint.c (d_val_print): Remove.
12638 * d-lang.h (d_value_print): Don't declare.
12639 * d-lang.c (d_language_defn): Update.
12640 * cp-valprint.c (cp_print_value_fields)
12641 (cp_print_value_fields_rtti, cp_print_value): Remove.
12642 (cp_print_static_field): Update.
12643 * c-valprint.c (c_val_print_array, c_val_print_ptr)
12644 (c_val_print_struct, c_val_print_union, c_val_print_int)
12645 (c_val_print_memberptr, c_val_print): Remove.
12646 * c-lang.h (c_val_print_array, cp_print_value_fields)
12647 (cp_print_value_fields_rtti): Don't declare.
12648 * c-lang.c (c_language_defn, cplus_language_defn)
12649 (asm_language_defn, minimal_language_defn): Update.
12650 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
12651 (ada_val_print_enum): Take a struct value.
12652 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
12653 (ada_val_print): Remove.
12654 (ada_value_print_1): Update.
12655 (printable_val_type): Remove.
12656 * ada-lang.h (ada_val_print): Don't declare.
12657 * ada-lang.c (ada_language_defn): Update.
12659 2020-03-13 Tom Tromey <tom@tromey.com>
12661 * valprint.c (do_val_print): Update.
12662 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
12664 (value_to_value_object_no_release): Declare.
12665 * python/py-value.c (value_to_value_object_no_release): New
12667 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
12669 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
12671 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
12673 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
12675 (gdbscm_apply_val_pretty_printer): Take a struct value.
12676 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
12678 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
12680 * extension-priv.h (struct extension_language_ops)
12681 <apply_val_pretty_printer>: Take a struct value.
12682 * cp-valprint.c (cp_print_value): Create a struct value.
12683 (cp_print_value): Update.
12685 2020-03-13 Tom Tromey <tom@tromey.com>
12687 * ada-valprint.c (print_field_values): Call common_val_print.
12689 2020-03-13 Tom Tromey <tom@tromey.com>
12691 * ada-valprint.c (val_print_packed_array_elements): Remove
12692 bitoffset and val parameters. Call common_val_print.
12693 (ada_val_print_string): Remove offset, address, and original_value
12695 (ada_val_print_array): Update.
12696 (ada_value_print_array): New function.
12697 (ada_value_print_1): Call it.
12699 2020-03-13 Tom Tromey <tom@tromey.com>
12701 * ada-valprint.c (ada_value_print): Use common_val_print.
12703 2020-03-13 Tom Tromey <tom@tromey.com>
12705 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
12707 2020-03-13 Tom Tromey <tom@tromey.com>
12709 * ada-valprint.c (ada_value_print_num): New function.
12710 (ada_value_print_1): Use it.
12712 2020-03-13 Tom Tromey <tom@tromey.com>
12714 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
12716 2020-03-13 Tom Tromey <tom@tromey.com>
12718 * ada-valprint.c (ada_value_print_ptr): New function.
12719 (ada_value_print_1): Use it.
12721 2020-03-13 Tom Tromey <tom@tromey.com>
12723 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
12724 call common_val_print.
12725 (ada_val_print_1): Update.
12726 (ada_value_print_1): New function.
12727 (ada_value_print_inner): Rewrite.
12729 2020-03-13 Tom Tromey <tom@tromey.com>
12731 * cp-valprint.c (cp_print_value_fields): Update.
12732 (cp_print_value): New function.
12734 2020-03-13 Tom Tromey <tom@tromey.com>
12736 * m2-valprint.c (m2_value_print_inner): Use
12737 cp_print_value_fields.
12738 * cp-valprint.c (cp_print_value_fields): New function.
12739 * c-valprint.c (c_value_print_struct): New function.
12740 (c_value_print_inner): Use c_value_print_struct.
12741 * c-lang.h (cp_print_value_fields): Declare.
12743 2020-03-13 Tom Tromey <tom@tromey.com>
12745 * c-valprint.c (c_value_print_array): New function.
12746 (c_value_print_inner): Use it.
12748 2020-03-13 Tom Tromey <tom@tromey.com>
12750 * c-valprint.c (c_value_print_memberptr): New function.
12751 (c_value_print_inner): Use it.
12753 2020-03-13 Tom Tromey <tom@tromey.com>
12755 * c-valprint.c (c_value_print_int): New function.
12756 (c_value_print_inner): Use it.
12758 2020-03-13 Tom Tromey <tom@tromey.com>
12760 * c-valprint.c (c_value_print_ptr): New function.
12761 (c_value_print_inner): Use it.
12763 2020-03-13 Tom Tromey <tom@tromey.com>
12765 * c-valprint.c (c_value_print_inner): Rewrite.
12767 2020-03-13 Tom Tromey <tom@tromey.com>
12769 * valprint.c (generic_value_print_complex): New function.
12770 (generic_value_print): Use it.
12772 2020-03-13 Tom Tromey <tom@tromey.com>
12774 * valprint.c (generic_val_print_float): Don't call
12775 val_print_scalar_formatted.
12776 (generic_val_print, generic_value_print): Update.
12778 2020-03-13 Tom Tromey <tom@tromey.com>
12780 * valprint.c (generic_value_print_char): New function
12781 (generic_value_print): Use it.
12783 2020-03-13 Tom Tromey <tom@tromey.com>
12785 * valprint.c (generic_value_print_int): New function.
12786 (generic_value_print): Use it.
12788 2020-03-13 Tom Tromey <tom@tromey.com>
12790 * valprint.c (generic_value_print_bool): New function.
12791 (generic_value_print): Use it.
12793 2020-03-13 Tom Tromey <tom@tromey.com>
12795 * valprint.c (generic_val_print_func): Simplify.
12796 (generic_val_print, generic_value_print): Update.
12798 2020-03-13 Tom Tromey <tom@tromey.com>
12800 * valprint.c (generic_val_print_flags): Remove.
12801 (generic_val_print, generic_value_print): Update.
12802 (val_print_type_code_flags): Add original_value parameter.
12804 2020-03-13 Tom Tromey <tom@tromey.com>
12806 * valprint.c (generic_val_print): Update.
12807 (generic_value_print): Update.
12808 * valprint.c (generic_val_print_enum): Don't call
12809 val_print_scalar_formatted.
12811 2020-03-13 Tom Tromey <tom@tromey.com>
12813 * valprint.c (generic_value_print): Call generic_value_print_ptr.
12814 * valprint.c (generic_value_print_ptr): New function.
12816 2020-03-13 Tom Tromey <tom@tromey.com>
12818 * valprint.c (generic_value_print): Rewrite.
12820 2020-03-13 Tom Tromey <tom@tromey.com>
12822 * p-valprint.c (pascal_object_print_value_fields)
12823 (pascal_object_print_value): New functions.
12825 2020-03-13 Tom Tromey <tom@tromey.com>
12827 * p-valprint.c (pascal_value_print_inner): Rewrite.
12829 2020-03-13 Tom Tromey <tom@tromey.com>
12831 * f-valprint.c (f_value_print_innner): Rewrite.
12833 2020-03-13 Tom Tromey <tom@tromey.com>
12835 * m2-valprint.c (m2_print_unbounded_array): New overload.
12836 (m2_print_unbounded_array): Update.
12837 (m2_print_array_contents): Take a struct value.
12838 (m2_value_print_inner): Rewrite.
12840 2020-03-13 Tom Tromey <tom@tromey.com>
12842 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
12843 (d_value_print_inner): New function.
12844 * d-lang.h (d_value_print_inner): Declare.
12845 * d-lang.c (d_language_defn): Use d_value_print_inner.
12847 2020-03-13 Tom Tromey <tom@tromey.com>
12849 * go-valprint.c (go_value_print_inner): New function.
12850 * go-lang.h (go_value_print_inner): Declare.
12851 * go-lang.c (go_language_defn): Use go_value_print_inner.
12853 2020-03-13 Tom Tromey <tom@tromey.com>
12855 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
12857 (rust_val_print): Rewrite.
12858 (rust_value_print_inner): New function, from rust_val_print.
12859 (rust_language_defn): Use rust_value_print_inner.
12861 2020-03-13 Tom Tromey <tom@tromey.com>
12863 * ada-valprint.c (ada_value_print_inner): New function.
12864 * ada-lang.h (ada_value_print_inner): Declare.
12865 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
12867 2020-03-13 Tom Tromey <tom@tromey.com>
12869 * f-valprint.c (f_value_print_innner): New function.
12870 * f-lang.h (f_value_print_innner): Declare.
12871 * f-lang.c (f_language_defn): Use f_value_print_innner.
12873 2020-03-13 Tom Tromey <tom@tromey.com>
12875 * p-valprint.c (pascal_value_print_inner): New function.
12876 * p-lang.h (pascal_value_print_inner): Declare.
12877 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
12879 2020-03-13 Tom Tromey <tom@tromey.com>
12881 * m2-valprint.c (m2_value_print_inner): New function.
12882 * m2-lang.h (m2_value_print_inner): Declare.
12883 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
12885 2020-03-13 Tom Tromey <tom@tromey.com>
12887 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
12888 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
12889 * c-valprint.c (c_value_print_inner): New function.
12890 * c-lang.h (c_value_print_inner): Declare.
12891 * c-lang.c (c_language_defn, cplus_language_defn)
12892 (asm_language_defn, minimal_language_defn): Use
12893 c_value_print_inner.
12895 2020-03-13 Tom Tromey <tom@tromey.com>
12897 * p-valprint.c (pascal_object_print_value_fields): Now static.
12898 * p-lang.h (pascal_object_print_value_fields): Don't declare.
12900 2020-03-13 Tom Tromey <tom@tromey.com>
12902 * c-valprint.c (c_val_print_array): Simplify.
12904 2020-03-13 Tom Tromey <tom@tromey.com>
12906 * valprint.c (value_print_array_elements): New function.
12907 * valprint.h (value_print_array_elements): Declare.
12909 2020-03-13 Tom Tromey <tom@tromey.com>
12911 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
12912 * mips-tdep.c (mips_print_register): Use
12913 value_print_scalar_formatted.
12915 2020-03-13 Tom Tromey <tom@tromey.com>
12917 * valprint.h (value_print_scalar_formatted): Declare.
12918 * valprint.c (value_print_scalar_formatted): New function.
12920 2020-03-13 Tom Tromey <tom@tromey.com>
12922 * valprint.h (generic_value_print): Declare.
12923 * valprint.c (generic_value_print): New function.
12925 2020-03-13 Tom Tromey <tom@tromey.com>
12927 * valprint.c (do_val_print): Call la_value_print_inner, if
12929 * rust-lang.c (rust_language_defn): Update.
12930 * p-lang.c (pascal_language_defn): Update.
12931 * opencl-lang.c (opencl_language_defn): Update.
12932 * objc-lang.c (objc_language_defn): Update.
12933 * m2-lang.c (m2_language_defn): Update.
12934 * language.h (struct language_defn) <la_value_print_inner>: New
12936 * language.c (unknown_language_defn, auto_language_defn): Update.
12937 * go-lang.c (go_language_defn): Update.
12938 * f-lang.c (f_language_defn): Update.
12939 * d-lang.c (d_language_defn): Update.
12940 * c-lang.c (c_language_defn, cplus_language_defn)
12941 (asm_language_defn, minimal_language_defn): Update.
12942 * ada-lang.c (ada_language_defn): Update.
12944 2020-03-13 Tom Tromey <tom@tromey.com>
12946 * c-valprint.c (c_value_print): Use common_val_print.
12948 2020-03-13 Tom Tromey <tom@tromey.com>
12950 * cp-valprint.c (cp_print_static_field): Use common_val_print.
12952 2020-03-13 Tom Tromey <tom@tromey.com>
12954 * f-valprint.c (f77_print_array_1, f_val_print): Use
12957 2020-03-13 Tom Tromey <tom@tromey.com>
12959 * riscv-tdep.c (riscv_print_one_register_info): Use
12962 2020-03-13 Tom Tromey <tom@tromey.com>
12964 * mi/mi-main.c (output_register): Use common_val_print.
12966 2020-03-13 Tom Tromey <tom@tromey.com>
12968 * infcmd.c (default_print_one_register_info): Use
12971 2020-03-13 Tom Tromey <tom@tromey.com>
12973 * valprint.h (common_val_print_checked): Declare.
12974 * valprint.c (common_val_print_checked): New function.
12975 * stack.c (print_frame_arg): Use common_val_print_checked.
12977 2020-03-13 Tom Tromey <tom@tromey.com>
12979 * valprint.c (do_val_print): New function, from val_print.
12980 (val_print): Use do_val_print.
12981 (common_val_print): Use do_val_print.
12983 2020-03-13 Tom Tromey <tom@tromey.com>
12985 * valprint.c (value_print): Use scoped_value_mark.
12987 2020-03-13 Tom de Vries <tdevries@suse.de>
12990 * psymtab.c (partial_symtab::partial_symtab): Don't set
12991 globals_offset and statics_offset. Push element onto
12992 current_global_psymbols and current_static_psymbols stacks.
12993 (concat): New function.
12994 (end_psymtab_common): Set globals_offset and statics_offset. Pop
12995 element from current_global_psymbols and current_static_psymbols
12996 stacks. Concat popped elements to global_psymbols and
12998 (add_psymbol_to_list): Use current_global_psymbols and
12999 current_static_psymbols stacks.
13000 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
13001 current_static_psymbols fields.
13003 2020-03-12 Christian Biesinger <cbiesinger@google.com>
13005 * corelow.c (sniff_core_bfd): Remove.
13006 (class core_target) <m_core_vec>: Remove.
13007 (core_target::core_target): Update.
13008 (core_file_fns): Remove.
13009 (deprecated_add_core_fns): Remove.
13010 (default_core_sniffer): Remove.
13011 (sniff_core_bfd): Remove.
13012 (default_check_format): Remove.
13013 (gdb_check_format): Remove.
13014 (core_target_open): Update.
13015 (core_target::get_core_register_section): Update.
13016 (get_core_registers_cb): Update.
13017 (core_target::fetch_registers): Update.
13018 * gdbcore.h (struct core_fns): Remove.
13019 (deprecated_add_core_fns): Remove.
13020 (default_core_sniffer): Remove.
13021 (default_check_format): Remove.
13023 2020-03-12 Tom Tromey <tom@tromey.com>
13025 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
13027 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
13029 2020-03-12 Tom Tromey <tom@tromey.com>
13031 * remote.c (remote_target::download_tracepoint)
13032 (remote_target::enable_tracepoint)
13033 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
13034 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
13037 2020-03-12 Tom Tromey <tom@tromey.com>
13039 * symfile-mem.c: Update CORE_ADDR size assert.
13041 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13043 * selftest.m4: Move to gdbsupport/.
13044 * acinclude.m4: Update path to selftest.m4.
13046 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13048 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
13049 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
13050 gdbarch-selfselftests.c and selftest-arch.c.
13051 (SUBDIR_UNITTESTS_OBS): Rename to...
13052 (SELFTESTS_OBS): ... this.
13053 (COMMON_SFILES): Remove disasm-selftests.c and
13054 gdbarch-selftests.c.
13055 * configure.ac: Don't add selftest-arch.{c,o} to
13057 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
13058 preprocessor conditions.
13060 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13062 * configure.ac: Don't source bfd/development.sh.
13063 * selftest.m4: Modify comment.
13064 * configure: Re-generate.
13066 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13068 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
13069 not "true" or "false".
13070 * configure: Re-generate.
13072 2020-03-12 Christian Biesinger <cbiesinger@google.com>
13074 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
13075 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
13076 renamed to arm_nbsd_supply_gregset.
13077 (fetch_register): Update to call arm_nbsd_supply_gregset.
13078 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
13079 (arm_netbsd_nat_target::fetch_registers): Update.
13080 (fetch_elfcore_registers): Removed.
13081 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
13082 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
13083 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
13084 not require NetBSD system headers.
13085 (arm_nbsd_regset): New struct.
13086 (arm_nbsd_iterate_over_regset_sections): New function.
13087 (arm_netbsd_init_abi_common): Updated to call
13088 set_gdbarch_iterate_over_regset_sections.
13089 * arm-nbsd-tdep.h: New file.
13091 2020-03-11 Kevin Buettner <kevinb@redhat.com>
13093 * symtab.c (find_pc_sect_line): Add check which prevents infinite
13096 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
13098 * configure: Re-generate.
13100 2020-03-11 Tom Tromey <tromey@adacore.com>
13102 * ada-typeprint.c (print_choices): Fix comment.
13104 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
13106 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
13107 previous item in the list, when the list has no items.
13109 2020-03-11 Tom de Vries <tdevries@suse.de>
13111 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
13112 PROP_LOCLIST handling code.
13114 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
13116 * buildsym-legacy.c (record_line): Pass extra parameter to
13118 * buildsym.c (buildsym_compunit::record_line): Take an extra
13119 parameter, reduce duplication in the line table, and record the
13120 is_stmt flag in the line table.
13121 * buildsym.h (buildsym_compunit::record_line): Add extra
13123 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
13124 non-statement lines.
13125 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
13126 this to the symtab builder.
13127 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
13128 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
13129 through to dwarf_record_line_1.
13130 * infrun.c (process_event_stop_test): When stepping, don't stop at
13131 a non-statement instruction, and only refresh the step info when
13132 we land in the middle of a line's range. Also add an extra
13134 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
13136 * record-btrace.c (btrace_find_line_range): Only record lines
13137 marked as is-statement.
13138 * stack.c (frame_show_address): Show the frame address if we are
13139 in a non-statement sal.
13140 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
13141 (maintenance_print_one_line_table): Print a header for the is_stmt
13142 column, and include is_stmt information in the output.
13143 * symtab.c (find_pc_sect_line): Find lines marked as statements in
13144 preference to non-statements.
13145 (find_pcs_for_symtab_line): Prefer is-statement entries.
13146 (find_line_common): Likewise.
13147 * symtab.h (struct linetable_entry): Add is_stmt field.
13148 (struct symtab_and_line): Likewise.
13149 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
13150 arranging the line table.
13152 2020-03-07 Tom de Vries <tdevries@suse.de>
13154 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
13157 2020-03-07 Tom Tromey <tom@tromey.com>
13159 * valops.c (value_literal_complex): Remove obsolete comment.
13160 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
13163 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13165 * infrun.h: Forward-declare thread_info.
13166 (set_step_info): Add thread_info parameter, add doc.
13167 * infrun.c (set_step_info): Add thread_info parameter, move doc
13169 * infrun.c (process_event_stop_test): Pass thread to
13170 set_step_info call.
13171 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
13173 (prepare_one_step): Add thread_info parameter, pass it to
13174 set_step_frame and prepare_one_step (recursive) call.
13175 (step_1): Pass thread to prepare_one_step call.
13176 (step_command_fsm::should_stop): Pass thread to
13178 (until_next_fsm): Pass thread to set_step_frame call.
13179 (finish_command): Pass thread to set_step_info call.
13181 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
13183 * windows-tdep.c (windows_solib_create_inferior_hook):
13184 Check if inferior is running.
13186 2020-03-06 Tom de Vries <tdevries@suse.de>
13188 * NEWS: Fix "the the".
13191 2020-03-06 Tom de Vries <tdevries@suse.de>
13193 * psymtab.c (psymtab_to_symtab): Don't print "done.".
13195 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13197 * .dir-locals.el: Add a comment referencing the other copies of
13200 2020-03-05 John Baldwin <jhb@FreeBSD.org>
13202 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
13205 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13207 * .gitattributes: New file.
13209 2020-03-04 Tom Tromey <tom@tromey.com>
13211 * symmisc.c (print_symbol_bcache_statistics)
13212 (print_objfile_statistics): Update.
13213 * symfile.c (allocate_symtab): Use intern.
13214 * psymtab.c (partial_symtab::partial_symtab): Use intern.
13215 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13216 macro_cache>: Remove.
13217 <string_cache>: New member.
13218 (struct objfile) <intern>: New methods.
13219 * elfread.c (elf_symtab_read): Use intern.
13220 * dwarf2/read.c (fixup_go_packaging): Intern package name.
13221 (dwarf2_compute_name, dwarf2_physname)
13222 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
13224 (guess_partial_die_structure_name): Update.
13225 (partial_die_info::fixup): Intern name.
13226 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
13228 (dwarf2_name): Intern name. Update.
13229 * buildsym.c (buildsym_compunit::get_macro_table): Use
13232 2020-03-04 Tom Tromey <tom@tromey.com>
13234 * jit.c (bfd_open_from_target_memory): Make "target" const.
13235 * corefile.c (gnutarget): Now const.
13236 * gdbcore.h (gnutarget): Now const.
13238 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
13240 * NEWS: Mention support for WOW64 processes.
13241 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
13242 (amd64_windows_segment_register_p): Remove static.
13243 (_initialize_amd64_windows_nat): Update.
13244 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
13245 * i386-windows-nat.c (context_offset): Update.
13246 (i386_mappings): Rename and remove static.
13247 (i386_windows_segment_register_p): Remove static.
13248 (_initialize_i386_windows_nat): Update.
13249 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
13250 (STATUS_WX86_SINGLE_STEP): New macro.
13251 (EnumProcessModulesEx): New macro.
13252 (Wow64SuspendThread): New macro.
13253 (Wow64GetThreadContext): New macro.
13254 (Wow64SetThreadContext): New macro.
13255 (Wow64GetThreadSelectorEntry): New macro.
13256 (windows_set_context_register_offsets): Add static.
13257 (windows_set_segment_register_p): Likewise.
13258 (windows_add_thread): Adapt for WOW64 processes.
13259 (windows_fetch_one_register): Likewise.
13260 (windows_nat_target::fetch_registers): Likewise.
13261 (windows_store_one_register): Likewise.
13262 (display_selector): Likewise.
13263 (display_selectors): Likewise.
13264 (handle_exception): Likewise.
13265 (windows_continue): Likewise.
13266 (windows_nat_target::resume): Likewise.
13267 (windows_add_all_dlls): Likewise.
13268 (do_initial_windows_stuff): Likewise.
13269 (windows_nat_target::attach): Likewise.
13270 (windows_get_exec_module_filename): Likewise.
13271 (windows_nat_target::create_inferior): Likewise.
13272 (windows_xfer_siginfo): Likewise.
13273 (_initialize_loadable): Initialize Wow64SuspendThread,
13274 Wow64GetThreadContext, Wow64SetThreadContext,
13275 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
13276 * windows-nat.h (windows_set_context_register_offsets):
13277 Remove declaration.
13278 (windows_set_segment_register_p): Likewise.
13279 (i386_windows_segment_register_p): Add declaration.
13280 (amd64_windows_segment_register_p): Likewise.
13282 2020-03-04 Luis Machado <luis.machado@linaro.org>
13284 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
13285 in "info registers" for AArch64/ARM.
13287 The change caused "info registers" to not print GPR's.
13291 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13293 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13294 when reg->group is empty and reggroup is not.
13296 2020-03-03 Tom Tromey <tromey@adacore.com>
13298 * dwarf2/frame.c (struct dwarf2_frame_cache)
13299 <checked_tailcall_bottom, entry_cfa_sp_offset,
13300 entry_cfa_sp_offset_p>: Remove members.
13301 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
13302 (dwarf2_frame_prev_register): Don't call
13303 dwarf2_tailcall_sniffer_first.
13304 (dwarf2_append_unwinders): Don't append tailcall unwinder.
13305 * frame-unwind.c (add_unwinder): New fuction.
13306 (frame_unwind_init): Use it. Add tailcall unwinder.
13308 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
13309 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13311 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
13312 value should be printed as true.
13314 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
13316 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
13317 (windows_init_abi): Set and use windows_so_ops.
13319 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
13321 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
13322 when verifying if dealing with a convenience variable.
13324 2020-03-03 Luis Machado <luis.machado@linaro.org>
13326 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
13328 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13330 * infrun.c (gdbarch_supports_displaced_stepping): New.
13331 (use_displaced_stepping): Break up conditions in smaller pieces.
13332 Use gdbarch_supports_displaced_stepping.
13333 (displaced_step_prepare_throw): Use
13334 gdbarch_supports_displaced_stepping.
13336 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13338 * NEWS: Mention new behaviour of the history filename.
13339 * top.c (write_history_p): Add comment.
13340 (show_write_history_p): Add header comment, give a different
13341 message when history writing is on, but the history filename is
13343 (history_filename): Add comment.
13344 (history_filename_empty): New function.
13345 (show_history_filename): Add header comment, give a different
13346 message when the filename is empty.
13347 (init_history): Compare history_filename against nullptr, and only
13348 read history if the filename is not empty.
13349 (set_history_filename): Add header comment, and only make
13350 non-empty filenames absolute.
13351 (init_main): Make the filename argument to 'set history filename'
13354 2020-03-02 Christian Biesinger <cbiesinger@google.com>
13356 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
13357 (arm_supply_vfpregset): ...this, and update to use VFP registers.
13358 (fetch_fp_register): Update.
13359 (fetch_fp_regs): Update.
13360 (store_fp_register): Update.
13361 (store_fp_regs): Update.
13362 (arm_netbsd_nat_target::read_description): New function.
13363 (fetch_elfcore_registers): Update.
13365 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13367 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
13368 general_thread if the stop reply is missing a thread-id.
13369 (remote_target::process_stop_reply): Use the first non-exited
13370 thread if the target didn't pass a thread-id.
13371 * infrun.c (do_target_wait): Move call to
13372 switch_to_inferior_no_thread to ....
13373 (do_target_wait_1): ... here.
13375 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
13377 * debuginfod-support.c: Include defs.h first.
13379 2020-02-28 Tom de Vries <tdevries@suse.de>
13381 * symfile.c (set_initial_language): Use default language for lookup.
13383 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
13385 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
13386 reader variable, pass `this` to read_cutu_die_from_dwo.
13388 2020-02-27 Aaron Merey <amerey@redhat.com>
13390 * source.c (open_source_file): Check for nullptr when computing
13393 2020-02-27 Tom Tromey <tromey@adacore.com>
13395 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
13397 (dwarf2_add_field): Don't update nfields.
13398 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
13400 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13402 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
13405 2020-02-26 Tom Tromey <tom@tromey.com>
13407 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
13408 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
13409 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
13410 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
13413 2020-02-26 Tom Tromey <tom@tromey.com>
13415 * dwarf2/index-write.c (psym_index_map): Change type.
13416 (add_address_entry_worker, write_one_signatured_type)
13417 (recursively_count_psymbols, recursively_write_psymbols)
13418 (class debug_names, psyms_seen_size, write_gdbindex)
13419 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
13421 2020-02-26 Aaron Merey <amerey@redhat.com>
13423 * Makefile.in: Handle optional debuginfod support.
13425 * README: Add --with-debuginfod summary.
13426 * config.in: Regenerate.
13427 * configure: Regenerate.
13428 * configure.ac: Handle optional debuginfod support.
13429 * debuginfod-support.c: debuginfod helper functions.
13430 * debuginfod-support.h: Ditto.
13431 * doc/gdb.texinfo: Add --with-debuginfod to configure options
13433 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
13434 when a dwz file cannot be found.
13435 * elfread.c (elf_symfile_read): Query debuginfod servers when a
13436 debuginfo file cannot be found.
13437 * source.c (open_source_file): Query debuginfod servers when a
13438 source file cannot be found.
13439 * top.c (print_gdb_configuration): Include
13440 --{with,without}-debuginfod in the output.
13442 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
13444 * thread.c (thr_try_catch_cmd): Print thread name.
13446 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
13448 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
13449 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13450 dwarf2_fetch_die_type_sect_off): Move to...
13451 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
13452 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13453 dwarf2_fetch_die_type_sect_off): ... here.
13454 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
13455 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13456 dwarf2_fetch_die_type_sect_off): Move doc to header file.
13458 2020-02-26 Tom de Vries <tdevries@suse.de>
13461 * symfile.c (set_initial_language): Exit-early if
13462 language_mode == language_mode_manual.
13464 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13466 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
13467 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
13468 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
13470 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
13472 * gdbtypes.c (create_array_type_with_stride): Handle negative
13474 * valarith.c (value_subscripted_rvalue): Likewise.
13476 2020-02-25 Luis Machado <luis.machado@linaro.org>
13478 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
13480 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13482 * loc.h (dwarf2_get_die_type): Move to...
13483 * read.h (dwarf2_get_die_type): ... here.
13484 * read.c (dwarf2_get_die_type): Move doc to header.
13486 2020-02-25 Joel Brobecker <brobecker@adacore.com>
13488 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
13489 'gnulib/Makefile.in' to the list.
13491 2020-02-24 Tom Tromey <tom@tromey.com>
13493 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
13495 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
13498 2020-02-24 Tom Tromey <tom@tromey.com>
13500 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
13502 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
13503 (dw2_do_instantiate_symtab, dw2_get_file_names)
13504 (build_type_psymtab_dependencies, load_full_type_unit): Update.
13506 2020-02-24 Tom Tromey <tom@tromey.com>
13508 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
13509 make_scoped_restore.
13510 (dwarf2_psymtab::read_symtab): Don't clear
13511 reading_partial_symbols.
13513 2020-02-24 Tom de Vries <tdevries@suse.de>
13516 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
13518 2020-02-24 Tom de Vries <tdevries@suse.de>
13520 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
13521 commands layout next/prev/regs.
13523 2020-02-22 Tom Tromey <tom@tromey.com>
13525 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
13526 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
13528 2020-02-22 Tom Tromey <tom@tromey.com>
13530 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
13532 2020-02-22 Tom Tromey <tom@tromey.com>
13534 * tui/tui-win.c (_initialize_tui_win): Add usage text.
13535 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
13536 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
13537 * tui/tui.c (_initialize_tui): Add usage text.
13539 2020-02-22 Tom Tromey <tom@tromey.com>
13541 * tui/tui-win.c (tui_set_focus_command)
13542 (tui_set_win_height_command): Use error_no_arg.
13543 (_initialize_tui_win): Update help text.
13544 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
13546 2020-02-22 Tom Tromey <tom@tromey.com>
13548 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
13549 * tui/tui-disasm.h (struct tui_disasm_window)
13550 <display_start_addr>: Declare.
13551 * tui/tui-source.h (struct tui_source_window)
13552 <display_start_addr>: Declare.
13553 * tui/tui-winsource.h (struct tui_source_window_base)
13554 <show_source_line, display_start_addr>: New methods.
13555 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
13556 Rename and move to protected section.
13557 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
13558 (tui_source_window_base::do_erase_source_content): Update.
13559 (tui_source_window_base::show_source_line): Now a method.
13560 (tui_source_window_base::show_source_content)
13561 (tui_source_window_base::tui_source_window_base)
13562 (tui_source_window_base::rerender)
13563 (tui_source_window_base::refill)
13564 (tui_source_window_base::do_scroll_horizontal)
13565 (tui_source_window_base::set_is_exec_point_at)
13566 (tui_source_window_base::update_breakpoint_info)
13567 (tui_source_window_base::update_exec_info): Update.
13568 * tui/tui-source.c (tui_source_window::set_contents)
13569 (tui_source_window::showing_source_p)
13570 (tui_source_window::do_scroll_vertical)
13571 (tui_source_window::location_matches_p)
13572 (tui_source_window::line_is_displayed): Update.
13573 (tui_source_window::display_start_addr): New method.
13574 * tui/tui-disasm.c (tui_disasm_window::set_contents)
13575 (tui_disasm_window::do_scroll_vertical)
13576 (tui_disasm_window::location_matches_p): Update.
13577 (tui_disasm_window::display_start_addr): New method.
13579 2020-02-22 Tom Tromey <tom@tromey.com>
13581 * NEWS: Add entry for gdb.register_window_type.
13582 * tui/tui-layout.h (window_factory): New typedef.
13583 (tui_register_window): Declare.
13584 * tui/tui-layout.c (saved_tui_windows): New global.
13585 (tui_apply_current_layout): Use it.
13586 (tui_register_window): New function.
13587 * python/python.c (do_start_initialization): Call
13588 gdbpy_initialize_tui.
13589 (python_GdbMethods): Add "register_window_type" function.
13590 * python/python-internal.h (gdbpy_register_tui_window)
13591 (gdbpy_initialize_tui): Declare.
13592 * python/py-tui.c: New file.
13593 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
13595 2020-02-22 Tom Tromey <tom@tromey.com>
13597 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
13599 2020-02-22 Tom Tromey <tom@tromey.com>
13601 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
13602 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
13603 * tui/tui-data.c (tui_set_win_with_focus): Remove.
13604 (tui_set_win_focus_to): Move from tui-win.c.
13606 2020-02-22 Tom Tromey <tom@tromey.com>
13608 * tui/tui-layout.c (make_standard_window, get_locator_window): New
13610 (known_window_types): New global.
13611 (tui_get_window_by_name): Reimplement.
13612 (initialize_known_windows): New function.
13613 (validate_window_name): Rewrite.
13614 (_initialize_tui_layout): Call initialize_known_windows.
13616 2020-02-22 Tom Tromey <tom@tromey.com>
13618 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
13620 * tui/tui-winsource.h (struct tui_source_window_base)
13621 <tui_source_window_base>: Remove parameter.
13622 * tui/tui-winsource.c
13623 (tui_source_window_base::tui_source_window_base): Remove
13625 (tui_source_window_base::refill): Update.
13626 * tui/tui-stack.h (struct tui_locator_window)
13627 <tui_locator_window>: Update.
13628 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
13629 Default the constructor.
13630 * tui/tui-regs.h (struct tui_data_item_window)
13631 <tui_data_item_window>: Default the constructor.
13632 (struct tui_data_window) <tui_data_window>: Likewise.
13633 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
13634 Default the constructor.
13635 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
13636 Default the constructor.
13638 (struct tui_win_info) <tui_win_info>: Default the constructor.
13639 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
13640 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
13641 Default the constructor.
13643 2020-02-22 Tom Tromey <tom@tromey.com>
13645 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
13646 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
13647 * tui/tui-win.c (tui_resize_all): Don't call
13648 tui_delete_invisible_windows.
13649 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
13651 (tui_set_layout): Update.
13652 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
13653 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
13654 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
13656 2020-02-22 Tom Tromey <tom@tromey.com>
13658 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
13661 2020-02-22 Tom Tromey <tom@tromey.com>
13663 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
13665 2020-02-22 Tom Tromey <tom@tromey.com>
13667 * tui/tui-winsource.h (struct tui_source_window_iterator)
13668 <inner_iterator>: New etytypedef.
13669 <tui_source_window_iterator>: Take "end" parameter.
13670 <tui_source_window_iterator>: Take iterator.
13671 <operator*, advance>: Update.
13672 <m_iter>: Change type.
13673 <m_end>: New field.
13674 (struct tui_source_windows) <begin, end>: Update.
13675 * tui/tui-layout.c (tui_windows): New global.
13676 (tui_apply_current_layout): Clear tui_windows.
13677 (tui_layout_window::apply): Update tui_windows.
13678 * tui/tui-data.h (tui_windows): Declare.
13679 (all_tui_windows): Now inline function.
13680 (class tui_window_iterator, struct all_tui_windows): Remove.
13682 2020-02-22 Tom Tromey <tom@tromey.com>
13685 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
13686 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
13688 (class tui_layout_window) <get_sizes>: Likewise.
13689 (class tui_layout_split) <tui_layout_split>: Add "vertical"
13691 <get_sizes>: Add "height" argument.
13692 <m_vertical>: New field.
13693 * tui/tui-layout.c (tui_layout_split::clone): Update.
13694 (tui_layout_split::get_sizes): Add "height" argument.
13695 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
13696 (tui_new_layout_command): Parse "-horizontal".
13697 (_initialize_tui_layout): Update help string.
13698 (tui_layout_split::specification): Add "-horizontal" when needed.
13699 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
13701 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
13704 2020-02-22 Tom Tromey <tom@tromey.com>
13706 * tui/tui-layout.h (enum tui_adjust_result): New.
13707 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
13708 (class tui_layout_window) <adjust_size>: Return
13709 tui_adjust_result. Rewrite.
13710 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
13711 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
13713 2020-02-22 Tom Tromey <tom@tromey.com>
13715 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
13716 parameter and return types.
13717 (class tui_layout_base) <specification>: Add "depth".
13718 (class tui_layout_window) <specification>: Add "depth".
13719 (class tui_layout_split) <specification>: Add "depth".
13720 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
13722 (tui_new_layout_command): Parse sub-layouts.
13723 (_initialize_tui_layout): Update help string.
13724 (tui_layout_window::specification): Add "depth".
13725 (add_layout_command): Update.
13727 2020-02-22 Tom Tromey <tom@tromey.com>
13729 * NEWS: Add "tui new-layout" item.
13730 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
13731 Add new-layout command to help text.
13732 (validate_window_name): New function.
13733 (tui_new_layout_command): New function.
13734 (_initialize_tui_layout): Register "new-layout".
13735 (tui_layout_window::specification): New method.
13736 (tui_layout_window::specification): New method.
13737 * tui/tui-layout.h (class tui_layout_base) <specification>: New
13739 (class tui_layout_window) <specification>: New method.
13740 (class tui_layout_split) <specification>: New method.
13742 2020-02-22 Tom Tromey <tom@tromey.com>
13744 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
13745 * tui/tui-win.c (window_name_completer): Update comment.
13746 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
13748 (class tui_layout_window) <replace_window>: Likewise.
13749 (class tui_layout_split) <replace_window>: Likewise.
13750 (tui_set_layout): Don't declare.
13751 (tui_set_initial_layout): Declare function.
13752 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
13753 (asm_regs_layout): New globals.
13754 (tui_current_layout, show_layout): Remove.
13755 (tui_set_layout, tui_add_win_to_layout): Rewrite.
13756 (find_layout, tui_apply_layout): New function.
13757 (layout_completer): Remove.
13758 (tui_next_layout): Reimplement.
13759 (tui_next_layout_command): New function.
13760 (tui_set_initial_layout, tui_prev_layout_command): New functions.
13761 (tui_regs_layout): Reimplement.
13762 (tui_regs_layout_command): New function.
13763 (extract_display_start_addr): Rewrite.
13764 (next_layout, prev_layout): Remove.
13765 (tui_layout_window::replace_window): New method.
13766 (tui_layout_split::replace_window): New method.
13767 (destroy_layout): New function.
13768 (layout_list): New global.
13769 (add_layout_command): New function.
13770 (initialize_layouts): Update.
13771 (tui_layout_command): New function.
13772 (_initialize_tui_layout): Install "layout" commands.
13773 * tui/tui-data.h (enum tui_layout_type): Remove.
13774 (tui_current_layout): Don't declare.
13776 2020-02-22 Tom Tromey <tom@tromey.com>
13778 * tui/tui-regs.c (tui_reg_layout): Remove.
13779 (tui_reg_command): Use tui_regs_layout.
13780 * tui/tui-layout.h (tui_reg_command): Declare.
13781 * tui/tui-layout.c (tui_reg_command): New function.
13783 2020-02-22 Tom Tromey <tom@tromey.com>
13785 * tui/tui.c (tui_rl_delete_other_windows): Call
13786 tui_remove_some_windows.
13787 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
13789 (class tui_layout_window) <remove_windows>: New method.
13790 (class tui_layout_split) <remove_windows>: Declare.
13791 (tui_remove_some_windows): Declare.
13792 * tui/tui-layout.c (tui_remove_some_windows): New function.
13793 (tui_layout_split::remove_windows): New method.
13795 2020-02-22 Tom Tromey <tom@tromey.com>
13797 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
13798 * tui/tui-layout.h (tui_next_layout): Declare.
13799 * tui/tui-layout.c (tui_next_layout): New function.
13801 2020-02-22 Tom Tromey <tom@tromey.com>
13803 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
13804 correct coordinates.
13806 2020-02-22 Tom Tromey <tom@tromey.com>
13808 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
13809 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
13812 2020-02-22 Tom Tromey <tom@tromey.com>
13814 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
13815 TUI_DISASM_WIN, not tui_win_list.
13817 2020-02-22 Tom Tromey <tom@tromey.com>
13819 * valprint.c (generic_val_print_enum_1)
13820 (val_print_type_code_flags): Style member names.
13821 * rust-lang.c (val_print_struct, rust_print_enum)
13822 (rust_print_struct_def, rust_internal_print_type): Style member
13824 * p-valprint.c (pascal_object_print_value_fields): Style member
13825 names. Only call fprintf_symbol_filtered for static members.
13826 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
13827 * f-valprint.c (f_val_print): Style member names.
13828 * f-typeprint.c (f_type_print_base): Style member names.
13829 * cp-valprint.c (cp_print_value_fields): Style member names. Only
13830 call fprintf_symbol_filtered for static members.
13831 (cp_print_class_member): Style member names.
13832 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
13834 * ada-valprint.c (ada_print_scalar): Style enum names.
13835 (ada_val_print_enum): Likewise.
13836 * ada-typeprint.c (print_enum_type): Style enum names.
13838 2020-02-21 Tom Tromey <tom@tromey.com>
13840 * psympriv.h (struct partial_symtab): Update comment.
13842 2020-02-21 Tom Tromey <tromey@adacore.com>
13844 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
13847 2020-02-21 Tom de Vries <tdevries@suse.de>
13850 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
13851 if dependencies[i]->user != NULL.
13853 2020-02-21 Ali Tamur <tamur@google.com>
13855 * dwarf2/read.c (dwarf2_name): Add null check.
13857 2020-02-20 Tom Tromey <tom@tromey.com>
13859 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
13860 ">=", in binary search.
13861 (dwarf2_find_containing_comp_unit): New overload.
13862 (run_test): New self-test.
13863 (_initialize_dwarf2_read): Register new test.
13865 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
13867 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
13868 * riscv-tdep.h: Likewise.
13869 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
13871 * features/riscv/64bit-csr.xml: Regenerated.
13873 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
13874 Tom Tromey <tom@tromey.com>
13876 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
13877 of 'fputc_unfiltered'.
13878 (putchar_unfiltered): Call 'fputc_unfiltered'.
13879 (fputc_unfiltered): Call 'fputs_unfiltered'.
13881 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
13883 * config.in: Regenerate.
13884 * configure: Regenerate.
13885 * configure.ac: Add --with-python-libdir option.
13886 * main.c: Use WITH_PYTHON_LIBDIR.
13888 2020-02-19 Tom Tromey <tom@tromey.com>
13890 * symtab.c (general_symbol_info::compute_and_set_names): Use
13891 obstack_strndup. Simplify call to symbol_set_demangled_name.
13893 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
13895 * dwarf2/read.c (allocate_signatured_type_table,
13896 allocate_dwo_unit_table, allocate_type_unit_groups_table,
13897 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
13898 Remove objfile parameter, update all callers.
13900 2020-02-19 Doug Evans <dje@google.com>
13903 * rust-lang.c (rust_print_enum): Apply embedded_offset to
13904 rust_enum_variant calculation.
13906 2020-02-19 Tom Tromey <tromey@adacore.com>
13908 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
13910 2020-02-19 Tom Tromey <tromey@adacore.com>
13912 * ada-lang.c (cache_symbol): Use obstack_strdup.
13914 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13916 * configure: Regenerate.
13918 2020-02-19 Tom Tromey <tromey@adacore.com>
13920 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
13923 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
13925 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
13927 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13929 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
13930 if GDBSERVER is not defined.
13931 (riscv_tdesc_cache): Likewise, also store const target_desc.
13932 (STATIC_IN_GDB): Define.
13933 (riscv_create_target_description): Update declaration with
13935 (riscv_lookup_target_description): New function, only define if
13936 GDBSERVER is not defined.
13937 * arch/riscv.h (riscv_create_target_description): Declare only
13938 when GDBSERVER is defined.
13939 (riscv_lookup_target_description): New declaration when GDBSERVER
13941 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
13942 (riscv_linux_read_features): ...this, and return
13943 riscv_gdbarch_features instead of target_desc.
13944 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
13945 (riscv_linux_read_description): Rename to...
13946 (riscv_linux_read_features): ...this.
13947 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13948 Update to use riscv_gdbarch_features and
13949 riscv_lookup_target_description.
13950 * riscv-tdep.c (riscv_find_default_target_description): Use
13951 riscv_lookup_target_description instead of
13952 riscv_create_target_description.
13954 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13956 * valprint.c (generic_val_print_enum_1): When printing a flag
13957 enum with value 0 and there is no enumerator with value 0, print
13958 just "0" instead of "(unknown: 0x0)".
13960 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13962 * valprint.c (generic_val_print_enum_1): Print unknown part of
13965 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13967 * dwarf2/read.c (update_enumeration_type_from_children): Allow
13968 flag enums to contain duplicate enumerators.
13969 * valprint.c (generic_val_print_enum_1): Update comment.
13971 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13973 * dwarf2/read.c: Include "count-one-bits.h".
13974 (update_enumeration_type_from_children): If an enumerator has
13975 multiple bits set, don't treat the enumeration as a "flag enum".
13976 * valprint.c (generic_val_print_enum_1): Assert that enumerators
13977 of flag enums have 0 or 1 bit set.
13979 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
13981 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
13983 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13984 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13985 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13986 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13987 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13989 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13991 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
13993 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
13995 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
13996 displaced_step_closure_up.
13997 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13998 (struct displaced_step_closure_up):
13999 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14000 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14001 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
14003 * gdbarch.sh (displaced_step_copy_insn): Likewise.
14004 * gdbarch.c, gdbarch.h: Re-generate.
14005 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
14006 displaced_step_closure_up.
14007 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14008 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14009 * infrun.h (displaced_step_closure_up): New type alias.
14010 (struct displaced_step_inferior_state) <step_closure>: Change
14011 type to displaced_step_closure_up.
14012 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
14013 displaced_step_closure_up.
14014 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14016 2020-02-14 Tom Tromey <tom@tromey.com>
14018 * minidebug.c (gnu_debug_key): New global.
14019 (find_separate_debug_file_in_section): Use it.
14021 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14023 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
14025 * gdbarch.c: Re-generate.
14026 * gdbarch.h: Re-generate.
14027 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
14029 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
14030 type to std::unique_ptr.
14031 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14032 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14033 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14034 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14035 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
14036 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14037 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14038 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14039 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14041 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14043 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
14045 (displaced_step_clear): Rename to...
14046 (displaced_step_reset): ... this. Just call displaced->reset ().
14047 (displaced_step_clear_cleanup): Rename to...
14048 (displaced_step_reset_cleanup): ... this.
14049 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
14050 (displaced_step_fixup): Likewise.
14051 (resume_1): Likewise.
14052 (handle_inferior_event): Restore child's memory before calling
14053 displaced_step_fixup on the parent.
14054 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
14055 to std::unique_ptr.
14056 <step_closure>: Change type to std::unique_ptr.
14058 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14060 * arm-tdep.c: Include count-one-bits.h.
14061 (cleanup_block_store_pc): Use count_one_bits.
14062 (cleanup_block_load_pc): Use count_one_bits.
14063 (arm_copy_block_xfer): Use count_one_bits.
14064 (thumb2_copy_block_xfer): Use count_one_bits.
14065 (thumb_copy_pop_pc_16bit): Use count_one_bits.
14066 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
14067 (thumb_get_next_pcs_raw): Use count_one_bits.
14068 (arm_get_next_pcs_raw): Use count_one_bits_l.
14069 * arch/arm.c (bitcount): Remove.
14070 * arch/arm.h (bitcount): Remove.
14072 2020-02-14 Tom Tromey <tromey@adacore.com>
14074 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
14076 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
14077 * dwarf2/loc.c (call_site_find_chain_1): Return
14078 unique_xmalloc_ptr.
14079 (call_site_find_chain): Likewise.
14081 2020-02-14 Richard Biener <rguenther@suse.de>
14083 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
14084 on expression with division operators.
14086 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14088 * MAINTAINERS (Write After Approval): Adding myself.
14090 2020-02-12 Tom Tromey <tom@tromey.com>
14092 * event-loop.c (event_data, gdb_event, event_handler_func):
14095 2020-02-12 Tom Tromey <tom@tromey.com>
14097 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
14098 (dwarf2_frame_objfile_data): Add comment.
14099 (find_comp_unit, set_comp_unit): New functions.
14100 (dwarf2_frame_find_fde): Use find_comp_unit.
14101 (dwarf2_build_frame_info): Use set_comp_unit.
14103 2020-02-12 Tom Tromey <tom@tromey.com>
14105 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
14106 (comp_unit): Don't initialize objfile.
14107 (execute_cfa_program): Add text_offset parameter.
14108 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
14109 (dwarf2_frame_cache): Update.
14110 (dwarf2_build_frame_info): Don't set "objfile" member.
14112 2020-02-12 Tom Tromey <tom@tromey.com>
14114 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
14115 (decode_frame_entry): Likewise.
14116 (dwarf2_build_frame_info): Update.
14118 2020-02-12 Tom Tromey <tom@tromey.com>
14120 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
14121 (decode_frame_entry_1): Use the comp_unit obstack.
14123 2020-02-12 Tom Tromey <tom@tromey.com>
14125 * dwarf2/frame.c (struct comp_unit): Add initializers and
14127 (dwarf2_frame_objfile_data): Store a comp_unit.
14128 (dwarf2_frame_find_fde): Update.
14129 (dwarf2_build_frame_info): Use "new".
14131 2020-02-12 Tom Tromey <tom@tromey.com>
14133 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
14134 (dwarf2_fde_table): Typedef for std::vector.
14135 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
14136 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
14137 (decode_frame_entry): Update.
14138 (dwarf2_build_frame_info): Use "new".
14140 2020-02-12 Christian Biesinger <cbiesinger@google.com>
14142 * arm-tdep.c (arm_gdbarch_init): Update.
14143 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
14144 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
14145 have_neon, is_m>: Change to bool.
14147 2020-02-12 Christian Biesinger <cbiesinger@google.com>
14149 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
14151 2020-02-12 Tom Tromey <tom@tromey.com>
14153 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
14155 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
14157 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
14158 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
14160 2020-02-11 Tom Tromey <tom@tromey.com>
14162 * psymtab.h: Update comment.
14164 2020-02-11 Tom Tromey <tom@tromey.com>
14166 * gdb_obstack.h (struct auto_obstack): Use
14167 DISABLE_COPY_AND_ASSIGN.
14169 2020-02-11 Tom Tromey <tom@tromey.com>
14171 * dwarf2/frame.h (struct objfile): Don't forward declare.
14173 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14175 * cris-tdep.c (cris_supply_gregset): Change signature to match
14176 what struct regset expects.
14177 (cris_regset): New struct.
14178 (fetch_core_registers): Remove.
14179 (cris_iterate_over_regset_sections): New function.
14180 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
14181 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
14183 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14185 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
14188 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14190 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
14192 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14194 * configure: Re-generate.
14196 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14198 * configure: Re-generate.
14200 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14202 * acinclude: Update warning.m4 path.
14203 * warning.m4: Move to gdbsupport.
14205 2020-02-11 Tom Tromey <tromey@adacore.com>
14207 * remote.c (remote_console_output): Update.
14208 * printcmd.c (printf_command): Update.
14209 * event-loop.c (gdb_wait_for_event): Update.
14210 * linux-nat.c (sigchld_handler): Update.
14211 * remote-sim.c (gdb_os_write_stdout): Update.
14212 (gdb_os_flush_stdout): Update.
14213 (gdb_os_flush_stderr): Update.
14214 (gdb_os_write_stderr): Update.
14215 * exceptions.c (print_exception): Update.
14216 * remote-fileio.c (remote_fileio_func_read): Update.
14217 (remote_fileio_func_write): Update.
14218 * tui/tui.c (tui_enable): Update.
14219 * tui/tui-interp.c (tui_interp::init): Update.
14220 * utils.c (init_page_info): Update.
14221 (putchar_unfiltered, fputc_unfiltered): Update.
14222 (gdb_flush): Update.
14223 (emit_style_escape): Update.
14224 (flush_wrap_buffer, fputs_maybe_filtered): Update.
14225 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
14226 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
14227 (stderr_file::write): Update.
14228 (stderr_file::puts): Update.
14229 * ui-file.h (ui_file_isatty, ui_file_write)
14230 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
14231 (ui_file_puts): Don't declare.
14233 2020-02-10 Tom de Vries <tdevries@suse.de>
14235 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
14236 sentinel to char *.
14238 2020-02-09 Tom de Vries <tdevries@suse.de>
14240 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
14241 filename if it matches "<artificial>".
14243 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
14245 * windows-tdep.c (struct enum_value_name): New struct.
14246 (create_enum): New function.
14247 (windows_get_siginfo_type): Create and use enum types.
14249 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
14251 * NEWS: Mention $_siginfo support for Windows.
14252 * windows-nat.c (handle_exception): Set siginfo_er.
14253 (windows_nat_target::mourn_inferior): Reset siginfo_er.
14254 (windows_xfer_siginfo): New function.
14255 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
14256 * windows-tdep.c (struct windows_gdbarch_data): New struct.
14257 (init_windows_gdbarch_data): New function.
14258 (get_windows_gdbarch_data): New function.
14259 (windows_get_siginfo_type): New function.
14260 (windows_init_abi): Register windows_get_siginfo_type.
14261 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
14263 2020-02-08 Tom Tromey <tom@tromey.com>
14265 * dwarf2/read.c (class cutu_reader) <cutu_reader,
14266 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
14267 <keep>: Declare method.
14268 <m_keep>: Remove member.
14269 <~cutu_reader>: Remove.
14270 (cutu_reader::init_tu_and_read_dwo_dies): Update.
14271 (cutu_reader::cutu_reader): Update.
14272 (cutu_reader::keep): Rename from ~cutu_reader.
14273 (process_psymtab_comp_unit, build_type_psymtabs_1)
14274 (process_skeletonless_type_unit, load_partial_comp_unit)
14275 (load_full_comp_unit, dwarf2_read_addr_index)
14276 (read_signatured_type): Update.
14278 2020-02-08 Tom Tromey <tom@tromey.com>
14280 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
14281 "want_partial_unit" parameter.
14282 (process_psymtab_comp_unit): Change want_partial_unit to bool.
14283 Inline check for DW_TAG_partial_unit.
14284 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
14286 2020-02-08 Tom Tromey <tom@tromey.com>
14288 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
14290 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
14293 2020-02-08 Tom Tromey <tom@tromey.com>
14295 * dwarf2/read.c (read_address): Move to comp-unit.c.
14296 (dwarf2_rnglists_process, dwarf2_ranges_process)
14297 (read_attribute_value, dwarf_decode_lines_1)
14298 (var_decode_location, decode_locdesc): Update.
14299 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
14300 read.c. Remove "cu" parameter.
14301 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
14304 2020-02-08 Tom Tromey <tom@tromey.com>
14306 * dwarf2/read.c (read_attribute_value, read_indirect_string)
14307 (read_indirect_line_string): Update.
14308 * dwarf2/comp-unit.c (read_offset): Remove.
14309 (read_comp_unit_head): Update.
14310 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
14312 (read_offset): Don't declare.
14314 2020-02-08 Tom Tromey <tom@tromey.com>
14316 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
14317 * dwarf2/read.c (struct comp_unit_head): Move to
14318 dwarf2/comp-unit.h.
14319 (enum class rcuh_kind): Move to comp-unit.h.
14320 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
14321 (read_comp_unit_head, error_check_comp_unit_head)
14322 (read_and_check_comp_unit_head): Move to comp-unit.c.
14323 (read_offset, dwarf_unit_type_name): Likewise.
14324 (create_debug_type_hash_table, read_cutu_die_from_dwo)
14325 (cutu_reader::cutu_reader, read_call_site_scope)
14326 (find_partial_die, follow_die_offset): Update.
14327 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
14329 2020-02-08 Tom Tromey <tom@tromey.com>
14331 * dwarf2/read.c (read_offset_1): Move to leb.c.
14332 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
14333 (dwarf_decode_macro_bytes): Update.
14334 * dwarf2/leb.c (read_offset): Rename; move from read.c.
14335 * dwarf2/leb.h (read_offset): Declare.
14337 2020-02-08 Tom Tromey <tom@tromey.com>
14339 * dwarf2/read.c (dwarf2_section_size): Remove.
14340 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
14342 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
14344 2020-02-08 Tom Tromey <tom@tromey.com>
14346 * dwarf2/read.c (read_initial_length): Move to leb.c.
14347 * dwarf2/leb.h (read_initial_length): Declare.
14348 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
14349 handle_nonstd parameter.
14350 * dwarf2/frame.c (read_initial_length): Remove.
14351 (decode_frame_entry_1): Update.
14353 2020-02-08 Tom Tromey <tom@tromey.com>
14355 * dwarf2/loc.c (dwarf2_find_location_expression)
14356 (dwarf_evaluate_loc_desc::get_tls_address)
14357 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14358 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
14359 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
14360 (dwarf2_compile_property_to_c)
14361 (dwarf2_loc_desc_get_symbol_read_needs)
14362 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
14363 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
14364 (loclist_describe_location, loclist_tracepoint_var_ref)
14365 (loclist_generate_c_location): Update.
14366 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
14367 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
14368 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
14369 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
14370 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
14371 (dwarf2_per_cu_data::addr_size)
14372 (dwarf2_per_cu_data::ref_addr_size)
14373 (dwarf2_per_cu_data::text_offset)
14374 (dwarf2_per_cu_data::addr_type): Now methods.
14375 (per_cu_header_read_in): Make per_cu "const".
14376 (dwarf2_version): Remove.
14377 (dwarf2_per_cu_data::int_type): Now a method.
14378 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
14379 (set_die_type, read_array_type, read_subrange_index_type)
14380 (read_tag_string_type, read_subrange_type): Update.
14381 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
14382 offset_size, ref_addr_size, text_offset, addr_type, version,
14383 objfile, int_type, addr_sized_int_type>: Declare methods.
14385 2020-02-08 Tom Tromey <tom@tromey.com>
14387 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
14390 2020-02-08 Tom Tromey <tom@tromey.com>
14392 * dwarf2/read.h (dwarf_line_debug): Declare.
14393 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
14394 * dwarf2/read.c: Move line_header code to new files.
14395 (dwarf_line_debug): No longer static.
14396 * dwarf2/line-header.c: New file.
14397 * dwarf2/line-header.h: New file.
14399 2020-02-08 Tom Tromey <tom@tromey.com>
14401 * dwarf2/read.c (struct line_header) <file_full_name,
14402 file_file_name>: Return unique_xmalloc_ptr.
14403 (line_header::file_file_name): Update.
14404 (line_header::file_full_name): Update.
14405 (dw2_get_file_names_reader): Update.
14406 (macro_start_file): Update.
14408 2020-02-08 Tom Tromey <tom@tromey.com>
14410 * dwarf2/read.c (struct line_header) <file_full_name,
14411 file_file_name>: Declare methods.
14412 (dw2_get_file_names_reader): Update.
14413 (file_file_name): Now a method.
14414 (file_full_name): Likewise.
14415 (macro_start_file): Update.
14417 2020-02-08 Tom Tromey <tom@tromey.com>
14419 * dwarf2/read.c (dwarf_always_disassemble)
14420 (show_dwarf_always_disassemble): Move to loc.c.
14421 (_initialize_dwarf2_read): Move "always-disassemble" registration
14423 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
14424 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
14426 (show_dwarf_always_disassemble): Move from read.c.
14427 (_initialize_dwarf2loc): Move always-disassemble from read.c.
14429 2020-02-08 Tom Tromey <tom@tromey.com>
14431 * dwarf2/read.c (~dwarf2_per_objfile): Update.
14432 (create_quick_file_names_table): Return htab_up.
14433 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
14435 * dwarf2/read.h (struct dwarf2_per_objfile)
14436 <quick_file_names_table>: Now htab_up.
14438 2020-02-08 Tom Tromey <tom@tromey.com>
14440 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
14442 2020-02-08 Tom Tromey <tom@tromey.com>
14444 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
14446 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
14447 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
14448 (abbrev_table::abbrev_table): No longer inline.
14449 (ABBREV_HASH_SIZE): Remove.
14450 (abbrev_table::m_abbrevs): Now an htab_up.
14452 2020-02-08 Tom Tromey <tom@tromey.com>
14454 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
14455 (cutu_reader): Update.
14456 (build_type_psymtabs_1): Update.
14457 * dwarf2/abbrev.c (abbrev_table::read): Rename.
14458 (abbrev_table::alloc_abbrev): Update.
14459 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
14460 (abbrev_table::read): New static method, renamed from
14461 abbrev_table_read_table.
14462 (abbrev_table::alloc_abbrev)
14463 (abbrev_table::add_abbrev): Now private.
14464 (abbrev_table::abbrev_table): Now private.
14465 (abbrev_table::m_abbrev_obstack): Now private. Rename.
14467 2020-02-08 Tom Tromey <tom@tromey.com>
14469 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
14470 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
14473 2020-02-08 Tom Tromey <tom@tromey.com>
14475 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
14477 (lookup_dwo_unit_in_dwp): Update.
14478 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
14481 2020-02-08 Tom Tromey <tom@tromey.com>
14483 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
14486 2020-02-08 Tom Tromey <tom@tromey.com>
14488 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
14490 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
14491 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
14492 Change type to htab_up.
14494 2020-02-08 Tom Tromey <tom@tromey.com>
14496 * dwarf2/read.c (allocate_type_unit_groups_table): Return
14497 htab_up. Don't allocate on obstack.
14498 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
14499 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
14500 Change type to htab_up.
14502 2020-02-08 Tom Tromey <tom@tromey.com>
14504 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
14505 Change type to htab_up.
14506 * dwarf2/read.c (create_signatured_type_table_from_index)
14507 (create_signatured_type_table_from_debug_names)
14508 (create_all_type_units, add_type_unit)
14509 (lookup_dwo_signatured_type, lookup_signatured_type)
14510 (process_skeletonless_type_unit): Update.
14511 (create_debug_type_hash_table, create_debug_types_hash_table):
14512 Change type of types_htab.
14513 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
14514 htab_up. Don't allocate on obstack.
14515 (create_cus_hash_table): Change type of cus_htab parameter.
14516 (struct dwo_file) <cus, tus>: Now htab_up.
14517 (lookup_dwo_signatured_type, lookup_dwo_cutu)
14518 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
14519 (queue_and_load_all_dwo_tus): Update.
14520 * dwarf2/index-write.c (write_gdbindex): Update.
14521 (write_debug_names): Update.
14523 2020-02-08 Tom Tromey <tom@tromey.com>
14525 * dwarf2/read.h (struct dwarf2_queue_item): Move from
14526 dwarf2/read.c. Remove "next" member. Add constructor ntad
14528 (struct dwarf2_per_objfile) <queue>: New member.
14529 * dwarf2/read.c (struct dwarf2_queue_item): Move to
14531 (dwarf2_queue, dwarf2_queue_tail): Remove.
14532 (class dwarf2_queue_guard): Add parameter to constructor. Use
14533 DISABLE_COPY_AND_ASSIGN.
14534 <m_per_objfile>: New member.
14535 <~dwarf2_queue_guard>: Rewrite.
14536 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
14538 (~dwarf2_queue_item): New.
14540 2020-02-08 Tom Tromey <tom@tromey.com>
14542 * dwarf2/read.c (struct die_info) <has_children>: New member.
14543 (dw2_get_file_names_reader): Remove has_children.
14544 (dw2_get_file_names): Update.
14545 (read_cutu_die_from_dwo): Remove has_children.
14546 (cutu_reader::init_tu_and_read_dwo_dies)
14547 (cutu_reader::cutu_reader): Update.
14548 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
14549 Remove has_children.
14550 (build_type_psymtabs_1, process_skeletonless_type_unit)
14551 (load_partial_comp_unit, load_full_comp_unit): Update.
14552 (create_dwo_cu_reader): Remove has_children.
14553 (create_cus_hash_table, read_die_and_children): Update.
14554 (read_full_die_1,read_full_die): Remove has_children.
14555 (read_signatured_type): Update.
14556 (class cutu_reader) <has_children>: Remove.
14558 2020-02-08 Tom Tromey <tom@tromey.com>
14560 * dwarf2/expr.c: Rename from dwarf2expr.c.
14561 * dwarf2/expr.h: Rename from dwarf2expr.h.
14562 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
14563 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
14564 * dwarf2/frame.c: Rename from dwarf2-frame.c.
14565 * dwarf2/frame.h: Rename from dwarf2-frame.h.
14566 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
14567 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
14568 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
14569 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
14570 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
14571 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
14572 * dwarf2/loc.c: Rename from dwarf2loc.c.
14573 * dwarf2/loc.h: Rename from dwarf2loc.h.
14574 * dwarf2/read.c: Rename from dwarf2read.c.
14575 * dwarf2/read.h: Rename from dwarf2read.h.
14576 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
14577 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
14578 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
14579 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
14580 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
14581 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
14582 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
14583 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
14584 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
14585 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
14586 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
14587 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
14588 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
14590 * Makefile.in (COMMON_SFILES): Update.
14591 (HFILES_NO_SRCDIR): Update.
14593 2020-02-08 Tom Tromey <tom@tromey.com>
14595 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
14596 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
14598 2020-02-08 Tom Tromey <tom@tromey.com>
14600 * dwarf2read.h (struct die_info): Don't declare.
14602 2020-02-08 Tom Tromey <tom@tromey.com>
14604 * dwarf2read.h (die_info_ptr): Remove typedef.
14606 2020-02-08 Tom Tromey <tom@tromey.com>
14608 * dwarf2read.c (read_call_site_scope)
14609 (handle_data_member_location, dwarf2_add_member_fn)
14610 (mark_common_block_symbol_computed, read_common_block)
14611 (attr_to_dynamic_prop, partial_die_info::read)
14612 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
14613 (dwarf2_symbol_mark_computed, set_die_type): Update.
14614 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
14616 (attr_form_is_block): Don't declare.
14617 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
14619 2020-02-08 Tom Tromey <tom@tromey.com>
14621 * dwarf2read.c (dwarf2_find_base_address, )
14622 (read_call_site_scope, rust_containing_type)
14623 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
14624 (handle_data_member_location, dwarf2_add_member_fn)
14625 (get_alignment, read_structure_type, process_structure_scope)
14626 (mark_common_block_symbol_computed, read_common_block)
14627 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
14628 (partial_die_info::read, read_attribute_value, new_symbol)
14629 (lookup_die_type, dwarf2_get_ref_die_offset)
14630 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
14631 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
14632 (dwarf2_symbol_mark_computed): Update.
14633 * dwarf2/attribute.h (struct attribute) <value_as_address,
14634 form_is_section_offset, form_is_constant, form_is_ref>: Declare
14636 (value_as_address, attr_form_is_section_offset)
14637 (attr_form_is_constant, attr_form_is_ref): Don't declare.
14638 * dwarf2/attribute.c (attribute::value_as_address)
14639 (attribute::form_is_section_offset, attribute::form_is_constant)
14640 (attribute::form_is_ref): Now methods.
14642 2020-02-08 Tom Tromey <tom@tromey.com>
14644 * dwarf2read.c (struct attribute, DW_STRING)
14645 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
14646 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
14647 (attr_form_is_block, attr_form_is_section_offset)
14648 (attr_form_is_constant, attr_form_is_ref): Move.
14649 * dwarf2/attribute.h: New file.
14650 * dwarf2/attribute.c: New file, from dwarf2read.c.
14651 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
14653 2020-02-08 Tom Tromey <tom@tromey.com>
14655 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
14656 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
14658 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
14659 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
14660 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
14662 * dwarf2/abbrev.h: New file.
14663 * dwarf2/abbrev.c: New file, from dwarf2read.c.
14664 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
14666 2020-02-08 Tom Tromey <tom@tromey.com>
14668 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
14669 (dwarf2_section_size, dwarf2_get_section_info)
14670 (create_signatured_type_table_from_debug_names)
14671 (create_addrmap_from_aranges, read_debug_names_from_section)
14672 (get_gdb_index_contents_from_section, read_comp_unit_head)
14673 (error_check_comp_unit_head, read_abbrev_offset)
14674 (create_debug_type_hash_table, init_cu_die_reader)
14675 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
14676 (read_comp_units_from_section, create_cus_hash_table)
14677 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
14678 (create_dwp_v2_section, dwarf2_rnglists_process)
14679 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
14680 (abbrev_table_read_table, read_indirect_string_at_offset_from)
14681 (read_indirect_string_from_dwz, read_addr_index_1)
14682 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
14683 (dwarf_decode_macro_bytes, dwarf_decode_macros)
14684 (fill_in_loclist_baton): Update.
14685 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
14686 get_containing_section, get_bfd_owner, get_bfd_section,
14687 get_file_name, get_id, get_flags, empty, read>: Declare methods.
14688 (dwarf2_read_section, get_section_name, get_section_file_name)
14689 (get_containing_section, get_section_bfd_owner)
14690 (get_section_bfd_section, get_section_name, get_section_file_name)
14691 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
14693 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
14694 (dwarf2_section_info::get_bfd_owner)
14695 (dwarf2_section_info::get_bfd_section)
14696 (dwarf2_section_info::get_name)
14697 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
14698 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
14699 (dwarf2_section_info::read): Now methods.
14700 * dwarf-index-write.c (class debug_names): Update.
14702 2020-02-08 Tom Tromey <tom@tromey.com>
14704 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
14705 Move to dwarf2/section.h.
14706 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
14707 (get_section_bfd_section, get_section_name)
14708 (get_section_file_name, get_section_id, get_section_flags)
14709 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
14711 * dwarf2/section.h: New file.
14712 * dwarf2/section.c: New file, from dwarf2read.c.
14713 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
14715 2020-02-08 Tom Tromey <tom@tromey.com>
14717 * dwarf2read.h (read_unsigned_leb128): Don't declare.
14718 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
14719 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
14720 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
14721 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
14722 * dwarf2/leb.h: New file, from dwarf2read.c.
14723 * dwarf2/leb.c: New file, from dwarf2read.c.
14724 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
14726 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
14727 (COMMON_SFILES): Add dwarf2/leb.c.
14729 2020-02-08 Joel Brobecker <brobecker@adacore.com>
14733 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14736 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
14737 * gdb/remote.c (remote_console_output): Update.
14738 * gdb/ui-file.c (fputs_unfiltered): Rename to...
14739 (ui_file_puts): ...this.
14740 * gdb/ui-file.h (ui_file_puts): Add declaration.
14741 * gdb/utils.c (emit_style_escape): Update.
14742 (flush_wrap_buffer): Update.
14743 (fputs_maybe_filtered): Update.
14744 (fputs_unfiltered): Add function.
14746 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14748 * gdb/event-loop.c (gdb_wait_for_event): Update.
14749 * gdb/printcmd.c (printf_command): Update.
14750 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
14751 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
14752 (gdb_os_flush_stderr): Update.
14753 * gdb/remote.c (remote_console_output): Update.
14754 * gdb/ui-file.c (gdb_flush): Rename to...
14755 (ui_file_flush): ...this.
14756 (stderr_file::write): Update.
14757 (stderr_file::puts): Update.
14758 * gdb/ui-file.h (gdb_flush): Rename to...
14759 (ui_file_flush): ...this.
14760 * gdb/utils.c (gdb_flush): Add function.
14761 * gdb/utils.h (gdb_flush): Add declaration.
14763 2020-02-07 Tom Tromey <tromey@adacore.com>
14765 PR breakpoints/24915:
14766 * source.c (find_and_open_source): Do not check basenames_may_differ.
14768 2020-02-07 Tom Tromey <tom@tromey.com>
14770 * README: Update gdbserver documentation.
14771 * gdbserver: Move to top level.
14772 * configure.tgt (build_gdbserver): Remove.
14773 * configure.ac: Remove --enable-gdbserver.
14774 * configure: Rebuild.
14775 * Makefile.in (distclean): Don't mention gdbserver.
14777 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
14779 * source-cache.c (source_cache::ensure): Surround
14780 get_plain_source_lines with a try/catch.
14781 (source_cache::get_line_charpos): Get rid of try/catch
14782 and only check for the return value of "ensure".
14783 * tui/tui-source.c (tui_source_window::set_contents):
14784 Simplify "nlines" calculation.
14786 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
14788 * MAINTAINERS (Write After Approval): Add myself.
14790 2020-02-05 Christian Biesinger <cbiesinger@google.com>
14792 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
14795 2020-02-05 Christian Biesinger <cbiesinger@google.com>
14797 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
14799 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
14801 * nat/riscv-linux-tdesc.h: New file.
14802 * nat/riscv-linux-tdesc.c: New file, taking code from...
14803 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14805 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
14808 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
14810 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
14811 we don't set the fake simulator ptid to the null_ptid.
14813 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
14815 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
14816 * gdbthread.h (class thread_info) <resumed>: Likewise.
14817 * infrun.c (resume_1): Likewise.
14818 (proceed): Likewise.
14819 (infrun_thread_stop_requested): Likewise.
14820 (stop_all_threads): Likewise.
14821 (handle_inferior_event): Likewise.
14822 (restart_threads): Likewise.
14823 (finish_step_over): Likewise.
14824 (keep_going_stepped_thread): Likewise.
14825 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
14826 (linux_handle_extended_wait): Likewise.
14827 * record-btrace.c (get_thread_current_frame_id): Likewise.
14828 * record-full.c (record_full_wait_1): Likewise.
14829 * remote.c (remote_target::process_initial_stop_replies): Likewise.
14830 * target.c (target_resume): Likewise.
14831 * thread.c (set_running_thread): Likewise.
14833 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14835 * f-valprint.c (f77_print_array_1): Changed datatype of index
14836 variable to LONGEST from int to enable it to contain bound
14839 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
14841 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
14842 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
14843 offsets according to FLEN determined.
14844 (riscv_linux_nat_target::read_description): Determine FLEN
14846 (riscv_linux_nat_target::fetch_registers): Size regset buffer
14847 according to FLEN determined.
14848 (riscv_linux_nat_target::store_registers): Likewise.
14850 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
14852 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14853 when reg->group is empty and reggroup is not.
14855 2020-01-31 Tom Tromey <tromey@adacore.com>
14857 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
14858 Call beneath target's mourn_inferior after unpushing.
14860 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
14863 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
14864 have enough lines to fill the screen, still return the lowest
14867 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
14869 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
14870 '-', '<', and '>' commands.
14872 2020-01-29 Pedro Alves <palves@redhat.com>
14873 Sergio Durigan Junior <sergiodj@redhat.com>
14875 * infcmd.c (construct_inferior_arguments): Assert that
14876 'argc' is greater than 0.
14878 2020-01-29 Luis Machado <luis.machado@linaro.org>
14880 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
14881 (BRK_INSN_MASK): Define to 0xd4200000.
14882 (aarch64_program_breakpoint_here_p): New function.
14883 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
14884 * arch-utils.c (default_program_breakpoint_here_p): Moved from
14886 * arch-utils.h (default_program_breakpoint_here_p): Moved from
14888 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
14889 call gdbarch_program_breakpoint_here_p.
14890 (program_breakpoint_here): Moved to arch-utils.c, renamed to
14891 default_program_breakpoint_here_p, changed return type to bool and
14893 * breakpoint.h (program_breakpoint_here): Moved prototype to
14894 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
14895 return type to bool.
14896 * gdbarch.c: Regenerate.
14897 * gdbarch.h: Regenerate.
14898 * gdbarch.sh (program_breakpoint_here_p): New method.
14899 * infrun.c (handle_signal_stop): Call
14900 gdbarch_program_breakpoint_here_p.
14902 2020-01-26 Tom Tromey <tom@tromey.com>
14904 * ctfread.c (struct ctf_fp_info): Reindent.
14905 (_initialize_ctfread): Remove.
14907 2020-01-26 Tom Tromey <tom@tromey.com>
14909 * psymtab.c (partial_map_expand_apply)
14910 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
14911 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
14912 (psym_print_stats, psym_expand_symtabs_for_function)
14913 (psym_map_symbol_filenames, psym_map_matching_symbols)
14914 (psym_expand_symtabs_matching)
14915 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
14916 (maintenance_check_psymtabs): Use new methods.
14917 * psympriv.h (struct partial_symtab) <readin_p,
14918 get_compunit_symtab>: New methods.
14919 <readin, compunit_symtab>: Remove members.
14920 (struct standard_psymtab): New.
14921 (struct legacy_psymtab): Derive from standard_psymtab.
14922 * dwarf2read.h (struct dwarf2_psymtab): Derive from
14924 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
14926 2020-01-26 Tom Tromey <tom@tromey.com>
14928 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
14929 read_dependencies. Add assert.
14930 * psymtab.c (partial_symtab::read_dependencies): New method.
14931 * psympriv.h (struct partial_symtab) <read_dependencies>: New
14933 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
14934 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
14936 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
14939 2020-01-26 Tom Tromey <tom@tromey.com>
14941 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
14942 Call expand_psymtab.
14943 (xcoff_read_symtab): Call expand_psymtab.
14944 (xcoff_start_psymtab, xcoff_end_psymtab): Set
14945 legacy_expand_psymtab.
14946 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
14948 (struct legacy_psymtab) <expand_psymtab>: Implement.
14949 <legacy_expand_psymtab>: New member.
14950 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
14951 (parse_partial_symbols): Set legacy_expand_psymtab.
14952 (psymtab_to_symtab_1): Change argument order. Call
14954 (new_psymtab): Set legacy_expand_psymtab.
14955 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
14956 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
14958 (dwarf2_psymtab::expand_psymtab): Rename from
14959 psymtab_to_symtab_1. Call expand_psymtab.
14960 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
14961 (dbx_end_psymtab): Likewise.
14962 (dbx_psymtab_to_symtab_1): Change argument order. Call
14964 (dbx_read_symtab): Call expand_psymtab.
14965 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
14966 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
14967 (ctf_psymtab::read_symtab): Call expand_psymtab.
14969 2020-01-26 Tom Tromey <tom@tromey.com>
14971 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
14972 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
14974 * mdebugread.c (mdebug_read_symtab): Remove prints.
14975 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
14977 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
14979 2020-01-26 Tom Tromey <tom@tromey.com>
14981 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
14982 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
14983 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
14985 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
14986 * psymtab.c (psymtab_to_symtab): Call method.
14987 (dump_psymtab): Update.
14988 * psympriv.h (struct partial_symtab): Add virtual destructor.
14989 <read_symtab>: New method.
14990 (struct legacy_symtab): New.
14991 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
14992 (struct pst_map) <pst>: Now a legacy_psymtab.
14993 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
14994 (new_psymtab): Use legacy_psymtab.
14995 * dwarf2read.h (struct dwarf2_psymtab): New.
14996 (struct dwarf2_per_cu_data) <psymtab>: Use it.
14997 * dwarf2read.c (dwarf2_create_include_psymtab)
14998 (dwarf2_build_include_psymtabs, create_type_unit_group)
14999 (create_partial_symtab, process_psymtab_comp_unit_reader)
15000 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
15001 (set_partial_user): Use dwarf2_psymtab.
15002 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
15003 (psymtab_to_symtab_1, process_full_comp_unit)
15004 (process_full_type_unit, dwarf2_ranges_read)
15005 (dwarf2_get_pc_bounds, psymtab_include_file_name)
15006 (dwarf_decode_lines): Use dwarf2_psymtab.
15007 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
15008 (add_address_entry_worker, write_one_signatured_type)
15009 (recursively_count_psymbols, recursively_write_psymbols)
15010 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
15011 (write_debug_names): Likewise.
15012 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
15013 <pst>: Now a legacy_psymtab.
15014 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
15015 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
15016 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
15017 * ctfread.c (struct ctf_psymtab): New.
15018 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
15020 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
15021 (create_partial_symtab): Return a ctf_psymtab.
15022 (scan_partial_symbols): Update.
15024 2020-01-26 Tom Tromey <tom@tromey.com>
15026 * xcoffread.c (xcoff_start_psymtab): Use new.
15027 * psymtab.c (partial_symtab::partial_symtab): New constructor,
15028 renamed from start_psymtab_common.
15029 * psympriv.h (struct partial_symtab): Add new constructor.
15030 (start_psymtab_common): Don't declare.
15031 * mdebugread.c (parse_partial_symbols): Use new.
15032 * dwarf2read.c (create_partial_symtab): Use new.
15033 * dbxread.c (start_psymtab): Use new.
15034 * ctfread.c (create_partial_symtab): Use new.
15036 2020-01-26 Tom Tromey <tom@tromey.com>
15038 * xcoffread.c (xcoff_end_psymtab): Use new.
15039 * psymtab.c (start_psymtab_common): Use new.
15040 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
15042 * psympriv.h (struct partial_symtab): Add parameters to
15043 constructor. Don't inline.
15044 (allocate_psymtab): Don't declare.
15045 * mdebugread.c (new_psymtab): Use new.
15046 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
15047 * dbxread.c (dbx_end_psymtab): Use new.
15049 2020-01-26 Tom Tromey <tom@tromey.com>
15051 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
15052 allocate_psymtab. Update documentation.
15053 * psymtab.c (psymtab_storage::install_psymtab): Rename from
15054 allocate_psymtab. Do not use new.
15055 (allocate_psymtab): Use new. Update.
15057 2020-01-26 Tom Tromey <tom@tromey.com>
15059 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
15060 * psymtab.c (psym_print_stats): Update.
15061 * psympriv.h (struct partial_symtab) <readin,
15062 psymtabs_addrmap_supported, anonymous>: Now bool.
15063 * mdebugread.c (psymtab_to_symtab_1): Update.
15064 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
15065 (build_type_psymtabs_reader, psymtab_to_symtab_1)
15066 (process_full_comp_unit, process_full_type_unit): Update.
15067 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
15068 * ctfread.c (psymtab_to_symtab): Update.
15070 2020-01-26 Tom Tromey <tom@tromey.com>
15072 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
15073 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
15074 * psymtab.c (psymtab_storage): Delete psymtabs.
15075 (psymtab_storage::allocate_psymtab): Use new.
15076 (psymtab_storage::discard_psymtab): Use delete.
15077 * psympriv.h (struct partial_symtab): Add constructor and
15080 2020-01-26 Tom Tromey <tom@tromey.com>
15082 * machoread.c: Do not include psympriv.h.
15084 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15086 * NEWS: Mention the new option and the set/show commands.
15088 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15090 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
15091 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
15092 (validate_exec_file): New variables, enums, functions.
15093 (exec_file_locate_attach, print_section_info): Style the filenames.
15094 (_initialize_exec): Install show_exec_file_mismatch_command and
15095 set_exec_file_mismatch_command.
15096 * gdbcore.h (validate_exec_file): Declare.
15097 * infcmd.c (attach_command): Call validate_exec_file.
15098 * remote.c ( remote_target::remote_add_inferior): Likewise.
15100 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15102 * frame.c (find_frame_sal): Move call to get_next_frame into more
15104 * inline-frame.c (inilne_state) <inline_state>: Update argument
15106 (inilne_state) <skipped_symbol>: Rename to...
15107 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
15108 (skip_inline_frames): Build vector of skipped symbols and use this
15109 to reate the inline_state.
15110 (inline_skipped_symbol): Add a comment and some assertions, fetch
15111 skipped symbol from the list.
15113 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15115 * buildsym.c (lte_is_less_than): Delete.
15116 (buildsym_compunit::end_symtab_with_blockvector): Create local
15117 lambda function to sort line table entries, and use
15118 std::stable_sort instead of std::sort.
15119 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
15120 markers when looking for a previous line.
15122 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15124 * dwarf2read.c (lnp_state_machine::record_line): Include
15125 end_sequence parameter in debug print out. Record the line if we
15126 are at an end_sequence marker even if it's not the start of a
15128 * symmisc.c (maintenance_print_one_line_table): Print end of
15129 sequence markers with 'END' not '0'.
15131 2020-01-24 Pedro Alves <palves@redhat.com>
15134 * thread.c (scoped_restore_current_thread::restore): Use
15135 switch_to_inferior_no_thread.
15136 * exec.c: Include "progspace-and-thread.h".
15137 (add_target_sections, remove_target_sections):
15138 scoped_restore_current_pspace_and_thread instead of
15139 scoped_restore_current_thread.
15140 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
15141 and aspace to the inferior before calling clone_program_space.
15142 Remove stale comment.
15144 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15146 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
15147 (arm_netbsd_nat_target::fetch_registers): ...this.
15148 (arm_nbsd_nat_target::store_registers): Rename to...
15149 (arm_netbsd_nat_target::store_registers): ...this.
15151 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15153 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
15156 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15158 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
15160 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
15162 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
15163 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
15164 the correct replacement (iterate_over_regset_sections).
15165 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
15168 2020-01-24 Graham Markall <graham.markall@embecosm.com>
15171 * gdb/python/python.c (execute_gdb_command): Call
15172 async_enable_stdin in catch block.
15174 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15176 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
15177 SWITCH_THRU_ALL_UIS.
15179 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15182 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
15183 comment, add extra parameter, and update to store previous symbol
15185 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
15186 add extra parameter.
15187 * tui/tui-disasm.c (tui_disassemble): Update header comment,
15188 remove unneeded parameter, add try/catch around gdb_print_insn,
15189 rewrite to add items to asm_lines vector.
15190 (tui_find_backward_disassembly_start_address): New function.
15191 (tui_find_disassembly_address): Updated throughout.
15192 (tui_disasm_window::set_contents): Update for changes to
15194 (tui_disasm_window::do_scroll_vertical): No need to adjust the
15195 number of lines to scroll.
15197 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
15199 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
15200 (SECT_OFF_DATA): Likewise.
15201 (SECT_OFF_RODATA): Likewise.
15202 (SECT_OFF_TEXT): Likewise.
15203 (SECT_OFF_BSS): Likewise.
15204 (struct objfile) <text_section_offset, data_section_offset>: New
15206 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
15207 objfile::text_section_offset.
15208 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
15209 * coffread.c (coff_symtab_read): Likewise.
15210 (enter_linenos): Likewise.
15211 (process_coff_symbol): Likewise.
15212 * ctfread.c (get_objfile_text_range): Likewise.
15213 * dtrace-probe.c (dtrace_probe::get_relocated_address):
15214 Use objfile::data_section_offset.
15215 * dwarf2-frame.c (execute_cfa_program): Use
15216 objfile::text_section_offset.
15217 (dwarf2_frame_find_fde): Likewise.
15218 * dwarf2read.c (create_addrmap_from_index): Likewise.
15219 (create_addrmap_from_aranges): Likewise.
15220 (dw2_find_pc_sect_compunit_symtab): Likewise.
15221 (process_psymtab_comp_unit_reader): Likewise.
15222 (add_partial_symbol): Likewise.
15223 (add_partial_subprogram): Likewise.
15224 (process_full_comp_unit): Likewise.
15225 (read_file_scope): Likewise.
15226 (read_func_scope): Likewise.
15227 (read_lexical_block_scope): Likewise.
15228 (read_call_site_scope): Likewise.
15229 (dwarf2_rnglists_process): Likewise.
15230 (dwarf2_ranges_process): Likewise.
15231 (dwarf2_ranges_read): Likewise.
15232 (dwarf_decode_lines_1): Likewise.
15233 (new_symbol): Likewise.
15234 (dwarf2_fetch_die_loc_sect_off): Likewise.
15235 (dwarf2_per_cu_text_offset): Likewise.
15236 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
15237 * hppa-tdep.c (read_unwind_info): Likewise.
15238 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
15239 * psympriv.h (struct partial_symtab): Likewise.
15240 * psymtab.c (find_pc_sect_psymtab): Likewise.
15241 * solib-svr4.c (enable_break): Likewise.
15242 * stap-probe.c (relocate_address): Use
15243 objfile::data_section_offset.
15244 * xcoffread.c (enter_line_range): Use
15245 objfile::text_section_offset.
15246 (read_xcoff_symtab): Likewise.
15248 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
15250 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
15251 declaration to narrower scopes.
15253 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
15255 * darwin-nat.h (struct darwin_exception_msg, enum
15256 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
15258 (class darwin_nat_target) <wait_1, check_new_threads,
15259 decode_exception_message, decode_message, stop_inferior,
15260 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
15261 * darwin-nat.c (darwin_check_new_threads): Rename to...
15262 (darwin_nat_target::check_new_threads): ... this.
15263 (darwin_suspend_inferior_it): Remove.
15264 (darwin_decode_exception_message): Rename to...
15265 (darwin_nat_target::decode_exception_message): ... this.
15266 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
15267 (darwin_decode_message): Rename to...
15268 (darwin_nat_target::decode_message): ... this.
15269 (cancel_breakpoint): Rename to...
15270 (darwin_nat_target::cancel_breakpoint): ... this.
15271 (darwin_wait): Rename to...
15272 (darwin_nat_target::wait_1): ... this. Use range-based for loop
15273 instead of iterate_over_inferiors.
15274 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
15275 (darwin_stop_inferior): Rename to...
15276 (darwin_nat_target::stop_inferior): ... this.
15277 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
15278 (darwin_init_thread_list): Rename to...
15279 (darwin_nat_target::init_thread_list): ... this.
15280 (darwin_ptrace_him): Rename to...
15281 (darwin_nat_target::ptrace_him): ... this.
15282 (darwin_nat_target::create_inferior): Pass lambda function to
15284 (darwin_nat_target::detach): Call stop_inferior instead of
15285 darwin_stop_inferior.
15286 * fork-inferior.h (fork_inferior): Change init_trace_fun
15287 parameter to gdb::function_view.
15288 * fork-inferior.c (fork_inferior): Likewise.
15290 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
15292 * i386-cygwin-tdep.c (core_process_module_section): Update.
15293 * windows-nat.c (struct lm_info_windows): Add text_offset.
15294 (windows_xfer_shared_libraries): Update.
15295 * windows-tdep.c (windows_xfer_shared_library):
15296 Add text_offset_cached argument.
15297 * windows-tdep.h (windows_xfer_shared_library): Update.
15299 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15301 * gdbarch.sh: Add declaration for _initialize_gdbarch.
15303 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15305 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
15306 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
15307 replace with range-based for.
15308 (gdbsim_interrupt_inferior): Remove.
15309 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
15310 with a range-based for. Inline code from
15311 gdbsim_interrupt_inferior.
15313 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15315 * infrun.c (proceed): Fix indentation.
15317 2020-01-21 Tom Tromey <tromey@adacore.com>
15319 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
15320 * python/python.c (python_extension_ops): Update.
15321 (gdbpy_colorize): New function.
15322 * python/lib/gdb/__init__.py (colorize): New function.
15323 * extension.h (ext_lang_colorize): Declare.
15324 * extension.c (ext_lang_colorize): New function.
15325 * extension-priv.h (struct extension_language_ops) <colorize>: New
15327 * cli/cli-style.c (_initialize_cli_style): Update help text.
15329 2020-01-21 Luis Machado <luis.machado@linaro.org>
15331 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
15332 <cond>: Change type to bool.
15333 (aarch64_displaced_step_b_cond): Update cond to use bool type.
15334 (aarch64_displaced_step_cb): Likewise.
15335 (aarch64_displaced_step_tb): Likewise.
15337 2020-01-21 Luis Machado <luis.machado@linaro.org>
15339 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
15342 2020-01-21 Luis Machado <luis.machado@linaro.org>
15344 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
15345 <pc_adjust>: Adjust the documentation.
15346 (aarch64_displaced_step_fixup): Check if PC really moved before
15349 2020-01-19 Tom Tromey <tom@tromey.com>
15351 * disasm.c (~gdb_disassembler): New destructor.
15352 (gdb_buffered_insn_length): Call disassemble_free_target.
15353 * disasm.h (class gdb_disassembler): Declare destructor. Use
15354 DISABLE_COPY_AND_ASSIGN.
15356 2020-01-19 Tom Tromey <tom@tromey.com>
15358 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
15359 (die_reader_func_ftype): Remove.
15360 (cutu_reader): New class.
15361 (dw2_get_file_names_reader): Remove "data" parameter.
15362 (dw2_get_file_names): Use cutu_reader.
15363 (create_debug_type_hash_table): Update.
15364 (read_cutu_die_from_dwo): Update comment.
15365 (lookup_dwo_unit): Add dwo_name parameter.
15366 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
15367 die_reader_func_ftype and data parameters.
15368 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
15369 Remove die_reader_func_ftype and data parameters.
15370 (~cutu_reader): New; from init_cutu_and_read_dies.
15371 (cutu_reader::cutu_reader): Rename from
15372 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
15373 and data parameters.
15374 (init_cutu_and_read_dies_simple): Remove.
15375 (struct process_psymtab_comp_unit_data): Remove.
15376 (process_psymtab_comp_unit_reader): Remove data parameter; add
15377 want_partial_unit and pretend_language parameters.
15378 (process_psymtab_comp_unit): Use cutu_reader.
15379 (build_type_psymtabs_reader): Remove data parameter.
15380 (build_type_psymtabs_1): Use cutu_reader.
15381 (process_skeletonless_type_unit): Likewise.
15382 (load_partial_comp_unit_reader): Remove.
15383 (load_partial_comp_unit): Use cutu_reader.
15384 (load_full_comp_unit_reader): Remove.
15385 (load_full_comp_unit): Use cutu_reader.
15386 (struct create_dwo_cu_data): Remove.
15387 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
15388 dwo_unit parameters.
15389 (create_cus_hash_table): Use cutu_reader.
15390 (struct dwarf2_read_addr_index_data): Remove.
15391 (dwarf2_read_addr_index_reader): Remove.
15392 (dwarf2_read_addr_index): Use cutu_reader.
15393 (read_signatured_type_reader): Remove.
15394 (read_signatured_type): Use cutu_reader.
15396 2020-01-19 Tom Tromey <tom@tromey.com>
15398 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
15399 * tui/tui-wingeneral.h (class tui_suppress_output): New.
15400 (tui_wrefresh): Declare.
15401 * tui/tui-wingeneral.c (suppress_output): New global.
15402 (tui_suppress_output, ~tui_suppress_output): New constructor and
15404 (tui_wrefresh): New function.
15405 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
15406 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
15407 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
15409 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
15411 (tui_data_window::no_refresh): New method.
15412 (tui_data_item_window::refresh_window): Call tui_wrefresh.
15413 (tui_reg_command): Use tui_suppress_output
15414 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
15415 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
15417 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
15419 2020-01-19 Tom Tromey <tom@tromey.com>
15421 * tui/tui-winsource.c (tui_update_source_windows_with_line):
15422 Handle case where symtab is null.
15424 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
15426 * linux-fork.c (one_fork_p): Simplify.
15428 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15430 * top.c (struct qt_args): Remove.
15431 (kill_or_detach): Change return type to void, replace `void *`
15432 parameter with a proper one.
15433 (print_inferior_quit_action): Likewise.
15434 (quit_confirm): Use range-based for loop to iterate over inferiors.
15435 (quit_force): Likewise.
15437 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15439 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
15440 `void *` parameter with proper parameters.
15441 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
15442 (print_one_inferior): Change return type to void, replace `void *`
15443 parameter with proper parameters.
15444 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
15446 (get_other_inferior): Remove.
15447 (mi_cmd_remove_inferior): Use range-based loop to iterate over
15450 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15452 * mi/mi-interp.c (report_initial_inferior): Remove.
15453 (mi_interp::init): Use range-based for to iterate over inferiors.
15455 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15457 * python/py-inferior.c (build_inferior_list): Remove.
15458 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
15460 2020-01-16 Christian Biesinger <cbiesinger@google.com>
15462 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
15463 (btrace_stitch_trace): Likewise.
15464 * charset.c (intermediate_encoding): Likewise (vaild).
15465 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
15466 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
15467 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
15469 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
15471 * windows-tdep.c (windows_get_tlb_type):
15472 Add rtl_user_process_parameters type.
15474 2020-01-16 Pedro Alves <palves@redhat.com>
15475 Norbert Lange <nolange79@gmail.com>
15478 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
15479 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
15480 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
15481 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
15482 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
15483 (ps_plog): Redeclare exported functions with default visibility.
15485 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
15487 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
15488 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
15490 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
15492 * infcmd.c (post_create_inferior): Use get_thread_regcache
15493 instead of get_current_regcache.
15495 2020-01-14 Tom Tromey <tom@tromey.com>
15498 * python/python.c (gdbpy_decode_line): Treat empty string the same
15501 2020-01-14 Tom Tromey <tom@tromey.com>
15503 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
15505 2020-01-14 Tom Tromey <tom@tromey.com>
15507 * nat/linux-btrace.c: Don't include <config.h>.
15508 * nat/linux-ptrace.c: Don't include <config.h>.
15509 * nat/x86-linux-dregs.c: Don't include <config.h>.
15511 2020-01-14 Tom Tromey <tom@tromey.com>
15513 * configure: Rebuild.
15514 * configure.ac: Move many checks to ../gdbsupport/common.m4.
15516 2020-01-14 Tom Tromey <tom@tromey.com>
15518 * nat/x86-linux-dregs.c: Include configh.h.
15519 * nat/linux-ptrace.c: Include configh.h.
15520 * nat/linux-btrace.c: Include configh.h.
15521 * defs.h: Include config.h, bfd.h.
15522 * configure.ac: Don't source common.host.
15523 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
15524 * configure: Rebuild.
15525 * acinclude.m4: Update path.
15526 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
15527 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
15528 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
15529 (CLIBS): Add LIBSUPPORT.
15531 (COMMON_SFILES): Remove gdbsupport files.
15532 (HFILES_NO_SRCDIR): Likewise.
15533 (stamp-version): Update path to create-version.sh.
15534 (ALLDEPFILES): Remove gdbsupport files.
15536 2020-01-14 Tom Tromey <tom@tromey.com>
15538 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
15539 USE_WIN32API when needed.
15540 * configure.ac (USE_WIN32API): Don't define.
15541 (WIN32LIBS): Use WIN32APILIBS.
15542 * configure: Rebuild.
15544 2020-01-14 Tom Tromey <tom@tromey.com>
15546 * configure: Rebuild.
15547 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
15549 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
15551 * skip.c (skip_function_command): Make skip w/o arguments use the
15552 name of the inlined function if pc is inside any inlined function.
15554 2020-01-14 Luis Machado <luis.machado@linaro.org>
15556 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
15557 * infrun.c (resume_1): Likewise.
15558 (handle_inferior_event): Remove stale comment.
15559 * linux-nat.c (linux_nat_target::resume): Update comments.
15560 (save_stop_reason): Likewise.
15561 (linux_nat_filter_event): Likewise.
15562 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
15564 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15566 * elfread.c (record_minimal_symbol): Set section index to 0 for
15567 non-allocatable sections.
15570 2020-01-13 Ali Tamur <tamur@google.com>
15572 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
15573 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
15574 to gdb::optional. Update comments.
15575 (dwo_file): Update comments.
15576 (read_attribute): Update API to take an additional out parameter,
15577 need_reprocess. This is used to mark attributes that need other
15578 attributes (e.g. str_offsets_base) for correct computation which may not
15579 have been read yet.
15580 (read_attribute_reprocess): New function declaration.
15581 (read_addr_index): Likewise.
15582 (read_dwo_str_index): Likewise.
15583 (read_stub_str_index): Likewise.
15584 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
15585 (lookup_addr_base): New function definition.
15586 (lookup_ranges_base): Likewise.
15587 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
15588 lookup_ranges_base.
15589 (init_cutu_and_read_dies): Update comments.
15590 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
15591 unit. This is used to inherit parent's str_offsets_base and addr_base.
15593 (init_cutu_and_read_dies_simple): Reflect API changes.
15594 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
15595 (create_cus_hash_table): Change API to take parent compile unit.
15596 Reflect API changes.
15597 (open_and_init_dwo_file): Reflect API changes.
15598 (dwarf2_get_pc_bounds): Update comments.
15599 (dwarf2_record_block_ranges): Likewise.
15600 (read_full_die_1): Change implementation to reprocess attributes that
15601 need str_offsets_base and addr_base.
15602 (partial_die_info::read): Likewise.
15603 (read_attribute_reprocess): New function definition.
15604 (read_attribute_value): Change API to take an additional out parameter,
15605 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
15606 when a non-dwo compile unit has index based attributes.
15607 (read_attribute): Reflect API changes.
15608 (read_addr_index_1): Reflect API changes. Update comments.
15609 (dwarf2_read_addr_index_data): Reflect API changes.
15610 (dwarf2_read_addr_index): Likewise.
15611 (read_str_index): Change API and implementation. This becomes a helper
15612 to be used by the new string index related methods. Update error
15613 message and comments.
15614 (read_dwo_str_index): New function definition.
15615 (read_stub_str_index): Likewise.
15616 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
15617 * symfile.h (dwarf2_debug_sections): Likewise.
15618 * xcoffread.c (dwarf2_debug_sections): Likewise.
15620 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15622 * gdbcore.h (struct core_fns) <core_read_registers>: Change
15623 core_reg_sect type to gdb_byte *.
15624 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
15625 * cris-tdep.c (fetch_core_registers): Likewise.
15626 * corelow.c (core_target::get_core_register_section): Change
15627 type of `contents` to gdb::byte_vector.
15629 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15631 * tui/tui-wingeneral.c (box_win): Position the title in the center
15634 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15636 * corelow.c (core_target::get_core_register_section): Use
15637 std::vector instead of alloca.
15639 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15641 * warning.m4: Add -Wmissing-declarations to build_warnings.
15642 * configure: Re-generate.
15644 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15646 * python/python.c (init__gdb_module): Add declaration.
15648 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15650 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
15651 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
15652 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
15653 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
15654 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
15655 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
15656 * ada-exp.y (_initialize_ada_exp): Add declaration.
15657 * ada-lang.c (_initialize_ada_language): Add declaration.
15658 * ada-tasks.c (_initialize_tasks): Add declaration.
15659 * agent.c (_initialize_agent): Add declaration.
15660 * aix-thread.c (_initialize_aix_thread): Add declaration.
15661 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
15662 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
15663 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
15664 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
15665 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
15666 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
15667 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
15668 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
15669 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
15670 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
15671 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
15672 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
15673 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
15674 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
15675 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
15676 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
15677 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
15678 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
15679 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
15680 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
15681 * annotate.c (_initialize_annotate): Add declaration.
15682 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
15683 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
15684 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
15685 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
15686 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
15687 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
15688 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
15689 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
15690 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
15691 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
15692 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
15693 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
15694 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
15695 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
15696 * auto-load.c (_initialize_auto_load): Add declaration.
15697 * auxv.c (_initialize_auxv): Add declaration.
15698 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
15699 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
15700 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
15701 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
15702 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
15703 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
15704 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
15705 * breakpoint.c (_initialize_breakpoint): Add declaration.
15706 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
15707 * btrace.c (_initialize_btrace): Add declaration.
15708 * charset.c (_initialize_charset): Add declaration.
15709 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
15710 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
15711 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
15712 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
15713 * cli/cli-script.c (_initialize_cli_script): Add declaration.
15714 * cli/cli-style.c (_initialize_cli_style): Add declaration.
15715 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
15716 * coffread.c (_initialize_coffread): Add declaration.
15717 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
15718 * compile/compile.c (_initialize_compile): Add declaration.
15719 * complaints.c (_initialize_complaints): Add declaration.
15720 * completer.c (_initialize_completer): Add declaration.
15721 * copying.c (_initialize_copying): Add declaration.
15722 * corefile.c (_initialize_core): Add declaration.
15723 * corelow.c (_initialize_corelow): Add declaration.
15724 * cp-abi.c (_initialize_cp_abi): Add declaration.
15725 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
15726 * cp-support.c (_initialize_cp_support): Add declaration.
15727 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
15728 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
15729 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
15730 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
15731 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
15732 * ctfread.c (_initialize_ctfread): Add declaration.
15733 * d-lang.c (_initialize_d_language): Add declaration.
15734 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
15735 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
15736 * dbxread.c (_initialize_dbxread): Add declaration.
15737 * dcache.c (_initialize_dcache): Add declaration.
15738 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
15739 * disasm.c (_initialize_disasm): Add declaration.
15740 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
15741 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
15742 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
15743 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
15744 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
15745 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
15746 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
15747 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
15748 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
15749 * elfread.c (_initialize_elfread): Add declaration.
15750 * exec.c (_initialize_exec): Add declaration.
15751 * extension.c (_initialize_extension): Add declaration.
15752 * f-lang.c (_initialize_f_language): Add declaration.
15753 * f-valprint.c (_initialize_f_valprint): Add declaration.
15754 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
15755 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
15756 * filesystem.c (_initialize_filesystem): Add declaration.
15757 * findcmd.c (_initialize_mem_search): Add declaration.
15758 * findvar.c (_initialize_findvar): Add declaration.
15759 * fork-child.c (_initialize_fork_child): Add declaration.
15760 * frame-base.c (_initialize_frame_base): Add declaration.
15761 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
15762 * frame.c (_initialize_frame): Add declaration.
15763 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
15764 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
15765 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
15766 * gcore.c (_initialize_gcore): Add declaration.
15767 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
15768 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
15769 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
15770 * gdbarch.c (_initialize_gdbarch): Add declaration.
15771 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
15772 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
15773 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
15774 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
15775 * go-lang.c (_initialize_go_language): Add declaration.
15776 * go32-nat.c (_initialize_go32_nat): Add declaration.
15777 * guile/guile.c (_initialize_guile): Add declaration.
15778 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
15779 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
15780 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
15781 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
15782 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
15783 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
15784 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
15785 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
15786 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
15787 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
15788 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
15789 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
15790 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
15791 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
15792 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
15793 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
15794 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
15795 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
15796 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
15797 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
15798 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
15799 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
15800 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
15801 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
15802 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
15803 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
15804 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
15805 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
15806 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
15807 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
15808 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
15809 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
15810 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
15811 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
15812 * infcall.c (_initialize_infcall): Add declaration.
15813 * infcmd.c (_initialize_infcmd): Add declaration.
15814 * inflow.c (_initialize_inflow): Add declaration.
15815 * infrun.c (_initialize_infrun): Add declaration.
15816 * interps.c (_initialize_interpreter): Add declaration.
15817 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
15818 * jit.c (_initialize_jit): Add declaration.
15819 * language.c (_initialize_language): Add declaration.
15820 * linux-fork.c (_initialize_linux_fork): Add declaration.
15821 * linux-nat.c (_initialize_linux_nat): Add declaration.
15822 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
15823 * linux-thread-db.c (_initialize_thread_db): Add declaration.
15824 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
15825 * m2-lang.c (_initialize_m2_language): Add declaration.
15826 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
15827 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
15828 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
15829 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
15830 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
15831 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
15832 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
15833 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
15834 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
15835 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
15836 * machoread.c (_initialize_machoread): Add declaration.
15837 * macrocmd.c (_initialize_macrocmd): Add declaration.
15838 * macroscope.c (_initialize_macroscope): Add declaration.
15839 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
15840 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
15841 * maint.c (_initialize_maint_cmds): Add declaration.
15842 * mdebugread.c (_initialize_mdebugread): Add declaration.
15843 * memattr.c (_initialize_mem): Add declaration.
15844 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
15845 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
15846 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
15847 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
15848 * mi/mi-main.c (_initialize_mi_main): Add declaration.
15849 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
15850 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
15851 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
15852 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
15853 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
15854 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
15855 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
15856 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
15857 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
15858 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
15859 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
15860 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
15861 * mipsread.c (_initialize_mipsread): Add declaration.
15862 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
15863 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
15864 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
15865 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
15866 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
15867 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
15868 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
15869 * nto-procfs.c (_initialize_procfs): Add declaration.
15870 * objc-lang.c (_initialize_objc_language): Add declaration.
15871 * observable.c (_initialize_observer): Add declaration.
15872 * opencl-lang.c (_initialize_opencl_language): Add declaration.
15873 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
15874 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
15875 * osabi.c (_initialize_gdb_osabi): Add declaration.
15876 * osdata.c (_initialize_osdata): Add declaration.
15877 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
15878 * parse.c (_initialize_parse): Add declaration.
15879 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
15880 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
15881 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
15882 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
15883 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
15884 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
15885 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
15886 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
15887 * printcmd.c (_initialize_printcmd): Add declaration.
15888 * probe.c (_initialize_probe): Add declaration.
15889 * proc-api.c (_initialize_proc_api): Add declaration.
15890 * proc-events.c (_initialize_proc_events): Add declaration.
15891 * proc-service.c (_initialize_proc_service): Add declaration.
15892 * procfs.c (_initialize_procfs): Add declaration.
15893 * producer.c (_initialize_producer): Add declaration.
15894 * psymtab.c (_initialize_psymtab): Add declaration.
15895 * python/python.c (_initialize_python): Add declaration.
15896 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
15897 * record-btrace.c (_initialize_record_btrace): Add declaration.
15898 * record-full.c (_initialize_record_full): Add declaration.
15899 * record.c (_initialize_record): Add declaration.
15900 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
15901 * regcache.c (_initialize_regcache): Add declaration.
15902 * reggroups.c (_initialize_reggroup): Add declaration.
15903 * remote-notif.c (_initialize_notif): Add declaration.
15904 * remote-sim.c (_initialize_remote_sim): Add declaration.
15905 * remote.c (_initialize_remote): Add declaration.
15906 * reverse.c (_initialize_reverse): Add declaration.
15907 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
15908 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
15909 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
15910 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
15911 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
15912 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
15913 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
15914 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
15916 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
15917 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
15918 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
15919 * rust-exp.y (_initialize_rust_exp): Add declaration.
15920 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
15921 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
15922 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
15923 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
15924 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
15925 * score-tdep.c (_initialize_score_tdep): Add declaration.
15926 * ser-go32.c (_initialize_ser_dos): Add declaration.
15927 * ser-mingw.c (_initialize_ser_windows): Add declaration.
15928 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
15929 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
15930 * ser-uds.c (_initialize_ser_socket): Add declaration.
15931 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
15932 * serial.c (_initialize_serial): Add declaration.
15933 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
15934 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
15935 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
15936 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
15937 * skip.c (_initialize_step_skip): Add declaration.
15938 * sol-thread.c (_initialize_sol_thread): Add declaration.
15939 * solib-aix.c (_initialize_solib_aix): Add declaration.
15940 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
15941 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
15942 * solib-frv.c (_initialize_frv_solib): Add declaration.
15943 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
15944 * solib-target.c (_initialize_solib_target): Add declaration.
15945 * solib.c (_initialize_solib): Add declaration.
15946 * source-cache.c (_initialize_source_cache): Add declaration.
15947 * source.c (_initialize_source): Add declaration.
15948 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
15949 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
15950 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
15951 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
15952 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
15953 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
15954 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
15955 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
15956 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
15957 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
15958 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
15959 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
15960 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
15961 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
15962 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
15963 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
15964 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
15965 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
15966 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
15967 * stabsread.c (_initialize_stabsread): Add declaration.
15968 * stack.c (_initialize_stack): Add declaration.
15969 * stap-probe.c (_initialize_stap_probe): Add declaration.
15970 * std-regs.c (_initialize_frame_reg): Add declaration.
15971 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
15972 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
15973 * symfile.c (_initialize_symfile): Add declaration.
15974 * symmisc.c (_initialize_symmisc): Add declaration.
15975 * symtab.c (_initialize_symtab): Add declaration.
15976 * target.c (_initialize_target): Add declaration.
15977 * target-connection.c (_initialize_target_connection): Add
15979 * target-dcache.c (_initialize_target_dcache): Add declaration.
15980 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
15981 * thread.c (_initialize_thread): Add declaration.
15982 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
15983 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
15984 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
15985 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
15986 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
15987 * tracectf.c (_initialize_ctf): Add declaration.
15988 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
15989 * tracefile.c (_initialize_tracefile): Add declaration.
15990 * tracepoint.c (_initialize_tracepoint): Add declaration.
15991 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
15992 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
15993 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
15994 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
15995 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
15996 * tui/tui-win.c (_initialize_tui_win): Add declaration.
15997 * tui/tui.c (_initialize_tui): Add declaration.
15998 * typeprint.c (_initialize_typeprint): Add declaration.
15999 * ui-style.c (_initialize_ui_style): Add declaration.
16000 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
16001 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
16002 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
16003 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
16004 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
16005 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
16006 * unittests/filtered_iterator-selftests.c
16007 (_initialize_filtered_iterator_selftests): Add declaration.
16008 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
16009 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
16010 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
16011 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
16012 * unittests/main-thread-selftests.c
16013 (_initialize_main_thread_selftests): Add declaration.
16014 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
16015 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
16016 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
16017 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
16018 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
16019 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
16020 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
16021 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
16022 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
16023 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
16024 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
16025 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
16026 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
16027 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
16028 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
16030 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
16031 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
16032 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
16033 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
16034 * user-regs.c (_initialize_user_regs): Add declaration.
16035 * utils.c (_initialize_utils): Add declaration.
16036 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
16037 * valops.c (_initialize_valops): Add declaration.
16038 * valprint.c (_initialize_valprint): Add declaration.
16039 * value.c (_initialize_values): Add declaration.
16040 * varobj.c (_initialize_varobj): Add declaration.
16041 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
16042 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
16043 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
16044 * windows-nat.c (_initialize_windows_nat): Add declaration.
16045 (_initialize_check_for_gdb_ini): Add declaration.
16046 (_initialize_loadable): Add declaration.
16047 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
16048 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
16049 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
16050 * xcoffread.c (_initialize_xcoffread): Add declaration.
16051 * xml-support.c (_initialize_xml_support): Add declaration.
16052 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
16053 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
16054 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
16055 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
16057 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16059 * regformats/regdat.sh: Generate declaration for init function.
16061 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16063 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
16065 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
16066 close_one_inferior>: New methods.
16067 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
16068 pass down target to find_inferior_pid.
16069 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
16070 Pass down target to find_inferior_ptid.
16071 (gdbsim_target::create_inferior): Pass down target to
16073 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
16074 target down to find_inferior_ptid and switch_to_thread.
16075 (gdbsim_target::close): Update to call close_one_inferior.
16076 (struct resume_data): Remove.
16077 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
16078 directly, rather than through a void pointer.
16079 (gdbsim_target::resume): Update to call resume_one_inferior.
16081 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
16083 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
16085 2020-01-12 Pedro Alves <palves@redhat.com>
16087 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
16088 directly for the current inferior instead of
16089 discard_all_inferiors.
16090 (discard_all_inferiors): Delete.
16092 2020-01-11 Tom Tromey <tom@tromey.com>
16094 * tui/tui-wingeneral.c (box_win): Check cli_styling.
16095 * tui/tui-winsource.c (tui_source_window_base::refill): Use
16096 deprecated_safe_get_selected_frame.
16098 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16100 * inferior.c (print_inferior): Switch inferior before printing it.
16102 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
16103 Pedro Alves <palves@redhat.com>
16105 * progspace-and-thread.c (switch_to_program_space_and_thread):
16106 Assert there's an inferior for PSPACE. Use
16107 switch_to_inferior_no_thread to switch the inferior too.
16108 * progspace.c (program_space::~program_space): Call
16109 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
16110 (program_space::free_all_objfiles): Don't call clear_symtab_users
16112 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
16114 2020-01-10 Pedro Alves <palves@redhat.com>
16116 * NEWS: Mention multi-target debugging, "info connections", and
16117 "add-inferior -no-connection".
16119 2020-01-10 Pedro Alves <palves@redhat.com>
16121 * infrun.c: Include "target-connection.h".
16122 (check_multi_target_resumption): New.
16123 (proceed): Call it.
16124 * target-connection.c (make_target_connection_string): Make
16126 * target-connection.h (make_target_connection_string): Declare.
16128 2020-01-10 Pedro Alves <palves@redhat.com>
16130 * Makefile.in (COMMON_SFILES): Add target-connection.c.
16131 * inferior.c (uiout_field_connection): New function.
16132 (print_inferior): Add new "connection-id" column.
16133 (add_inferior_command): Show connection number/string of added
16135 * process-stratum-target.h
16136 (process_stratum_target::connection_string): New virtual method.
16137 (process_stratum_target::connection_number): New field.
16138 * remote.c (remote_target::connection_string): New override.
16139 * target-connection.c: New file.
16140 * target-connection.h: New file.
16141 * target.c (decref_target): Remove process_stratum targets from
16142 the connection list.
16143 (target_stack::push): Add process_stratum targets to the
16146 2020-01-10 Pedro Alves <palves@redhat.com>
16149 2016-04-12 Pedro Alves <palves@redhat.com>
16150 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
16151 Remove references to name.
16152 * serial.h (struct serial) <name>: Delete.
16154 2020-01-10 Pedro Alves <palves@redhat.com>
16156 * gdbarch-selftests.c (register_to_value_test): Remove "target
16157 already pushed" check.
16159 2020-01-10 Pedro Alves <palves@redhat.com>
16160 John Baldwin <jhb@FreeBSD.org>
16162 * aarch64-linux-nat.c
16163 (aarch64_linux_nat_target::thread_architecture): Adjust.
16164 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
16165 (task_command_1): Likewise.
16166 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
16167 (aix_thread_target::wait, aix_thread_target::fetch_registers)
16168 (aix_thread_target::store_registers)
16169 (aix_thread_target::thread_alive): Adjust.
16170 * amd64-fbsd-tdep.c: Include "inferior.h".
16171 (amd64fbsd_get_thread_local_address): Pass down target.
16172 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
16173 thread's gdbarch instead of target_gdbarch.
16174 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
16175 get_last_target_status.
16176 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
16177 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
16179 (update_inserted_breakpoint_locations): Skip if inferiors with no
16181 (update_global_location_list): When handling moribund locations,
16182 find representative inferior for location's pspace, and use thread
16183 count of its process_stratum target.
16184 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
16185 * bsd-uthread.c (bsd_uthread_target::wait): Use
16186 as_process_stratum_target and adjust thread_change_ptid and
16188 (bsd_uthread_target::update_thread_list): Use
16189 as_process_stratum_target and adjust find_thread_ptid,
16190 thread_change_ptid and add_thread calls.
16191 * btrace.c (maint_btrace_packet_history_cmd): Adjust
16192 find_thread_ptid call.
16193 * corelow.c (add_to_thread_list): Adjust add_thread call.
16194 (core_target_open): Adjust add_thread_silent and thread_count
16196 (core_target::pid_to_str): Adjust find_inferior_ptid call.
16197 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
16198 * event-top.c (async_disconnect): Pop targets from all inferiors.
16199 * exec.c (add_target_sections): Push exec target on all inferiors
16200 sharing the program space.
16201 (remove_target_sections): Remove the exec target from all
16202 inferiors sharing the program space.
16203 (exec_on_vfork): New.
16204 * exec.h (exec_on_vfork): Declare.
16205 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
16207 (fbsd_nat_target::update_thread_list): Adjust.
16208 (fbsd_nat_target::resume): Adjust.
16209 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
16211 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
16212 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
16213 get_thread_arch_regcache call.
16214 * fork-child.c (gdb_startup_inferior): Pass target down to
16215 startup_inferior and set_executing.
16216 * gdbthread.h (struct process_stratum_target): Forward declare.
16217 (add_thread, add_thread_silent, add_thread_with_info)
16218 (in_thread_list): Add process_stratum_target parameter.
16219 (find_thread_ptid(inferior*, ptid_t)): New overload.
16220 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
16222 (all_threads()): Delete overload.
16223 (all_threads, all_non_exited_threads): Add process_stratum_target
16225 (all_threads_safe): Use brace initialization.
16226 (thread_count): Add process_stratum_target parameter.
16227 (set_resumed, set_running, set_stop_requested, set_executing)
16228 (threads_are_executing, finish_thread_state): Add
16229 process_stratum_target parameter.
16230 (switch_to_thread): Use is_current_thread.
16231 * i386-fbsd-tdep.c: Include "inferior.h".
16232 (i386fbsd_get_thread_local_address): Pass down target.
16233 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
16234 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
16235 have_inferiors check.
16236 * inf-ptrace.c (inf_ptrace_target::create_inferior)
16237 (inf_ptrace_target::attach): Adjust.
16238 * infcall.c (run_inferior_call): Adjust.
16239 * infcmd.c (run_command_1): Pass target to
16240 scoped_finish_thread_state.
16241 (proceed_thread_callback): Skip inferiors with no execution.
16242 (continue_command): Rename 'all_threads' local to avoid hiding
16243 'all_threads' function. Adjust get_last_target_status call.
16244 (prepare_one_step): Adjust set_running call.
16245 (signal_command): Use user_visible_resume_target. Compare thread
16246 pointers instead of inferior_ptid.
16247 (info_program_command): Adjust to pass down target.
16248 (attach_command): Mark target's 'thread_executing' flag.
16249 (stop_current_target_threads_ns): New, factored out from ...
16250 (interrupt_target_1): ... this. Switch inferior before making
16253 (struct all_inferiors_iterator, struct all_inferiors_range)
16254 (struct all_inferiors_safe_range)
16255 (struct all_non_exited_inferiors_range): Filter on
16256 process_stratum_target too. Remove explicit.
16257 * inferior.c (inferior::inferior): Push dummy target on target
16259 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
16260 Add process_stratum_target parameter, and pass it down.
16261 (have_live_inferiors): Adjust.
16262 (switch_to_inferior_and_push_target): New.
16263 (add_inferior_command, clone_inferior_command): Handle
16264 "-no-connection" parameter. Use
16265 switch_to_inferior_and_push_target.
16266 (_initialize_inferior): Mention "-no-connection" option in
16267 the help of "add-inferior" and "clone-inferior" commands.
16268 * inferior.h: Include "process-stratum-target.h".
16269 (interrupt_target_1): Use bool.
16270 (struct inferior) <push_target, unpush_target, target_is_pushed,
16271 find_target_beneath, top_target, process_target, target_at,
16273 (discard_all_inferiors): Delete.
16274 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
16275 (all_inferiors, all_non_exited_inferiors): Add
16276 process_stratum_target parameter.
16277 * infrun.c: Include "gdb_select.h" and <unordered_map>.
16278 (target_last_proc_target): New global.
16279 (follow_fork_inferior): Push target on new inferior. Pass target
16280 to add_thread_silent. Call exec_on_vfork. Handle target's
16282 (follow_fork): Adjust get_last_target_status call. Also consider
16284 (follow_exec): Push target on new inferior.
16285 (struct execution_control_state) <target>: New field.
16286 (user_visible_resume_target): New.
16287 (do_target_resume): Call target_async.
16288 (resume_1): Set target's threads_executing flag. Consider resume
16290 (commit_resume_all_targets): New.
16291 (proceed): Also consider resume target. Skip threads of inferiors
16292 with no execution. Commit resumtion in all targets.
16293 (start_remote): Pass current inferior to wait_for_inferior.
16294 (infrun_thread_stop_requested): Consider target as well. Pass
16295 thread_info pointer to clear_inline_frame_state instead of ptid.
16296 (infrun_thread_thread_exit): Consider target as well.
16297 (random_pending_event_thread): New inferior parameter. Use it.
16298 (do_target_wait): Rename to ...
16299 (do_target_wait_1): ... this. Add inferior parameter, and pass it
16301 (threads_are_resumed_pending_p, do_target_wait): New.
16302 (prepare_for_detach): Adjust calls.
16303 (wait_for_inferior): New inferior parameter. Handle it. Use
16304 do_target_wait_1 instead of do_target_wait.
16305 (fetch_inferior_event): Adjust. Switch to representative
16306 inferior. Pass target down.
16307 (set_last_target_status): Add process_stratum_target parameter.
16308 Save target in global.
16309 (get_last_target_status): Add process_stratum_target parameter and
16311 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
16312 (context_switch): Check inferior_ptid == null_ptid before calling
16314 (get_inferior_stop_soon): Pass down target.
16315 (wait_one): Rename to ...
16316 (poll_one_curr_target): ... this.
16317 (struct wait_one_event): New.
16319 (stop_all_threads): Adjust.
16320 (handle_no_resumed, handle_inferior_event): Adjust to consider the
16322 (switch_back_to_stepped_thread): Also consider target.
16323 (print_stop_event): Update.
16324 (normal_stop): Update. Also consider the resume target.
16325 * infrun.h (wait_for_inferior): Remove declaration.
16326 (user_visible_resume_target): New declaration.
16327 (get_last_target_status, set_last_target_status): New
16328 process_stratum_target parameter.
16329 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16330 process_stratum_target parameter, and use it.
16331 (clear_inline_frame_state (thread_info*)): New.
16332 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16333 process_stratum_target parameter.
16334 (clear_inline_frame_state (thread_info*)): Declare.
16335 * linux-fork.c (delete_checkpoint_command): Pass target down to
16337 (checkpoint_command): Adjust.
16338 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
16339 instead of just tweaking inferior_ptid.
16340 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
16341 (exit_lwp): Pass target down to find_thread_ptid.
16342 (attach_proc_task_lwp_callback): Pass target down to
16343 add_thread/set_running/set_executing.
16344 (linux_nat_target::attach): Pass target down to
16345 thread_change_ptid.
16346 (get_detach_signal): Pass target down to find_thread_ptid.
16347 Consider last target status's target.
16348 (linux_resume_one_lwp_throw, resume_lwp)
16349 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
16350 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
16351 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
16352 (linux_nat_target::async_wait_fd): New.
16353 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
16355 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
16356 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
16357 * linux-thread-db.c (struct thread_db_info::process_target): New
16359 (add_thread_db_info): Save target.
16360 (get_thread_db_info): New process_stratum_target parameter. Also
16362 (delete_thread_db_info): New process_stratum_target parameter.
16364 (thread_from_lwp): Adjust to pass down target.
16365 (thread_db_notice_clone): Pass down target.
16366 (check_thread_db_callback): Pass down target.
16367 (try_thread_db_load_1): Always push the thread_db target.
16368 (try_thread_db_load, record_thread): Pass target down.
16369 (thread_db_target::detach): Pass target down. Always unpush the
16371 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
16372 target down. Always unpush the thread_db target.
16373 (find_new_threads_callback, thread_db_find_new_threads_2)
16374 (thread_db_target::update_thread_list): Pass target down.
16375 (thread_db_target::pid_to_str): Pass current inferior down.
16376 (thread_db_target::get_thread_local_address): Pass target down.
16377 (thread_db_target::resume, maintenance_check_libthread_db): Pass
16379 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
16380 * procfs.c (procfs_target::procfs_init_inferior): Declare.
16381 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
16382 (procfs_init_inferior): Rename to ...
16383 (procfs_target::procfs_init_inferior): ... this and adjust.
16384 (procfs_target::create_inferior, procfs_notice_thread)
16385 (procfs_do_thread_registers): Adjust.
16386 * ppc-fbsd-tdep.c: Include "inferior.h".
16387 (ppcfbsd_get_thread_local_address): Pass down target.
16388 * proc-service.c (ps_xfer_memory): Switch current inferior and
16389 program space as well.
16390 (get_ps_regcache): Pass target down.
16391 * process-stratum-target.c
16392 (process_stratum_target::thread_address_space)
16393 (process_stratum_target::thread_architecture): Pass target down.
16394 * process-stratum-target.h
16395 (process_stratum_target::threads_executing): New field.
16396 (as_process_stratum_target): New.
16397 * ravenscar-thread.c
16398 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
16399 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
16401 * record-btrace.c (record_btrace_target::info_record): Adjust.
16402 (record_btrace_target::record_method)
16403 (record_btrace_target::record_is_replaying)
16404 (record_btrace_target::fetch_registers)
16405 (get_thread_current_frame_id, record_btrace_target::resume)
16406 (record_btrace_target::wait, record_btrace_target::stop): Pass
16408 * record-full.c (record_full_wait_1): Switch to event thread.
16410 * regcache.c (regcache::regcache)
16411 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
16412 process_stratum_target parameter and handle it.
16413 (current_thread_target): New global.
16414 (get_thread_regcache): Add process_stratum_target parameter and
16415 handle it. Switch inferior before calling target method.
16416 (get_thread_regcache): Pass target down.
16417 (get_thread_regcache_for_ptid): Pass target down.
16418 (registers_changed_ptid): Add process_stratum_target parameter and
16420 (registers_changed_thread, registers_changed): Pass target down.
16421 (test_get_thread_arch_aspace_regcache): New.
16422 (current_regcache_test): Define a couple local test_target_ops
16423 instances and use them for testing.
16424 (readwrite_regcache): Pass process_stratum_target parameter.
16425 (cooked_read_test, cooked_write_test): Pass mock_target down.
16426 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
16427 (get_thread_arch_aspace_regcache): Add process_stratum_target
16429 (regcache::target): New method.
16430 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
16431 (regcache::registers_changed_ptid): Add process_stratum_target
16433 (regcache::m_target): New field.
16434 (registers_changed_ptid): Add process_stratum_target parameter.
16435 * remote.c (remote_state::supports_vCont_probed): New field.
16436 (remote_target::async_wait_fd): New method.
16437 (remote_unpush_and_throw): Add remote_target parameter.
16438 (get_current_remote_target): Adjust.
16439 (remote_target::remote_add_inferior): Push target.
16440 (remote_target::remote_add_thread)
16441 (remote_target::remote_notice_new_inferior)
16442 (get_remote_thread_info): Pass target down.
16443 (remote_target::update_thread_list): Skip threads of inferiors
16444 bound to other targets. (remote_target::close): Don't discard
16445 inferiors. (remote_target::add_current_inferior_and_thread)
16446 (remote_target::process_initial_stop_replies)
16447 (remote_target::start_remote)
16448 (remote_target::remote_serial_quit_handler): Pass down target.
16449 (remote_target::remote_unpush_target): New remote_target
16450 parameter. Unpush the target from all inferiors.
16451 (remote_target::remote_unpush_and_throw): New remote_target
16452 parameter. Pass it down.
16453 (remote_target::open_1): Check whether the current inferior has
16454 execution instead of checking whether any inferior is live. Pass
16456 (remote_target::remote_detach_1): Pass down target. Use
16457 remote_unpush_target.
16458 (extended_remote_target::attach): Pass down target.
16459 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
16460 (remote_target::append_resumption): Pass down target.
16461 (remote_target::append_pending_thread_resumptions)
16462 (remote_target::remote_resume_with_hc, remote_target::resume)
16463 (remote_target::commit_resume): Pass down target.
16464 (remote_target::remote_stop_ns): Check supports_vCont_probed.
16465 (remote_target::interrupt_query)
16466 (remote_target::remove_new_fork_children)
16467 (remote_target::check_pending_events_prevent_wildcard_vcont)
16468 (remote_target::remote_parse_stop_reply)
16469 (remote_target::process_stop_reply): Pass down target.
16470 (first_remote_resumed_thread): New remote_target parameter. Pass
16472 (remote_target::wait_as): Pass down target.
16473 (unpush_and_perror): New remote_target parameter. Pass it down.
16474 (remote_target::readchar, remote_target::remote_serial_write)
16475 (remote_target::getpkt_or_notif_sane_1)
16476 (remote_target::kill_new_fork_children, remote_target::kill): Pass
16478 (remote_target::mourn_inferior): Pass down target. Use
16479 remote_unpush_target.
16480 (remote_target::core_of_thread)
16481 (remote_target::remote_btrace_maybe_reopen): Pass down target.
16482 (remote_target::pid_to_exec_file)
16483 (remote_target::thread_handle_to_thread_info): Pass down target.
16484 (remote_target::async_wait_fd): New.
16485 * riscv-fbsd-tdep.c: Include "inferior.h".
16486 (riscv_fbsd_get_thread_local_address): Pass down target.
16487 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
16488 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
16489 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
16491 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
16492 * solib-svr4.c (enable_break): Pass down target.
16493 * spu-multiarch.c (parse_spufs_run): Pass down target.
16494 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
16495 * target-delegates.c: Regenerate.
16496 * target.c (g_target_stack): Delete.
16497 (current_top_target): Return the current inferior's top target.
16498 (target_has_execution_1): Refer to the passed-in inferior's top
16500 (target_supports_terminal_ours): Check whether the initial
16501 inferior was already created.
16502 (decref_target): New.
16503 (target_stack::push): Incref/decref the target.
16504 (push_target, push_target, unpush_target): Adjust.
16505 (target_stack::unpush): Defref target.
16506 (target_is_pushed): Return bool. Adjust to refer to the current
16507 inferior's target stack.
16508 (dispose_inferior): Delete, and inline parts ...
16509 (target_preopen): ... here. Only dispose of the current inferior.
16510 (target_detach): Hold strong target reference while detaching.
16512 (target_thread_name): Add assertion.
16513 (target_resume): Pass down target.
16514 (target_ops::beneath, find_target_at): Adjust to refer to the
16515 current inferior's target stack.
16516 (get_dummy_target): New.
16517 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
16518 has a thread running.
16519 (initialize_targets): Rename to ...
16520 (_initialize_target): ... this.
16521 * target.h: Include "gdbsupport/refcounted-object.h".
16522 (struct target_ops): Inherit refcounted_object.
16523 (target_ops::shortname, target_ops::longname): Make const.
16524 (target_ops::async_wait_fd): New method.
16525 (decref_target): Declare.
16526 (struct target_ops_ref_policy): New.
16527 (target_ops_ref): New typedef.
16528 (get_dummy_target): Declare function.
16529 (target_is_pushed): Return bool.
16530 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
16531 (all_matching_threads_iterator::all_matching_threads_iterator):
16532 Handle filter target.
16533 * thread-iter.h (struct all_matching_threads_iterator, struct
16534 all_matching_threads_range, class all_non_exited_threads_range):
16535 Filter by target too. Remove explicit.
16536 * thread.c (threads_executing): Delete.
16537 (inferior_thread): Pass down current inferior.
16538 (clear_thread_inferior_resources): Pass down thread pointer
16540 (add_thread_silent, add_thread_with_info, add_thread): Add
16541 process_stratum_target parameter. Use it for thread and inferior
16543 (is_current_thread): New.
16544 (thread_info::deletable): Use it.
16545 (find_thread_ptid, thread_count, in_thread_list)
16546 (thread_change_ptid, set_resumed, set_running): New
16547 process_stratum_target parameter. Pass it down.
16548 (set_executing): New process_stratum_target parameter. Pass it
16549 down. Adjust reference to 'threads_executing'.
16550 (threads_are_executing): New process_stratum_target parameter.
16551 Adjust reference to 'threads_executing'.
16552 (set_stop_requested, finish_thread_state): New
16553 process_stratum_target parameter. Pass it down.
16554 (switch_to_thread): Also match inferior.
16555 (switch_to_thread): New process_stratum_target parameter. Pass it
16557 (update_threads_executing): Reimplement.
16558 * top.c (quit_force): Pop targets from all inferior.
16559 (gdb_init): Don't call initialize_targets.
16560 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
16562 (windows_add_thread, windows_delete_thread): Adjust.
16563 (get_windows_debug_event): Rename to ...
16564 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
16565 * tracefile-tfile.c (tfile_target_open): Pass down target.
16566 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
16568 (switch_to_thread): Add process_stratum_target parameter.
16569 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
16571 (mi_on_resume): Pass target down.
16572 * nat/fork-inferior.c (startup_inferior): Add
16573 process_stratum_target parameter. Pass it down.
16574 * nat/fork-inferior.h (startup_inferior): Add
16575 process_stratum_target parameter.
16576 * python/py-threadevent.c (py_get_event_thread): Pass target down.
16578 2020-01-10 Pedro Alves <palves@redhat.com>
16580 * remote.c (remote_target::start_remote): Don't set inferior_ptid
16581 directly. Instead find the first thread in the thread list and
16582 use switch_to_thread.
16584 2020-01-10 Pedro Alves <palves@redhat.com>
16586 * remote.c (remote_target::remote_add_inferior): Don't bind a
16587 process to the current inferior if the current inferior is already
16588 bound to a process.
16590 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16591 Pedro Alves <palves@redhat.com>
16593 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
16594 If no process is specified, return null_ptid instead of
16596 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
16597 TARGET_WAITKIND_SIGNALLED with no pid.
16599 2020-01-10 Pedro Alves <palves@redhat.com>
16601 * remote.c (first_remote_resumed_thread): New.
16602 (remote_target::wait_as): Use it as default event_ptid instead of
16605 2020-01-10 Pedro Alves <palves@redhat.com>
16607 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
16609 2020-01-10 Pedro Alves <palves@redhat.com>
16611 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
16614 2020-01-10 Pedro Alves <palves@redhat.com>
16616 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
16617 ptid to get_last_target_status.
16618 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
16619 ptid to get_last_target_status.
16620 * infcmd.c (continue_command): Don't pass a target_waitstatus to
16621 get_last_target_status.
16622 (info_program_command): Don't pass a target_waitstatus to
16623 get_last_target_status.
16624 * infrun.c (init_wait_for_inferior): Use
16625 nullify_last_target_wait_ptid.
16626 (get_last_target_status): Handle nullptr arguments.
16627 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
16628 (print_stop_event): Don't pass a ptid to get_last_target_status.
16629 (normal_stop): Don't pass a ptid to get_last_target_status.
16630 * infrun.h (get_last_target_status, set_last_target_status): Move
16631 comments here and update.
16632 (nullify_last_target_wait_ptid): Declare.
16633 * linux-fork.c (fork_load_infrun_state): Remove local extern
16634 declaration of nullify_last_target_wait_ptid.
16635 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
16636 to get_last_target_status.
16638 2020-01-10 Pedro Alves <palves@redhat.com>
16640 * gdbthread.h (scoped_restore_current_thread)
16641 <dont_restore, restore, m_dont_restore>: Declare.
16642 * thread.c (thread_alive): Add assertion. Return bool.
16643 (switch_to_thread_if_alive): New.
16644 (prune_threads): Switch inferior/thread.
16645 (print_thread_info_1): Switch thread before calling target methods.
16646 (scoped_restore_current_thread::restore): New, factored out from
16648 (scoped_restore_current_thread::~scoped_restore_current_thread):
16650 (scoped_restore_current_thread::scoped_restore_current_thread):
16652 (thread_apply_all_command, thread_select): Use
16653 switch_to_thread_if_alive.
16654 * infrun.c (proceed, restart_threads, handle_signal_stop)
16655 (switch_back_to_stepped_thread): Switch current thread before
16656 calling target methods.
16658 2020-01-10 Pedro Alves <palves@redhat.com>
16660 * inferior.c (switch_to_inferior_no_thread): New function,
16661 factored out from ...
16662 (inferior_command): ... here.
16663 * inferior.h (switch_to_inferior_no_thread): Declare.
16664 * mi/mi-main.c (run_one_inferior): Use
16665 switch_to_inferior_no_thread.
16667 2020-01-10 Pedro Alves <palves@redhat.com>
16669 * infcmd.c (kill_command): Remove dead code.
16671 2020-01-10 Pedro Alves <palves@redhat.com>
16673 * remote.c (remote_target::mourn_inferior): No longer check
16674 whether the target is running.
16676 2020-01-10 Pedro Alves <palves@redhat.com>
16678 * corelow.c (core_target::has_execution): Change parameter type to
16680 * inferior.c (number_of_live_inferiors): Use
16681 inferior::has_execution instead of target_has_execution_1.
16682 * inferior.h (inferior::has_execution): New.
16683 * linux-thread-db.c (thread_db_target::update_thread_list): Use
16684 inferior::has_execution instead of target_has_execution_1.
16685 * process-stratum-target.c
16686 (process_stratum_target::has_execution): Change parameter type to
16687 inferior pointer. Check the inferior's PID instead of
16689 * process-stratum-target.h
16690 (process_stratum_target::has_execution): Change parameter type to
16692 * record-full.c (record_full_core_target::has_execution): Change
16693 parameter type to inferior pointer.
16694 * target.c (target_has_execution_1): Change parameter type to
16696 (target_has_execution_current): Adjust.
16697 * target.h (target_ops::has_execution): Change parameter type to
16699 (target_has_execution_1): Change parameter type to inferior
16700 pointer. Change return type to bool.
16701 * tracefile.h (tracefile_target::has_execution): Change parameter
16702 type to inferior pointer.
16704 2020-01-10 Pedro Alves <palves@redhat.com>
16706 * exceptions.c (print_flush): Remove current_top_target() check.
16708 2020-01-10 Pedro Alves <palves@redhat.com>
16710 * remote.c (show_remote_exec_file): Show the current inferior's
16711 exec-file instead of the command variable's value.
16713 2020-01-10 Pedro Alves <palves@redhat.com>
16715 * record-full.c (record_full_resume_ptid): New global.
16716 (record_full_target::resume): Set it.
16717 (record_full_wait_1): Use record_full_resume_ptid instead of
16720 2020-01-10 Pedro Alves <palves@redhat.com>
16722 * gdbthread.h (scoped_restore_current_thread)
16723 <dont_restore, restore, m_dont_restore>: Declare.
16724 * thread.c (thread_alive): Add assertion. Return bool.
16725 (switch_to_thread_if_alive): New.
16726 (prune_threads): Switch inferior/thread.
16727 (print_thread_info_1): Switch thread before calling target methods.
16728 (scoped_restore_current_thread::restore): New, factored out from
16730 (scoped_restore_current_thread::~scoped_restore_current_thread):
16732 (scoped_restore_current_thread::scoped_restore_current_thread):
16734 (thread_apply_all_command, thread_select): Use
16735 switch_to_thread_if_alive.
16737 2020-01-10 George Barrett <bob@bob131.so>
16739 * stap-probe.c (stap_modify_semaphore): Don't check for null
16741 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
16742 for null semaphores.
16744 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16746 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
16747 all source windows, and maintain horizontal scroll status while
16750 2020-01-09 Tom Tromey <tom@tromey.com>
16753 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
16754 update_source_window, not print_source_lines.
16756 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16758 * tui/tui.c (tui_enable): Register tui hooks after calling
16761 2020-01-09 Christian Biesinger <cbiesinger@google.com>
16763 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
16765 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
16767 * thread.c (print_thread_info_1): Fix indentation.
16769 2020-01-09 Christian Biesinger <cbiesinger@google.com>
16771 * symtab.c (general_symbol_info::compute_and_set_names): Move the
16772 unique_xmalloc_ptr outside the if to always free the demangled name.
16774 2020-01-08 Tom Tromey <tromey@adacore.com>
16776 * xcoffread.c (enter_line_range, read_xcoff_symtab)
16777 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
16778 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
16779 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
16781 (section_offsets): New typedef.
16782 * symtab.c (fixup_section, get_msymbol_address): Update.
16783 * symmisc.c (dump_msymbols): Update.
16784 * symfile.h (relative_addr_info_to_section_offsets)
16785 (symfile_map_offsets_to_segments): Update.
16786 * symfile.c (build_section_addr_info_from_objfile)
16787 (init_objfile_sect_indices): Update.
16788 (struct place_section_arg): Change type of "offsets".
16789 (place_section): Update.
16790 (relative_addr_info_to_section_offsets): Change type of
16791 "section_offsets". Remove "num_sections" parameter.
16792 (default_symfile_offsets, syms_from_objfile_1)
16793 (set_objfile_default_section_offset): Update.
16794 (reread_symbols): No need to preserve section offsets by hand.
16795 (symfile_map_offsets_to_segments): Change type of "offsets".
16796 * stap-probe.c (relocate_address): Update.
16797 * stabsread.h (process_one_symbol): Update.
16798 * solib-target.c (struct lm_info_target) <offsets>: Change type.
16799 (solib_target_relocate_section_addresses): Update.
16800 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
16802 * solib-frv.c (frv_relocate_main_executable): Update.
16803 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
16804 * solib-aix.c (solib_aix_get_section_offsets): Change return
16806 (solib_aix_solib_create_inferior_hook): Update.
16807 * remote.c (remote_target::get_offsets): Update.
16808 * psymtab.c (find_pc_sect_psymtab): Update.
16809 * psympriv.h (struct partial_symbol) <address, text_low,
16810 text_high>: Update.
16811 * objfiles.h (obj_section_offset): Update.
16812 (struct objfile) <section_offsets>: Change type.
16813 <num_sections>: Remove.
16814 (objfile_relocate): Update.
16815 * objfiles.c (entry_point_address_query): Update
16816 (relocate_one_symbol): Change type of "section_offsets".
16817 (objfile_relocate1, objfile_relocate1): Change type of
16819 (objfile_rebase1): Update.
16820 * mipsread.c (mipscoff_symfile_read): Update.
16821 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
16823 * mdebugread.c (parse_symbol): Change type of "section_offsets".
16824 (parse_external, psymtab_to_symtab_1): Update.
16825 * machoread.c (macho_symfile_offsets): Update.
16826 * ia64-tdep.c (ia64_find_unwind_table): Update.
16827 * hppa-tdep.c (read_unwind_info): Update.
16828 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
16829 * dwarf2read.c (create_addrmap_from_index)
16830 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
16831 (process_psymtab_comp_unit_reader, add_partial_symbol)
16832 (add_partial_subprogram, process_full_comp_unit)
16833 (read_file_scope, read_func_scope, read_lexical_block_scope)
16834 (read_call_site_scope, dwarf2_rnglists_process)
16835 (dwarf2_ranges_process, dwarf2_ranges_read)
16836 (dwarf_decode_lines_1, var_decode_location, new_symbol)
16837 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
16839 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
16841 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
16842 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
16843 (process_one_symbol): Change type of "section_offsets".
16844 * ctfread.c (get_objfile_text_range): Update.
16845 * coffread.c (coff_symtab_read, enter_linenos)
16846 (process_coff_symbol): Update.
16847 * coff-pe-read.c (add_pe_forwarded_sym): Update.
16848 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
16850 2020-01-08 Tom Tromey <tromey@adacore.com>
16852 * dwarf2read.c (parse_macro_definition): Use std::string.
16853 (parse_macro_definition): Likewise.
16855 2020-01-08 Tom Tromey <tromey@adacore.com>
16857 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
16858 (ATTR_ALLOC_CHUNK): Remove.
16860 2020-01-08 Tom Tromey <tromey@adacore.com>
16862 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
16864 2020-01-08 Tom Tromey <tromey@adacore.com>
16866 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
16867 (dwarf2_compute_name, open_dwo_file): Likewise.
16868 (process_enumeration_scope): Use std::vector.
16869 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
16870 (partial_die_info::fixup, dwarf2_start_subfile)
16871 (guess_full_die_structure_name, dwarf2_name): Likewise.
16872 (determine_prefix): Update.
16873 (guess_full_die_structure_name): Make return type const.
16874 (partial_die_full_name): Return unique_xmalloc_ptr.
16875 (DW_FIELD_ALLOC_CHUNK): Remove.
16877 2020-01-07 Tom Tromey <tromey@adacore.com>
16880 * stap-probe.c (class stap_static_probe_ops): Add constructor.
16882 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16884 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
16886 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
16888 * stack.c (print_frame_info): Move disassemble_next_line code
16889 inside source_print block.
16891 2020-01-06 Eli Zaretskii <eliz@gnu.org>
16893 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
16894 gdb/signals.h, as we are now using native signal symbols.
16896 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
16898 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
16899 overflow by an early check of content vs threshold.
16900 * tui/tui-source.c (tui_source_window::line_is_displayed):
16903 2020-01-06 Eli Zaretskii <eliz@gnu.org>
16905 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
16907 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16909 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
16910 export table if no section contains it's RVA.
16912 2020-01-06 Eli Zaretskii <eliz@gnu.org>
16914 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
16916 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
16918 * source.c (print_source_lines_base): Set last_line_listed.
16920 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
16922 * tui/tui-disasm.c: Remove trailing spaces.
16924 2020-01-06 Eli Zaretskii <eliz@gnu.org>
16925 Pedro Alves <palves@redhat.com>
16927 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
16928 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
16929 (windows_gdb_signal_to_target): New function, uses the above
16930 enumeration to convert GDB internal signal codes to equivalent
16932 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
16933 * windows-nat.c: Include "gdb_wait.h".
16934 (get_windows_debug_event): Extract the fatal exception from the
16935 exit status and convert to the equivalent Posix signal number.
16936 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
16937 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
16938 * gdbsupport/gdb_wait.c: New file, implements
16939 windows_status_to_termsig.
16940 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
16941 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
16943 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
16945 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
16948 2020-01-05 Luis Machado <luis.machado@linaro.org>
16950 * aarch64-linux-nat.c
16951 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
16952 and bfd_mach_aarch64.
16954 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16956 * ui-file.c (stdio_file::can_emit_style_escape)
16957 (tee_file::can_emit_style_escape): Ensure style is used also on
16958 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
16960 * main.c (set_gdb_data_directory): Use file style to output the
16961 warning that the given pathname is not a directory.
16962 * top.c (show_history_filename, gdb_safe_append_history)
16963 (show_gdb_datadir): Use file style.
16965 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
16967 * solib-target.c (struct lm_info_target):
16968 Change offsets to be a unique_xmalloc_ptr.
16969 (solib_target_relocate_section_addresses): Update.
16971 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
16973 * windows-nat.c (windows_clear_solib): Free so_list linked list.
16975 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
16977 * MAINTAINERS (Write After Approval): Add myself.
16979 2020-01-02 Luis Machado <luis.machado@linaro.org>
16981 * proc-service.c (get_ps_regcache): Remove reference to obsolete
16982 Cell BE architecture.
16983 * target.h (struct target_ops) <thread_architecture>: Likewise.
16985 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
16987 * Makefile.in: Use INSTALL_PROGRAM_ENV.
16989 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
16991 * MAINTAINERS (Write After Approval): Add myself.
16993 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16995 * gdbarch.sh: Update copyright year range of generated files.
16997 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16999 Update copyright year range in all GDB files.
17001 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17003 * copyright.py: Convert to Python 3.
17005 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17007 * copyright.py: Adapt after move of gnulib directory from gdb
17008 directory to toplevel directory.
17010 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17012 * copyright.py (main): Exit if run from the wrong directory.
17014 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17016 * top.c (print_gdb_version): Change copyright year to 2020.
17018 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17020 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
17022 For older changes see ChangeLog-2019.
17028 version-control: never