1 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
3 * infrun.h (get_displaced_step_closure_by_addr): Rename to...
4 (get_displaced_step_copy_insn_closure_by_addr): ... this.
6 (displaced_step_closure): Rename to...
7 (displaced_step_copy_insn_closure): ... this. Update all users.
8 (displaced_step_closure_up): Rename to...
9 (displaced_step_copy_insn_closure_up). ... this. Update all
11 (buf_displaced_step_closure): Rename to...
12 (buf_displaced_step_copy_insn_closure): ... this. Update all
14 * infrun.c (get_displaced_step_closure_by_addr): Rename to...
15 (get_displaced_step_copy_insn_closure_by_addr): ... this.
17 * aarch64-tdep.c (aarch64_displaced_step_closure): Rename to...
18 (aarch64_displaced_step_copy_insn_closure): ... this. Update
20 * amd64-tdep.c (amd64_displaced_step_closure): Rename to...
21 (amd64_displaced_step_copy_insn_closure): ... this. Update all
23 * arm-tdep.h (arm_displaced_step_closure): Rename to...
24 (arm_displaced_step_copy_insn_closure): ... this. Update all
26 * i386-tdep.h (i386_displaced_step_closure): Rename to...
27 (i386_displaced_step_copy_insn_closure): ... this. Update all
29 * rs6000-tdep.c (ppc_displaced_step_closure): Rename to...
30 (ppc_displaced_step_copy_insn_closure): ... this. Update all
32 * s390-tdep.c (s390_displaced_step_closure): Rename to...
33 (s390_displaced_step_copy_insn_closure): ... this. Update all
35 * gdbarch.h: Re-generate.
36 * gdbarch.c: Re-generate.
38 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
40 * gdbthread.h (thread_step_over_chain_enqueue): Rename to...
41 (global_thread_step_over_chain_enqueue): ... this. Update all
43 (thread_step_over_chain_remove): Rename to...
44 (global_thread_step_over_chain_remove): ... this. Update all
46 (thread_step_over_chain_next): Rename to...
47 (global_thread_step_over_chain_next): ... this. Update all
49 * infrun.h (step_over_queue_head): Rename to...
50 (global_thread_step_over_chain_head): ... this. Update all
52 * infrun.c (step_over_queue_head): Rename to...
53 (global_thread_step_over_chain_head): ... this. Update all
55 * thread.c (step_over_chain_remove): Rename to...
56 (thread_step_over_chain_remove): ... this. Update all users.
57 (thread_step_over_chain_next): Rename to...
58 (global_thread_step_over_chain_next): ... this. Update all
60 (thread_step_over_chain_enqueue): Rename to...
61 (global_thread_step_over_chain_enqueue): ... this. Update all
63 (thread_step_over_chain_remove): Rename to...
64 (global_thread_step_over_chain_remove): ... this. Update all
67 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
69 * infrun.c (get_displaced_stepping_state): Remove, change
70 callers to access the field directly.
72 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
74 * infrun.c (handle_inferior_event): Restore displaced step
75 buffer bytes in child process when handling fork, even if fork
76 happened in another thread than the displaced-stepping one.
78 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
80 * infrun.c (infrun_inferior_execd): New function.
81 (_initialize_infrun): Attach inferior_execd observer.
83 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
85 * observable.h (inferior_execd): Declare new observable.
86 * observable.c (inferior_execd): Declare new observable.
87 * infrun.c (follow_exec): Notify inferior_execd observer.
88 * jit.c (jit_inferior_created_hook): Make static.
89 (_initialize_jit): Register inferior_execd observer.
90 * jit.h (jit_inferior_created_hook): Remove declaration.
91 * solib.c (_initialize_solib): Register inferior_execd observer.
93 2020-12-04 Tom de Vries <tdevries@suse.de>
96 * completer.c (completion_tracker::build_completion_result): Don't
97 access match_list[0][-1].
99 2020-12-04 Tom Tromey <tromey@adacore.com>
101 * linespec.c (struct linespec_token): Rename; remove typedef.
102 * guile/scm-block.c (struct block_smob): Remove typedef.
103 (struct block_syms_progress_smob): Likewise.
104 * guile/scm-symbol.c (struct symbol_smob): Remove typedef.
105 * guile/scm-symtab.c (symtab_smob): Remove typedef.
106 (struct sal_smob): Remove typedef.
107 * guile/scm-param.c (struct param_smob): Remove typedef.
108 * guile/scm-progspace.c (struct pspace_smob): Rename.
109 * guile/scm-objfile.c (struct objfile_smob): Rename.
110 * guile/scm-iterator.c (struct iterator_smob): Rename.
111 * guile/scm-frame.c (struct frame_smob): Rename.
112 * guile/scm-arch.c (struct arch_smob): Rename.
113 * guile/scm-type.c (struct field_smob): Remove typedef.
114 (struct type_smob): Rename.
115 * guile/scm-cmd.c (struct command_smob): Remove typedef.
116 * guile/scm-ports.c (struct ioscm_memory_port): Remove typedef.
117 * guile/scm-value.c (struct value_smob): Remove typedef.
118 * guile/scm-lazy-string.c (lazy_string_smob): Remove typedef.
119 * guile/guile-internal.h (struct scheme_variable)
120 (struct scheme_function, struct scheme_integer_constant)
121 (struct gdb_smob, struct chained_gdb_smob)
122 (struct eqable_gdb_smob, arch_smob, frame_smob, iterator_smob)
123 (objfile_smob, pspace_smob, type_smob): Remove typedef.
124 * guile/scm-pretty-print.c (pretty_printer_smob): Remove typedef.
125 (struct pretty_printer_worker_smob): Remove typedef.
126 * guile/scm-exception.c (struct exception_smob): Remove typedef.
127 * python/py-block.c (struct block_object): Remove typedef.
128 (block_syms_iterator_object): Update.
130 (block_syms_iterator_object): Remove typedef.
131 * python/py-inferior.c (struct membuf_object): Remove typedef.
132 * python/py-symtab.c (struct symtab_object): Remove typedef.
133 (set_symtab): Update.
134 (sal_object): Remove typedef.
136 * python/py-frame.c (frame_object): Remove typedef.
137 * python/py-record-btrace.c (struct btpy_list_object): Remove
139 * python/py-arch.c (struct arch_object): Remove typedef.
140 * python/py-linetable.c (struct linetable_entry_object)
141 (linetable_object, struct ltpy_iterator_object): Remove typedef.
142 * python/py-events.h (eventregistry_object): Remove typedef.
143 (struct events_object): Remove typedef.
144 * python/python-internal.h (gdbpy_breakpoint_object): Remove
146 (thread_object): Remove typedef.
147 * python/py-progspace.c (pspace_object): Remove typedef.
148 * python/py-value.c (struct value_object): Remove typedef.
149 * python/py-record.h (recpy_record_object): Remove typedef.
150 (struct recpy_element_object): Remove typedef.
151 * python/py-lazy-string.c (lazy_string_object): Remove typedef.
152 * python/py-objfile.c (objfile_object): Remove typedef.
153 * python/py-cmd.c (struct cmdpy_object): Remove typedef.
154 * python/py-type.c (type_object): Remove typedef.
155 (typy_iterator_object): Update.
157 (field_object): Remove typedef.
158 (typy_iterator_object): Remove typedef.
159 * python/py-registers.c (register_descriptor_iterator_object):
161 (struct register_descriptor_object)
162 (struct reggroup_iterator_object, struct reggroup_object): Remove
164 * python/py-record.c (recpy_gap_object): Remove typedef.
165 * python/py-symbol.c (symbol_object): Remove typedef.
166 (set_symbol): Update.
167 * python/py-event.h (event_object): Remove typedef.
168 * python/py-param.c (parmpy_object): Remove typedef.
169 * python/py-instruction.c (struct py_insn_obj): Remove typedef.
170 * python/py-unwind.c (struct pending_frame_object): Remove typedef.
171 (unwind_info_object, struct cached_frame_info): Likewise.
173 2020-12-04 Tom Tromey <tromey@adacore.com>
175 * value.c (value_internal_function_name): Make return type const.
176 * value.h (value_internal_function_name): Make return type const.
178 2020-12-04 Luis Machado <luis.machado@linaro.org>
180 * aarch64-tdep.c (submask, bit, bits): Remove.
181 * arch/aarch64-insn.c (extract_signed_bitfield): Remove.
182 (aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond)
183 (aarch64_decode_cb, aarch64_decode_tb)
184 (aarch64_decode_ldr_literal): Use sbits to extract a signed
186 * arch/aarch64-insn.h (submask, bits, bit, sbits): New macros.
188 2020-12-04 Tom de Vries <tdevries@suse.de>
191 * i386-tdep.c (i386_16_byte_align_p): Skip static fields.
193 2020-12-03 Simon Marchi <simon.marchi@polymtl.ca>
196 * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of
197 dwarf2_frame_bfd_data and dwarf2_frame_objfile_data.
199 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
201 * arch/riscv.c: Include 'rv32e-xregs.c'.
202 (riscv_create_target_description): Update to handle rv32e.
203 * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New
205 <operator==>: Update to account for new field.
207 * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml.
208 * features/riscv/rv32e-xregs.c: Generated.
209 * features/riscv/rv32e-xregs.xml: New file.
210 * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the
212 (riscv_debug_infcall): Likewise.
213 (riscv_debug_unwinder): Likewise.
214 (riscv_debug_gdbarch): Likewise.
215 (enum riscv_register_required_status): Delete.
216 (struct riscv_register_feature): Add constructor, delete default
217 constructor, copy, and assign constructors.
218 (struct riscv_register_feature::register_info) <required>: Delete.
219 <check>: Update comment and arguments.
220 (struct riscv_register_feature) <name>: Change to member function.
221 <prefer_first_name>: Delete.
222 <tdesc_feature>: New member function.
223 <registers>: Rename to...
224 <m_registers>: ...this.
225 <m_feature_name>: New member variable.
226 (riscv_register_feature::register_info::check): Update arguments.
227 (riscv_xreg_feature): Rewrite as class, create a single static
228 instance of the class.
229 (riscv_freg_feature): Likewise.
230 (riscv_virtual_feature): Likewise.
231 (riscv_csr_feature): Likewise.
232 (riscv_create_csr_aliases): Has become a member function inside
233 riscv_csr_feature class.
234 (riscv_abi_embedded): New function definition.
235 (riscv_register_name): Adjust to use new feature objects.
236 (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi,
237 and adjust available argument registers.
238 (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag.
239 (riscv_check_tdesc_feature): Delete.
240 (riscv_tdesc_unknown_reg): Adjust to use new feature objects.
241 (riscv_gdbarch_init): Delete target description checking code, and
242 instead call to the new feature objects to perform the checks.
243 Reorder handling of no abi information case, allows small code
245 (_initialize_riscv_tdep): Remove call, this is now done in the
246 riscv_csr_feature constructor.
247 * riscv-tdep.h (riscv_abi_embedded): Declare.
249 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
251 * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
254 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
256 * riscv-tdep.c (riscv_is_unknown_csr): New function,
257 implementation moved from riscv_register_reggroup_p.
258 (riscv_register_reggroup_p): Update group handling for unknown
261 2020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
263 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
264 (dwarf2_get_dwz_file): Convert 'filename' to a
265 std::string. Use dwz_search_other_debugdirs to search for DWZ
266 files in the debug-file-directories provided by the user as well.
268 2020-12-01 Tom Tromey <tom@tromey.com>
270 * parse.c (expr_builder::expr_builder): Initialize expout.
271 (expr_builder::release): Use expression::resize.
272 (expression::expression, expression::~expression)
273 (expression::resize): New methods.
274 (write_exp_elt): Use expression::resize.
275 (prefixify_expression): Update.
276 (increase_expout_size): Use expression::resize.
277 * expression.h (struct expression): Add constructor, destructor.
278 <resize>: New method.
279 (expression_up): Change type.
281 2020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
282 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
283 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
286 2020-11-30 Tom de Vries <tdevries@suse.de>
289 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
290 is_reference parameter.
291 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
293 2020-11-30 Tom Tromey <tom@tromey.com>
295 * rust-lang.c (rust_op_name): Remove.
296 (exp_descriptor_rust): Update.
297 * parser-defs.h (op_name_standard): Don't declare.
298 (struct exp_descriptor) <op_name>: Remove.
299 * parse.c (exp_descriptor_standard): Update.
300 * opencl-lang.c (exp_descriptor_opencl): Update.
301 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
302 * f-lang.c (op_name_f): Remove.
303 (f_language::exp_descriptor_tab): Update.
304 * expression.h (op_name): Update.
305 * expprint.c (op_name): Rewrite.
306 (op_name_standard): Remove.
307 (dump_raw_expression, dump_subexp): Update.
308 * c-lang.c (exp_descriptor_c): Update.
309 * ax-gdb.c (gen_expr): Update.
310 * ada-lang.c (ada_op_name): Remove.
311 (ada_exp_descriptor): Update.
313 2020-11-30 Tom Tromey <tom@tromey.com>
315 * eval.c (init_array_element): Remove.
316 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
318 2020-11-29 Hannes Domani <ssbssa@yahoo.de>
321 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
322 static locator win info.
324 2020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
326 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
329 2020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
331 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
332 is always initialized.
334 2020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
335 * MAINTAINERS (Write After Approval): Add myself.
337 2020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
339 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
340 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
342 2020-11-25 Tom Tromey <tom@tromey.com>
344 * eval.c (evaluate_subexp_standard): Remove unnecessary
347 2020-11-25 Tom Tromey <tom@tromey.com>
349 * d-lang.c: Include parser-defs.h.
350 * rust-lang.c: Include parser-defs.h.
351 * c-lang.h: Do not include parser-defs.h.
353 2020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
355 * regcache.h (struct cached_reg): Remove typedef.
357 2020-11-24 Joel Brobecker <brobecker@adacore.com>
359 * README: Fix the URL of the MPFR library.
361 2020-11-24 Joel Brobecker <brobecker@adacore.com>
363 * README: Document the --with-libgmp-prefix configure option.
365 2020-11-24 Joel Brobecker <brobecker@adacore.com>
367 * NEWS: Add entry documenting support for DWARF-based fixed
370 2020-11-24 Joel Brobecker <brobecker@adacore.com>
372 * NEWS: Document that building GDB now requires GMP.
374 2020-11-24 Joel Brobecker <brobecker@adacore.com>
376 * typeprint.c (print_type_scalar): Add handling of
377 TYPE_CODE_FIXED_POINT.
379 2020-11-24 Joel Brobecker <brobecker@adacore.com>
381 * valarith.c (fixed_point_binop): Replace the
382 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
385 2020-11-24 Joel Brobecker <brobecker@adacore.com>
387 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
388 replacing fixed_point_scaling_factor. All callers updated
389 throughout this project.
390 (fixed_point_scaling_factor): Delete declaration.
391 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
392 fixed_point_scaling_factor. Adjust implementation accordingly.
394 2020-11-24 Joel Brobecker <brobecker@adacore.com>
396 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
397 replacing the fixed_point_type_base_type function. All callers
398 updated throughout this project.
399 (fixed_point_type_base_type): Remove declaration.
400 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
401 fixed_point_type_base_type. Adjust implementation accordingly.
403 2020-11-24 Joel Brobecker <brobecker@adacore.com>
405 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
407 (INIT_FIXED_POINT_SPECIFIC): Adjust.
408 (TYPE_FIXED_POINT_INFO): Delete macro.
409 (allocate_fixed_point_type_info): Change return type to void.
410 * gdbtypes.c (copy_type_recursive): Replace the use of
411 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
412 (fixed_point_scaling_factor): Likewise.
413 (allocate_fixed_point_type_info): Change return type to void.
414 Adjust implementation accordingly.
415 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
416 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
418 2020-11-24 Joel Brobecker <brobecker@adacore.com>
420 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
421 into one single gdb::array_view parameter.
422 (gdb_mpz::write): Likewise.
423 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
424 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
425 into one single gdb::array_view parameter.
426 Adjust implementation accordingly.
427 (gdb_mpz::write): Likewise.
428 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
429 * unittests/gmp-utils-selftests.c: Adapt following changes above.
430 * valarith.c, valops.c, valprint.c, value.c: Likewise.
432 2020-11-24 Joel Brobecker <brobecker@adacore.com>
434 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
435 Change return type to std::string. Update all callers.
436 * gmp-utils.c (gmp_string_printf): Likewise.
438 2020-11-24 Joel Brobecker <brobecker@adacore.com>
440 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
441 instead of mpq_set_ui to initialize our GMP rational.
443 2020-11-23 Tom de Vries <tdevries@suse.de>
445 * debuginfod-support.c (debuginfod_source_query)
446 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
448 2020-11-21 Tom Tromey <tom@tromey.com>
450 * breakpoint.c (watchpoint_exp_is_const): Return bool.
452 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
454 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
456 (gdb_mpz_write_all_from_small): Likewise.
458 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
460 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
463 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
465 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
466 ctf_arc_open_by_name.
468 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
470 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
471 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
473 2020-11-20 Pedro Alves <pedro@palves.net>
475 * language.c (language_arch_info::lookup_primitive_type): Use
476 gdb::function_view instead of gdb::function.
477 (template language_lookup_primitive_type): Rename to ...
478 (language_lookup_primitive_type_1): ... this, and make static.
479 (language_lookup_primitive_type(const struct language_defn *,
480 struct gdbarch *, const char *): Make non-template.
481 (language_lookup_primitive_type(const struct language_defn *,
482 struct gdbarch *, std::function<bool (struct type *)>): Make
483 non-template and use gdb::function_view.
484 * language.h (language_arch_info::lookup_primitive_type): Use
485 gdb::function_view instead of std::function.
486 (language_lookup_primitive_type): No longer template.
487 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
488 lambda instead of a std::function.
490 2020-11-19 Andreas Arnez <arnez@linux.ibm.com>
493 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
496 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
498 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
500 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
502 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
503 in `loop_cb` parameter.
504 * gdbarch.c: Re-generate.
505 * gdbarch.h: Re-generate.
506 * arch-utils.c (default_read_core_file_mappings): Remove `other`
508 * arch-utils.h (default_read_core_file_mappings): Likewise.
509 * corelow.c (core_target::build_file_mappings): Likewise.
510 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
511 (linux_core_info_proc_mappings): Likewise.
513 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
515 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
516 * NEWS: Mention new options.
517 * f-array-walker.h: New file.
518 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
519 (repack_array_slices): New static global.
520 (show_repack_array_slices): New function.
521 (fortran_array_slicing_debug): New static global.
522 (show_fortran_array_slicing_debug): New function.
523 (value_f90_subarray): Delete.
524 (skip_undetermined_arglist): Delete.
525 (class fortran_array_repacker_base_impl): New class.
526 (class fortran_lazy_array_repacker_impl): New class.
527 (class fortran_array_repacker_impl): New class.
528 (fortran_value_subarray): Complete rewrite.
529 (set_fortran_list): New static global.
530 (show_fortran_list): Likewise.
531 (_initialize_f_language): Register new commands.
532 (fortran_adjust_dynamic_array_base_address_hack): New function.
533 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
535 * f-valprint.c: Include 'f-array-walker.h'.
536 (class fortran_array_printer_impl): New class.
537 (f77_print_array_1): Delete.
538 (f77_print_array): Delete.
539 (fortran_print_array): New.
540 (f_value_print_inner): Update to call fortran_print_array.
541 * gdbtypes.c: Include 'f-lang.h'.
542 (resolve_dynamic_type_internal): Call
543 fortran_adjust_dynamic_array_base_address_hack.
545 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
547 * breakpoint.c (struct watch_options): New struct.
548 (watch_option_defs): New static global.
549 (make_watch_options_def_group): New function.
550 (watch_maybe_just_location): Convert option parsing.
551 (watch_command_completer): New function.
552 (_initialize_breakpoint): Build help text using options mechanism.
554 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
556 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
557 (watch_command_1): Update parameter types. Convert locals to
559 (watch_command_wrapper): Change parameter type.
560 (watch_maybe_just_location): Change locals to bool.
561 (rwatch_command_wrapper): Update parameter type.
562 (awatch_command_wrapper): Update parameter type.
563 * breakpoint.h (watch_command_wrapper): Change parameter type.
564 (rwatch_command_wrapper): Update parameter type.
565 (awatch_command_wrapper): Update parameter type.
566 * eval.c (fetch_subexp_value): Change parameter type.
567 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
569 * value.h (fetch_subexp_value): Change parameter type in
572 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
574 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
577 2020-11-18 Keith Seitz <keiths@redhat.com>
579 * linux-tdep.c (dump_note_entry_p): Return true instead of
582 2020-11-18 Tom de Vries <tdevries@suse.de>
584 * debuginfod-support.c (debuginfod_source_query)
585 (debuginfod_debuginfo_query): Also do early exit if
586 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
588 2020-11-18 Tom de Vries <tdevries@suse.de>
590 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
593 2020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
595 * gdbtypes.h (get_array_bounds): Return bool, adjust some
596 callers. Move doc here.
597 * gdbtypes.c (get_array_bounds): Return bool
599 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
601 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
603 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
604 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
607 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
609 * printcmd.c: Include 'safe-ctype.c'.
610 (skip_over_slash_fmt): New function.
611 (print_command_completer): Call skip_over_slash_fmt.
612 (display_and_x_command_completer): New function.
613 (_initialize_printcmd): Add command completion for 'x' and
616 2020-11-16 Pedro Alves <pedro@palves.net>
618 * frame.c (get_prev_frame): Move get_frame_id call from here ...
619 (get_prev_frame_always_1): ... to here.
620 * inline-frame.c (inline_frame_this_id): Mention
621 get_prev_frame_always_1 in comment.
623 2020-11-15 Joel Brobecker <brobecker@adacore.com>
625 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
627 (value_less): Add fixed-point handling.
629 2020-11-15 Joel Brobecker <brobecker@adacore.com>
631 * eval.c (binop_promote): Add fixed-point type handling.
632 * valarith.c (fixed_point_binop): New function.
633 (scalar_binop): Add fixed-point type handling.
634 (value_neg): Add fixed-point type handling.
635 * valops.c (value_cast_to_fixed_point): New function.
636 (value_cast): Add fixed-point type handling.
638 2020-11-15 Joel Brobecker <brobecker@adacore.com>
640 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
642 * c-typeprint.c (c_type_print_varspec_prefix)
643 (c_type_print_varspec_suffix, c_type_print_base_1): Add
644 TYPE_CODE_FIXED_POINT handling.
645 * p-typeprint.c (pascal_type_print_varspec_prefix)
646 (pascal_type_print_varspec_suffix): Likewise.
647 * typeprint.c (print_type_fixed_point): New function.
648 * typeprint.h (print_type_fixed_point): Add declaration.
650 2020-11-15 Joel Brobecker <brobecker@adacore.com>
652 * printcmd.c (print_scalar_formatted): Add fixed-point type
653 handling when options->format is set.
655 2020-11-15 Joel Brobecker <brobecker@adacore.com>
657 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
658 * dwarf2/read.c (get_dwarf2_rational_constant)
659 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
660 (has_zero_over_zero_small_attribute): New functions.
661 read_base_type, set_die_type): Add fixed-point type handling.
662 * gdb-gdb.py.in: Add fixed-point type handling.
663 * gdbtypes.c: #include "gmp-utils.h".
664 (create_range_type, set_type_code): Add fixed-point type handling.
665 (init_fixed_point_type): New function.
666 (is_integral_type, is_scalar_type): Add fixed-point type handling.
667 (print_fixed_point_type_info): New function.
668 (recursive_dump_type, copy_type_recursive): Add fixed-point type
670 (fixed_point_type_storage): New typedef.
671 (fixed_point_objfile_key): New static global.
672 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
673 (fixed_point_type_base_type, fixed_point_scaling_factor): New
675 * gdbtypes.h: #include "gmp-utils.h".
676 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
677 (union type_specific) <fixed_point_info>: New field.
678 (struct fixed_point_type_info): New struct.
679 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
680 (init_fixed_point_type, is_fixed_point_type)
681 (fixed_point_type_base_type, fixed_point_scaling_factor)
682 (allocate_fixed_point_type_info): Add declarations.
683 * valprint.c (generic_val_print_fixed_point): New function.
684 (generic_value_print): Add fixed-point type handling.
685 * value.c (value_as_address, unpack_long): Add fixed-point type
688 2020-11-15 Joel Brobecker <brobecker@adacore.com>
690 * utils.h (uinteger_pow): Add declaration.
691 * utils.c (uinteger_pow): Moved here (without changes)...
692 * valarith.c (uinteger_pow): ... from here.
694 2020-11-15 Joel Brobecker <brobecker@adacore.com>
696 * gmp-utils.h, gmp-utils.c: New file.
697 * unittests/gmp-utils-selftests.c: New file.
698 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
699 unittests/gmp-utils-selftests.c.
700 (COMMON_SFILES) Add gmp-utils.c.
701 (HFILES_NO_SRCDIR): Add gmp-utils.h.
703 2020-11-15 Joel Brobecker <brobecker@adacore.com>
705 * configure.ac: Generate an error if a usable GMP library
707 * configure: Regenerate.
709 2020-11-15 Joel Brobecker <brobecker@adacore.com>
711 * configure.ac: Add support for --with-libgmp-prefix.
712 * Makefile.in (LIBGMP): New variable.
713 (CLIBS): Include $(LIBGMP).
714 * configure, config.in: Regenerate
716 2020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
719 * f-exp.y (COMPLETE): New token.
720 (exp): Two new rules for tab-completion.
721 (saw_name_at_eof): New static global.
722 (last_was_structop): Likewise.
723 (yylex): Set new variables, and return COMPLETE token at the end
724 of the input stream in some cases.
726 2020-11-14 Tom Tromey <tom@tromey.com>
728 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
730 2020-11-14 Tom Tromey <tom@tromey.com>
732 * opencl-lang.c (opencl_component_ref): Make "comps" const.
734 2020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
736 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
738 2020-11-13 Tom Tromey <tom@tromey.com>
740 * c-lang.c (convert_ucn, convert_octal, convert_hex)
741 (convert_escape, parse_one_string): Constify.
743 2020-11-13 Keith Seitz <keiths@redhat.com>
745 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
746 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
747 outside of ELF segments" warning for debugin
749 2020-11-13 Keith Seitz <keiths@redhat.com>
752 * elfread.c (elf_symfile_segments): Output a BFD file name
753 for the "Loadable section ... outside of ELF segments" warning.
755 2020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
758 * arm-tdep.c (class arm_instruction_reader): New.
759 (target_arm_instruction_reader): New.
760 (arm_analyze_prologue): Add instruction reader parameter and use
761 it. Use arm_expand_immediate.
762 (class target_arm_instruction_reader): Adjust.
763 (arm_skip_prologue): Adjust.
764 (arm_expand_immediate): New.
765 (arm_scan_prologue): Adjust.
766 (arm_analyze_prologue_test): New.
767 (class test_arm_instruction_reader): New.
769 2020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
771 * f-lang.c (fortran_argument_convert): Add declaration. Add
772 header comment, taken from f-lang.h. Make static.
773 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
774 (fortran_argument_convert): Delete declaration.
776 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
778 * ada-exp.y (find_primitive_type): Make parameter const.
779 * ada-lang.c (enum ada_primitive_types): Delete.
780 (ada_language::language_arch_info): Update.
781 * c-lang.c (enum c_primitive_types): Delete.
782 (c_language_arch_info): Update.
783 (enum cplus_primitive_types): Delete.
784 (cplus_language::language_arch_info): Update.
785 * d-lang.c (enum d_primitive_types): Delete.
786 (d_language::language_arch_info): Update.
787 * f-lang.c (enum f_primitive_types): Delete.
788 (f_language::language_arch_info): Update.
789 * go-lang.c (enum go_primitive_types): Delete.
790 (go_language::language_arch_info): Update.
791 * language.c (auto_or_unknown_language::language_arch_info):
793 (language_gdbarch_post_init): Use obstack_new, use array indexing.
794 (language_string_char_type): Add header comment, call function in
796 (language_bool_type): Likewise
797 (language_arch_info::bool_type): Define.
798 (language_lookup_primitive_type_1): Delete.
799 (language_lookup_primitive_type): Rewrite as a templated function
800 to call function in language_arch_info, then instantiate twice.
801 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
802 (language_arch_info::lookup_primitive_type_and_symbol): Define.
803 (language_arch_info::lookup_primitive_type): Define twice with
804 different signatures.
805 (language_arch_info::lookup_primitive_type_as_symbol): Define.
806 (language_lookup_primitive_type_as_symbol): Rewrite to call a
807 member function in language_arch_info.
808 * language.h (language_arch_info): Complete rewrite.
809 (language_lookup_primitive_type): Make templated.
810 * m2-lang.c (enum m2_primitive_types): Delete.
811 (m2_language::language_arch_info): Update.
812 * opencl-lang.c (OCL_P_TYPE): Delete.
813 (enum opencl_primitive_types): Delete.
814 (opencl_type_data): Delete.
815 (builtin_opencl_type): Delete.
816 (lookup_opencl_vector_type): Update.
817 (opencl_language::language_arch_info): Update, lots of content
819 (build_opencl_types): ...here. This function is now deleted.
820 (_initialize_opencl_language): Delete.
821 * p-lang.c (enum pascal_primitive_types): Delete.
822 (pascal_language::language_arch_info): Update.
823 * rust-lang.c (enum rust_primitive_types): Delete.
824 (rust_language::language_arch_info): Update.
826 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
828 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
831 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
833 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
836 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
838 * dwarf2/read.c (dwarf_read_debug_printf,
839 dwarf_read_debug_printf_v): New macros, use throughout the file.
841 2020-11-12 Shahab Vahedi <shahab@synopsys.com>
844 * arc-linux-tdep.c (collect_register): Populate "eret" by
845 "pc" value from the regcache when asked for "pc" value.
847 2020-11-12 Tom Tromey <tom@tromey.com>
850 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
853 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
855 * features/Makefile (XMLTOC): Add rx.xml.
856 (FEATURE_XMLFILES): Remove rx.xml.
857 (FEATURE_CFILES rule): Pass '-single-feature' flag.
858 * features/rx.c: Regenerate.
859 * features/rx.xml: Wrap in `target` tags, and reindent.
860 * target-descriptions.c (struct maint_print_c_tdesc_options): New
862 (maint_print_c_tdesc_opt_def): New typedef.
863 (maint_print_c_tdesc_opt_defs): New static global.
864 (make_maint_print_c_tdesc_options_def_group): New function.
865 (maint_print_c_tdesc_cmd): Make use of command line flags, only
866 print single feature C file for target descriptions containing a
868 (maint_print_c_tdesc_cmd_completer): New function.
869 (_initialize_target_descriptions): Update call to register command
870 completer, and include command line flag in help text.
872 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
874 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
876 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
879 2020-11-10 Tom Tromey <tom@tromey.com>
881 * value.h (internalvar_name): Update.
882 * value.c (internalvar_name): Make return type const.
884 2020-11-10 Tom Tromey <tom@tromey.com>
886 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
887 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
890 2020-11-10 Tom Tromey <tom@tromey.com>
892 * objc-lang.h (value_nsstring): Update.
893 * objc-lang.c (value_nsstring): Make "ptr" const.
895 2020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
897 * expprint.c (print_subexp_funcall): Increment expression position
898 after reading argument count.
899 * f-lang.c (print_subexp_f): Skip over opcode before calling
901 (dump_subexp_body_f): Likewise.
903 2020-11-06 Romain Geissler <romain.geissler@amadeus.com>
906 * configure: Regenerate.
907 * configure.ac: Check for python modules ctypes instead of
910 2020-11-06 Pedro Alves <pedro@palves.net>
912 * macroexp.c (struct macro_buffer): Split in two classes. Add
914 (struct shared_macro_buffer): New, factored out from struct
916 (struct growable_macro_buffer): New, factored out from struct
918 (set_token, get_comment, get_identifier, get_pp_number)
919 (get_character_constant, get_string_literal, get_punctuator)
920 (get_next_token_for_substitution): Constify parameters.
921 (substitute_args): Constify locals.
923 2020-11-05 Tom Tromey <tom@tromey.com>
925 * dwarf2/read.c (read_cutu_die_from_dwo)
926 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
927 (build_type_psymtabs_1): Update.
928 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
930 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
931 Don't read section. Add assert.
933 2020-11-04 Tom Tromey <tromey@adacore.com>
935 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
937 2020-11-04 Tom Tromey <tromey@adacore.com>
939 * ada-typeprint.c (ada_print_type): Handle __T types.
941 2020-11-04 Tom Tromey <tromey@adacore.com>
943 * dwarf2/read.c (add_partial_symbol, process_die):
944 Handle DW_TAG_array_type.
945 (is_type_tag_for_partial): Add "lang" parameter.
946 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
948 2020-11-04 Tom Tromey <tromey@adacore.com>
950 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
952 2020-11-04 Tom Tromey <tromey@adacore.com>
954 * dwarf2/read.c (read_array_type): Only apply stride to innermost
957 2020-11-04 Tom Tromey <tromey@adacore.com>
959 * gdbtypes.c (update_static_array_size): Handle bit stride.
961 2020-11-04 Tom Tromey <tromey@adacore.com>
963 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
965 2020-11-04 Tom Tromey <tromey@adacore.com>
967 * ada-lang.c (ada_is_any_packed_array_type): New function.
968 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
970 2020-11-04 Tom Tromey <tromey@adacore.com>
972 * dwarf2/read.c (recognize_bound_expression)
973 (quirk_ada_thick_pointer): New functions.
974 (read_array_type): Call quirk_ada_thick_pointer.
975 (set_die_type): Add "skip_data_location" parameter.
976 (quirk_ada_thick_pointer): New function.
977 (process_structure_scope): Call quirk_ada_thick_pointer.
978 * ada-lang.c (ada_is_unconstrained_packed_array_type)
979 (decode_packed_array_bitsize): Handle thick pointers without
981 (ada_is_gnat_encoded_packed_array_type): Rename from
982 ada_is_packed_array_type.
983 (ada_is_constrained_packed_array_type): Update.
984 * ada-valprint.c (ada_val_print_gnat_array): Remove.
985 (ada_value_print_1): Use ada_get_decoded_value.
987 2020-11-04 Tom Tromey <tromey@adacore.com>
989 * ada-lang.c (recursively_update_array_bitsize): New function.
990 (decode_constrained_packed_array_type): Call it.
992 2020-11-04 Tom Tromey <tromey@adacore.com>
994 * ada-lang.c (to_fixed_array_type): Error if
995 decode_constrained_packed_array_type returns NULL.
997 2020-11-04 Tom Tromey <tromey@adacore.com>
999 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
1001 2020-11-02 Tom Tromey <tromey@adacore.com>
1003 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
1004 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
1005 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
1006 * amd64-ravenscar-thread.c: New file.
1007 * amd64-ravenscar-thread.h: New file.
1008 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
1009 * configure.tgt (amd64_tobjs): Add ravenscar objects.
1011 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1013 * main.c (execute_cmdargs): New function.
1014 (captured_main_1): Make use of execute_cmdargs.
1016 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1018 * NEWS: Mention changes to config file search path.
1021 2020-11-02 Tom Tromey <tromey@adacore.com>
1023 * python/python.c: Consolidate two HAVE_PYTHON blocks.
1024 (python_GdbModuleDef): Move earlier. Now static.
1025 (do_start_initialization): Consolidate some IS_PY3K blocks.
1027 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
1029 * aarch64-linux-tdep.c: Fix indentation.
1030 * aarch64-ravenscar-thread.c: Fix indentation.
1031 * aarch64-tdep.c: Fix indentation.
1032 * aarch64-tdep.h: Fix indentation.
1033 * ada-lang.c: Fix indentation.
1034 * ada-lang.h: Fix indentation.
1035 * ada-tasks.c: Fix indentation.
1036 * ada-typeprint.c: Fix indentation.
1037 * ada-valprint.c: Fix indentation.
1038 * ada-varobj.c: Fix indentation.
1039 * addrmap.c: Fix indentation.
1040 * addrmap.h: Fix indentation.
1041 * agent.c: Fix indentation.
1042 * aix-thread.c: Fix indentation.
1043 * alpha-bsd-nat.c: Fix indentation.
1044 * alpha-linux-tdep.c: Fix indentation.
1045 * alpha-mdebug-tdep.c: Fix indentation.
1046 * alpha-nbsd-tdep.c: Fix indentation.
1047 * alpha-obsd-tdep.c: Fix indentation.
1048 * alpha-tdep.c: Fix indentation.
1049 * amd64-bsd-nat.c: Fix indentation.
1050 * amd64-darwin-tdep.c: Fix indentation.
1051 * amd64-linux-nat.c: Fix indentation.
1052 * amd64-linux-tdep.c: Fix indentation.
1053 * amd64-nat.c: Fix indentation.
1054 * amd64-obsd-tdep.c: Fix indentation.
1055 * amd64-tdep.c: Fix indentation.
1056 * amd64-windows-tdep.c: Fix indentation.
1057 * annotate.c: Fix indentation.
1058 * arc-tdep.c: Fix indentation.
1059 * arch-utils.c: Fix indentation.
1060 * arch/arm-get-next-pcs.c: Fix indentation.
1061 * arch/arm.c: Fix indentation.
1062 * arm-linux-nat.c: Fix indentation.
1063 * arm-linux-tdep.c: Fix indentation.
1064 * arm-nbsd-tdep.c: Fix indentation.
1065 * arm-pikeos-tdep.c: Fix indentation.
1066 * arm-tdep.c: Fix indentation.
1067 * arm-tdep.h: Fix indentation.
1068 * arm-wince-tdep.c: Fix indentation.
1069 * auto-load.c: Fix indentation.
1070 * auxv.c: Fix indentation.
1071 * avr-tdep.c: Fix indentation.
1072 * ax-gdb.c: Fix indentation.
1073 * ax-general.c: Fix indentation.
1074 * bfin-linux-tdep.c: Fix indentation.
1075 * block.c: Fix indentation.
1076 * block.h: Fix indentation.
1077 * blockframe.c: Fix indentation.
1078 * bpf-tdep.c: Fix indentation.
1079 * break-catch-sig.c: Fix indentation.
1080 * break-catch-syscall.c: Fix indentation.
1081 * break-catch-throw.c: Fix indentation.
1082 * breakpoint.c: Fix indentation.
1083 * breakpoint.h: Fix indentation.
1084 * bsd-uthread.c: Fix indentation.
1085 * btrace.c: Fix indentation.
1086 * build-id.c: Fix indentation.
1087 * buildsym-legacy.h: Fix indentation.
1088 * buildsym.c: Fix indentation.
1089 * c-typeprint.c: Fix indentation.
1090 * c-valprint.c: Fix indentation.
1091 * c-varobj.c: Fix indentation.
1092 * charset.c: Fix indentation.
1093 * cli/cli-cmds.c: Fix indentation.
1094 * cli/cli-decode.c: Fix indentation.
1095 * cli/cli-decode.h: Fix indentation.
1096 * cli/cli-script.c: Fix indentation.
1097 * cli/cli-setshow.c: Fix indentation.
1098 * coff-pe-read.c: Fix indentation.
1099 * coffread.c: Fix indentation.
1100 * compile/compile-cplus-types.c: Fix indentation.
1101 * compile/compile-object-load.c: Fix indentation.
1102 * compile/compile-object-run.c: Fix indentation.
1103 * completer.c: Fix indentation.
1104 * corefile.c: Fix indentation.
1105 * corelow.c: Fix indentation.
1106 * cp-abi.h: Fix indentation.
1107 * cp-namespace.c: Fix indentation.
1108 * cp-support.c: Fix indentation.
1109 * cp-valprint.c: Fix indentation.
1110 * cris-linux-tdep.c: Fix indentation.
1111 * cris-tdep.c: Fix indentation.
1112 * darwin-nat-info.c: Fix indentation.
1113 * darwin-nat.c: Fix indentation.
1114 * darwin-nat.h: Fix indentation.
1115 * dbxread.c: Fix indentation.
1116 * dcache.c: Fix indentation.
1117 * disasm.c: Fix indentation.
1118 * dtrace-probe.c: Fix indentation.
1119 * dwarf2/abbrev.c: Fix indentation.
1120 * dwarf2/attribute.c: Fix indentation.
1121 * dwarf2/expr.c: Fix indentation.
1122 * dwarf2/frame.c: Fix indentation.
1123 * dwarf2/index-cache.c: Fix indentation.
1124 * dwarf2/index-write.c: Fix indentation.
1125 * dwarf2/line-header.c: Fix indentation.
1126 * dwarf2/loc.c: Fix indentation.
1127 * dwarf2/macro.c: Fix indentation.
1128 * dwarf2/read.c: Fix indentation.
1129 * dwarf2/read.h: Fix indentation.
1130 * elfread.c: Fix indentation.
1131 * eval.c: Fix indentation.
1132 * event-top.c: Fix indentation.
1133 * exec.c: Fix indentation.
1134 * exec.h: Fix indentation.
1135 * expprint.c: Fix indentation.
1136 * f-lang.c: Fix indentation.
1137 * f-typeprint.c: Fix indentation.
1138 * f-valprint.c: Fix indentation.
1139 * fbsd-nat.c: Fix indentation.
1140 * fbsd-tdep.c: Fix indentation.
1141 * findvar.c: Fix indentation.
1142 * fork-child.c: Fix indentation.
1143 * frame-unwind.c: Fix indentation.
1144 * frame-unwind.h: Fix indentation.
1145 * frame.c: Fix indentation.
1146 * frv-linux-tdep.c: Fix indentation.
1147 * frv-tdep.c: Fix indentation.
1148 * frv-tdep.h: Fix indentation.
1149 * ft32-tdep.c: Fix indentation.
1150 * gcore.c: Fix indentation.
1151 * gdb_bfd.c: Fix indentation.
1152 * gdbarch.sh: Fix indentation.
1153 * gdbarch.c: Re-generate
1154 * gdbarch.h: Re-generate.
1155 * gdbcore.h: Fix indentation.
1156 * gdbthread.h: Fix indentation.
1157 * gdbtypes.c: Fix indentation.
1158 * gdbtypes.h: Fix indentation.
1159 * glibc-tdep.c: Fix indentation.
1160 * gnu-nat.c: Fix indentation.
1161 * gnu-nat.h: Fix indentation.
1162 * gnu-v2-abi.c: Fix indentation.
1163 * gnu-v3-abi.c: Fix indentation.
1164 * go32-nat.c: Fix indentation.
1165 * guile/guile-internal.h: Fix indentation.
1166 * guile/scm-cmd.c: Fix indentation.
1167 * guile/scm-frame.c: Fix indentation.
1168 * guile/scm-iterator.c: Fix indentation.
1169 * guile/scm-math.c: Fix indentation.
1170 * guile/scm-ports.c: Fix indentation.
1171 * guile/scm-pretty-print.c: Fix indentation.
1172 * guile/scm-value.c: Fix indentation.
1173 * h8300-tdep.c: Fix indentation.
1174 * hppa-linux-nat.c: Fix indentation.
1175 * hppa-linux-tdep.c: Fix indentation.
1176 * hppa-nbsd-nat.c: Fix indentation.
1177 * hppa-nbsd-tdep.c: Fix indentation.
1178 * hppa-obsd-nat.c: Fix indentation.
1179 * hppa-tdep.c: Fix indentation.
1180 * hppa-tdep.h: Fix indentation.
1181 * i386-bsd-nat.c: Fix indentation.
1182 * i386-darwin-nat.c: Fix indentation.
1183 * i386-darwin-tdep.c: Fix indentation.
1184 * i386-dicos-tdep.c: Fix indentation.
1185 * i386-gnu-nat.c: Fix indentation.
1186 * i386-linux-nat.c: Fix indentation.
1187 * i386-linux-tdep.c: Fix indentation.
1188 * i386-nto-tdep.c: Fix indentation.
1189 * i386-obsd-tdep.c: Fix indentation.
1190 * i386-sol2-nat.c: Fix indentation.
1191 * i386-tdep.c: Fix indentation.
1192 * i386-tdep.h: Fix indentation.
1193 * i386-windows-tdep.c: Fix indentation.
1194 * i387-tdep.c: Fix indentation.
1195 * i387-tdep.h: Fix indentation.
1196 * ia64-libunwind-tdep.c: Fix indentation.
1197 * ia64-libunwind-tdep.h: Fix indentation.
1198 * ia64-linux-nat.c: Fix indentation.
1199 * ia64-linux-tdep.c: Fix indentation.
1200 * ia64-tdep.c: Fix indentation.
1201 * ia64-tdep.h: Fix indentation.
1202 * ia64-vms-tdep.c: Fix indentation.
1203 * infcall.c: Fix indentation.
1204 * infcmd.c: Fix indentation.
1205 * inferior.c: Fix indentation.
1206 * infrun.c: Fix indentation.
1207 * iq2000-tdep.c: Fix indentation.
1208 * language.c: Fix indentation.
1209 * linespec.c: Fix indentation.
1210 * linux-fork.c: Fix indentation.
1211 * linux-nat.c: Fix indentation.
1212 * linux-tdep.c: Fix indentation.
1213 * linux-thread-db.c: Fix indentation.
1214 * lm32-tdep.c: Fix indentation.
1215 * m2-lang.c: Fix indentation.
1216 * m2-typeprint.c: Fix indentation.
1217 * m2-valprint.c: Fix indentation.
1218 * m32c-tdep.c: Fix indentation.
1219 * m32r-linux-tdep.c: Fix indentation.
1220 * m32r-tdep.c: Fix indentation.
1221 * m68hc11-tdep.c: Fix indentation.
1222 * m68k-bsd-nat.c: Fix indentation.
1223 * m68k-linux-nat.c: Fix indentation.
1224 * m68k-linux-tdep.c: Fix indentation.
1225 * m68k-tdep.c: Fix indentation.
1226 * machoread.c: Fix indentation.
1227 * macrocmd.c: Fix indentation.
1228 * macroexp.c: Fix indentation.
1229 * macroscope.c: Fix indentation.
1230 * macrotab.c: Fix indentation.
1231 * macrotab.h: Fix indentation.
1232 * main.c: Fix indentation.
1233 * mdebugread.c: Fix indentation.
1234 * mep-tdep.c: Fix indentation.
1235 * mi/mi-cmd-catch.c: Fix indentation.
1236 * mi/mi-cmd-disas.c: Fix indentation.
1237 * mi/mi-cmd-env.c: Fix indentation.
1238 * mi/mi-cmd-stack.c: Fix indentation.
1239 * mi/mi-cmd-var.c: Fix indentation.
1240 * mi/mi-cmds.c: Fix indentation.
1241 * mi/mi-main.c: Fix indentation.
1242 * mi/mi-parse.c: Fix indentation.
1243 * microblaze-tdep.c: Fix indentation.
1244 * minidebug.c: Fix indentation.
1245 * minsyms.c: Fix indentation.
1246 * mips-linux-nat.c: Fix indentation.
1247 * mips-linux-tdep.c: Fix indentation.
1248 * mips-nbsd-tdep.c: Fix indentation.
1249 * mips-tdep.c: Fix indentation.
1250 * mn10300-linux-tdep.c: Fix indentation.
1251 * mn10300-tdep.c: Fix indentation.
1252 * moxie-tdep.c: Fix indentation.
1253 * msp430-tdep.c: Fix indentation.
1254 * namespace.h: Fix indentation.
1255 * nat/fork-inferior.c: Fix indentation.
1256 * nat/gdb_ptrace.h: Fix indentation.
1257 * nat/linux-namespaces.c: Fix indentation.
1258 * nat/linux-osdata.c: Fix indentation.
1259 * nat/netbsd-nat.c: Fix indentation.
1260 * nat/x86-dregs.c: Fix indentation.
1261 * nbsd-nat.c: Fix indentation.
1262 * nbsd-tdep.c: Fix indentation.
1263 * nios2-linux-tdep.c: Fix indentation.
1264 * nios2-tdep.c: Fix indentation.
1265 * nto-procfs.c: Fix indentation.
1266 * nto-tdep.c: Fix indentation.
1267 * objfiles.c: Fix indentation.
1268 * objfiles.h: Fix indentation.
1269 * opencl-lang.c: Fix indentation.
1270 * or1k-tdep.c: Fix indentation.
1271 * osabi.c: Fix indentation.
1272 * osabi.h: Fix indentation.
1273 * osdata.c: Fix indentation.
1274 * p-lang.c: Fix indentation.
1275 * p-typeprint.c: Fix indentation.
1276 * p-valprint.c: Fix indentation.
1277 * parse.c: Fix indentation.
1278 * ppc-linux-nat.c: Fix indentation.
1279 * ppc-linux-tdep.c: Fix indentation.
1280 * ppc-nbsd-nat.c: Fix indentation.
1281 * ppc-nbsd-tdep.c: Fix indentation.
1282 * ppc-obsd-nat.c: Fix indentation.
1283 * ppc-ravenscar-thread.c: Fix indentation.
1284 * ppc-sysv-tdep.c: Fix indentation.
1285 * ppc64-tdep.c: Fix indentation.
1286 * printcmd.c: Fix indentation.
1287 * proc-api.c: Fix indentation.
1288 * producer.c: Fix indentation.
1289 * producer.h: Fix indentation.
1290 * prologue-value.c: Fix indentation.
1291 * prologue-value.h: Fix indentation.
1292 * psymtab.c: Fix indentation.
1293 * python/py-arch.c: Fix indentation.
1294 * python/py-bpevent.c: Fix indentation.
1295 * python/py-event.c: Fix indentation.
1296 * python/py-event.h: Fix indentation.
1297 * python/py-finishbreakpoint.c: Fix indentation.
1298 * python/py-frame.c: Fix indentation.
1299 * python/py-framefilter.c: Fix indentation.
1300 * python/py-inferior.c: Fix indentation.
1301 * python/py-infthread.c: Fix indentation.
1302 * python/py-objfile.c: Fix indentation.
1303 * python/py-prettyprint.c: Fix indentation.
1304 * python/py-registers.c: Fix indentation.
1305 * python/py-signalevent.c: Fix indentation.
1306 * python/py-stopevent.c: Fix indentation.
1307 * python/py-stopevent.h: Fix indentation.
1308 * python/py-threadevent.c: Fix indentation.
1309 * python/py-tui.c: Fix indentation.
1310 * python/py-unwind.c: Fix indentation.
1311 * python/py-value.c: Fix indentation.
1312 * python/py-xmethods.c: Fix indentation.
1313 * python/python-internal.h: Fix indentation.
1314 * python/python.c: Fix indentation.
1315 * ravenscar-thread.c: Fix indentation.
1316 * record-btrace.c: Fix indentation.
1317 * record-full.c: Fix indentation.
1318 * record.c: Fix indentation.
1319 * reggroups.c: Fix indentation.
1320 * regset.h: Fix indentation.
1321 * remote-fileio.c: Fix indentation.
1322 * remote.c: Fix indentation.
1323 * reverse.c: Fix indentation.
1324 * riscv-linux-tdep.c: Fix indentation.
1325 * riscv-ravenscar-thread.c: Fix indentation.
1326 * riscv-tdep.c: Fix indentation.
1327 * rl78-tdep.c: Fix indentation.
1328 * rs6000-aix-tdep.c: Fix indentation.
1329 * rs6000-lynx178-tdep.c: Fix indentation.
1330 * rs6000-nat.c: Fix indentation.
1331 * rs6000-tdep.c: Fix indentation.
1332 * rust-lang.c: Fix indentation.
1333 * rx-tdep.c: Fix indentation.
1334 * s12z-tdep.c: Fix indentation.
1335 * s390-linux-tdep.c: Fix indentation.
1336 * score-tdep.c: Fix indentation.
1337 * ser-base.c: Fix indentation.
1338 * ser-mingw.c: Fix indentation.
1339 * ser-uds.c: Fix indentation.
1340 * ser-unix.c: Fix indentation.
1341 * serial.c: Fix indentation.
1342 * sh-linux-tdep.c: Fix indentation.
1343 * sh-nbsd-tdep.c: Fix indentation.
1344 * sh-tdep.c: Fix indentation.
1345 * skip.c: Fix indentation.
1346 * sol-thread.c: Fix indentation.
1347 * solib-aix.c: Fix indentation.
1348 * solib-darwin.c: Fix indentation.
1349 * solib-frv.c: Fix indentation.
1350 * solib-svr4.c: Fix indentation.
1351 * solib.c: Fix indentation.
1352 * source.c: Fix indentation.
1353 * sparc-linux-tdep.c: Fix indentation.
1354 * sparc-nbsd-tdep.c: Fix indentation.
1355 * sparc-obsd-tdep.c: Fix indentation.
1356 * sparc-ravenscar-thread.c: Fix indentation.
1357 * sparc-tdep.c: Fix indentation.
1358 * sparc64-linux-tdep.c: Fix indentation.
1359 * sparc64-nbsd-tdep.c: Fix indentation.
1360 * sparc64-obsd-tdep.c: Fix indentation.
1361 * sparc64-tdep.c: Fix indentation.
1362 * stabsread.c: Fix indentation.
1363 * stack.c: Fix indentation.
1364 * stap-probe.c: Fix indentation.
1365 * stubs/ia64vms-stub.c: Fix indentation.
1366 * stubs/m32r-stub.c: Fix indentation.
1367 * stubs/m68k-stub.c: Fix indentation.
1368 * stubs/sh-stub.c: Fix indentation.
1369 * stubs/sparc-stub.c: Fix indentation.
1370 * symfile-mem.c: Fix indentation.
1371 * symfile.c: Fix indentation.
1372 * symfile.h: Fix indentation.
1373 * symmisc.c: Fix indentation.
1374 * symtab.c: Fix indentation.
1375 * symtab.h: Fix indentation.
1376 * target-float.c: Fix indentation.
1377 * target.c: Fix indentation.
1378 * target.h: Fix indentation.
1379 * tic6x-tdep.c: Fix indentation.
1380 * tilegx-linux-tdep.c: Fix indentation.
1381 * tilegx-tdep.c: Fix indentation.
1382 * top.c: Fix indentation.
1383 * tracefile-tfile.c: Fix indentation.
1384 * tracepoint.c: Fix indentation.
1385 * tui/tui-disasm.c: Fix indentation.
1386 * tui/tui-io.c: Fix indentation.
1387 * tui/tui-regs.c: Fix indentation.
1388 * tui/tui-stack.c: Fix indentation.
1389 * tui/tui-win.c: Fix indentation.
1390 * tui/tui-winsource.c: Fix indentation.
1391 * tui/tui.c: Fix indentation.
1392 * typeprint.c: Fix indentation.
1393 * ui-out.h: Fix indentation.
1394 * unittests/copy_bitwise-selftests.c: Fix indentation.
1395 * unittests/memory-map-selftests.c: Fix indentation.
1396 * utils.c: Fix indentation.
1397 * v850-tdep.c: Fix indentation.
1398 * valarith.c: Fix indentation.
1399 * valops.c: Fix indentation.
1400 * valprint.c: Fix indentation.
1401 * valprint.h: Fix indentation.
1402 * value.c: Fix indentation.
1403 * value.h: Fix indentation.
1404 * varobj.c: Fix indentation.
1405 * vax-tdep.c: Fix indentation.
1406 * windows-nat.c: Fix indentation.
1407 * windows-tdep.c: Fix indentation.
1408 * xcoffread.c: Fix indentation.
1409 * xml-syscall.c: Fix indentation.
1410 * xml-tdesc.c: Fix indentation.
1411 * xstormy16-tdep.c: Fix indentation.
1412 * xtensa-config.c: Fix indentation.
1413 * xtensa-linux-nat.c: Fix indentation.
1414 * xtensa-linux-tdep.c: Fix indentation.
1415 * xtensa-tdep.c: Fix indentation.
1417 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1418 Craig Blackmore <craig.blackmore@embecosm.com>
1420 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
1421 as an unsigned value.
1423 2020-11-01 Tom Tromey <tom@tromey.com>
1425 * dbxread.c (dbx_end_psymtab): Update.
1426 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1427 (build_type_psymtabs_reader): Update.
1428 * xcoffread.c (xcoff_end_psymtab): Update.
1429 * ctfread.c (scan_partial_symbols): Update.
1430 * psymtab.c (sort_pst_symbols): Remove.
1431 (partial_symtab::end): Rename from end_psymtab_common. Inline
1433 * psympriv.h (struct partial_symtab) <end>: New method.
1434 (end_psymtab_common): Don't declare.
1436 2020-11-01 Tom Tromey <tom@tromey.com>
1438 * symmisc.c (count_psyms): New function.
1439 (print_objfile_statistics): Use it.
1440 * psymtab.c (append_psymbol_to_list): Remove.
1441 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
1442 * objfiles.h (struct objstats) <n_psyms>: Remove.
1444 2020-11-01 Tom Tromey <tom@tromey.com>
1446 * dbxread.c (dbx_end_psymtab): Update.
1447 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
1448 (build_type_psymtabs_reader): Update.
1449 * xcoffread.c (xcoff_end_psymtab): Update.
1450 * ctfread.c (scan_partial_symbols): Update.
1451 * psympriv.h (end_psymtab_common): Update.
1452 * psymtab.c (end_psymtab_common): Remove objfile parameter.
1453 (sort_pst_symbols): Likewise.
1455 2020-11-01 Tom Tromey <tom@tromey.com>
1457 * dbxread.c (dbx_symfile_read): Update.
1458 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1459 * xcoffread.c (xcoff_initial_scan): Update.
1460 * psympriv.h (init_psymbol_list): Don't declare.
1461 * psymtab.c (init_psymbol_list): Remove.
1463 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1465 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
1466 gnat_encoded_fixed_type_info. Update all callers.
1468 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1470 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
1473 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1475 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
1476 cast_from_fixed. Update all callers.
1477 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
1479 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
1481 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
1483 * ada-typeprint.c: Replace call to ada_scaling_factor by call
1484 to print_gnat_encoded_fixed_point_type.
1485 * ada-valprint.c: Likewise.
1487 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1489 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
1490 (debug_prefixed_printf): Add check of debug_displaced flag.
1491 * linux-nat.c (linux_nat_debug_printf): Add check of
1492 debug_linux_nat flag.
1494 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1496 * infrun.c (infrun_debug_printf_1): Remove.
1497 (displaced_debug_printf_1): Remove.
1498 (stop_all_threads): Use debug_prefixed_printf.
1499 * infrun.h (infrun_debug_printf_1): Remove.
1500 (infrun_debug_printf): Use debug_prefixed_printf.
1501 (displaced_debug_printf_1): Remove.
1502 (displaced_debug_printf): Use debug_prefixed_printf.
1503 * linux-nat.c (linux_nat_debug_printf_1): Remove.
1504 (linux_nat_debug_printf): Use debug_prefixed_printf.
1506 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1508 * configure: Re-generate.
1509 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
1512 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1514 * configure: Re-generate.
1516 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1518 * configure: Re-generate.
1520 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1522 * configure: Re-generate.
1524 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1526 * configure: Re-generate.
1528 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1530 * acinclude.m4: Modernize.
1531 * configure: Re-generate.
1533 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1535 * configure.ac: Modernize.
1536 * configure: Re-generate.
1538 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1540 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
1541 * configure: Re-generate.
1542 * configure.ac: Remove AM_PROG_CC_STDC.
1544 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1546 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
1547 AC_CANONICAL_SYSTEM.
1548 * configure: Re-generate.
1550 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
1552 * infrun.h (displaced_debug_printf): New macro. Replace
1553 displaced debug prints throughout to use it.
1554 (displaced_debug_printf_1): New declaration.
1555 (displaced_step_dump_bytes): Return string, remove ui_file
1556 parameter, update all callers.
1557 * infrun.c (displaced_debug_printf_1): New function.
1558 (displaced_step_dump_bytes): Return string, remove ui_file
1561 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
1563 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
1565 2020-10-30 Tom Tromey <tromey@adacore.com>
1567 * Makefile.in (stamp-init): Depend on config.status.
1569 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1571 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
1573 2020-10-30 Pedro Alves <pedro@palves.net>
1575 * thread.c (lookup_selected_frame): Move ...
1576 * frame.c (lookup_selected_frame): ... here.
1578 2020-10-30 Pedro Alves <pedro@palves.net>
1580 * blockframe.c (block_innermost_frame): Use get_selected_frame.
1582 (scoped_restore_selected_frame::scoped_restore_selected_frame):
1583 Use save_selected_frame. Save language as well.
1584 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
1585 Use restore_selected_frame, and restore language as well.
1586 (selected_frame_id, selected_frame_level): New.
1587 (selected_frame): Update comments.
1588 (save_selected_frame, restore_selected_frame): New.
1589 (get_selected_frame): Use lookup_selected_frame.
1590 (get_selected_frame_if_set): Delete.
1591 (select_frame): Record selected_frame_level and selected_frame_id.
1592 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
1594 (get_selected_frame): Make 'message' parameter optional.
1595 (get_selected_frame_if_set): Delete declaration.
1596 (select_frame): Update comments.
1597 (save_selected_frame, restore_selected_frame)
1598 (lookup_selected_frame): Declare.
1599 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
1600 * infrun.c (struct infcall_control_state) <selected_frame_level>:
1602 (save_infcall_control_state): Use save_selected_frame.
1603 (restore_selected_frame): Delete.
1604 (restore_infcall_control_state): Use restore_selected_frame.
1605 * stack.c (select_frame_command_core, frame_command_core): Use
1607 * thread.c (restore_selected_frame): Rename to ...
1608 (lookup_selected_frame): ... this and make extern. Select the
1609 current frame if the frame level is -1.
1610 (scoped_restore_current_thread::restore): Also restore the
1612 (scoped_restore_current_thread::~scoped_restore_current_thread):
1614 (scoped_restore_current_thread::scoped_restore_current_thread):
1615 Save the language as well. Use save_selected_frame.
1617 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1619 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
1621 * gdbarch.h: Re-generate.
1623 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1625 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
1627 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
1629 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1631 * arch-utils.c (default_displaced_step_hw_singlestep):
1633 * arch-utils.h (default_displaced_step_hw_singlestep):
1635 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
1637 * s390-tdep.c (s390_displaced_step_hw_singlestep):
1639 * gdbarch.c: Re-generate.
1640 * gdbarch.h: Re-generate.
1641 * infrun.c (resume_1): Adjust.
1643 2020-10-29 Tom Tromey <tom@tromey.com>
1645 * progspace.c (program_space::~program_space): Don't call
1648 2020-10-29 Tom Tromey <tom@tromey.com>
1650 * exec.c (exec_target::close): Don't change current program
1653 2020-10-29 Tom Tromey <tom@tromey.com>
1655 * symfile.c (add_symbol_file_command): Update.
1656 * exec.c (program_space::add_target_sections): Rename.
1657 * symfile-mem.c (symbol_file_add_from_memory): Update.
1658 * progspace.h (struct program_space) <add_target_sections>:
1659 Declare new overload.
1660 * exec.h (add_target_sections_of_objfile): Don't declare.
1662 2020-10-29 Tom Tromey <tom@tromey.com>
1664 * solib.c (solib_map_sections): Update.
1665 * exec.c (program_space::add_target_sections): Now a method.
1666 (exec_file_attach): Update.
1667 * exec.h (add_target_sections): Don't declare.
1668 * progspace.h (struct program_space) <add_target_sections>:
1671 2020-10-29 Tom Tromey <tom@tromey.com>
1673 * progspace.h (struct program_space) <remove_target_sections>:
1675 * exec.c (program_space::remove_target_sections): Now a method.
1676 * exec.h (remove_target_sections): Don't declare.
1678 2020-10-29 Tom Tromey <tom@tromey.com>
1680 * inferior.c (delete_inferior): Update.
1681 * progspace.c (program_space::empty): Rename from
1682 program_space_empty_p. Return bool.
1683 * progspace.h (struct program_space) <empty>: New method.
1684 (program_space_empty_p): Don't declare.
1686 2020-10-29 Tom Tromey <tom@tromey.com>
1688 * progspace.c (program_space::~program_space): Don't call
1689 clear_program_space_solib_cache.
1690 (program_space::clear_solib_cache): Rename from
1692 * solib.c (handle_solib_event): Update.
1693 * progspace.h (struct program_space) <clear_solib_cache>: New
1695 (clear_program_space_solib_cache): Don't declare.
1697 2020-10-29 Tom Tromey <tom@tromey.com>
1699 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1700 * target.c (info_target_command): Update.
1701 * symfile.c (syms_from_objfile_1, finish_new_objfile)
1702 (symbol_file_clear, reread_symbols): Update.
1703 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
1704 * stabsread.c (scan_file_globals): Update.
1705 * solib.c (update_solib_list): Update.
1706 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
1707 (svr4_fetch_objfile_link_map, enable_break)
1708 (svr4_relocate_main_executable)
1709 (svr4_iterate_over_objfiles_in_search_order): Update.
1710 * solib-frv.c (lm_base, enable_break)
1711 (frv_relocate_main_executable): Update.
1712 (main_got, frv_fdpic_find_canonical_descriptor): Update.
1713 (frv_fetch_objfile_link_map): Update.
1714 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
1715 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
1716 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
1717 * remote.c (remote_target::get_offsets): Update.
1718 (remote_target::start_remote)
1719 (extended_remote_target::post_attach): Update.
1720 * objfiles.c (entry_point_address_query): Update.
1721 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
1722 * minsyms.c (get_symbol_leading_char): Update.
1723 * frame.c (inside_main_func): Update.
1724 * progspace.h (symfile_objfile): Remove macro.
1726 2020-10-29 Tom Tromey <tom@tromey.com>
1728 * exec.c (exec_file_attach): Update.
1729 * progspace.c (program_space::exec_close): Update.
1730 * progspace.h (struct program_space) <ebfd>: Now a
1732 <set_exec_bfd>: Change argument type.
1735 2020-10-29 Tom Tromey <tom@tromey.com>
1737 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1738 * symfile.c (reread_symbols): Update.
1739 * symfile-mem.c (add_symbol_file_from_memory_command)
1740 (add_vsyscall_page): Update.
1741 * source-cache.c (source_cache::get_plain_source_lines): Update.
1742 * solib-svr4.c (find_program_interpreter, elf_locate_base)
1743 (svr4_current_sos_direct, svr4_exec_displacement)
1744 (svr4_relocate_main_executable): Update.
1745 (svr4_iterate_over_objfiles_in_search_order): Update.
1746 * solib-frv.c (enable_break2, enable_break): Update.
1747 * solib-dsbt.c (lm_base, enable_break): Update.
1748 * solib-darwin.c (find_program_interpreter)
1749 (darwin_solib_create_inferior_hook): Update.
1750 * sol-thread.c (rw_common, ps_pdmodel): Update.
1751 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
1752 * remote.c (compare_sections_command)
1753 (remote_target::trace_set_readonly_regions): Update.
1754 * remote-sim.c (get_sim_inferior_data)
1755 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
1756 (gdbsim_target_open, gdbsim_target::files_info): Update.
1757 * exec.h (exec_bfd): Remove macro.
1758 * progspace.c (initialize_progspace): Update.
1759 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
1761 * nto-procfs.c (nto_procfs_target::post_attach)
1762 (nto_procfs_target::create_inferior): Update.
1763 * maint.c (maintenance_info_sections): Update.
1764 * linux-thread-db.c (thread_db_target::get_thread_local_address):
1766 * infcmd.c (post_create_inferior): Update.
1767 * gcore.c (default_gcore_arch, default_gcore_target): Update.
1768 (objfile_find_memory_regions): Update.
1769 * exec.c (validate_exec_file, exec_file_attach)
1770 (exec_read_partial_read_only, print_section_info): Update.
1771 * corelow.c (core_target_open): Update.
1772 * corefile.c (reopen_exec_file, validate_files): Update.
1773 * arm-tdep.c (gdb_print_insn_arm): Update.
1774 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
1775 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
1778 2020-10-29 Tom Tromey <tom@tromey.com>
1780 * progspace.h (current_target_sections): Remove macro.
1781 * solib-svr4.c (scan_dyntag): Update.
1782 * solib-dsbt.c (scan_dyntag): Update.
1783 * exec.c (exec_target::close): Update.
1784 (add_target_sections, add_target_sections_of_objfile)
1785 (remove_target_sections, exec_target::get_section_table)
1786 (exec_target::files_info, set_section_command)
1787 (exec_set_section_address, exec_target::has_memory)
1788 (exec_target::has_memory): Update.
1790 2020-10-29 Tom Tromey <tom@tromey.com>
1792 * source-cache.c (source_cache::get_plain_source_lines): Use
1793 current_program_space.
1794 * corefile.c (reopen_exec_file): Use current_program_space.
1795 * exec.c (exec_file_attach): Use current_program_space.
1796 * exec.h (exec_bfd_mtime): Remove.
1798 2020-10-29 Tom Tromey <tom@tromey.com>
1800 * gcore.c (default_gcore_mach): Remove.
1801 (create_gcore_bfd): Update.
1803 2020-10-29 Tom Tromey <tom@tromey.com>
1805 * progspace.c (program_space::exec_close): New method, from
1806 exec_close in exec.c.
1807 * exec.c (exec_close): Move to progspace.c.
1808 (exec_target::close, exec_file_attach): Update.
1809 * progspace.h (struct program_space) <exec_close>: Declare
1812 2020-10-29 Tom Tromey <tom@tromey.com>
1814 * progspace.h (struct program_space) <exec_filename>: Rename from
1815 pspace_exec_filename. Now a unique_xmalloc_ptr.
1816 * inferior.c (print_selected_inferior): Update.
1817 (print_inferior): Update.
1818 * mi/mi-main.c (print_one_inferior): Update.
1819 * exec.h (exec_filename): Remove macro.
1820 * corefile.c (get_exec_file): Update.
1821 * exec.c (exec_close): Update.
1822 (exec_file_attach): Update.
1823 * progspace.c (clone_program_space): Update.
1824 (print_program_space): Update.
1826 2020-10-29 Tom Tromey <tom@tromey.com>
1828 * target-section.h (struct target_section): Add constructor.
1829 * exec.c (build_section_table, add_target_sections_of_objfile):
1831 * corelow.c (core_target::build_file_mappings): Update.
1833 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1836 * inferior.c (detach_inferior_command): Restore the current thread.
1837 (kill_inferior_command): Ditto.
1839 2020-10-28 Tom de Vries <tdevries@suse.de>
1842 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
1843 map, check it in the "best match" loop.
1845 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1847 * m32c-tdep.c: Remove unused includes.
1849 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1851 * xtensa-tdep.c: Remove includes.
1853 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1855 * breakpoint.c (struct condition_command_opts): New struct.
1856 (condition_command_option_defs): New static global.
1857 (make_condition_command_options_def_group): New function.
1858 (condition_completer): Update to consider the '-force' flag.
1859 (condition_command): Use gdb::option for the '-force' flag.
1861 2020-10-27 Tom de Vries <tdevries@suse.de>
1863 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
1864 symbols in section check.
1866 2020-10-27 Tom de Vries <tdevries@suse.de>
1868 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
1870 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1872 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
1873 * breakpoint.c: Update the help text of the 'condition' and 'break'
1875 (set_breakpoint_condition): Take a new bool parameter
1876 to control whether condition definition should be forced even when
1877 the condition expression is invalid in all of the current locations.
1878 (condition_command): Update the call to 'set_breakpoint_condition'.
1879 (find_condition_and_thread): Take the "-force-condition" flag into
1881 * linespec.c (linespec_keywords): Add "-force-condition" as an
1883 (FORCE_KEYWORD_INDEX): New #define.
1884 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
1886 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
1887 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
1888 * python/py-breakpoint.c (bppy_set_condition): Ditto.
1889 * NEWS: Mention the changes to the 'break' and 'condition' commands.
1891 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1893 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
1894 * breakpoint.c (set_breakpoint_location_condition): New function.
1895 (set_breakpoint_condition): Disable a breakpoint location if parsing
1896 the condition string gives an error.
1897 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
1898 (build_target_condition_list): Ditto.
1899 (build_target_command_list): Ditto.
1900 (build_bpstat_chain): Ditto.
1901 (print_one_breakpoint_location): Ditto.
1902 (print_one_breakpoint): Ditto.
1903 (breakpoint_1): Ditto.
1904 (bp_location::bp_location): Ditto.
1905 (locations_are_equal): Ditto.
1906 (update_breakpoint_locations): Ditto.
1907 (enable_disable_bp_num_loc): Ditto.
1908 (init_breakpoint_sal): Use set_breakpoint_location_condition.
1909 (find_condition_and_thread_for_sals): New static function.
1910 (create_breakpoint): Call find_condition_and_thread_for_sals.
1911 (location_to_sals): Call find_condition_and_thread_for_sals instead
1912 of find_condition_and_thread.
1914 2020-10-26 Tom de Vries <tdevries@suse.de>
1916 * dwarf2/read.c (process_full_comp_unit): Call
1917 dwarf2_find_base_address.
1919 2020-10-26 Tom Tromey <tromey@adacore.com>
1921 * gdbtypes.c (create_range_type): Revert previous patch. Add
1924 2020-10-26 Pedro Alves <pedro@palves.net>
1926 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
1927 (my_waitpid): Use gdb::handle_eintr.
1929 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
1931 * acinclude.m4: Update ptrace.m4 path.
1932 * ptrace.m4: Moved to gdbsupport.
1934 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1936 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
1937 instead of target_gdbarch.
1939 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1941 * jit.c (jit_reader_load_command): Pass current inferior.
1942 (jit_inferior_init): Change parameter type to inferior, use it.
1943 (jit_inferior_created): Remove.
1944 (jit_inferior_created_hook): Pass inferior parameter down.
1945 (_initialize_jit): Use jit_inferior_created_hook instead of
1946 jit_inferior_created.
1947 * jit.h (jit_inferior_created_hook): Add inferior parameter.
1948 * infrun.c (follow_exec): Pass inferior to
1949 jit_inferior_created_hook.
1951 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
1953 * linux-thread-db.c (check_pid_namespace_match): Add inferior
1954 parameter and use it.
1955 (thread_db_inferior_created): Pass inferior argument.
1957 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
1959 * aix-thread.c (aix_thread_inferior_created): Add inferior
1961 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
1962 * dummy-frame.c (cleanup_dummy_frames): Likewise.
1963 * jit.c (jit_inferior_created): Likewise.
1964 * linux-thread-db.c (thread_db_inferior_created): Likewise.
1965 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
1966 * observable.h (inferior_created): Likewise.
1967 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1968 * symfile-mem.c (add_vsyscall_page): Likewise.
1969 * infcmd.c (post_create_inferior): Pass inferior argument.
1971 2020-10-24 Joel Brobecker <brobecker@adacore.com>
1975 2020-10-23 Joel Brobecker <brobecker@adacore.com>
1977 * ada-typeprint.c (ada_print_type): Remove superfluous second call
1978 to ada_check_typedef.
1980 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1982 * f-exp.y (f_parse): Rename to...
1983 (f_language::parser): ...this.
1984 * f-lang.c (f_get_encoding): Rename to...
1985 (f_language::get_encoding): ...this.
1986 (f_op_print_tab): Rename to...
1987 (f_language::op_print_tab): ...this.
1988 (exp_descriptor_f): Rename to...
1989 (f_language::exp_descriptor_tab): ...this.
1990 (class f_language): Moved to f-lang.h.
1991 (f_language::language_arch_info): New function, moved out of class
1993 (f_language::search_name_hash): Likewise.
1994 (f_language::lookup_symbol_nonlocal): Likewise.
1995 (f_language::get_symbol_name_matcher_inner): Likewise.
1996 * f-lang.h: Add 'valprint.h' include.
1997 (class f_language): Moved here from f-lang.c.
1998 * f-typeprint.c (f_type_print_args): Delete commented out
2000 (f_print_typedef): Rename to...
2001 (f_language::print_typedef): ...this.
2002 (f_print_type): Rename to...
2003 (f_language::print_type): ...this.
2004 (f_type_print_varspec_prefix): Delete declaration and rename to...
2005 (f_language::f_type_print_varspec_prefix): ...this.
2006 (f_type_print_varspec_suffix): Delete declaration and rename to...
2007 (f_language::f_type_print_varspec_suffix): ...this.
2008 (f_type_print_base): Delete declaration and rename to...
2009 (f_language::f_type_print_base): ...this.
2010 * f-valprint.c (f_value_print_inner): Rename to...
2011 (f_language::value_print_inner): ...this.
2012 * parse.c: Delete 'f-lang.h' include.
2014 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2016 * language.h (language_defn::print_type): Add variable names in
2017 declaration, and update header comment.
2019 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2021 * ada-lang.c (ada_language::demangle): Rename to...
2022 (ada_language::demangle_symbol): ...this.
2023 * c-lang.c (cplus_language::demangle): Rename to...
2024 (cplus_language::demangle_symbol): ...this.
2025 * d-lang.c (d_language::demangle): Rename to...
2026 (d_language::demangle_symbol): ...this.
2027 * f-lang.c (f_language::demangle): Rename to...
2028 (f_language::demangle_symbol): ...this.
2029 * go-lang.c (go_language::demangle): Rename to...
2030 (go_language::demangle_symbol): ...this.
2031 * language.c (language_demangle): Update call to demangle_symbol.
2032 (auto_or_unknown_language::demangle): Rename to...
2033 (auto_or_unknown_language::demangle_symbol): ...this.
2034 * language.h (language_defn::demangle): Rename to...
2035 (language_defn::demangle_symbol): ...this.
2036 * objc-lang.c (objc_language::demangle): Rename to...
2037 (objc_language::demangle_symbol): ...this.
2038 * rust-lang.c (rust_language::demangle): Rename to...
2039 (rust_language::demangle_symbol): ...this.
2041 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2043 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
2044 (iterate_over_file_blocks): Replace use of macro with the macros
2047 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2049 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
2050 * valprint.c (maybe_print_array_index): Replace use of macro with
2051 the macros definition.
2053 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2055 * ada-lang.c (ada_language::print_array_index): Call value_print
2057 * language.c (language_defn::print_array_index): Likewise.
2058 * language.h (LA_VALUE_PRINT): Delete.
2059 * valprint.c (value_print): Call value_print on the
2060 current_language directly.
2062 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2064 * language.h (LA_PRINT_TYPEDEF): Delete.
2065 * typeprint.c (typedef_print): Call print_typedef directly on the
2066 current_language object.
2068 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2070 * m2-exp.y (m2_parse): Rename to...
2071 (m2_language::parser): ...this. Update function signature.
2072 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
2073 (m2_op_print): Rename to...
2074 (m2_language::op_print_tab): ...this, and make const.
2075 (exp_descriptor_modula2): Rename to...
2076 (m2_language::exp_descriptor_modula2): ...this.
2077 (class m2_language): Move to m2-lang.h.
2078 (m2_language::language_arch_info): New function, moved out of
2080 (m2_language::printchar): New function, body from m2_printchar.
2081 (m2_language::printstr): New function, moved out of class
2083 (m2_language::emitchar): Likewise.
2084 * m2-lang.h (m2_parse): Delete declaration.
2085 (m2_print_typedef): Delete declaration.
2086 (m2_value_print_inner): Delete declaration.
2087 (class m2_language): Class declaration moved from m2-lang.c,
2088 larger functions are left in m2-lang.c.
2089 * m2-typeprint.c (m2_print_typedef): Rename to...
2090 (m2_language::print_typedef): ...this, and update function
2092 * m2-valprint.c (m2_value_print_inner): Rename to...
2093 (m2_language::value_print_inner): ...this, replace use of
2094 LA_PRINT_STRING with a direct call to printstr member function,
2095 and update recursive call.
2097 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2099 * language.c (default_is_string_type_p): Delete, implementation
2100 moved into auto_or_unknown_language::is_string_type_p.
2101 (unk_op_print_tab): Moved into
2102 auto_or_unknown_language::opcode_print_table.
2103 (unknown_language_arch_info): Delete, implementation moved into
2104 auto_or_unknown_language::language_arch_info.
2105 (class auto_or_unknown_language): New class, member functions
2106 copied from unknown_language class, with some updates.
2107 (class unknown_language): Most member functions moved into
2108 auto_or_unknown_language class. Inherit from
2109 auto_or_unknown_language class.
2110 (class auto_language): Inherit from auto_or_unknown_language.
2111 Delete most member functions.
2113 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2115 * stabsread.c (read_member_functions): Remove gdb_assert.
2117 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2119 * gdbtypes.c (init_complex_type): Check target type name.
2121 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2123 * target-debug.h (target_debug_print_struct_target_ops_p):
2125 (target_debug_print_async_callback_ftype_p): Remove.
2126 (target_debug_print_struct_trace_state_variable_p): Remove.
2127 (target_debug_print_struct_traceframe_info_p): Remove.
2128 (target_debug_print_VEC__btrace_block_s__pp): Remove.
2129 (target_debug_print_enum_btrace_format): Remove.
2130 (target_debug_print_enum_info_proc_what): Remove.
2131 (target_debug_print_thread_info_pp): Remove.
2133 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
2135 * target.h (struct target_ops) <make_corefile_notes>:
2136 Change return type to unique pointer.
2137 * target.c (dummy_make_corefile_notes): Likewise.
2138 * exec.c (struct exec_target) <make_corefile_notes>:
2140 (exec_target::make_corefile_notes): Likewise.
2141 * procfs.c (class procfs_target) <make_corefile_notes>:
2143 (procfs_do_thread_registers): Adjust to unique pointer.
2144 (struct procfs_corefile_thread_data): Add constructor.
2145 <note_data>: Change type to unique pointer.
2146 (procfs_corefile_thread_callback): Adjust to unique pointer.
2147 (procfs_target::make_corefile_notes): Change return type to
2149 * target-delegates.c: Re-generate.
2150 * gcore.c (write_gcore_file_1): Adjust.
2151 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
2154 2020-10-22 Tom de Vries <tdevries@suse.de>
2156 * block.c (find_block_in_blockvector): Make sure the returned block
2159 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2162 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
2164 (load_cu): Pass existing CU.
2165 (process_imported_unit_die): Likewise.
2166 (follow_die_offset): Likewise.
2168 2020-10-22 Luis Machado <luis.machado@linaro.org>
2170 * corelow.c (core_target::xfer_partial): Also check for an empty
2171 m_core_unavailable_mappings vector.
2173 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2175 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
2176 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
2177 * f-exp.y (arglist): Allow for a series of subranges.
2178 (subrange): Add cases for subranges with strides.
2179 * f-lang.c (value_f90_subarray): Catch use of array strides and
2181 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
2183 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2185 * expprint.c (print_subexp_standard): Change enum range_type to
2186 range_flag and rename variables to match.
2187 (dump_subexp_body_standard): Likewise.
2188 * expression.h (enum range_type): Rename to...
2189 (enum range_flag): ...this.
2190 (range_types): Rename to...
2191 (range_flags): ...this.
2192 * f-lang.c (value_f90_subarray): Change enum range_type to
2193 range_flag and rename variables to match.
2194 * parse.c (operator_length_standard): Likewise.
2195 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
2196 range_type to range_flag.
2197 * rust-lang.c (rust_evaluate_funcall): Likewise.
2198 (rust_range): Likewise.
2199 (rust_compute_range): Likewise.
2200 (rust_subscript): Likewise.
2202 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2204 * expprint.c (print_subexp_standard): Update to reflect changes to
2206 (dump_subexp_body_standard): Likewise.
2207 * expression.h (enum range_type): Convert to a bit field enum, and
2208 make the enum unsigned.
2209 * f-exp.y (subrange): Update to reflect changes to enum
2211 * f-lang.c (value_f90_subarray): Likewise.
2212 * parse.c (operator_length_standard): Likewise.
2213 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
2214 * rust-lang.c (rust_range): Likewise.
2215 (rust_compute_range): Likewise.
2216 (rust_subscript): Likewise.
2218 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
2220 * infrun.c (displaced_step_in_progress_thread): Fix comment.
2221 (displaced_step_in_progress): Fix comment.
2223 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
2225 * gdbarch.sh (make_corefile_notes): Return unique pointer.
2226 * gdbarch.c: Re-generate.
2227 * gdbarch.h: Re-generate.
2228 * gcore.c (write_gcore_file_1): Adjust.
2229 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
2231 <note_data>: Change type to unique pointer.
2232 <abort_iteration>: Change type to bool.
2233 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
2234 (fbsd_collect_thread_registers): Return void, adjust.
2235 (struct fbsd_corefile_thread_data): Add construtor.
2236 <note_data>: Change type to unique pointer.
2237 (fbsd_corefile_thread): Adjust.
2238 (fbsd_make_corefile_notes): Return unique pointer, adjust.
2239 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
2240 to unique pointer, adjust.
2241 (struct linux_collect_regset_section_cb_data): Add constructor.
2242 <note_data>: Change type to unique pointer.
2243 <abort_iteration>: Change type to bool.
2244 (linux_collect_thread_registers): Return void, adjust.
2245 (struct linux_corefile_thread_data): Add constructor.
2246 <note_data>: Change type to unique pointer.
2247 (linux_corefile_thread): Adjust.
2248 (linux_make_corefile_notes): Return unique pointer, adjust.
2250 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2252 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
2253 * gdbarch.c: Re-generate.
2254 * gdbarch.h: Re-generate.
2255 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
2257 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2259 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
2260 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
2261 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
2262 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
2264 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2266 * gdbarch.sh: Make generated predicates return bool.
2267 * gdbarch.c: Re-generate.
2268 * gdbarch.h: Re-generate.
2270 2020-10-20 Tom Tromey <tom@tromey.com>
2272 * varobj-iter.h (struct varobj_item): Remove typedef.
2274 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2276 * infrun.c (currently_stepping): Change int to bool
2277 (maybe_software_singlestep): Likewise.
2278 (show_stop_on_solib_events): Likewise.
2279 (stepping_past_nonsteppable_watchpoint): Likewise.
2280 (displaced_step_in_progress_any_inferior): Likewise.
2281 (displaced_step_in_progress_thread): Likewise.
2282 (keep_going_stepped_thread): Likewise.
2283 (thread_still_needs_step_over): Likewise.
2284 (start_step_over): Likewise.
2285 (do_target_resume): Likewise.
2286 (resume_1): Likewise.
2287 (clear_proceed_status): Likewise.
2288 (thread_still_needs_step_over_bp): Likewise.
2289 (proceed): Likewise.
2290 (switch_back_to_stepped_thread): Likewise.
2291 (adjust_pc_after_break): Likewise.
2292 (stepped_in_from): Likewise.
2293 (handle_stop_requested): Likewise.
2294 (handle_syscall_event): Likewise.
2295 (handle_no_resumed): Likewise.
2296 (handle_inferior_event): Likewise.
2297 (finish_step_over): Likewise.
2298 (handle_signal_stop): Likewise.
2299 (process_event_stop_test): Likewise.
2301 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2303 * infrun.c (get_displaced_stepping_state): Fix comment.
2305 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
2307 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
2309 2020-10-19 Tom Tromey <tromey@adacore.com>
2312 * tui/tui-winsource.h (struct tui_source_window_base)
2313 <refresh_window>: Rename from refresh_pad.
2314 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2315 Rename from refresh_pad.
2316 (tui_source_window_base::show_source_content)
2317 (tui_source_window_base::do_scroll_horizontal): Update.
2319 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2321 * thread.c (_initialize_thread): Fine-tune the help text of
2324 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2326 * frame.c: Remove the unused 'uinteger_option_def' type alias.
2328 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
2330 * breakpoint.c (handle_jit_event): Add an argument, change how
2331 `jit_event_handler` is called.
2333 2020-10-17 Tom Tromey <tom@tromey.com>
2335 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
2336 (scan_xcoff_symtab): Update.
2337 * psymtab.h (class psymtab_storage) <global_psymbols,
2338 static_psymbols, current_global_psymbols,
2339 current_static_psymbols>: Remove.
2340 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
2341 (match_partial_symbol, lookup_partial_symbol): Update.
2342 (print_partial_symbols): Change parameters.
2343 (dump_psymtab, recursively_search_psymtabs)
2344 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
2345 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
2347 (end_psymtab_common): Simplify.
2348 (append_psymbol_to_list): Change parameters.
2349 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
2350 (init_psymbol_list): Simplify.
2351 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2352 * psympriv.h (struct partial_symtab) <empty>: New method.
2353 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
2355 <global_psymbols, static_psymbols>: New members.
2356 <add_psymbol>: New methods.
2357 (add_psymbol_to_list): Don't declare.
2358 (psymbol_placement): Move earlier.
2359 * mdebugread.c (parse_partial_symbols): Update.
2360 (handle_psymbol_enumerators): Change parameters.
2361 (mdebug_expand_psymtab): Update.
2362 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2363 (add_partial_symbol): Update.
2364 * dwarf2/index-write.c (write_psymbols): Change parameters.
2365 (write_one_signatured_type): Update.
2366 (recursively_count_psymbols): Update.
2367 (recursively_write_psymbols): Update.
2368 (class debug_names) <recursively_write_psymbols>: Update.
2369 <write_psymbols>: Change parameters.
2370 <write_one_signatured_type>: Update.
2371 * dbxread.c (read_dbx_symtab): Update.
2372 (dbx_end_psymtab): Use partial_symtab::empty.
2373 * ctfread.c (struct ctf_context) <pst>: New member.
2374 (create_partial_symtab): Set it.
2375 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
2376 (scan_partial_symbols): Use the psymtab's context. Update.
2378 2020-10-17 Tom Tromey <tom@tromey.com>
2380 * valprint.c (generic_value_print): Remove comment.
2381 * m2-valprint.c (m2_value_print_inner): Remove comment.
2382 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
2385 2020-10-17 Tom de Vries <tdevries@suse.de>
2388 * source.c (select_source_symtab): Handling sal.symtab == NULL for
2391 2020-10-14 Tom de Vries <tdevries@suse.de>
2394 * solib.c (solib_contains_address_p): Handle
2395 'solib->sections == nullptr'.
2397 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2400 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
2401 target can't do async.
2402 * target.c (target_wait): Assert that we don't pass
2403 TARGET_WNOHANG to a target that can't async.
2405 2020-10-13 Kamil Rytarowski <n54@gmx.com>
2407 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
2408 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
2409 * alpha-bsd-nat.c: Adjust include.
2410 * alpha-bsd-tdep.h: Adjust comment.
2411 * alpha-nbsd-tdep.c: Rename to ...
2412 * alpha-netbsd-tdep.c: ... this, adjust include.
2413 * amd64-nbsd-nat.c: Rename to ...
2414 * amd64-netbsd-nat.c: ... this, adjust include.
2415 * amd64-nbsd-tdep.c: Rename to ...
2416 * amd64-netbsd-tdep.c: ... this, adjust include.
2417 * amd64-tdep.h: Adjust include.
2418 * arm-nbsd-nat.c: Rename to ...
2419 * arm-netbsd-nat.c: ... this, adjust include.
2420 * arm-nbsd-tdep.c: Rename to ...
2421 * arm-netbsd-tdep.c: ... this, adjust include.
2422 * arm-nbsd-tdep.h: Rename to ...
2423 * arm-netbsd-tdep.h: ... this, adjust include.
2424 * configure.nat: Adjust file lists.
2425 * configure.tgt: Likewise.
2426 * hppa-nbsd-nat.c: Rename to ...
2427 * hppa-netbsd-nat.c: ... this, adjust include.
2428 * hppa-nbsd-tdep.c: Rename to ...
2429 * hppa-netbsd-tdep.c: ... this, adjust include.
2430 * i386-nbsd-nat.c: Rename to ...
2431 * i386-netbsd-nat.c: ... this, adjust include.
2432 * i386-nbsd-tdep.c: Rename to ...
2433 * i386-netbsd-tdep.c: ... this, adjust include.
2434 * m68k-bsd-nat.c: Adjust include.
2435 * mips-nbsd-nat.c: Rename to ...
2436 * mips-netbsd-nat.c: ... this, adjust include.
2437 * mips-nbsd-tdep.c: Rename to ...
2438 * mips-netbsd-tdep.c: ... this, adjust include.
2439 * mips-nbsd-tdep.h: Rename to ...
2440 * mips-netbsd-tdep.h: ... this.
2441 * nbsd-nat.c: Rename to ...
2442 * netbsd-nat.c: ... this, adjust include.
2443 * nbsd-nat.h: Rename to ...
2444 * netbsd-nat.h: ... this, adjust include.
2445 * nbsd-tdep.c: Rename to ...
2446 * netbsd-tdep.c: ... this, adjust include.
2447 * nbsd-tdep.h: Rename to ...
2448 * netbsd-tdep.h: ... this.
2449 * ppc-nbsd-nat.c: Rename to ...
2450 * ppc-netbsd-nat.c: ... this, adjust include.
2451 * ppc-nbsd-tdep.c: Rename to ...
2452 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
2453 * ppc-nbsd-tdep.h: Rename to ...
2454 * ppc-netbsd-tdep.h: ... this.
2455 * sh-nbsd-nat.c: Rename to ...
2456 * sh-netbsd-nat.c: ... this, adjust include.
2457 * sh-nbsd-tdep.c: Rename to ...
2458 * sh-netbsd-tdep.c: ... this, adjust include.
2459 * sparc-nbsd-nat.c: Rename to ...
2460 * sparc-netbsd-nat.c: ... this.
2461 * sparc-nbsd-tdep.c: Rename to ...
2462 * sparc-netbsd-tdep.c: ... this, adjust include.
2463 * sparc64-nbsd-nat.c: Rename to ...
2464 * sparc64-netbsd-nat.c: ... this.
2465 * sparc64-nbsd-tdep.c: Rename to ...
2466 * sparc64-netbsd-tdep.c: ... this, adjust include.
2467 * sparc64-tdep.h: Adjust comment.
2468 * vax-bsd-nat.c: Adjust include.
2469 * vax-nbsd-tdep.c: Rename to ...
2470 * vax-netbsd-tdep.c: ... this, adjust include.
2472 2020-10-12 Tom Tromey <tom@tromey.com>
2474 * target.h (struct target_ops) <get_section_table>: Update.
2475 (target_get_section_table): Update.
2476 * target.c (target_get_section_table, target_section_by_addr)
2477 (memory_xfer_partial_1): Update.
2478 * target-section.h (target_section_table): Now an alias.
2479 * target-delegates.c: Rebuild.
2480 * target-debug.h (target_debug_print_target_section_table_p):
2481 Rename from target_debug_print_struct_target_section_table_p.
2482 * symfile.c (build_section_addr_info_from_section_table): Update.
2483 * solib.c (solib_map_sections, solib_contains_address_p): Update.
2484 * solib-svr4.c (scan_dyntag): Update.
2485 * solib-dsbt.c (scan_dyntag): Update.
2486 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2488 * record-full.c (record_full_core_target::xfer_partial): Update.
2489 * progspace.h (struct program_space) <target_sections>: Update.
2490 * exec.h (print_section_info): Update.
2491 * exec.c (exec_target::close, build_section_table)
2492 (add_target_sections, add_target_sections_of_objfile)
2493 (remove_target_sections, exec_on_vfork)
2494 (section_table_available_memory)
2495 (section_table_xfer_memory_partial)
2496 (exec_target::get_section_table, exec_target::xfer_partial)
2497 (print_section_info, set_section_command)
2498 (exec_set_section_address, exec_target::has_memory): Update.
2499 * corelow.c (core_target::build_file_mappings)
2500 (core_target::xfer_partial, core_target::info_proc_mappings)
2501 (core_target::info_proc_mappings): Update.
2502 * bfd-target.c (class target_bfd): Update
2504 2020-10-12 Tom Tromey <tom@tromey.com>
2506 * progspace.c (program_space::~program_space): Don't call
2507 clear_section_table.
2508 * exec.h (clear_section_table): Don't declare.
2509 * exec.c (exec_target::close): Update.
2510 (clear_section_table): Remove.
2512 2020-10-12 Tom Tromey <tom@tromey.com>
2514 * exec.c (add_target_sections_of_objfile): Simplify.
2516 2020-10-12 Tom Tromey <tom@tromey.com>
2518 * solib.c (solib_map_sections): Update.
2519 * record-full.c (record_full_core_open_1): Update.
2520 * exec.h (build_section_table): Return a target_section_table.
2521 * exec.c (exec_file_attach): Update.
2522 (build_section_table): Return a target_section_table.
2523 * corelow.c (core_target::core_target): Update.
2524 * bfd-target.c (target_bfd::target_bfd): Update.
2526 2020-10-12 Tom Tromey <tom@tromey.com>
2528 * target.c (target_section_by_addr, memory_xfer_partial_1):
2530 * target-section.h (struct target_section_table): Use
2532 * symfile.h (build_section_addr_info_from_section_table): Take a
2533 target_section_table.
2534 * symfile.c (build_section_addr_info_from_section_table): Take a
2535 target_section_table.
2536 * solist.h (struct so_list) <sections>: Change type.
2537 <sections_end>: Remove.
2538 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
2539 (solib_contains_address_p): Update.
2540 * solib-svr4.c (scan_dyntag): Update.
2541 * solib-dsbt.c (scan_dyntag): Update.
2542 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2544 * record-full.c (record_full_core_start, record_full_core_end):
2546 (record_full_core_sections): New global.
2547 (record_full_core_open_1, record_full_core_target::xfer_partial):
2549 * exec.h (build_section_table, section_table_xfer_memory_partial)
2550 (add_target_sections): Take a target_section_table.
2551 * exec.c (exec_file_attach, clear_section_table): Update.
2552 (resize_section_table): Remove.
2553 (build_section_table, add_target_sections): Take a
2554 target_section_table.
2555 (add_target_sections_of_objfile, remove_target_sections)
2556 (exec_on_vfork): Update.
2557 (section_table_available_memory): Take a target_section_table.
2558 (section_table_read_available_memory): Update.
2559 (section_table_xfer_memory_partial): Take a target_section_table.
2560 (print_section_info, set_section_command)
2561 (exec_set_section_address, exec_target::has_memory): Update.
2562 * corelow.c (class core_target) <m_core_section_table,
2563 m_core_file_mappings>: Remove braces.
2564 <~core_target>: Remove.
2565 (core_target::core_target): Update.
2566 (core_target::~core_target): Remove.
2567 (core_target::build_file_mappings)
2568 (core_target::xfer_memory_via_mappings)
2569 (core_target::xfer_partial, core_target::info_proc_mappings):
2571 * bfd-target.c (target_bfd::xfer_partial): Update.
2572 (target_bfd::target_bfd): Update.
2573 (target_bfd::~target_bfd): Remove.
2575 2020-10-12 Tom Tromey <tom@tromey.com>
2577 * target.h (struct target_section, struct target_section_table):
2578 Move to target-section.h.
2579 * target-section.h: New file.
2581 2020-10-12 Pedro Alves <pedro@palves.net>
2584 * valops.c (struct struct_field_searcher): New.
2585 (update_search_result): Rename to ...
2586 (struct_field_searcher::update_result): ... this. Simplify
2587 prototype. Record all found fields.
2588 (do_search_struct_field): Rename to ...
2589 (struct_field_searcher::search): ... this. Simplify prototype.
2590 Maintain stack of visited baseclass path. Call update_result for
2591 fields too. Keep searching fields in baseclasses instead of
2592 stopping at the first found field.
2593 (search_struct_field): Use struct_field_searcher. When looking
2594 for fields, report ambiguous access attempts.
2596 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
2598 * frame.c (inside_main_func): Check full symbols as well as
2601 2020-10-09 Joel Brobecker <brobecker@adacore.com>
2603 * ada-lang.c (advance_wild_match): Rewrite the function's
2604 description. Change the type of target0, t0 and t1 to char.
2606 2020-10-09 Tom Tromey <tromey@adacore.com>
2608 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
2610 2020-10-09 Tom Tromey <tromey@adacore.com>
2612 * ada-lang.h (ada_encode): Return std::string.
2613 * ada-lang.c (ada_encode_1): Return std::string.
2614 (ada_encode): Likewise.
2615 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
2617 * ada-exp.y (block_lookup, write_var_or_type): Update.
2619 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
2622 * printcmd.c (print_formatted): Handle void results as
2625 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2627 * arch/aarch32.c (aarch32_create_target_description): Release the
2628 target_desc_up as late as possible.
2629 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2630 * arch/amd64.c (amd64_create_target_description): Likewise.
2631 * arch/arc.c (arc_create_target_description): Return a
2632 target_desc_up, don't release it.
2633 * arch/arc.h (arc_create_target_description): Update declaration.
2634 (arc_lookup_target_description): Move target_desc_up into the
2635 cache, and return a borrowed pointer.
2636 * arch/arm.c (arm_create_target_description): Release the
2637 target_desc_up as late as possible.
2638 * arch/i386.c (i386_create_target_description): Likewise.
2639 * arch/riscv.h (riscv_create_target_description): Update
2640 declaration to match definition.
2641 * arch/tic6x.c (tic6x_create_target_description): Release the
2642 target_desc_up as late as possible.
2644 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2646 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
2647 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
2649 2020-10-09 Jan Vrany <jan.vrany@labware.com>
2651 * source.c (directory_command): Notify observers that "directories"
2652 parameter has changed.
2654 2020-10-08 Tom Tromey <tom@tromey.com>
2656 * cli/cli-cmds.c (print_disassembly): Style function name and
2657 addresses. Add _() wrappers.
2659 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
2661 * NEWS: Mention ARC support in GDBserver.
2663 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
2665 * arch/aarch32.c (aarch32_create_target_description): Release
2666 unique_ptr returned from allocate_target_description.
2667 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2668 * arch/amd64.c (amd64_create_target_description): Likewise.
2669 * arch/arc.c (arc_create_target_description): Likewise.
2670 * arch/arm.c (arm_create_target_description): Likewise.
2671 * arch/i386.c (i386_create_target_description): Likewise.
2672 * arch/riscv.c (riscv_create_target_description): Update return
2673 type. Handle allocate_target_description returning a unique_ptr.
2674 (riscv_lookup_target_description): Update to handle unique_ptr.
2675 * arch/tic6x.c (tic6x_create_target_description): Release
2676 unique_ptr returned from allocate_target_description.
2677 * features/microblaze-with-stack-protect.c: Regenerate.
2678 * features/microblaze.c: Regenerate.
2679 * features/mips-dsp-linux.c: Regenerate.
2680 * features/mips-linux.c: Regenerate.
2681 * features/mips64-dsp-linux.c: Regenerate.
2682 * features/mips64-linux.c: Regenerate.
2683 * features/nds32.c: Regenerate.
2684 * features/nios2.c: Regenerate.
2685 * features/or1k.c: Regenerate.
2686 * features/rs6000/powerpc-32.c: Regenerate.
2687 * features/rs6000/powerpc-32l.c: Regenerate.
2688 * features/rs6000/powerpc-403.c: Regenerate.
2689 * features/rs6000/powerpc-403gc.c: Regenerate.
2690 * features/rs6000/powerpc-405.c: Regenerate.
2691 * features/rs6000/powerpc-505.c: Regenerate.
2692 * features/rs6000/powerpc-601.c: Regenerate.
2693 * features/rs6000/powerpc-602.c: Regenerate.
2694 * features/rs6000/powerpc-603.c: Regenerate.
2695 * features/rs6000/powerpc-604.c: Regenerate.
2696 * features/rs6000/powerpc-64.c: Regenerate.
2697 * features/rs6000/powerpc-64l.c: Regenerate.
2698 * features/rs6000/powerpc-7400.c: Regenerate.
2699 * features/rs6000/powerpc-750.c: Regenerate.
2700 * features/rs6000/powerpc-860.c: Regenerate.
2701 * features/rs6000/powerpc-altivec32.c: Regenerate.
2702 * features/rs6000/powerpc-altivec32l.c: Regenerate.
2703 * features/rs6000/powerpc-altivec64.c: Regenerate.
2704 * features/rs6000/powerpc-altivec64l.c: Regenerate.
2705 * features/rs6000/powerpc-e500.c: Regenerate.
2706 * features/rs6000/powerpc-e500l.c: Regenerate.
2707 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
2708 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
2709 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
2710 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
2711 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
2712 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
2713 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
2714 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
2715 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
2716 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
2717 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
2718 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
2719 * features/rs6000/powerpc-vsx32.c: Regenerate.
2720 * features/rs6000/powerpc-vsx32l.c: Regenerate.
2721 * features/rs6000/powerpc-vsx64.c: Regenerate.
2722 * features/rs6000/powerpc-vsx64l.c: Regenerate.
2723 * features/rs6000/rs6000.c: Regenerate.
2724 * features/rx.c: Regenerate.
2725 * features/s390-gs-linux64.c: Regenerate.
2726 * features/s390-linux32.c: Regenerate.
2727 * features/s390-linux32v1.c: Regenerate.
2728 * features/s390-linux32v2.c: Regenerate.
2729 * features/s390-linux64.c: Regenerate.
2730 * features/s390-linux64v1.c: Regenerate.
2731 * features/s390-linux64v2.c: Regenerate.
2732 * features/s390-te-linux64.c: Regenerate.
2733 * features/s390-tevx-linux64.c: Regenerate.
2734 * features/s390-vx-linux64.c: Regenerate.
2735 * features/s390x-gs-linux64.c: Regenerate.
2736 * features/s390x-linux64.c: Regenerate.
2737 * features/s390x-linux64v1.c: Regenerate.
2738 * features/s390x-linux64v2.c: Regenerate.
2739 * features/s390x-te-linux64.c: Regenerate.
2740 * features/s390x-tevx-linux64.c: Regenerate.
2741 * features/s390x-vx-linux64.c: Regenerate.
2742 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
2743 from allocate_target_description.
2744 * target-descriptions.c (allocate_target_description): Update
2746 (print_c_tdesc::visit_pre): Release unique_ptr returned from
2747 allocate_target_description.
2749 2020-10-07 Tom Tromey <tromey@adacore.com>
2751 * unittests/search-memory-selftests.c: New file.
2752 * Makefile.in (SELFTESTS_SRCS): Add
2753 unittests/search-memory-selftests.c.
2755 2020-10-07 Tom Tromey <tromey@adacore.com>
2758 * findcmd.c (_initialize_mem_search): Mention that the range is
2761 2020-10-07 Tom Tromey <tromey@adacore.com>
2763 * target.h (simple_search_memory): Don't declare.
2764 * target.c (simple_search_memory): Move to gdbsupport.
2765 (default_search_memory): Update.
2766 * remote.c (remote_target::search_memory): Update.
2768 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
2770 * Makefile.in (COMPILE): Add CXXFLAGS.
2771 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
2772 (check-headers): Add CXXFLAGS.
2774 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
2776 * arc-linux-tdep.h: New file.
2777 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
2778 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
2779 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
2780 arc_linux_gregset, arc_linux_v2_regset,
2781 arc_linux_iterate_over_regset_sections,
2782 arc_linux_core_read_description): Implement.
2783 (arc_linux_init_osabi): Set iterate_over_regset_sections.
2784 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
2785 (arc_gdbarch_features_create): Add.
2786 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
2788 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
2790 * arch/arc.h: Rename "arc_gdbarch_features" to
2791 "arc_arch_features".
2792 * arc-tdep.h: Likewise.
2793 * arc-tdep.c: Likewise.
2795 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2797 * infcmd.c (attach_command): Remove the redundant call to
2798 `clear_proceed_status`.
2800 2020-10-07 Kamil Rytarowski <n54@gmx.com>
2802 * nat/netbsd-nat.c (write_memory, read_memory): Update.
2804 2020-10-07 Kamil Rytarowski <n54@gmx.com>
2806 * nat/netbsd-nat.c (write_memory, read_memory): Add.
2807 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
2808 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
2810 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
2812 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
2813 (_initialize_break_catch_sig): Don't allocate array.
2815 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
2817 * symtab.c (find_pc_line): Return unmapped addresses when the
2818 requested address is also unmapped.
2820 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
2822 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
2825 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
2827 * amd64-windows-tdep.c (amd64_windows_return_value): Use
2828 type::is_vector instead of TYPE_VECTOR.
2830 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
2832 * auto-load.c (auto_load_objfile_script_1): Don't use
2833 debugfile_holder as temporary variable when stripping drive
2836 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
2838 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
2839 Add TYPE_CODE_COMPLEX.
2840 (amd64_windows_return_value): Fix types returned via XMM0.
2842 2020-10-05 Alan Hayward <alan.hayward@arm.com>
2844 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
2845 AArch64/ARM maintainers.
2847 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
2849 * NEWS: Mention set/show debug event-loop.
2851 2020-10-02 Tom Tromey <tromey@adacore.com>
2853 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
2856 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
2858 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
2859 * procfs.c (procfs_inferior_created): Remove.
2860 (_initialize_procfs): Don't register procfs_inferior_created.
2862 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2864 * async-event.c (invoke_async_signal_handlers): Add debug
2866 (check_async_event_handlers): Likewise.
2867 * event-top.c (show_debug_event_loop): New function.
2868 (_initialize_event_top): Register "set debug event-loop"
2871 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2873 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
2875 * infrun.c: Include gdbsupport/common-debug.h.
2876 * linux-nat.c: Likewise.
2878 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2880 * async-event.h (create_async_signal_handler): Add name
2882 (create_async_event_handler): Likewise.
2883 * async-event.c (struct async_signal_handler) <name>: New field.
2884 (struct async_event_handler) <name>: New field.
2885 (create_async_signal_handler): Assign name.
2886 (create_async_event_handler): Assign name.
2887 * event-top.c (async_init_signals): Pass name when creating
2889 * infrun.c (_initialize_infrun): Likewise.
2890 * record-btrace.c (record_btrace_push_target): Likewise.
2891 * record-full.c (record_full_open): Likewise.
2892 * remote-notif.c (remote_notif_state_allocate): Likewise.
2893 * remote.c (remote_target::open_1): Likewise.
2894 * tui/tui-win.c (tui_initialize_win): Likewise.
2896 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2898 * async-event.c (initialize_async_signal_handlers): Pass name to
2900 * event-top.c (ui_register_input_event_handler): Likewise.
2901 * linux-nat.c (linux_nat_target::async): Likewise.
2902 * run-on-main-thread.c (_initialize_run_on_main_thread):
2904 * ser-base.c (reschedule): Likewise.
2905 (ser_base_async): Likewise.
2906 * tui/tui-io.c: Likewise.
2907 * top.h (struct ui) <num>: New field.
2908 * top.c (highest_ui_num): New variable.
2909 (ui::ui): Initialize num.
2911 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2913 * observable.h <inferior_created>: Remove parameters. Update all
2915 * inferior.h (post_create_inferior): Remove target parameter.
2918 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
2920 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
2921 and DW_MACRO_undef_strx.
2922 (dwarf_decode_macros): Likewise
2923 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
2924 which is the value of DW_AT_str_offsets_base.
2925 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
2928 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2930 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
2932 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2934 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
2935 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
2937 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2939 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
2941 2020-09-30 Tom de Vries <tdevries@suse.de>
2944 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
2946 2020-09-30 Tom Tromey <tromey@adacore.com>
2948 * dwarf2/read.c (handle_variant): Use constant_value.
2950 2020-09-29 Tom Tromey <tom@tromey.com>
2952 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
2953 (read_file_scope, dwarf2_get_pc_bounds)
2954 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
2955 (read_structure_type, handle_struct_member_die)
2956 (read_enumeration_type, read_array_type, read_set_type)
2957 (read_tag_pointer_type, read_tag_reference_type)
2958 (read_subroutine_type, read_base_type, read_subrange_type)
2959 (read_full_die_1, partial_die_info::read)
2960 (partial_die_info::read, by, new_symbol)
2961 (dwarf2_const_value_data, dwarf2_const_value_attr)
2962 (dump_die_shallow, dwarf2_fetch_constant_bytes)
2963 (prepare_one_comp_unit): Update.
2964 * dwarf2/attribute.h (DW_UNSND): Remove.
2966 2020-09-29 Tom Tromey <tom@tromey.com>
2968 * dwarf2/read.c (read_func_scope, prototyped_function_p)
2969 (read_subroutine_type, partial_die_info::read)
2970 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
2971 (dwarf2_add_member_fn): Update.
2972 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
2973 * dwarf2/attribute.c (attribute::as_boolean): New method.
2975 2020-09-29 Tom Tromey <tom@tromey.com>
2977 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
2978 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
2980 * dwarf2/attribute.c (attribute::as_virtuality): New method.
2982 2020-09-29 Tom Tromey <tom@tromey.com>
2984 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
2985 the attribute's form.
2987 2020-09-29 Tom Tromey <tom@tromey.com>
2989 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
2990 (dwarf2_add_member_fn): Update.
2991 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
2992 * dwarf2/attribute.c (attribute::defaulted): New method, from
2993 is_valid_DW_AT_defaulted.
2995 2020-09-29 Tom Tromey <tom@tromey.com>
2997 * dwarf2/read.c (dw2_get_file_names_reader)
2998 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
2999 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
3000 (dwarf2_symbol_mark_computed): Use as_unsigned.
3001 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
3003 <form_is_section_offset>: Update comment.
3005 2020-09-29 Tom Tromey <tom@tromey.com>
3007 * dwarf2/read.c (dwarf2_access_attribute): Rename from
3008 dwarf2_default_access_attribute. Look up attribute.
3009 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
3012 2020-09-29 Tom Tromey <tom@tromey.com>
3014 * dwarf2/read.c (skip_one_die): Update.
3015 (read_full_die_1): Change how reprocessing is done.
3016 (partial_die_info::read): Update.
3017 (read_attribute_value): Remove need_reprocess parameter.
3018 (read_attribute): Likewise.
3019 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
3022 2020-09-29 Tom Tromey <tom@tromey.com>
3024 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
3025 (dwarf2_const_value_attr, dump_die_shallow)
3026 (dwarf2_fetch_constant_bytes): Update.
3027 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
3029 <set_address>: New method.
3031 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
3032 (attribute::as_string, attribute::as_address): Add assert.
3034 2020-09-29 Tom Tromey <tom@tromey.com>
3036 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
3037 (read_attribute_reprocess, read_attribute_value): Update.
3038 (read_attribute): Clear requires_reprocessing.
3039 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
3040 form_requires_reprocessing>: New methods.
3041 <string_init>: Clear requires_reprocessing.
3042 <set_unsigned_reprocess>: New method.
3043 <name>: Shrink by one bit.
3044 <requires_reprocessing>: New member.
3045 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
3048 2020-09-29 Tom Tromey <tom@tromey.com>
3050 * dwarf2/read.c (read_attribute_value): Update.
3051 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
3052 set_unsigned>: New methods.
3053 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
3055 2020-09-29 Tom Tromey <tom@tromey.com>
3057 * dwarf2/read.c (get_alignment, read_array_order)
3058 (read_attribute_value, dwarf2_const_value_attr)
3059 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
3060 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
3064 2020-09-29 Tom Tromey <tom@tromey.com>
3066 * dwarf2/read.c (read_attribute_value, lookup_die_type)
3067 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
3069 * dwarf2/attribute.h (struct attribute) <as_signature,
3070 set_signature>: New methods.
3071 (DW_SIGNATURE): Remove.
3073 2020-09-29 Tom Tromey <tom@tromey.com>
3075 * dwarf2/read.c (read_call_site_scope)
3076 (handle_data_member_location, dwarf2_add_member_fn)
3077 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3078 (partial_die_info::read, read_attribute_value)
3079 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
3080 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
3081 (dwarf2_symbol_mark_computed): Update.
3082 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
3085 * dwarf2/attribute.c (attribute::form_is_block): Add
3088 2020-09-29 Tom Tromey <tom@tromey.com>
3090 * dwarf2/read.c (read_cutu_die_from_dwo)
3091 (read_attribute_reprocess, read_attribute_value, read_attribute)
3092 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
3093 (dwarf2_fetch_constant_bytes): Update.
3094 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
3095 <set_string_noncanonical, set_string_canonical>: New methods.
3096 <string_is_canonical>: Update comment.
3097 <canonical_string_p>: Add assert.
3098 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
3099 * dwarf2/attribute.c (attribute::form_is_string): New method.
3100 (attribute::string): Use it.
3102 2020-09-29 Tom Tromey <tom@tromey.com>
3104 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
3105 (dump_die_shallow): Use canonical_string_p.
3106 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
3109 2020-09-29 Tom Tromey <tom@tromey.com>
3111 * dwarf2/read.c (partial_die_info::read)
3112 (dwarf2_const_value_attr, anonymous_struct_prefix, )
3113 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
3114 attribute::as_string.
3116 2020-09-29 Tom Tromey <tom@tromey.com>
3118 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
3120 (attribute::string): Don't use DW_STRING.
3121 (attribute::get_ref_die_offset): Don't use DW_UNSND.
3122 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
3124 2020-09-29 Tom Tromey <tom@tromey.com>
3126 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
3127 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
3128 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
3129 * dwarf2/attribute.h (struct attribute): Rename methods.
3130 * dwarf2/attribute.c (attribute::as_address): Rename from
3132 (attribute::as_string): Rename from value_as_string.
3134 2020-09-29 Tom Tromey <tom@tromey.com>
3136 * dwarf2/read.c (partial_die_info::read) <case
3137 DW_AT_linkage_name>: Use value_as_string.
3138 (dwarf2_string_attr): Use value_as_string.
3139 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
3141 * dwarf2/attribute.c (attribute::value_as_string): New method.
3143 2020-09-29 Pedro Alves <pedro@palves.net>
3145 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
3146 defined before using '#pragma GCC diagnostic' instead of checking
3149 2020-09-28 Tom Tromey <tom@tromey.com>
3151 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
3152 (handle_signal_stop): Update.
3153 * procfs.c (procfs_target::insert_watchpoint): Update.
3154 * target.h (target_have_steppable_watchpoint): Now a function.
3156 2020-09-28 Tom Tromey <tom@tromey.com>
3158 * infrun.c (set_schedlock_func): Update.
3159 * target.h (target_can_lock_scheduler): Now a function.
3161 2020-09-28 Tom Tromey <tom@tromey.com>
3163 * inferior.h (class inferior) <has_execution>: Update.
3164 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
3165 * valops.c (find_function_in_inferior)
3166 (value_allocate_space_in_inferior): Update.
3167 * top.c (kill_or_detach): Update.
3168 * target.c (target_preopen, set_target_permissions): Update.
3169 (target_has_execution_current): Remove.
3170 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
3172 * solib.c (update_solib_list, reload_shared_libraries): Update.
3173 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
3174 * solib-dsbt.c (enable_break): Update.
3175 * score-tdep.c (score7_fetch_inst): Update.
3176 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
3178 * remote.c (remote_target::start_remote)
3179 (remote_target::remote_check_symbols, remote_target::open_1)
3180 (remote_target::remote_detach_1, remote_target::verify_memory)
3181 (remote_target::xfer_partial, remote_target::read_description)
3182 (remote_target::get_min_fast_tracepoint_insn_len): Update.
3183 * record-full.c (record_full_open_1): Update.
3184 * record-btrace.c (record_btrace_target_open): Update.
3185 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3186 (value_nsstring): Update.
3187 * linux-thread-db.c (add_thread_db_info)
3188 (thread_db_find_new_threads_silently, check_thread_db_callback)
3189 (try_thread_db_load_1, record_thread): Update.
3190 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
3192 * linux-fork.c (checkpoint_command): Update.
3193 * infrun.c (set_non_stop, set_observer_mode)
3194 (check_multi_target_resumption, for_each_just_stopped_thread)
3195 (maybe_remove_breakpoints, normal_stop)
3196 (class infcall_suspend_state): Update.
3197 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
3198 (info_program_command, attach_command): Update.
3199 * infcall.c (call_function_by_hand_dummy): Update.
3200 * inf-loop.c (inferior_event_handler): Update.
3201 * gcore.c (gcore_command, derive_heap_segment): Update.
3202 * exec.c (exec_file_command): Update.
3203 * eval.c (evaluate_subexp): Update.
3204 * compile/compile.c (compile_to_object): Update.
3205 * cli/cli-dump.c (restore_command): Update.
3206 * breakpoint.c (update_watchpoint)
3207 (update_inserted_breakpoint_locations)
3208 (insert_breakpoint_locations, get_bpstat_thread): Update.
3209 * target.h (target_has_execution): Remove macro.
3210 (target_has_execution_current): Don't declare.
3211 (target_has_execution): Rename from target_has_execution_1. Add
3214 2020-09-28 Tom Tromey <tom@tromey.com>
3216 * mi/mi-main.c (exec_reverse_continue)
3217 (mi_cmd_list_target_features): Update.
3218 * infrun.c (set_exec_direction_func): Update.
3219 * target.c (default_execution_direction): Update.
3220 * reverse.c (exec_reverse_once): Update.
3221 * target.h (target_can_execute_reverse): Now a function.
3223 2020-09-28 Tom Tromey <tom@tromey.com>
3225 * tui/tui-regs.c (tui_get_register)
3226 (tui_data_window::show_registers): Update.
3227 * thread.c (scoped_restore_current_thread::restore)
3228 (scoped_restore_current_thread::scoped_restore_current_thread):
3230 * regcache-dump.c (regcache_print): Update.
3231 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3233 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
3234 * mep-tdep.c (current_me_module, current_options): Update.
3235 * linux-thread-db.c (thread_db_load): Update.
3236 * infcmd.c (registers_info, info_vector_command)
3237 (info_float_command): Update.
3238 * ia64-tdep.c (ia64_frame_prev_register)
3239 (ia64_sigtramp_frame_prev_register): Update.
3240 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
3241 * gcore.c (derive_stack_segment): Update.
3242 * frame.c (get_current_frame, has_stack_frames): Update.
3243 * findvar.c (language_defn::read_var_value): Update.
3244 * arm-tdep.c (arm_pc_is_thumb): Update.
3245 * target.c (target_has_registers): Rename from
3246 target_has_registers_1.
3247 * target.h (target_has_registers): Remove macro.
3248 (target_has_registers): Rename from target_has_registers_1.
3250 2020-09-28 Tom Tromey <tom@tromey.com>
3252 * windows-tdep.c (tlb_make_value): Update.
3253 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3254 * thread.c (scoped_restore_current_thread::restore)
3255 (scoped_restore_current_thread::scoped_restore_current_thread)
3256 (thread_command): Update.
3257 * stack.c (backtrace_command_1, frame_apply_level_command)
3258 (frame_apply_all_command, frame_apply_command): Update.
3259 * infrun.c (siginfo_make_value, restore_infcall_control_state):
3261 * gcore.c (derive_stack_segment): Update.
3262 * frame.c (get_current_frame, has_stack_frames): Update.
3263 * auxv.c (info_auxv_command): Update.
3264 * ada-tasks.c (ada_build_task_list): Update.
3265 * target.c (target_has_stack): Rename from target_has_stack_1.
3266 * target.h (target_has_stack): Remove macro.
3267 (target_has_stack): Rename from target_has_stack_1.
3269 2020-09-28 Tom Tromey <tom@tromey.com>
3271 * target.c (target_has_memory): Rename from target_has_memory_1.
3272 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3273 * thread.c (scoped_restore_current_thread::restore)
3274 (scoped_restore_current_thread::scoped_restore_current_thread):
3276 * frame.c (get_current_frame, has_stack_frames): Update.
3277 * target.h (target_has_memory): Remove macro.
3278 (target_has_memory): Rename from target_has_memory_1.
3280 2020-09-28 Tom Tromey <tom@tromey.com>
3282 * target.c (target_has_all_memory_1): Remove.
3283 * target.h (target_has_all_memory): Remove define.
3284 (target_has_all_memory_1): Don't declare.
3286 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3288 * ser-base.c: Adjust comments formatting.
3290 2020-09-27 Tom Tromey <tom@tromey.com>
3293 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
3295 2020-09-27 Tom Tromey <tom@tromey.com>
3298 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
3300 2020-09-27 Tom Tromey <tom@tromey.com>
3302 * unittests/tui-selftests.c: Update.
3303 * tui/tui-winsource.h (struct tui_source_window_base)
3304 <extra_margin, show_line_number, refresh_pad>: New methods.
3305 <m_max_length, m_pad>: New members.
3306 (tui_copy_source_line): Update.
3307 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
3308 first_col, line_width, ndigits parameters. Add length.
3309 (tui_source_window_base::show_source_line): Write to pad. Line
3311 (tui_source_window_base::refresh_pad): New method.
3312 (tui_source_window_base::show_source_content): Write to pad. Call
3314 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
3316 (tui_source_window_base::update_exec_info): Call
3318 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
3320 <m_digits>: New member.
3321 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
3323 (tui_source_window::show_line_number): New method.
3324 * tui/tui-io.h (tui_puts): Fix comment.
3325 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
3328 2020-09-27 Tom Tromey <tom@tromey.com>
3330 * tui/tui-winsource.c
3331 (tui_source_window_base::set_is_exec_point_at): Don't call
3334 2020-09-27 Tom Tromey <tom@tromey.com>
3336 * python/py-tui.c (class tui_py_window) <refresh_window>: New
3339 <cursor_x, cursor_y>: Remove.
3340 <m_inner_window>: New member.
3341 (tui_py_window::rerender): Create inner window.
3342 (tui_py_window::output): Write to inner window.
3344 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
3347 * cli/cli-script.c (execute_control_commands): don't set
3348 instream to nullptr here as this breaks the from_tty argument
3349 to gdb.execute in Python.
3350 (execute_user_command): set instream to nullptr here instead.
3352 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
3354 * infrun.h (infrun_debug_printf): Fix formatting.
3355 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
3357 2020-09-25 Saagar Jha <saagar@saagarjha.com>
3359 * compile/compile-object-load.h (struct munmap_list): Add
3360 explicitly-defined move constructor.
3362 2020-09-24 Tom Tromey <tromey@adacore.com>
3365 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
3367 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
3368 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
3369 (tui_prev_win): Rewrite.
3371 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
3373 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
3374 in WOW64 processes as SIGINT.
3375 * nat/windows-nat.h: Make wow64_process a shared variable.
3376 * windows-nat.c: Remove static wow64_process variable.
3378 2020-09-23 Tom Tromey <tom@tromey.com>
3381 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
3382 offset and bit size.
3383 * printcmd.c (print_scalar_formatted): Handle zero-length
3385 (print_scalar_formatted): Use bit_size_differs_p.
3386 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
3388 (union type_specific): <int_stuff>: New member.
3389 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
3391 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
3392 TYPE_SPECIFIC_FIELD.
3393 (recursive_dump_type, copy_type_recursive): Update.
3394 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
3395 DW_AT_data_bit_offset.
3397 2020-09-23 Tom Tromey <tom@tromey.com>
3399 * utils.h (class gdb_argv): Add move operators.
3400 <append>: New methods.
3401 * compile/compile.c (build_argc_argv): Remove.
3402 (compile_args_argc): Remove.
3403 (compile_args_argv): Change type.
3404 (set_compile_args): Simplify.
3405 (append_args): Remove.
3406 (filter_args): Remove argcp parameter.
3407 (get_args): Return gdb_argv. Simplify.
3408 (compile_to_object): Update.
3410 2020-09-23 Tom Tromey <tom@tromey.com>
3412 * compile/compile-object-run.c (do_module_cleanup)
3413 <~do_module_cleanup> :Remove.
3414 (do_module_cleanup): Update.
3415 * compile/compile-object-load.h (struct munmap_list): Add move
3416 assignment operator.
3417 <source_file>: Now a std::string.
3418 <munmap_list>: Rename. No longer a pointer.
3419 * compile/compile-object-load.c (struct setup_sections_data): Add
3421 <setup_one_section>: Declare.
3422 <munmap_list>: Move earlier.
3423 <m_bfd>: New member.
3424 <m_last_size, m_last_section_first, m_last_prot,
3425 m_last_max_alignment>: Rename, add initializers where needed.
3426 (setup_sections_data::setup_one_section): Rename from
3427 setup_sections. Update.
3428 (compile_object_load): Update. Don't use bfd_map_over_sections.
3430 2020-09-23 Tom Tromey <tom@tromey.com>
3432 * compile/compile-object-run.c (struct do_module_cleanup): Add
3433 parameters to constructor. Update destructor.
3434 <source_file, scope, scope_data, out_value_type, out_value_addr,
3435 munmap_list_head, objfile_name_string>: Remove.
3436 <module>: New member.
3437 (do_module_cleanup): Update.
3438 (compile_object_run): Update.
3440 2020-09-23 Tom Tromey <tom@tromey.com>
3442 * compile/compile.c (eval_compile_command): Update.
3443 * compile/compile-object-run.h (compile_object_run): Take a
3445 * compile/compile-object-run.c (compile_object_run): Take a
3447 * compile/compile-object-load.h (struct compile_module): Add
3448 constructor, destructor.
3449 (compile_module_up): New typedef.
3450 (compile_object_load): Return compile_object_up.
3451 * compile/compile-object-load.c (compile_object_load): Return
3454 2020-09-23 Tom Tromey <tom@tromey.com>
3456 * compile/compile-object-run.c (struct do_module_cleanup): Add
3457 constructor, destructor.
3458 <objfile_name_string>: Don't use struct hack.
3459 (do_module_cleanup): Use delete.
3460 (compile_object_run): Use new.
3462 2020-09-23 Tom Tromey <tom@tromey.com>
3464 * compile/compile-cplus-types.c
3465 (compile_cplus_convert_struct_or_union): Use std::vector.
3466 (compile_cplus_convert_func): Likewise.
3467 * compile/compile-c-types.c (convert_func): Use std::vector.
3469 2020-09-21 Tom Tromey <tromey@adacore.com>
3471 * sparc-tdep.c (sparc32_skip_prologue): Use
3472 skip_prologue_using_sal.
3474 2020-09-19 Tom Tromey <tom@tromey.com>
3476 * symfile.c (add_section_size_callback): Remove.
3477 (load_one_section): Rename from load_section_callback. Change
3479 (generic_load): Use foreach.
3481 2020-09-19 Tom Tromey <tom@tromey.com>
3483 * exec.c (add_to_section_table): Remove.
3484 (build_section_table): Use foreach.
3486 2020-09-19 Tom Tromey <tom@tromey.com>
3488 * elfread.c (elf_locate_sections): Change parameters.
3489 (elf_symfile_read): Use foreach.
3491 2020-09-19 Tom Tromey <tom@tromey.com>
3493 * cli/cli-dump.c (struct callback_data): Remove.
3494 (restore_one_section): Rename from restore_section_callback.
3496 (restore_binary_file): Change parameters.
3497 (restore_command): Use foreach.
3499 2020-09-19 Tom Tromey <tom@tromey.com>
3501 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
3502 (gcore_copy_callback): Likewise.
3503 (gcore_memory_sections): Use foreach.
3505 2020-09-19 Tom Tromey <tom@tromey.com>
3507 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
3508 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
3510 (generic_elf_osabi_sniffer): Use foreach.
3511 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
3512 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
3514 2020-09-19 Tom Tromey <tom@tromey.com>
3516 * dwarf2/read.c (locate_dwz_sections): Change parameters.
3517 (dwarf2_get_dwz_file): Use foreach.
3518 (dwarf2_locate_dwo_sections): Change parameters.
3519 (open_and_init_dwo_file): Use foreach.
3520 (dwarf2_locate_common_dwp_sections): Change parameters.
3521 (open_and_init_dwp_file): Use foreach.
3523 2020-09-19 Tom Tromey <tom@tromey.com>
3525 * symfile.h: (find_lowest_section): Don't declare.
3526 * symfile.c (find_lowest_section): Now static. Change
3528 (struct place_section_arg): Remove.
3529 (place_section): Change parameters.
3530 (addr_info_make_relative): Use foreach.
3531 (symfile_dummy_outputs): Remove.
3532 (default_symfile_relocate): Use foreach.
3534 2020-09-19 Tom Tromey <tom@tromey.com>
3536 * objfiles.c (add_to_objfile_sections): Rename from
3537 add_to_objfile_sections_full.
3538 (add_to_objfile_sections): Remove.
3539 (build_objfile_section_table): Use foreach.
3541 2020-09-19 Tom Tromey <tom@tromey.com>
3543 * stap-probe.c (get_stap_base_address_1): Remove.
3544 (get_stap_base_address): Use foreach.
3546 2020-09-19 Tom Tromey <tom@tromey.com>
3548 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
3550 (gdb_bfd_close_or_warn): Use foreach.
3552 2020-09-19 Tom Tromey <tom@tromey.com>
3554 * corelow.c (add_to_thread_list): Change parameters.
3555 (core_target_open): Use foreach.
3557 2020-09-19 Tom Tromey <tom@tromey.com>
3559 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
3562 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3564 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
3567 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3569 * eval.c: Remove 'f-lang.h' include.
3570 (value_f90_subarray): Moved to f-lang.c.
3571 (eval_call): Renamed to...
3572 (evaluate_subexp_do_call): ...this, is no longer static, header
3573 comment moved into header file.
3574 (evaluate_funcall): Update call to eval_call.
3575 (skip_undetermined_arglist): Moved to f-lang.c.
3576 (fortran_value_subarray): Likewise.
3577 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3578 moved to evaluate_subexp_f.
3579 (calc_f77_array_dims): Moved to f-lang.c
3580 * expprint.c (print_subexp_funcall): New function.
3581 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3582 moved to print_subexp_f, OP_FUNCALL uses new function.
3583 (dump_subexp_body_funcall): New function.
3584 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
3585 moved to dump_subexp_f, OP_FUNCALL uses new function.
3586 * expression.h (evaluate_subexp_do_call): Declare.
3587 * f-lang.c (value_f90_subarray): Moved from eval.c.
3588 (skip_undetermined_arglist): Likewise.
3589 (calc_f77_array_dims): Likewise.
3590 (fortran_value_subarray): Likewise.
3591 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
3592 (operator_length_f): Likewise.
3593 (print_subexp_f): Likewise.
3594 (dump_subexp_body_f): Likewise.
3595 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
3596 declaration of this operation to here.
3597 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
3598 support moved to operator_length_f.
3599 * parser-defs.h (dump_subexp_body_funcall): Declare.
3600 (print_subexp_funcall): Declare.
3601 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
3602 fortran-operator.def.
3604 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3606 * eval.c (fortran_value_subarray): New function, content is taken
3608 (evaluate_subexp_standard): ...here, in two places. Now arrays
3609 and strings both call the new function.
3610 (calc_f77_array_dims): Add header comment, handle strings.
3612 2020-09-18 Victor Collod <vcollod@nvidia.com>
3615 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
3616 (i386_analyze_prologue): Call i386_skip_endbr.
3618 2020-09-18 Tom Tromey <tromey@adacore.com>
3620 * windows-nat.c (struct windows_nat_target) <wait>: Update.
3621 (windows_nat_target::wait): Update.
3622 * target/wait.h (enum target_wait_flag): New. Use
3623 DEF_ENUM_FLAGS_TYPE.
3624 * target/target.h (target_wait): Change type of options.
3625 * target.h (target_options_to_string, default_target_wait):
3627 (struct target_ops) <wait>: Change type of options.
3628 * target.c (target_wait, default_target_wait, do_option): Change
3630 (target_options_to_string): Likewise.
3631 * target-delegates.c: Rebuild.
3632 * target-debug.h (target_debug_print_target_wait_flags): Rename
3633 from target_debug_print_options.
3634 * sol-thread.c (class sol_thread_target) <wait>: Update.
3635 (sol_thread_target::wait): Update.
3636 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
3637 (rs6000_nat_target::wait): Update.
3638 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
3640 (remote_target::wait_ns, remote_target::wait_as): Change type of
3642 (remote_target::wait): Update.
3643 * remote-sim.c (struct gdbsim_target) <wait>: Update.
3644 (gdbsim_target::wait): Update.
3645 * record-full.c (class record_full_base_target) <wait>: Update.
3646 (record_full_wait_1): Change type of "options".
3647 (record_full_base_target::wait): Update.
3648 * record-btrace.c (class record_btrace_target) <wait>: Update.
3649 (record_btrace_target::wait): Update.
3650 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
3652 (ravenscar_thread_target::wait): Update.
3653 * procfs.c (class procfs_target) <wait>: Update.
3654 (procfs_target::wait): Update.
3655 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
3656 * obsd-nat.c (obsd_nat_target::wait): Update.
3657 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
3658 (nto_procfs_target::wait): Update.
3659 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
3660 * nbsd-nat.c (nbsd_wait): Change type of "options".
3661 (nbsd_nat_target::wait): Update.
3662 * linux-thread-db.c (class thread_db_target) <wait>: Update.
3663 (thread_db_target::wait): Update.
3664 * linux-nat.h (class linux_nat_target) <wait>: Update.
3665 * linux-nat.c (linux_nat_target::wait): Update.
3666 (linux_nat_wait_1): Update.
3667 * infrun.c (do_target_wait_1, do_target_wait): Change type of
3669 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
3670 * inf-ptrace.c (inf_ptrace_target::wait): Update.
3671 * go32-nat.c (struct go32_nat_target) <wait>: Update.
3672 (go32_nat_target::wait): Update.
3673 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
3674 * gnu-nat.c (gnu_nat_target::wait): Update.
3675 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
3676 * fbsd-nat.c (fbsd_nat_target::wait): Update.
3677 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
3678 * darwin-nat.c (darwin_nat_target::wait): Update.
3679 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
3680 (bsd_uthread_target::wait): Update.
3681 * aix-thread.c (class aix_thread_target) <wait>: Update.
3682 (aix_thread_target::wait): Update.
3684 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
3686 * compile/compile-object-run.c (create_copied_type_recursive): New
3688 (compile_object_run): Use new function.
3690 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
3692 * NEWS: Mention x86_64 Cygwin core file support.
3694 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3696 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
3697 (core_process_module_section): Handle NOTE_INFO_MODULE64.
3699 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3701 * windows-tdep.h: Add prototypes.
3702 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
3703 (i386_windows_core_pid_to_str): Move and rename ...
3704 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
3705 (windows_core_pid_to_str): ... and here.
3706 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
3708 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3709 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
3710 (amd64_windows_init_abi_common): ... and register.
3712 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3714 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
3715 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
3717 2020-09-18 Pedro Alves <pedro@palves.net>
3720 * thread.c (thread_find_command): Switch inferior before calling
3723 2020-09-17 Tom Tromey <tromey@adacore.com>
3725 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
3726 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
3727 (tdesc_arch_data_up): New typedef.
3728 (tdesc_use_registers, tdesc_data_alloc): Update.
3729 (tdesc_data_cleanup): Don't declare.
3730 * target-descriptions.c (tdesc_data_alloc): Return a
3732 (tdesc_arch_data_deleter::operator()): Rename from
3733 tdesc_data_cleanup. Change argument type.
3734 (tdesc_use_registers): Change early_data to an rvalue reference.
3735 (tdesc_use_registers): Don't use delete.
3736 * sparc-tdep.c (sparc32_gdbarch_init): Update.
3737 * s390-tdep.c (s390_gdbarch_init): Update.
3738 * rx-tdep.c (rx_gdbarch_init): Update.
3739 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3740 * riscv-tdep.c (riscv_gdbarch_init): Update.
3741 * or1k-tdep.c (or1k_gdbarch_init): Update.
3742 * nios2-tdep.c (nios2_gdbarch_init): Update.
3743 * nds32-tdep.c (nds32_gdbarch_init): Update.
3744 * mips-tdep.c (mips_gdbarch_init): Update.
3745 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
3746 * m68k-tdep.c (m68k_gdbarch_init): Update.
3747 * i386-tdep.c (i386_gdbarch_init): Update.
3748 * arm-tdep.c (arm_gdbarch_init): Update.
3749 * arc-tdep.c (arc_tdesc_init): Update.
3750 (arc_gdbarch_init): Update.
3751 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
3753 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
3755 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
3756 for WOW64 processes.
3758 2020-09-17 Tom Tromey <tom@tromey.com>
3760 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
3762 2020-09-17 Tom Tromey <tom@tromey.com>
3764 * value.c (preserve_values): Update.
3765 * python/py-type.c (save_objfile_types): Update.
3766 * guile/scm-type.c (save_objfile_types): Update.
3767 * gdbtypes.h (create_copied_types_hash): Return htab_up.
3768 * gdbtypes.c (create_copied_types_hash): Return htab_up.
3769 * compile/compile-object-run.c (compile_object_run): Update.
3771 2020-09-17 Tom Tromey <tom@tromey.com>
3773 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
3775 <m_table>: Now htab_up.
3776 * typeprint.c (typedef_hash_table::recursively_update)
3777 (typedef_hash_table::add_template_parameters)
3778 (typedef_hash_table::typedef_hash_table): Update.
3779 (typedef_hash_table::~typedef_hash_table): Remove.
3780 (typedef_hash_table::typedef_hash_table)
3781 (typedef_hash_table::find_global_typedef)
3782 (typedef_hash_table::find_typedef): Update.
3784 2020-09-17 Tom Tromey <tom@tromey.com>
3786 * target-descriptions.c (tdesc_use_registers): Use htab_up.
3788 2020-09-17 Tom Tromey <tom@tromey.com>
3790 * linespec.c (class decode_compound_collector)
3791 <~decode_compound_collector>: Remove.
3792 <m_unique_syms>: Now htab_up.
3793 (decode_compound_collector::operator ()): Update.
3794 (class symtab_collector) <~symtab_collector>: Remove.
3795 <m_symtab_table>: Now htab_up.
3796 (symtab_collector::operator ()): Update.
3798 2020-09-17 Tom Tromey <tom@tromey.com>
3800 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
3801 (filename_seen_cache::clear): Update.
3802 (~filename_seen_cache): Remove.
3803 (filename_seen_cache::seen): Update.
3804 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
3806 <~filename_seen_cache>: Remove.
3809 2020-09-17 Tom Tromey <tom@tromey.com>
3811 * completer.c (completion_tracker::discard_completions)
3812 (completion_tracker::~completion_tracker)
3813 (completion_tracker::maybe_add_completion)
3814 (completion_tracker::remove_completion)
3815 (completion_tracker::recompute_lowest_common_denominator)
3816 (completion_tracker::build_completion_result): Update.
3817 * completer.h (class completion_tracker) <have_completions>:
3819 <m_entries_hash>: Now htab_up.
3821 2020-09-17 Tom Tromey <tom@tromey.com>
3823 * breakpoint.c (ambiguous_names_p): Use htab_up.
3825 2020-09-17 Tom Tromey <tom@tromey.com>
3827 * auto-load.c (struct auto_load_pspace_info)
3828 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
3829 <loaded_script_files, loaded_script_texts>: Change type to
3831 (~auto_load_pspace_info) Remove.
3832 (init_loaded_scripts_info, maybe_add_script_file)
3833 (maybe_add_script_text, auto_load_info_scripts): Update.
3835 2020-09-17 Tom Tromey <tromey@adacore.com>
3837 * c-exp.y (name_obstack): Now static.
3839 2020-09-17 Chungyi Chi <demonic@csie.io>
3841 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
3843 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
3845 * breakpoint.h (init_catchpoint): Change int parameter to bool.
3846 (add_solib_catchpoint): Likewise.
3847 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
3849 (add_solib_catchpoint): Change int parameter/variable to bool.
3850 (catch_load_or_unload): Likewise.
3851 (init_catchpoint): Likewise.
3852 (create_fork_vfork_event_catchpoint): Likewise.
3853 (catch_fork_command_1): Likewise.
3854 (catch_exec_command_1): Likewise.
3856 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
3858 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
3859 Change instance_flags to m_instance_flags.
3861 2020-09-16 Tom Tromey <tromey@adacore.com>
3864 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
3866 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3868 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
3870 (fbsd_nat_target::insert_exec_catchpoint)
3871 (fbsd_nat_target::remove_exec_catchpoint): Always define.
3872 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
3873 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
3875 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3877 * configure.ac: Remove check for kinfo_getvmmap().
3878 * configure, config.in: Regenerate.
3879 * fbsd-nat.c (fbsd_read_mapping): Remove
3880 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
3881 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
3882 kinfo_get_vmmap() are always present.
3884 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3886 * fbsd-nat.c: Always include support for
3887 TARGET_OBJECT_SIGNAL_INFO.
3889 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3891 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
3892 sysctl and remove procfs fallback.
3894 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3896 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
3897 * fbsd-nat.h: Likewise.
3899 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3901 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
3904 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3906 * ada-lang.c (ada_language_data): Delete.
3907 (ada_language): Remove references to ada_language_data.
3908 * c-lang.c (c_language_data): Delete.
3909 (c_language): Remove references to c_language_data.
3910 (cplus_language_data): Delete.
3911 (cplus_language): Remove references to cplus_language_data.
3912 (asm_language_data): Delete.
3913 (asm_language): Remove references to asm_language_data.
3914 (minimal_language_data): Delete.
3915 (minimal_language): Remove references to minimal_language_data.
3916 * d-lang.c (d_language_data): Delete.
3917 (d_language): Remove references to d_language_data.
3918 * f-lang.c (f_language_data): Delete.
3919 (f_language): Remove references to f_language_data.
3920 * go-lang.c (go_language_data): Delete.
3921 (go_language): Remove references to go_language_data.
3922 * language.c (unknown_language_data): Delete.
3923 (unknown_language): Remove references to unknown_language_data.
3924 (auto_language_data): Delete.
3925 (auto_language): Remove references to auto_language_data.
3926 * language.h (language_data): Delete struct.
3927 (language_defn): No longer inherit from language_data.
3928 * m2-lang.c (m2_language_data): Delete.
3929 (m2_language): Remove references to m2_language_data.
3930 * objc-lang.c (objc_language_data): Delete.
3931 (objc_language): Remove references to objc_language_data.
3932 * opencl-lang.c (opencl_language_data): Delete.
3933 (opencl_language): Remove references to opencl_language_data.
3934 * p-lang.c (pascal_language_data): Delete.
3935 (pascal_language): Remove references to pascal_language_data.
3936 * rust-lang.c (rust_language_data): Delete.
3937 (rust_language): Remove references to rust_language_data.
3939 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3941 * ada-lang.c (ada_language_data): Remove la_op_print_tab
3943 (ada_language::opcode_print_table): New member function.
3944 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
3945 (c_language::opcode_print_table): New member function.
3946 (cplus_language_data): Remove la_op_print_tab initializer.
3947 (cplus_language::opcode_print_table): New member function.
3948 (asm_language_data): Remove la_op_print_tab initializer.
3949 (asm_language::opcode_print_table): New member function.
3950 (minimal_language_data): Remove la_op_print_tab initializer.
3951 (minimal_language::opcode_print_table): New member function.
3952 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
3953 (d_language::opcode_print_table): New member function.
3954 * expprint.c (print_subexp_standard): Update call to
3956 (op_string): Likewise.
3957 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
3958 (f_language::opcode_print_table): New member function.
3959 * go-lang.c (go_language_data): Remove la_op_print_tab
3961 (go_language::opcode_print_table): New member function.
3962 * language.c (unknown_language_data): Remove la_op_print_tab
3964 (unknown_language::opcode_print_table): New member function.
3965 (auto_language_data): Remove la_op_print_tab initializer.
3966 (auto_language::opcode_print_table): New member function.
3967 * language.h (language_data): Remove la_op_print_tab field.
3968 (language_defn::opcode_print_table): Declare new member function.
3969 * m2-lang.c (m2_language_data): Remove la_op_print_tab
3971 (m2_language::opcode_print_table): New member function.
3972 * objc-lang.c (objc_language_data): Remove la_op_print_tab
3974 (objc_language::opcode_print_table): New member function.
3975 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
3977 (opencl_language::opcode_print_table): New member function.
3978 * p-lang.c (pascal_language_data): Remove la_op_print_tab
3980 (pascal_language::opcode_print_table): New member function.
3981 * rust-lang.c (rust_language_data): Remove la_op_print_tab
3983 (rust_language::opcode_print_table): New member function.
3985 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3987 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
3988 (ada_language::expression_ops): New member function.
3989 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
3990 (c_language::expression_ops): New member function.
3991 (cplus_language_data): Remove la_exp_desc initializer.
3992 (cplus_language::expression_ops): New member function.
3993 (asm_language_data): Remove la_exp_desc initializer.
3994 (asm_language::expression_ops): New member function.
3995 (minimal_language_data): Remove la_exp_desc initializer.
3996 (minimal_language::expression_ops): New member function.
3997 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
3998 (d_language::expression_ops): New member function.
3999 * eval.c (evaluate_subexp): Update call to expression_ops.
4000 * expprint.c (print_subexp): Likewise.
4001 (op_name): Likewise.
4002 (dump_subexp_body): Likewise.
4003 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
4004 (f_language::expression_ops): New member function.
4005 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
4006 (go_language::expression_ops): New member function.
4007 * language.c (language_defn::expression_ops): New function.
4008 (unknown_language_data): Remove la_exp_desc initializer.
4009 (auto_language_data): Likewise.
4010 * language.h (language_data): Remove la_exp_desc field.
4011 (language_defn::expression_ops): Declare new member function.
4012 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
4013 (m2_language::expression_ops): New member function.
4014 * objc-lang.c (objc_language_data): Remove la_exp_desc
4016 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
4018 (opencl_language::expression_ops): New member function.
4019 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
4020 * parse.c (operator_length): Update call to expression_ops.
4021 (exp_iterate): Likewise.
4022 * rust-lang.c (rust_language_data): Remove la_exp_desc
4024 (ruse_language::expression_ops): New member function.
4026 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4028 * ada-lang.c (ada_language_data): Remove la_varobj_ops
4030 (ada_language::varobj_ops): New member function.
4031 * c-lang.c (c_language_data): Remove la_varobj_ops
4033 (cplus_language_data): Likewise.
4034 (cplus_language::varobj_ops): New member function.
4035 (asm_language_data): Remove la_varobj_ops initializer.
4036 (minimal_language_data): Likewise.
4037 * d-lang.c (d_language_data): Likewise.
4038 * f-lang.c (f_language_data): Likewise.
4039 * go-lang.c (go_language_data): Likewise.
4040 * language.c (language_defn::varobj_ops): New function.
4041 (unknown_language_data): Remove la_varobj_ops
4043 (auto_language_data): Likewise.
4044 * language.h (language_data): Remove la_varobj_ops field.
4045 (language_defn::varobj_ops): Declare new member function.
4046 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
4047 * objc-lang.c (objc_language_data): Likewise.
4048 * opencl-lang.c (opencl_language_data): Likewise.
4049 * p-lang.c (pascal_language_data): Likewise.
4050 * rust-lang.c (rust_language_data): Likewise.
4051 * varobj.c (varobj_create): Update call to varobj_ops.
4052 * varobj.h (default_varobj_ops): Delete define.
4054 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4056 * ada-lang.c (ada_language_data): Remove la_macro_expansion
4058 * c-lang.c (c_language_data): Likewise.
4059 (c_language::macro_expansion): New member function.
4060 (cplus_language_data): Likewise.
4061 (cplus_language::macro_expansion): New member function.
4062 (asm_language_data): Likewise.
4063 (asm_language::macro_expansion): New member function.
4064 (minimal_language_data): Likewise.
4065 (minimal_language::macro_expansion): New member function.
4066 * d-lang.c (d_language_data): Remove la_macro_expansion
4068 * f-lang.c (f_language_data): Likewise.
4069 * go-lang.c (go_language_data): Likewise.
4070 * language.c (unknown_language_data): Likewise.
4071 (auto_language_data): Likewise.
4072 * language.h (language_data): Remove la_macro_expansion field.
4073 (language_defn::macro_expansion): New member function.
4074 * m2-lang.c (m2_language_data): Remove la_macro_expansion
4076 * objc-lang.c (objc_language_data): Likewise.
4077 (objc_language::macro_expansion): New member function.
4078 * opencl-lang.c (opencl_language_data): Likewise.
4079 (opencl_language::macro_expansion): New member function.
4080 * p-lang.c (pascal_language_data): Remove la_macro_expansion
4082 * rust-lang.c (rust_language_data): Likewise.
4083 * symtab.c (default_collect_symbol_completion_matches_break_on):
4084 Update call to macro_expansion.
4086 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4088 * ada-lang.c (ada_language_data): Remove la_array_ordering
4090 * c-lang.c (c_language_data): Likewise.
4091 (cplus_language_data): Likewise.
4092 (asm_language_data): Likewise.
4093 (minimal_language_data): Likewise.
4094 * d-lang.c (d_language_data): Likewise.
4095 * dwarf2/read.c (read_array_order): Update for call to
4097 * f-lang.c (f_language_data): Remove la_array_ordering
4099 (f_language::array_ordering): New member function.
4100 * go-lang.c (go_language_data): Remove la_array_ordering
4102 * language.c (unknown_language_data): Likewise.
4103 (auto_language_data): Likewise.
4104 * language.h (language_data): Delete la_array_ordering field.
4105 (language_defn::array_ordering): New member function.
4106 * m2-lang.c (m2_language_data): Remove la_array_ordering
4108 * objc-lang.c (objc_language_data): Likewise.
4109 * opencl-lang.c (opencl_language_data): Likewise.
4110 * p-lang.c (pascal_language_data): Likewise.
4111 * rust-lang.c (rust_language_data): Likewise.
4113 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4115 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
4117 * c-lang.c (c_language_data): Likewise.
4118 (cplus_language_data): Likewise.
4119 (asm_language_data): Likewise.
4120 (minimal_language_data): Likewise.
4121 * d-lang.c (d_language_data): Likewise.
4122 * f-lang.c (f_language_data): Likewise.
4123 (f_language::case_sensitivity): New member function.
4124 * go-lang.c (go_language_data): Remove la_case_sensitivity
4126 * language.c (enum case_mode): Moved here from language.h.
4127 (case_mode): Make static.
4128 (show_case_command): Update for case_sensitivity being a method.
4129 (set_case_command): Likewise.
4130 (set_range_case): Likewise.
4131 (unknown_language_data): Remove la_case_sensitivity initializer.
4132 (auto_language_data): Likewise.
4133 * language.h (case_mode): Delete, move enum declaration to
4135 (language_data): Delete la_case_sensitivity field.
4136 (language_defn::case_sensitivity): New member function.
4137 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
4139 * objc-lang.c (objc_language_data): Likewise.
4140 * opencl-lang.c (opencl_language_data): Likewise.
4141 * p-lang.c (pascal_language_data): Likewise.
4142 * rust-lang.c (rust_language_data): Likewise.
4144 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4146 * ada-lang.c (ada_language_data): Remove la_range_check
4148 * c-lang.c (c_language_data): Likewise.
4149 (cplus_language_data): Likewise.
4150 (asm_language_data): Likewise.
4151 (minimal_language_data): Likewise.
4152 * d-lang.c (d_language_data): Likewise.
4153 * f-lang.c (f_language_data): Likewise.
4154 (f_language::range_checking_on_by_default): New member function.
4155 * go-lang.c (go_language_data): Remove la_range_check initializer.
4156 * language.c (enum range_mode): Moved here from language.h.
4157 (range_mode): Made static.
4158 (show_range_command): Update to use
4159 range_checking_on_by_default.
4160 (set_range_command): Likewise.
4161 (set_range_case): Likewise.
4162 (unknown_language_data): Remove la_range_check initializer.
4163 (auto_language_data): Likewise.
4164 * language.h (range_mode): Delete. Enum definition moved to
4166 (language_data): Remove la_range_check field.
4167 (language_defn::range_checking_on_by_default): New member
4169 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
4170 (m2_language::range_checking_on_by_default): New member function.
4171 * objc-lang.c (objc_language_data): Remove la_range_check
4173 * opencl-lang.c (opencl_language_data): Likewise.
4174 * p-lang.c (pascal_language_data): Likewise.
4175 (pascal_language::range_checking_on_by_default): New member
4177 * rust-lang.c (rust_language_data): Remove la_range_check
4179 (rust_language::range_checking_on_by_default): New member
4182 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4184 * dwarf2/read.c (dwarf2_physname): Remove special case for
4186 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
4189 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4191 * ada-lang.c (ada_language_data): Remove
4192 la_store_sym_names_in_linkage_form_p initializer.
4193 (ada_language::store_sym_names_in_linkage_form_p): New member
4195 * c-lang.c (c_language_data): Remove
4196 la_store_sym_names_in_linkage_form_p initializer.
4197 (c_language::store_sym_names_in_linkage_form_p): New member
4199 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
4201 (asm_language_data): Likewise.
4202 (asm_language::store_sym_names_in_linkage_form_p): New member
4204 (minimal_language_data): Remove
4205 la_store_sym_names_in_linkage_form_p initializer.
4206 (minimal_language::store_sym_names_in_linkage_form_p): New member
4208 * d-lang.c (d_language_data): Remove
4209 la_store_sym_names_in_linkage_form_p initializer.
4210 * dwarf2/read.c (dwarf2_physname): Update call to
4211 store_sym_names_in_linkage_form_p.
4212 * f-lang.c (f_language_data): Remove
4213 la_store_sym_names_in_linkage_form_p initializer.
4214 * go-lang.c (go_language_data): Remove
4215 la_store_sym_names_in_linkage_form_p initializer.
4216 * language.c (unknown_language_data): Remove
4217 la_store_sym_names_in_linkage_form_p initializer.
4218 (unknown_language::store_sym_names_in_linkage_form_p): New member
4220 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
4222 (auto_language::store_sym_names_in_linkage_form_p): New member
4224 * language.h (language_data): Remove
4225 la_store_sym_names_in_linkage_form_p member variable.
4226 (language_defn::store_sym_names_in_linkage_form_p): New member
4228 * m2-lang.c (m2_language_data): Remove
4229 la_store_sym_names_in_linkage_form_p initializer.
4230 * objc-lang.c (objc_language_data): Likewise.
4231 * opencl-lang.c (opencl_language_data): Likewise.
4232 * p-lang.c (pascal_language_data): Likewise.
4233 * rust-lang.c (rust_language_data): Likewise.
4235 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4237 * ada-lang.c (ada_language_data): Remove string_lower_bound
4239 * c-lang.c (c_language_data): Likewise.
4240 (cplus_language_data): Likewise.
4241 (asm_language_data): Likewise.
4242 (minimal_language_data): Likewise.
4243 * d-lang.c (d_language_data): Likewise.
4244 * f-lang.c (f_language_data): Likewise.
4245 * go-lang.c (go_language_data): Likewise.
4246 * language.c (unknown_language_data): Likewise.
4247 (auto_language_data): Likewise.
4248 * language.h (language_data): Remove string_lower_bound field.
4249 (language_defn::string_lower_bound): New member function.
4250 * m2-lang.c (m2_language_data): Remove string_lower_bound
4252 (m2_language::string_lower_bound): New member function.
4253 * objc-lang.c (objc_language_data): Remove string_lower_bound
4255 * opencl-lang.c (opencl_language_data): Likewise.
4256 * p-lang.c (pascal_language_data): Likewise.
4257 * rust-lang.c (rust_language_data): Likewise.
4258 * valops.c (value_cstring): Update call to string_lower_bound.
4259 (value_string): Likewise.
4260 * value.c (allocate_repeated_value): Likewise.
4262 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4264 * valops.c (value_repeat): Fix incorrect argument name in comment.
4266 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4268 * ada-lang.c (ada_language_data): Remove c_style_arrays
4270 (ada_language::c_style_arrays_p): New member fuction.
4271 * c-lang.c (c_language_data): Remove c_style_arrays
4273 (cplus_language_data): Likewise.
4274 (asm_language_data): Likewise.
4275 (minimal_language_data): Likewise.
4276 * d-lang.c (d_language_data): Likewise.
4277 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
4278 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
4279 (f_language::c_style_arrays_p): New member function.
4280 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
4281 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
4282 * language.c (unknown_language_data): Remove c_style_arrays
4284 (auto_language_data): Likewise.
4285 * language.h (language_data): Remove c_style_arrays field.
4286 (language_defn::c_style_arrays_p): New member function.
4287 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
4288 (m2_language::c_style_arrays_p): New member function.
4289 * objc-lang.c (objc_language_data): Remove c_style_arrays
4291 * opencl-lang.c (opencl_language_data): Likewise.
4292 * p-lang.c (pascal_language_data): Likewise.
4293 * rust-lang.c (rust_language_data): Likewise.
4294 * valarith.c (value_subscript): Update call to c_style_arrays_p,
4295 and update local variable to a bool.
4296 * valops.c (value_cast): Update call to c_style_arrays_p.
4297 (value_array): Likewise.
4298 * value.c (coerce_array): Likewise.
4300 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4302 * ada-lang.c (ada_language_data): Remove la_language initializer.
4303 * c-lang.c (c_language_data): Likewise.
4304 (cplus_language_data): Likewise.
4305 (asm_language_data): Likewise.
4306 (minimal_language_data): Likewise.
4307 * d-lang.c (d_language_data): Likewise.
4308 * f-lang.c (f_language_data): Likewise.
4309 * go-lang.c (go_language_data): Likewise.
4310 * language.c (unknown_language_data): Likewise.
4311 (auto_language_data): Likewise.
4312 * language.h (language_data): Remove la_language field.
4313 (language_defn::language_defn): Initialise la_language field.
4314 (language_defn::la_language): New member variable.
4315 * m2-lang.c (m2_language_data): Remove la_language field.
4316 * objc-lang.c (objc_language_data): Likewise.
4317 * opencl-lang.c (opencl_language_data): Likewise.
4318 * p-lang.c (pascal_language_data): Likewise.
4319 * rust-lang.c (rust_language_data): Likewise.
4321 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4323 * ada-lang.c (ada_extensions): Delete, moved into
4324 ada_language::filename_extensions.
4325 (ada_language_data): Remove la_filename_extensions initializer.
4326 (ada_language::filename_extensions): New member function.
4327 * c-lang.c (c_extensions): Delete, moved into
4328 c_language::filename_extensions.
4329 (c_language_data): Remove la_filename_extensions initializer.
4330 (c_language::filename_extensions): New member function.
4331 (cplus_extensions): Delete, moved into
4332 cplus_language::filename_extensions.
4333 (cplus_language_data): Remove la_filename_extensions initializer.
4334 (cplus_language::filename_extensions): New member function.
4335 (asm_extensions): Delete, moved into
4336 asm_language::filename_extensions.
4337 (asm_language_data): Remove la_filename_extensions initializer.
4338 (asm_language::filename_extensions): New member function.
4339 (minimal_language_data): Remove la_filename_extensions
4341 * d-lang.c (d_extensions): Delete, moved into
4342 d_language::filename_extensions.
4343 (d_language_data): Remove la_filename_extensions initializer.
4344 (d_language::filename_extensions): New member function.
4345 * f-lang.c (f_extensions): Delete, moved into
4346 f_language::filename_extensions.
4347 (f_language_data): Remove la_filename_extensions initializer.
4348 (f_language::filename_extensions): New member function.
4349 * go-lang.c (go_language_data): Remove la_filename_extensions
4351 * language.c (add_set_language_command): Update now that
4352 filename_extensions returns a vector.
4353 (unknown_language_data): Remove la_filename_extensions
4355 (auto_language_data): Likewise.
4356 * language.h (language_data): Remove la_filename_extensions field.
4357 (language_defn::filename_extensions): New member function.
4358 * m2-lang.c (m2_language_data): Remove la_filename_extensions
4360 * objc-lang.c (objc_extensions): Delete, moved into
4361 objc_language::filename_extensions.
4362 (objc_language_data): Remove la_filename_extensions initializer.
4363 (objc_language::filename_extensions): New member function.
4364 * opencl-lang.c (opencl_language_data): Remove
4365 la_filename_extensions initializer.
4366 * p-lang.c (pascal_extensions): Delete, moved into
4367 pascal_language::filename_extensions.
4368 (pascal_language_data): Remove la_filename_extensions initializer.
4369 (pascal_language::filename_extensions): New member function.
4370 * rust-lang.c (rust_extensions): Delete, moved into
4371 rust_language::filename_extensions.
4372 (rust_language_data): Remove la_filename_extensions initializer.
4373 (rust_language::filename_extensions): New member function.
4374 * symfile.c (add_filename_language): Add new assert.
4376 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4378 * ada-lang.c (ada_language_data): Remove la_name and
4379 la_natural_name initializers.
4380 (ada_language::name): New member function.
4381 (ada_language::natural_name): New member function.
4382 * c-lang.c (c_language_data): Remove la_name and
4383 la_natural_name initializers.
4384 (c_language::name): New member function.
4385 (c_language::natural_name): New member function.
4386 (cplus_language_data): Remove la_name and
4387 la_natural_name initializers.
4388 (cplus_language::name): New member function.
4389 (cplus_language::natural_name): New member function.
4390 (asm_language_data): Remove la_name and
4391 la_natural_name initializers.
4392 (asm_language::name): New member function.
4393 (asm_language::natural_name): New member function.
4394 (minimal_language_data): Remove la_name and
4395 la_natural_name initializers.
4396 (minimal_language::name): New member function.
4397 (minimal_language::natural_name): New member function.
4398 * compile/compile.c (compile_to_object): Update call to
4399 lanugage_defn::name.
4400 * d-lang.c (d_language_data): Remove la_name and
4401 la_natural_name initializers.
4402 (d_language::name): New member function.
4403 (d_language::natural_name): New member function.
4404 * expprint.c (print_subexp_standard): Update call to
4405 language_defn::name.
4406 (dump_raw_expression): Likewise
4407 (dump_prefix_expression): Likewise.
4408 * f-lang.c (f_language_data): Remove la_name and
4409 la_natural_name initializers.
4410 (f_language::name): New member function.
4411 (f_language::natural_name): New member function.
4412 * go-lang.c (go_language_data): Remove la_name and
4413 la_natural_name initializers.
4414 (go_language::name): New member function.
4415 (go_language::natural_name): New member function.
4416 * language.c (show_language_command): Update call to
4417 language_defn::name.
4418 (set_language_command): Likewise.
4419 (language_enum): Likewise.
4420 (language_str): Likewise.
4421 (add_set_language_command): Likewise, use
4422 language_defn::natural_name in the doc string.
4423 (unknown_language_data): Remove la_name and
4424 la_natural_name initializers.
4425 (unknown_language::name): New member function.
4426 (unknown_language::natural_name): New member function.
4427 (auto_language_data): Remove la_name and
4428 la_natural_name initializers.
4429 (auto_language::name): New member function.
4430 (auto_language::natural_name): New member function.
4431 (language_lookup_primitive_type_as_symbol): Update call to
4432 language_defn::name.
4433 * language.h (language_data): Remove la_name and la_natural_name
4435 (language_defn::name): New member function.
4436 (language_defn::natural_name): New member function.
4437 * m2-lang.c (m2_language_data): Remove la_name and
4438 la_natural_name initializers.
4439 (m2_language::name): New member function.
4440 (m2_language::natural_name): New member function.
4441 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
4442 language_defn::natural_name.
4443 * objc-lang.c (objc_language_data): Remove la_name and
4444 la_natural_name initializers.
4445 (objc_language::name): New member function.
4446 (objc_language::natural_name): New member function.
4447 * opencl-lang.c (opencl_language_data): Remove la_name and
4448 la_natural_name initializers.
4449 (opencl_language::name): New member function.
4450 (opencl_language::natural_name): New member function.
4451 * p-lang.c (pascal_language_data): Remove la_name and
4452 la_natural_name initializers.
4453 (pascal_language::name): New member function.
4454 (pascal_language::natural_name): New member function.
4455 * rust-lang.c (rust_language_data): Remove la_name and
4456 la_natural_name initializers.
4457 (rust_language::name): New member function.
4458 (rust_language::natural_name): New member function.
4459 * symtab.c (lookup_language_this): Update call to
4460 language_defn::name.
4462 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4464 * ada-lang.c (ada_language_data): Remove la_name_of_this
4466 * ax-gdb.c (gen_expr): Update call to name_of_this.
4467 * c-exp.y (classify_name): Likewise.
4468 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
4469 (cplus_language_data): Likewise.
4470 (cplus_language::name_of_this): New member function.
4471 (asm_language_data): Remove la_name_of_this initializer.
4472 (minimal_language_data): Likewise.
4473 * d-lang.c (d_language_data): Likewise.
4474 (d_language::name_of_this): New member function.
4475 * expprint.c (print_subexp_standard): Update call to name_of_this.
4476 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
4477 * go-lang.c (go_language_data): Likewise.
4478 * language.c (unknown_language_data): Likewise.
4479 (unknown_language::name_of_this): New member function.
4480 (auto_language_data): Remove la_name_of_this initializer.
4481 (auto_language::name_of_this): New member function.
4482 * language.h (language_data): Delete la_name_of_this member
4484 (language_defn::name_of_this): New member function.
4485 * m2-lang.c (m2_language_data): Remove la_name_of_this
4487 * objc-lang.c (objc_language_data): Likewise.
4488 (objc_language::name_of_this): New member function.
4489 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
4491 * p-lang.c (pascal_language_data): Likewise.
4492 (pascal_language::name_of_this): New member function.
4493 * rust-lang.c (rust_language_data): Remove la_name_of_this
4495 * symtab.c (lookup_language_this): Update call to name_of_this.
4496 (lookup_symbol_aux): Likewise.
4497 * valops.c (value_of_this): Likewise.
4499 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4501 * ada-lang.c (ada_language_data): Remove
4502 la_struct_too_deep_ellipsis initializer.
4503 (ada_language::struct_too_deep_ellipsis): New member function.
4504 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
4506 (cplus_language_data): Likewise.
4507 (asm_language_data): Likewise.
4508 (minimal_language_data): Likewise.
4509 * cp-valprint.c (cp_print_value): Update call to
4510 struct_too_deep_ellipsis.
4511 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
4513 * f-lang.c (f_language_data): Likewise.
4514 (f_language::struct_too_deep_ellipsis): New member function.
4515 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
4517 * language.c (unknown_language_data): Likewise.
4518 (auto_language_data): Likewise.
4519 * language.h (language_data): Delete la_struct_too_deep_ellipsis
4521 (language_defn::struct_too_deep_ellipsis): New member function.
4522 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
4524 * objc-lang.c (objc_language_data): Likewise.
4525 * opencl-lang.c (opencl_language_data): Likewise.
4526 * p-lang.c (pascal_language_data): Likewise.
4527 * rust-lang.c (rust_language_data): Likewise.
4528 * valprint.c (val_print_check_max_depth): Update call to
4529 struct_too_deep_ellipsis.
4531 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
4533 * MAINTAINERS (Write After Approval): Add myself.
4535 2020-09-15 Tom Tromey <tom@tromey.com>
4537 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
4540 2020-09-15 Tom Tromey <tom@tromey.com>
4542 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
4543 and TYPE_CODE_METHODPTR cases.
4544 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
4545 (c_value_print_inner): Update.
4546 * valprint.c (generic_value_print_memberptr): New function, from
4547 c_value_print_memberptr.
4548 (generic_value_print): Use it. Call cplus_print_method_ptr.
4550 2020-09-15 Tom Tromey <tromey@adacore.com>
4552 * python/python-internal.h (PyInt_FromLong): Remove define.
4553 * python/py-value.c (convert_value_from_python): Use
4554 gdb_py_object_from_longest.
4555 * python/py-type.c (typy_get_code): Use
4556 gdb_py_object_from_longest.
4557 * python/py-symtab.c (salpy_get_line): Use
4558 gdb_py_object_from_longest.
4559 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
4560 gdb_py_object_from_longest.
4561 * python/py-record.c (recpy_gap_reason_code): Use
4562 gdb_py_object_from_longest.
4563 * python/py-record-btrace.c (recpy_bt_insn_size)
4564 (recpy_bt_func_level, btpy_list_count): Use
4565 gdb_py_object_from_longest.
4566 * python/py-infthread.c (gdbpy_create_ptid_object): Use
4567 gdb_py_object_from_longest. Fix error handling.
4568 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
4569 gdb_py_object_from_longest.
4570 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
4571 gdb_py_object_from_longest.
4572 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
4573 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
4574 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
4576 2020-09-15 Tom Tromey <tromey@adacore.com>
4578 * python/python.c (gdbpy_parameter_value): Use
4579 gdb_py_object_from_ulongest.
4581 2020-09-15 Tom Tromey <tromey@adacore.com>
4583 * python/py-infevents.c (create_register_changed_event_object):
4584 Use gdb_py_object_from_longest.
4585 * python/py-exitedevent.c (create_exited_event_object): Use
4586 gdb_py_object_from_longest.
4588 2020-09-15 Tom Tromey <tromey@adacore.com>
4590 * python/python.c (gdbpy_parameter_value): Use
4591 gdb_py_object_from_longest.
4592 * python/py-type.c (convert_field, typy_range): Use
4593 gdb_py_object_from_longest.
4594 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
4595 gdb_py_object_from_longest.
4596 * python/py-lazy-string.c (stpy_get_length): Use
4597 gdb_py_object_from_longest.
4598 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
4599 gdb_py_object_from_longest.
4600 * python/py-infevents.c (create_memory_changed_event_object): Use
4601 gdb_py_object_from_longest.
4602 * python/py-inferior.c (infpy_get_num): Use
4603 gdb_py_object_from_longest.
4604 (infpy_get_pid): Likewise.
4606 2020-09-15 Tom Tromey <tromey@adacore.com>
4608 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
4610 * python/py-value.c (valpy_long): Use
4611 gdb_py_object_from_ulongest.
4612 * python/py-symtab.c (salpy_get_pc): Use
4613 gdb_py_object_from_ulongest.
4614 (salpy_get_last): Likewise.
4615 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
4616 gdb_py_object_from_ulongest.
4617 * python/py-lazy-string.c (stpy_get_address): Use
4618 gdb_py_object_from_ulongest.
4619 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
4620 * python/py-arch.c (archpy_disassemble): Use
4621 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
4624 2020-09-15 Tom Tromey <tromey@adacore.com>
4626 * python/python-internal.h (gdb_py_long_from_longest): Remove
4628 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
4629 * python/py-type.c (convert_field, typy_get_sizeof): Use
4630 gdb_py_object_from_longest.
4631 * python/py-record-btrace.c (btpy_list_index): Use
4632 gdb_py_object_from_longest.
4634 2020-09-15 Tom Tromey <tromey@adacore.com>
4636 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
4637 * python/py-record.c (recpy_element_number): Use
4638 gdb_py_object_from_longest.
4639 (recpy_gap_number): Likewise.
4641 2020-09-15 Tom Tromey <tromey@adacore.com>
4643 * top.c (ui::ui): Update.
4644 (highest_ui_num): Remove.
4645 * top.h (struct ui) <num>: Remove.
4647 2020-09-15 Tom Tromey <tromey@adacore.com>
4649 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
4650 * ui-style.c (ansi_regex_text): Now array.
4651 * rust-exp.y (number_regex_text): Now array.
4652 * linespec.c (linespec_quote_characters): Now array.
4653 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
4656 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4658 * debuginfod-support.c (debuginfod_client_deleter): New.
4659 (debuginfod_client_up): New.
4660 (debuginfod_init): Return debuginfod_client_up.
4661 (debuginfod_source_query): Adjust.
4662 (debuginfod_debuginfo_query): Adjust.
4664 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4666 * debuginfod-support.c (debuginfod_source_query): Use
4667 make_unique_xstrdup.
4669 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4671 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
4672 with `type::instance_flags`.
4674 2020-09-14 Michael Mullin <masmullin@gmail.com>
4676 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
4677 Remove baton parameter.
4679 2020-09-14 Pedro Alves <pedro@palves.net>
4681 * Makefile.in (SELFTESTS_SRCS): Add
4682 unittests/enum-flags-selftests.c.
4683 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
4684 btrace_function_flags instead of enum btrace_function_flag.
4685 * compile/compile-c-types.c (convert_qualified): Use
4687 * compile/compile-cplus-symbols.c (convert_one_symbol)
4688 (convert_symbol_bmsym):
4689 * compile/compile-cplus-types.c (compile_cplus_convert_method)
4690 (compile_cplus_convert_struct_or_union_methods)
4691 (compile_cplus_instance::convert_qualified_base):
4692 * go-exp.y (parse_string_or_char): Add cast to int.
4693 * unittests/enum-flags-selftests.c: New file.
4694 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
4695 type to btrace_thread_flags from btrace_thread_flag.
4696 (record_btrace_cancel_resume, record_btrace_step_thread): Change
4697 local's type to btrace_thread_flags from btrace_thread_flag. Add
4700 2020-09-14 Pedro Alves <pedro@palves.net>
4702 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
4703 * gdbtypes.c (address_space_name_to_int): Rename to ...
4704 (address_space_name_to_type_instance_flags): ... this.
4705 (address_space_int_to_name): Rename to ...
4706 (address_space_type_instance_flags_to_name): ... this.
4707 * gdbtypes.h (address_space_name_to_int): Rename to ...
4708 (address_space_name_to_type_instance_flags): ... this.
4709 (address_space_int_to_name): Rename to ...
4710 (address_space_type_instance_flags_to_name): ... this.
4711 * type-stack.c (type_stack::insert): Adjust to rename.
4712 * type-stack.h (type_stack::insert): Likewise.
4714 2020-09-14 Pedro Alves <pedro@palves.net>
4715 Andrew Burgess <andrew.burgess@embecosm.com>
4717 * avr-tdep.c (avr_address_class_type_flags): Return
4718 type_instance_flags.
4719 (avr_address_class_type_flags_to_name): Take a
4720 type_instance_flags.
4721 (avr_address_class_name_to_type_flags): Return bool and take a
4722 type_instance_flags.
4723 * d-lang.c (build_d_types): Use type::set_instance_flags.
4724 * ft32-tdep.c (ft32_address_class_type_flags): Return
4725 type_instance_flags.
4726 (ft32_address_class_type_flags_to_name): Take a
4727 type_instance_flags.
4728 (ft32_address_class_name_to_type_flags): Return bool and take a
4729 type_instance_flags.
4730 (ft32_gdbarch_init): Use type::set_instance_flags.
4731 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
4732 * gdbarch.h, gdbarch.c: Regenerate.
4733 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
4734 (address_class_name_to_type_flags): Use type_instance_flags and
4736 * gdbtypes.c (address_space_name_to_int)
4737 (address_space_int_to_name, make_qualified_type): Use
4738 type_instance_flags.
4739 (make_qualified_type): Use type_instance_flags and
4740 type::set_instance_flags.
4741 (make_type_with_address_space, make_cv_type, make_vector_type)
4742 (check_typedef): Use type_instance_flags.
4743 (recursive_dump_type): Cast type_instance_flags to unsigned for
4745 (copy_type_recursive): Use type::set_instance_flags.
4746 (gdbtypes_post_init): Use type::set_instance_flags.
4747 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
4748 <m_instance_flags>: ... this.
4749 <instance_flags, set_instance_flags>: New methods.
4750 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
4751 (SET_TYPE_INSTANCE_FLAGS): New.
4752 (address_space_name_to_int, address_space_int_to_name)
4753 (make_type_with_address_space): Pass flags using
4754 type_instance_flags instead of int.
4755 * stabsread.c (cleanup_undefined_types_noname): Use
4756 type::set_instance_flags.
4757 * s390-tdep.c (s390_address_class_type_flags): Return
4758 type_instance_flags.
4759 (s390_address_class_type_flags_to_name): Take a
4760 type_instance_flags.
4761 (s390_address_class_name_to_type_flags): Return bool and take a
4762 type_instance_flags.
4763 * type-stack.c (type_stack::follow_types): Use
4764 type_instance_flags.
4765 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
4767 2020-09-14 Tom Tromey <tromey@adacore.com>
4769 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
4770 * x86-tdep.c (x86_is_thunk_register_name)
4771 (x86_in_indirect_branch_thunk): Update.
4772 * sparc64-tdep.c (sparc64_fpu_register_names)
4773 (sparc64_cp0_register_names, sparc64_register_names)
4774 (sparc64_pseudo_register_names): Now const.
4775 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
4776 cp0_registers_num>: Now const.
4777 * sparc-tdep.c (sparc_core_register_names)
4778 (sparc32_fpu_register_names, sparc32_cp0_register_names)
4779 (sparc32_pseudo_register_names): Now const.
4780 (validate_tdesc_registers): Update.
4781 * rust-lang.c (rust_extensions): Now const.
4782 * p-lang.c (p_extensions): Now const.
4783 * objc-lang.c (objc_extensions): Now const.
4784 * nto-tdep.c (nto_thread_state_str): Now const.
4785 * moxie-tdep.c (moxie_register_names): Now const.
4786 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
4788 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
4789 (mips_linux_reg_names): Now const.
4790 (mips_gdbarch_init): Update.
4791 * microblaze-tdep.c (microblaze_register_names): Now const.
4792 * m68k-tdep.c (m68k_register_names): Now const.
4793 * m32r-tdep.c (m32r_register_names): Now const.
4794 * ia64-tdep.c (ia64_register_names): Now const.
4795 * i386-tdep.h (struct gdbarch_tdep) <register_names,
4796 ymmh_register_names, ymm16h_regnum, mpx_register_names,
4797 k_register_names, zmmh_register_names, xmm_avx512_register_names,
4798 ymm_avx512_register_names, pkeys_register_names>: Now const.
4799 * i386-tdep.c (i386_register_names, i386_zmm_names)
4800 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
4801 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
4802 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
4803 * f-lang.c (f_extensions): Now const.
4804 * d-lang.c (d_extensions): Now const.
4805 * csky-tdep.c (csky_register_names): Now const.
4806 * charset.c (default_charset_names, charset_enum): Now const.
4807 (_initialize_charset): Update.
4808 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
4810 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
4811 (bsd_uthread_solib_loaded): Update.
4812 (bsd_uthread_state): Now const.
4813 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
4814 (amd64_ymm_avx512_names, amd64_ymmh_names)
4815 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
4816 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
4817 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
4818 (amd64_dword_names): Now const.
4819 * agent.c (can_use_agent_enum): Now const.
4820 * ada-tasks.c (task_states, long_task_states): Now const.
4821 * ada-lang.c (known_runtime_file_name_patterns)
4822 (known_auxiliary_function_name_patterns, attribute_names)
4823 (standard_exc, ada_extensions): Now const.
4825 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4827 * bcache.h (struct bcache) <bcache>: Remove constructor.
4828 <m_hash_function, m_compare_function>: Remove.
4829 <~bcache>: Make virtual.
4830 <compare>: Remove static method, introduce virtual method.
4831 <default_hash>: Remove.
4832 <hash>: New virtual method.
4833 * bcache.c (bcache::expand_hash_table): Update.
4834 (bcache::insert): Update.
4835 (bcache::hash): New.
4836 (bcache::compare): Update comment and parameter names.
4837 * gdbtypes.c (types_deeply_equal): Update.
4838 * psymtab.h (struct psymbol_bcache): New struct.
4839 (class psymtab_storage) <psymtab_storage>: Make default.
4840 <psymbol_cache>: Change type to psymbol_bcache.
4841 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
4842 (psymbol_hash): Change to...
4843 (psymbol_bcache::hash): ... this.
4844 (psymbol_compare): Change to...
4845 (psymbol_bcache::compare): ... this.
4847 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4849 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
4850 checking for initial lwp.
4852 2020-09-14 Tom Tromey <tromey@adacore.com>
4854 * m68k-tdep.c (m68k_extract_return_value): Use
4855 pointer_result_regnum.
4856 (m68k_store_return_value): Likewise.
4857 (m68k_reg_struct_return_p): Handle vectors and arrays.
4858 (m68k_return_value): Handle arrays.
4859 (m68k_svr4_return_value): Fix single-element aggregate handling.
4860 Handle long double. Adjust for embedded ABI.
4861 (m68k_svr4_init_abi): Set pointer_result_regnum.
4862 (m68k_embedded_init_abi): New function.
4863 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
4864 (m68k_osabi_sniffer): New function.
4865 (_initialize_m68k_tdep): Register osabi sniffer.
4866 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
4869 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4871 * xml-support.c (xml_fetch_content_from_file): Replace xfree
4872 with gdb::unique_xmalloc_ptr<char>.
4874 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4876 * xml-support.h (xml_fetch_another): Change type to be a
4878 (xml_process_xincludes): Remove baton parameter.
4879 (xml_fetch_content_from_file): Change baton parameter to
4881 * xml-support.c (struct xinclude_parsing_data)
4882 <xinclude_parsing_data>: Remove baton parameter.
4883 <fetcher_baton>: Remove.
4884 (xinclude_start_include): Adjust.
4885 (xml_process_xincludes): Adjust.
4886 (xml_fetch_content_from_file): Replace baton parameter with
4888 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
4889 (xml_init_syscalls_info): Use a lambda.
4890 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
4891 (file_read_description_xml): Use a lambda.
4892 (fetch_available_features_from_target): Change baton parameter
4894 (target_read_description_xml): Use a lambda.
4895 (target_fetch_description_xml): Use a lambda.
4896 (string_read_description_xml): Update.
4898 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4900 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
4901 uses with type::endianity_is_not_default.
4903 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4905 * gdbtypes.h (struct type) <endianity_is_not_default,
4906 set_endianity_is_not_default>: New methods.
4907 (TYPE_ENDIANITY_NOT_DEFAULT): Use
4908 type::endianity_is_not_default, change all write call sites to
4909 use type::set_endianity_is_not_default.
4911 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4913 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
4914 uses with type::is_fixed_instance.
4916 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4918 * gdbtypes.h (struct type) <is_fixed_instance,
4919 set_is_fixed_instance>: New methods.
4920 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
4921 write call sites to use type::set_is_fixed_instance.
4923 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4925 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
4926 uses with type::is_gnu_ifunc.
4928 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4930 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
4931 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
4932 use type::set_is_gnu_ifunc.
4934 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4936 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
4937 uses with type::stub_is_supported.
4939 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4941 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
4942 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
4943 use type::set_stub_is_supported.
4945 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4947 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
4948 uses with type::is_vector.
4950 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4952 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
4953 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
4954 use type::set_is_vector.
4956 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4958 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
4959 uses with type::has_varargs.
4961 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4963 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
4964 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
4965 use type::set_has_varargs.
4967 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4969 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4970 uses with type::is_prototyped.
4972 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4974 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
4976 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
4977 call sites to use type::set_is_prototyped.
4979 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4981 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
4982 uses with type::target_is_stub.
4984 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4986 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
4988 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
4989 sites to use type::set_target_is_stub.
4991 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4993 * gdbtypes.h (TYPE_STUB): Remove, replace all
4994 uses with type::is_stub.
4996 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4998 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
4999 (TYPE_STUB): Use type::is_stub, change all write call sites to
5000 use type::set_is_stub.
5002 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5004 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
5005 type::has_no_signedness.
5007 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5009 * gdbtypes.h (struct type) <has_no_signedness,
5010 set_has_no_signedness>: New methods.
5011 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
5012 call sites to use type::set_has_no_signedness.
5014 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5016 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
5019 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5021 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
5023 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
5024 sites to use type::set_is_unsigned.
5026 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
5027 Adam Renquinha <arenquinha@cimeq.qc.ca>
5029 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
5030 pointer and stack frame offset when unwinding.
5032 2020-09-13 Pedro Alves <pedro@palves.net>
5034 * NEWS: Document "-break-insert --qualified".
5035 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
5037 2020-09-13 Pedro Alves <pedro@palves.net>
5039 * linespec.c (classify_mtype, compare_msyms): Delete.
5040 (search_minsyms_for_name): Remove classification logic. Instead
5041 filter out trampoline symbols if we also found an external
5042 function of the same name.
5044 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5046 * NEWS: Create a new section for the next release branch.
5047 Rename the section of the current branch, now that it has
5050 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5052 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
5053 * version.in: Bump version to 11.0.50.DATE-git.
5055 2020-09-12 Joel Brobecker <brobecker@adacore.com>
5057 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
5059 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
5060 Felix Willgerodt <Felix.Willgerodt@intel.com>
5062 * gdbarch.sh: Added bfloat16 type.
5063 * gdbarch.c: Regenerated.
5064 * gdbarch.h: Regenerated.
5065 * gdbtypes.c (floatformats_bfloat16): New struct.
5066 (gdbtypes_post_init): Add builtin_bfloat16.
5067 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
5068 (floatformats_bfloat16): New struct.
5069 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
5070 (i386_ymm_type): Add field "v16_bfloat16"
5071 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
5072 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
5073 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
5074 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
5075 * features/i386/64bit-avx512.xml: Add bfloat16 type.
5076 * features/i386/64bit-avx512.c: Regenerated.
5077 * features/i386/64bit-sse.xml: Add bfloat16 type.
5078 * features/i386/64bit-sse.c: Regenerated.
5080 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
5082 * i386-tdep.c (i386_zmm_type): Fix field names.
5083 (i386_ymm_type): Fix field names.
5085 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5087 * breakpoint.c: Fix typo in the help message of the
5088 "set breakpoint condition-evaluation" command.
5090 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5092 * nbsd-nat.c: Include "nat/netbsd-nat.h".
5093 * (nbsd_nat_target::pid_to_exec_file)
5094 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
5095 (nbsd_nat_target::post_startup_inferior)
5096 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
5097 (nbsd_add_threads): Switch local code to common gdb/nat functions.
5098 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
5099 * (nbsd_thread_lister): Remove.
5101 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5103 * fork-inferior.c (startup_inferior): Avoid double free.
5105 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5107 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
5108 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
5110 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5112 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
5113 * netbsd-nat.c: Include <sys/ptrace.h>.
5114 * (netbsd_nat::enable_proc_events): Add.
5116 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5118 * netbsd-nat.h: Include "gdbsupport/function-view.h".
5119 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5120 (netbsd_nat::for_each_thread): Add.
5121 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
5122 "gdbsupport/common-debug.h".
5123 * (netbsd_nat::netbsd_thread_lister)
5124 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5125 (netbsd_nat::for_each_thread): Add.
5127 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5129 * netbsd-nat.h: Include <unistd.h>.
5130 * (netbsd_nat::pid_to_exec_file): Add.
5131 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
5132 * (netbsd_nat::pid_to_exec_file) Add.
5134 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5136 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
5138 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5140 * netbsd-nat.h: New file.
5141 * netbsd-nat.c: Likewise.
5143 2020-09-09 Tom Tromey <tromey@adacore.com>
5145 * ada-lang.c (remove_extra_symbols): Do not increment when
5148 2020-09-08 Tom Tromey <tromey@adacore.com>
5150 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
5152 2020-09-08 Tom Tromey <tromey@adacore.com>
5155 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
5156 (gdb_bfd_init_data): New function.
5157 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
5159 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5161 * infrun.c (fetch_inferior_event): Use
5162 `switch_to_target_no_thread` to switch the target.
5164 2020-09-06 Tom Tromey <tom@tromey.com>
5166 * symfile.h (dwarf2_free_objfile): Don't declare.
5168 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5170 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
5171 to match 16 byte real/complex type generated by Flang compiler.
5173 2020-09-03 Tom de Vries <tdevries@suse.de>
5176 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
5177 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
5179 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
5181 * maint.c (index_digits): New function.
5182 (struct maint_print_section_data): Remove.
5183 (print_bfd_section_info): Remove print_data parameter, add arg
5185 (print_objfile_section_info): Likewise.
5186 (print_bfd_section_info_maybe_relocated): Likewise (plus
5188 (maintenance_info_sections): Adjust calls.
5190 2020-09-02 Tom Tromey <tromey@adacore.com>
5192 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
5194 (ada_varobj_adjust_for_child_access): Special-case null pointers.
5196 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
5198 * bcache.h (struct bcache) <insert>: Change type of `added` to
5200 * bcache.c (bcache::insert): Likewise.
5201 * gdbtypes.c (check_types_worklist): Adjust.
5202 * psymtab.c (add_psymbol_to_bcache): Adjust.
5204 2020-08-31 Kevin Buettner <kevinb@redhat.com>
5206 * corelow.c (unordered_set): Include.
5207 (class core_target): Add field 'm_core_unavailable_mappings'.
5208 (core_target::build_file_mappings): Print only one warning
5209 per inaccessible file. Add unavailable/broken mappings
5210 to m_core_unavailable_mappings.
5211 (core_target::xfer_partial): Call...
5212 (core_target::xfer_memory_via_mappings): New method.
5214 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5216 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
5219 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5221 * dwarf2/read.c (struct field_info): Fix indentation.
5223 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5225 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
5226 ordering in comment.
5227 * frame.c (frame_id_eq): Fix indentation.
5229 2020-08-31 Scott Linder <scott@scottlinder.com>
5230 Simon Marchi <simon.marchi@efficios.com>
5232 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
5233 inline frame ids in outer frame.
5235 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5237 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
5238 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
5239 (outer_frame_id): Use FID_STACK_OUTER instead of
5241 (frame_id_p): Don't check for outer_frame_id.
5243 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5245 * frame-unwind.c (frame_unwind_got_optimized): Don't set
5246 regnum/frame in value. Call allocate_value_lazy.
5247 * frame.c (frame_unwind_register_value): Use
5248 val_print_not_saved.
5250 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5252 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
5254 2020-08-29 Pedro Alves <pedro@palves.net>
5256 * progspace.c (print_program_space): Use all_inferiors. Switch to
5257 the inferior before calling target_pid_to_str.
5259 2020-08-28 Tom Tromey <tom@tromey.com>
5261 * xcoffread.c (xcoff_end_psymtab): Update comment.
5262 * dbxread.c (dbx_end_psymtab): Update comment.
5264 2020-08-28 Tom de Vries <tdevries@suse.de>
5267 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
5269 (create_breakpoint): Same.
5270 (base_breakpoint_decode_location): Same.
5271 (bkpt_create_sals_from_location): Same.
5272 (bkpt_decode_location): Same.
5273 (bkpt_probe_create_sals_from_location): Same.
5274 (bkpt_probe_decode_location): Same.
5275 (tracepoint_create_sals_from_location): Same.
5276 (tracepoint_decode_location): Same.
5277 (tracepoint_probe_decode_location): Same.
5278 (strace_marker_create_sals_from_location): Same.
5279 (strace_marker_decode_location): Same.
5280 (create_sals_from_location_default): Same.
5281 (decode_location_default): Same.
5282 * breakpoint.h (struct breakpoint_ops): Same.
5283 (create_breakpoint): Same.
5284 * linespec.h (decode_line_full): Same.
5285 * linespec.c (decode_line_full): Same. Throw error if
5286 result.size () == 0.
5288 2020-08-27 Pedro Alves <pedro@palves.net>
5291 * breakpoint.c (until_break_fsm) <location_breakpoint,
5292 caller_breakpoint>: Delete fields.
5293 <breakpoints>: New field.
5294 <until_break_fsm>: Adjust to save a breakpoint vector instead of
5295 two individual breakpoints.
5296 (until_break_fsm::should_stop): Loop over breakpoints in the
5298 (until_break_fsm::clean_up): Adjust to clear the breakpoints
5300 (until_break_command): Handle location expanding into multiple
5303 2020-08-27 Pedro Alves <pedro@palves.net>
5306 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
5307 bp_until breakpoints user-specified locations. Update intro
5310 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
5312 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
5313 gdb_bfd_sections): New.
5314 * maint.c (print_bfd_section_info): Change param type to
5315 maint_print_section_data.
5316 (print_objfile_section_info): Likewise.
5317 (print_bfd_section_info_maybe_relocated): Likewise.
5318 (maintenance_info_sections): Use gdb_bfd_sections.
5320 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5322 * MAINTAINERS: Add ARC target and maintainer.
5324 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
5326 * configure.tgt: ARC support for GNU/Linux.
5327 * Makefile.in (ALL_TARGET_OBJS): Likewise.
5328 * arc-linux-tdep.c: New file.
5329 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
5330 * arc-tdep.c (arc_write_pc): Use it.
5332 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5334 * arc-tdep.c (arc_check_for_hardware_loop): New.
5335 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
5337 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5339 * arc-tdep.h: Include "gdbarch.h".
5341 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5344 (arc_gdbarch_features): New class to stir the selection of target XML.
5345 (arc_create_target_description): Use FEATURES to choose XML target.
5346 (arc_lookup_target_description): Use arc_create_target_description
5347 to create _new_ target descriptions or return the already created
5348 ones if the FEATURES is the same.
5349 * arch/arc.c: Implementation of prototypes described above.
5350 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
5351 (arc_gdbarch_features_init): Initialize the FEATURES struct.
5352 * arc-tdep.c (*_feature_name): Make feature names consistent.
5353 (arc_register_feature): A new struct to hold information about
5354 registers of a particular target/feature.
5355 (arc_check_tdesc_feature): Check if XML provides registers in
5356 compliance with ARC_REGISTER_FEATURE structs.
5357 (arc_update_acc_reg_names): Add aliases for r58 and r59.
5358 (determine_*_reg_feature_set): Which feature name to look for.
5359 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
5360 (mach_type_to_arc_isa): Convert from a set of binutils machine types
5361 to expected ISA enums to be used in arc_gdbarch_features structs.
5362 * features/Makefile (FEATURE_XMLFILES): Add new files.
5363 * gdb/features/arc/v1-aux.c: New file.
5364 * gdb/features/arc/v1-aux.xml: Likewise.
5365 * gdb/features/arc/v1-core.c: Likewise.
5366 * gdb/features/arc/v1-core.xml: Likewise.
5367 * gdb/features/arc/v2-aux.c: Likewise.
5368 * gdb/features/arc/v2-aux.xml: Likewise.
5369 * gdb/features/arc/v2-core.c: Likewise.
5370 * gdb/features/arc/v2-core.xml: Likewise.
5371 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
5373 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
5374 Andrew Burgess <andrew.burgess@embecosm.com>
5377 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
5378 an assert. Remove single element array indexing pattern as the
5379 MULTI_SUBSCRIPT support will handle this case too.
5381 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
5383 * value.h (valprint_check_validity): Move declaration from
5385 * valprint.h (valprint_check_validity): ... to here.
5387 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
5389 * debug.h: New file.
5390 * debug.c (debug_prefixed_vprintf): New function.
5391 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
5392 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
5394 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
5396 * infrun.h (infrun_debug_printf_1): New function declaration.
5397 (infrun_debug_printf): New macro.
5398 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
5400 (infrun_debug_printf): New function.
5401 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
5402 (handle_jit_event): Likewise.
5404 2020-08-21 Mark Wielaard <mark@klomp.org>
5406 * ada-lex.l: Extend register warnings diagnostics comment for g++.
5408 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
5410 * frame.c (enum class frame_id_status): New.
5411 (struct frame_info) <this_id::p>: Change type to frame_id_status.
5412 (fprintf_frame): Update.
5413 (compute_frame_id): Set frame id status to "computing" on entry.
5414 Set it back to "not_computed" on failure and to "computed" on
5416 (get_frame_id): Assert the frame id is not being computed.
5417 (create_sentinel_frame): Use frame_id_status::COMPUTED.
5418 (create_new_frame): Likewise.
5419 (frame_cleanup_after_sniffer): Update assert.
5421 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5423 * regcache.c (pid_ptid_regcache_map): New type.
5424 (target_ptid_regcache_map): Remove.
5425 (target_pid_ptid_regcache_map): New type.
5426 (regcaches): Change type to target_pid_ptid_regcache_map.
5427 (get_thread_arch_aspace_regcache): Update.
5428 (regcache_thread_ptid_changed): Update, handle pid-like ptid
5430 (regcaches_size): Update.
5431 (regcache_count): Update.
5432 (registers_changed_ptid_target_pid_test): New.
5433 (_initialize_regcache): Register new test.
5435 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5437 * regcache.c (regcache_count): New.
5438 (struct regcache_test_data): New.
5439 (regcache_test_data_up): New.
5440 (populate_regcaches_for_test): New.
5441 (regcaches_test): Remove.
5442 (get_thread_arch_aspace_regcache_test): New.
5443 (registers_changed_ptid_all_test): New.
5444 (registers_changed_ptid_target_test): New.
5445 (registers_changed_ptid_target_ptid_test): New.
5446 (regcache_thread_ptid_changed): Remove regcache_count lambda.
5447 (_initialize_regcache): Register new tests.
5449 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5451 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
5452 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
5453 gdbarch and aspace parameter. Use current inferior's aspace.
5454 Validate regcache's arch value.
5455 (regcaches_test): Update.
5457 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5459 * regcache.c (regcaches_test): Call registers_changed.
5461 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5463 * infrun.c (process_event_stop_test): Fix typo "breapoint".
5465 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5467 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
5468 to find the end of prologue for flang compiled binaries.
5469 * arm-tdep.c (arm_skip_prologue): Likewise.
5470 * i386-tdep.c (i386_skip_prologue): Likewise.
5471 * producer.c (producer_is_llvm): New function.
5472 (producer_parsing_tests): Added new tests for clang/flang.
5473 * producer.h (producer_is_llvm): New declaration.
5475 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
5477 * linux-nat.c (linux_nat_debug_printf): New function.
5478 (linux_nat_debug_printf_1): New macro. Use throughout the file.
5480 2020-08-18 Aaron Merey <amerey@redhat.com>
5482 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
5483 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
5484 (CLIBS): Add DEBUGINFOD_LIBS.
5486 2020-08-17 Sergei Trofimovich <siarheit@google.com>
5488 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
5491 2020-08-17 Tom Tromey <tromey@adacore.com>
5493 * ada-varobj.c (ada_varobj_decode_var): Handle case where
5494 ada_get_decoded_value returns NULL.
5496 2020-08-17 Tom Tromey <tromey@adacore.com>
5498 * python/py-inferior.c (infpy_search_memory): Use
5499 gdb_py_object_from_ulongest.
5500 * python/py-infevents.c (create_inferior_call_event_object)
5501 (create_memory_changed_event_object): Use
5502 gdb_py_object_from_ulongest.
5503 * python/py-linetable.c (ltpy_entry_get_pc): Use
5504 gdb_py_object_from_ulongest.
5506 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5508 * loc.c (class symbol_needs_eval_context): Fix indentation.
5510 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5512 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
5515 2020-08-17 Tom de Vries <tdevries@suse.de>
5518 * gdbtypes.c (dump_dynamic_prop): New function.
5519 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
5521 2020-08-15 Tom de Vries <tdevries@suse.de>
5524 * stack.c (print_frame_args): Temporarily set the selected
5525 frame to FRAME while printing the frame's arguments.
5527 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5529 PR breakpoints/26385
5530 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
5531 Always clear watchpoint with PTRACE_SET_DEBUGREG.
5533 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5535 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
5536 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
5537 and >= to check return value instead of == -1 and != -1.
5539 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
5541 * utils.h (class gdb_argv) <as_array_view>: New method.
5542 * utils.c (gdb_argv_as_array_view_test): New.
5543 (_initialize_utils): Register selftest.
5544 * maint.c (maintenance_selftest): Use the new method.
5546 2020-08-13 Kamil Rytarowski <n54@gmx.com>
5548 * target.h (supports_dumpcore, dumpcore): New
5549 function declarations.
5550 * target.c (supports_dumpcore, dumpcore): New
5552 * target-delegates.c: Rebuild.
5553 * gcore.c (gcore_command): Use target_supports_dumpcore ()
5554 and target_dumpcore ().
5556 2020-08-13 Aaron Merey <amerey@redhat.com>
5558 * debuginfod-support.c: Replace global variables with user_data.
5560 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
5562 * maint.c (maintenance_selftest): Split args and pass array_view
5565 2020-08-12 Luis Machado <luis.machado@linaro.org>
5567 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
5569 Use %s and pulongest to print the length.
5571 2020-08-12 Pedro Alves <palves@redhat.com>
5573 * NEWS: Move "Multi-target debugging support" item to the
5574 "Changes since GDB 9" section.
5576 2020-08-12 Pedro Alves <palves@redhat.com>
5579 * progspace.c (program_space::remove_objfile): Invalidate the
5582 2020-08-11 Tom de Vries <tdevries@suse.de>
5584 * MAINTAINERS: Mark ms1 as deleted.
5586 2020-08-10 Luis Machado <luis.machado@linaro.org>
5590 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
5592 (aarch64_analyze_prologue_test): Add more unit tests to exercise
5593 movz/str/stur/stp skipping behavior.
5595 2020-08-10 Luis Machado <luis.machado@linaro.org>
5597 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
5598 struct user_sve_header instead of struct sve_context.
5600 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
5602 * read.h (dwarf2_fetch_die_loc_sect_off,
5603 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
5604 `void *` parameter with function_view.
5605 * read.c (dwarf2_fetch_die_loc_sect_off,
5606 dwarf2_fetch_die_loc_cu_off): Likewise.
5607 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
5608 (per_cu_dwarf_call): Adjust.
5609 (get_frame_address_in_block_wrapper): Remove.
5610 (indirect_synthetic_pointer): Adjust.
5611 (get_ax_pc): Remove.
5612 (dwarf2_compile_expr_to_ax): Adjust.
5614 2020-08-08 Tom de Vries <tdevries@suse.de>
5617 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
5619 * regcache.c (get_thread_arch_aspace_regcache): Same.
5621 2020-08-07 Tom Tromey <tromey@adacore.com>
5623 * ravenscar-thread.c
5624 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
5626 (ravenscar_thread_target::wait): Check
5627 runtime_initialized.
5628 (ravenscar_thread_target::prepare_to_store)
5629 (ravenscar_thread_target::stopped_by_sw_breakpoint)
5630 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5631 (ravenscar_thread_target::stopped_by_watchpoint)
5632 (ravenscar_thread_target::stopped_data_address)
5633 (ravenscar_thread_target::core_of_thread): Use
5634 scoped_restore_current_thread and
5635 set_base_thread_from_ravenscar_task.
5637 2020-08-07 Tom Tromey <tromey@adacore.com>
5639 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
5641 2020-08-07 Tom Tromey <tromey@adacore.com>
5643 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
5644 update_inferior_ptid before update_thread_list.
5645 (temporarily_change_regcache_ptid): New class.
5646 (ravenscar_thread_target::fetch_registers)
5647 (ravenscar_thread_target::store_registers)
5648 (ravenscar_thread_target::prepare_to_store): Use base thread when
5649 forwarding operation.
5651 2020-08-07 Tom Tromey <tromey@adacore.com>
5653 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
5656 2020-08-07 Tom Tromey <tromey@adacore.com>
5658 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
5660 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
5662 (ravenscar_thread_target::add_thread): Rename from
5663 ravenscar_add_thread.
5664 (ravenscar_thread_target::update_thread_list): Use a lambda.
5665 (ravenscar_thread_target::xfer_partial): New method.
5667 2020-08-07 Tom Tromey <tromey@adacore.com>
5669 * ada-lang.h (ada_task_list_iterator_ftype): Now a
5671 (iterate_over_live_ada_tasks): Change type of argument.
5672 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
5675 2020-08-07 Tom Tromey <tromey@adacore.com>
5677 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
5679 (ravenscar_thread_target::extra_thread_info): Remove.
5680 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
5681 defer to target beneath for non-Ravenscar threads.
5683 2020-08-07 Tom Tromey <tromey@adacore.com>
5685 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
5686 get_base_thread_from_ravenscar_task>: Now methods.
5687 <m_cpu_map>: New member.
5688 (ravenscar_thread_target::get_thread_base_cpu): Rename from
5689 ravenscar_get_thread_base_cpu. Check m_cpu_map.
5690 (ravenscar_thread_target::task_is_currently_active): Update.
5691 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
5693 (ravenscar_thread_target::add_active_thread): Put initial thread
5696 2020-08-07 Tom Tromey <tromey@adacore.com>
5698 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
5701 2020-08-07 Tom Tromey <tromey@adacore.com>
5703 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
5704 runtime_initialized.
5706 2020-08-07 Tom Tromey <tromey@adacore.com>
5708 * ravenscar-thread.c (ravenscar_thread_target): Don't call
5710 (ravenscar_thread_target::add_active_thread): Now public.
5711 (ravenscar_inferior_created): Call add_active_thread after pushing
5714 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
5716 * regcache.c (ptid_regcache_map): New type.
5717 (target_ptid_regcache_map): New type.
5718 (regcaches): Change type to target_ptid_regcache_map.
5719 (get_thread_arch_aspace_regcache): Update to regcaches' new
5721 (regcache_thread_ptid_changed): Likewise.
5722 (registers_changed_ptid): Likewise.
5723 (regcaches_size): Likewise.
5724 (regcaches_test): Update.
5725 (regcache_thread_ptid_changed): Update.
5726 * regcache.h (regcache_up): New type.
5727 * gdbsupport/ptid.h (hash_ptid): New struct.
5729 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
5731 * observable.h (thread_ptid_changed): Add parameter
5732 `process_stratum_target *`.
5733 * infrun.c (infrun_thread_ptid_changed): Add parameter
5734 `process_stratum_target *` and use it.
5735 (selftests): New namespace.
5736 (infrun_thread_ptid_changed): New function.
5737 (_initialize_infrun): Register selftest.
5738 * regcache.c (regcache_thread_ptid_changed): Add parameter
5739 `process_stratum_target *` and use it.
5740 (regcache_thread_ptid_changed): New function.
5741 (_initialize_regcache): Register selftest.
5742 * thread.c (thread_change_ptid): Pass target to
5743 thread_ptid_changed observable.
5745 2020-08-06 Caroline Tice <cmtice@google.com>
5747 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
5748 (struct dwp_sections): Update field comments. Add loclists and
5750 (struct virtual_v2_dwo_sections): Rename struct to
5751 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
5752 size & offset fields for loclists and rnglists.
5753 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
5754 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
5755 skipping dummy type units.
5756 (create_dwp_hash_table): Update the large comment above the function to
5757 discuss Version 5 DWP files as well, with references. Update all the
5758 version checks in the function to check for version 5 as well. Add new
5759 section at the end to create dwp hash table for version 5.
5760 (create_dwp_v2_section): Rename function to
5761 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
5762 Add V5 to error message text.
5763 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
5764 into calls to create_dwp_v2_or_v5_section.
5765 (create_dwo_unit_in_dwp_v5): New function.
5766 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
5767 check for version2; add else clause to handle version 5.
5768 (open_and_init_dwo_file): Add code to check dwarf version & only call
5769 create_debug_types_hash_table (with sections.types) if version is not 5;
5770 else call create_debug_type_hash_table, with sections.info.
5771 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
5773 (dwarf2_locate_v5_dwp_sections): New function.
5774 (open_and_init_dwp_file): Add else-if clause for version 5 to call
5775 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
5777 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
5779 * regcache.h (class regcache): Remove friend
5780 registers_changed_ptid.
5781 <regcache_thread_ptid_changed>: Remove.
5782 <regcaches>: Remove.
5783 * regcache.c (regcache::regcaches): Rename to...
5784 (regcaches): ... this. Make static.
5785 (get_thread_arch_aspace_regcache): Update.
5786 (regcache::regcache_thread_ptid_changed): Rename to...
5787 (regcache_thread_ptid_changed): ... this. Update.
5788 (class regcache_access): Remove.
5789 (regcaches_test): Update.
5790 (_initialize_regcache): Update.
5791 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
5794 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
5796 * regcache.h (class regcache) <current_regcache>: Rename to...
5797 <regcaches>: ... this. Move doc here.
5798 * regcache.c (regcache::current_regcache) Rename to...
5799 (regcache::regcaches): ... this. Move doc to header.
5800 (get_thread_arch_aspace_regcache): Update.
5801 (regcache::regcache_thread_ptid_changed): Update.
5802 (registers_changed_ptid): Update.
5803 (class regcache_access) <current_regcache_size>: Rename to...
5804 <regcaches_size>: ... this.
5805 (current_regcache_test): Rename to...
5806 (regcaches_test): ... this.
5807 (_initialize_regcache): Update.
5809 2020-08-06 Victor Collod <vcollod@nvidia.com>
5811 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
5813 2020-08-05 Kevin Buettner <kevinb@redhat.com>
5815 * corelow.c (core_target::build_file_mappings): Don't output
5816 null pathname in warning.
5818 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
5820 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
5821 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
5822 gdb.dwarf2/dw2-single-line-discriminators.exp,
5823 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
5825 2020-08-05 Tom Tromey <tromey@adacore.com>
5828 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
5829 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
5830 Fix off-by-one and type size errors in ordinary case.
5832 2020-08-05 Tom de Vries <tdevries@suse.de>
5834 * gdbtypes.c (type_not_allocated, type_not_associated): Use
5835 "prop->const_val () == 0" instead of "prop->const_val () != 0".
5837 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
5839 * frame.h (frame_id_p): Return bool.
5840 (frame_id_artificial_p): Return bool.
5841 (frame_id_eq): Return bool.
5842 (has_stack_frames): Return bool.
5843 (get_selected_frame): Fix typo in comment.
5844 (get_frame_pc_if_available): Return bool.
5845 (get_frame_address_in_block_if_available): Return bool.
5846 (get_frame_func_if_available): Return bool.
5847 (read_frame_register_unsigned): Return bool.
5848 (get_frame_register_bytes): Return bool.
5849 (safe_frame_unwind_memory): Return bool.
5850 (deprecated_frame_register_read): Return bool.
5851 (frame_unwinder_is): Return bool.
5852 * frame.c (struct frame_info) <prev_arch::p>: Change type to
5854 <this_id::p>: Likewise.
5856 (frame_stash_add): Return bool.
5857 (get_frame_id): Use bool.
5858 (frame_id_build_special) Use bool.
5859 (frame_id_build_unavailable_stack): Use bool.
5860 (frame_id_build): Use bool.
5861 (frame_id_p): Return bool, use true/false instead of 1/0.
5862 (frame_id_artificial_p): Likewise.
5863 (frame_id_eq): Likewise.
5864 (frame_id_inner): Likewise.
5865 (get_frame_func_if_available): Likewise.
5866 (read_frame_register_unsigned): Likewise.
5867 (deprecated_frame_register_read): Likewise.
5868 (get_frame_register_bytes): Likewise.
5869 (has_stack_frames): Likewise.
5870 (inside_main_func): Likewise.
5871 (inside_entry_func): Likewise.
5872 (get_frame_pc_if_available): Likewise.
5873 (get_frame_address_in_block_if_available): Likewise.
5874 (frame_unwinder_is): Likewise.
5875 (safe_frame_unwind_memory): Likewise.
5876 (frame_unwind_arch): Likewise.
5878 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
5880 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
5881 type to cached_copy_status.
5882 (fprintf_frame): Adjust.
5883 (get_frame_func_if_available): Adjust.
5884 (frame_cleanup_after_sniffer): Adjust.
5886 2020-08-04 Mark Wielaard <mark@klomp.org>
5888 * MAINTAINERS (Write After Approval): Update email address.
5890 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5892 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
5893 dynamic_prop::const_val.
5895 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5897 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
5900 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5902 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
5904 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
5906 * configure.tgt: Set gdb_sim for bpf-*-* targets.
5908 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
5909 Jose E. Marchesi <jose.marchesi@oracle.com>
5911 * configure.tgt: Add entry for bpf-*-*.
5912 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
5913 (ALLDEPFILES): Add bpf-tdep.c.
5914 * bpf-tdep.c: New file.
5915 * MAINTAINERS: Add bpf target and maintainer.
5916 * NEWS: Mention the support for the new target.
5918 2020-08-04 Tom de Vries <tdevries@suse.de>
5921 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
5924 2020-08-03 John Baldwin <jhb@FreeBSD.org>
5926 * syscalls/freebsd.xml: Regenerate.
5928 2020-08-03 John Baldwin <jhb@FreeBSD.org>
5930 * syscalls/update-freebsd.sh: Fix usage and year range.
5932 2020-08-03 Tom de Vries <tdevries@suse.de>
5935 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
5936 DW_LNE_lo_user/DW_LNE_hi_user range.
5938 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
5941 * ada-lang.c (ada_modulus): Return 0 if property is not of const
5944 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5946 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
5948 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5950 * breakpoint.c (set_breakpoint_condition): Update the condition
5951 expressions after checking that the input condition string parses
5952 successfully and does not contain junk at the end.
5954 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5956 * breakpoint.c (set_breakpoint_condition): Update the
5957 condition string after parsing the new condition successfully.
5959 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5961 * proc-api.c (_STRUCTURED_PROC): Don't define.
5962 * proc-events.c: Likewise.
5963 * proc-flags.c: Likewise.
5964 * proc-why.c: Likewise.
5965 * procfs.c: Likewise.
5967 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
5968 * configure, config.in: Regenerate.
5970 2020-07-30 Tom de Vries <tdevries@suse.de>
5973 * ui-style.h (struct ui_file_style::color): Wrap m_value and
5974 m_red/m_green/m_blue in a union.
5976 2020-07-29 Tom de Vries <tdevries@suse.de>
5979 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
5981 2020-07-28 Tom Tromey <tromey@adacore.com>
5984 * symtab.h (find_pc_partial_function_sym): Declare.
5985 * cli/cli-cmds.c (disassemble_command): Use
5986 find_pc_partial_function_sym. Check asm_demangle.
5987 * blockframe.c (cache_pc_function_sym): New global.
5988 (cache_pc_function_name): Remove.
5989 (clear_pc_function_cache): Update.
5990 (find_pc_partial_function_sym): New function, from
5991 find_pc_partial_function.
5992 (find_pc_partial_function): Rewrite using
5993 find_pc_partial_function_sym.
5995 2020-07-28 Tom Tromey <tromey@adacore.com>
5997 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
6000 2020-07-28 Tom Tromey <tromey@adacore.com>
6002 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
6003 <DW_OP_GNU_variable_value>: Cast to address type.
6005 2020-07-28 Kamil Rytarowski <n54@gmx.com>
6007 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
6008 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
6009 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
6010 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
6011 (nbsd_get_siginfo_type): New.
6012 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
6013 (_initialize_nbsd_tdep): New.
6015 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6018 * configure: Regenerated.
6020 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6023 * configure: Regenerated.
6025 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6027 * python/py-frame.c: Remove 'user-regs.h' include.
6028 (frapy_read_register): Rewrite to make use of
6029 gdbpy_parse_register_id.
6030 * python/py-registers.c (gdbpy_parse_register_id): New function,
6031 moved here from python/py-unwind.c. Updated the return type, and
6032 also accepts register descriptor objects.
6033 * python/py-unwind.c: Remove 'user-regs.h' include.
6034 (pyuw_parse_register_id): Moved to python/py-registers.c.
6035 (unwind_infopy_add_saved_register): Update to use
6036 gdbpy_parse_register_id.
6037 (pending_framepy_read_register): Likewise.
6038 * python/python-internal.h (gdbpy_parse_register_id): Declare.
6040 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6042 * python/py-registers.c: Add 'user-regs.h' include.
6043 (register_descriptor_iter_find): New function.
6044 (register_descriptor_iterator_object_methods): New static global
6046 (register_descriptor_iterator_object_type): Add pointer to methods
6049 2020-07-27 John Baldwin <jhb@FreeBSD.org>
6051 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
6052 for all architectures on FreeBSD 11.3 and later.
6054 2020-07-27 Tom Tromey <tromey@adacore.com>
6056 * gcore.h (load_corefile): Don't declare.
6058 2020-07-27 Tom de Vries <tdevries@suse.de>
6060 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
6061 * config.in: Regenerate.
6062 * configure: Regenerate.
6064 2020-07-26 Eli Zaretskii <eliz@gnu.org>
6066 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
6067 ws2tcpip.h. When checking whether socklen_t type is defined, use
6068 ws2tcpip.h if it is available and sys/socket.h isn't.
6069 * configure: Regenerate.
6070 * config.in: Regenerate.
6072 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
6076 * valops.c (value_ind): Pass address to
6077 readjust_indirect_value_type.
6078 * value.c (readjust_indirect_value_type): Make parameter
6079 non-const, and add extra address parameter. Resolve original type
6081 * value.h (readjust_indirect_value_type): Update function
6082 signature and comment.
6084 2020-07-25 Tom de Vries <tdevries@suse.de>
6087 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
6090 2020-07-24 Aaron Merey <amerey@redhat.com>
6092 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
6093 * configure: Rebuild.
6095 2020-07-23 Kevin Buettner <kevinb@redhat.com>
6098 * corelow.c (_initialize_corelow): Add period to help text
6099 for "maintenance print core-file-backed-mappings".
6101 2020-07-23 Pedro Alves <pedro@palves.net>
6103 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
6104 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
6106 * frame.c (frame_cache_generation, get_frame_cache_generation):
6108 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
6109 (get_prev_frame_if_no_cycle): On exception, don't touch
6110 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
6111 * frame.h (get_frame_cache_generation): Declare.
6113 2020-07-23 Tom de Vries <tdevries@suse.de>
6116 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
6117 New default constructor.
6119 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
6121 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
6122 exclude non-statement entries.
6124 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6126 * NEWS (New commands): Mention new command
6127 "maintenance print core-file-backed-mappings".
6129 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6131 * corelow.c (gdbcmd.h): Include.
6132 (core_target::info_proc_mappings): New method.
6133 (get_current_core_target): New function.
6134 (maintenance_print_core_file_backed_mappings): New function.
6135 (_initialize_corelow): Add core-file-backed-mappings to
6136 "maint print" commands.
6138 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6140 * linux-tdep.c (dump_note_entry_p): New function.
6141 (linux_dump_mapping_p_ftype): New typedef.
6142 (linux_find_memory_regions_full): Add new parameter,
6143 should_dump_mapping_p.
6144 (linux_find_memory_regions): Adjust call to
6145 linux_find_memory_regions_full.
6146 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
6147 call to linux_find_memory_regions_full.
6149 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6151 * corelow.c (solist.h, unordered_map): Include.
6152 (class core_target): Add field m_core_file_mappings and
6153 method build_file_mappings.
6154 (core_target::core_target): Call build_file_mappings.
6155 (core_target::~core_target): Free memory associated with
6156 m_core_file_mappings.
6157 (core_target::build_file_mappings): New method.
6158 (core_target::xfer_partial): Use m_core_file_mappings
6159 for memory transfers.
6160 * linux-tdep.c (linux_read_core_file_mappings): New
6162 (linux_core_info_proc_mappings): Rewrite to use
6163 linux_read_core_file_mappings.
6164 (linux_init_abi): Register linux_read_core_file_mappings.
6166 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6168 * arch-utils.c (default_read_core_file_mappings): New function.
6169 * arch-utils.c (default_read_core_file_mappings): Declare.
6170 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
6171 * gdbarch.h, gdbarch.c: Regenerate.
6173 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6176 * corelow.c (core_target:xfer_partial): Revise
6177 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
6178 case after first checking the stratum beneath the core
6180 (has_all_memory): Return true.
6181 * target.c (raw_memory_xfer_partial): Revise comment
6182 regarding use of has_all_memory.
6184 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6186 * exec.h (section_table_xfer_memory): Revise declaration,
6187 replacing section name parameter with an optional callback
6189 * exec.c (section_table_xfer_memory): Likewise.
6190 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
6191 of section_table_xfer_memory.
6193 2020-07-22 Tom Tromey <tromey@adacore.com>
6195 * mi/mi-cmd-stack.c (list_args_or_locals): Use
6196 lookup_symbol_search_name.
6198 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6200 * python/py-registers.c (gdbpy_register_object_data_init): Remove
6201 redundant local variable.
6202 (gdbpy_get_register_descriptor): Extract descriptor vector as a
6203 reference, not pointer, update code accordingly.
6205 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6206 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6208 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
6209 * jit.c (jit_breakpoint_re_set_internal): Use the
6210 `skip_jit_symbol_lookup` field.
6212 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6213 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6215 * jit.c (jit_read_descriptor): Define the descriptor address once,
6217 (jit_breakpoint_deleted): Move the declaration of the loop variable
6218 `iter` into the loop header.
6219 (jit_breakpoint_re_set_internal): Move the declaration of the local
6220 variable `objf_data` to the first point of definition.
6221 (jit_event_handler): Move the declaration of local variables
6222 `code_entry`, `entry_addr`, and `objf` to their first point of use.
6223 Rename `objf` to `jited`.
6225 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6227 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
6229 * jit.c (get_jiter_objfile_data): Update.
6231 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6232 Simon Marchi <simon.marchi@polymtl.ca>
6234 * jit.c (struct jit_program_space_data): Remove.
6235 (jit_program_space_key): Remove.
6236 (jiter_objfile_data::~jiter_objfile_data): Remove program space
6238 (get_jit_program_space_data): Remove.
6239 (jit_breakpoint_deleted): Iterate on all of the program space's
6241 (jit_inferior_init): Likewise.
6242 (jit_breakpoint_re_set_internal): Likewise. Also change return
6244 (jit_breakpoint_re_set): Pass current_program_space to
6245 jit_breakpoint_re_set_internal.
6247 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6249 * jit.h (struct jiter_objfile_data) <cached_code_address,
6250 jit_breakpoint>: Move to here from ...
6251 * jit.c (jit_program_space_data): ... here.
6252 (jiter_objfile_data::~jiter_objfile_data): Update.
6253 (jit_breakpoint_deleted): Update.
6254 (jit_breakpoint_re_set_internal): Update.
6256 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6258 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
6260 (jit_read_descriptor): Remove NULL check.
6261 (jit_event_handler): Add an assertion.
6263 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6265 * jit.h (struct jit_objfile_data): Split into...
6266 (struct jiter_objfile_data): ... this ...
6267 (struct jited_objfile_data): ... and this.
6268 * objfiles.h (struct objfile) <jit_data>: Remove.
6269 <jiter_data, jited_data>: New fields.
6270 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
6271 (jiter_objfile_data::~jiter_objfile_data): ... this.
6272 (get_jit_objfile_data): Rename to ...
6273 (get_jiter_objfile_data): ... this.
6274 (add_objfile_entry): Update.
6275 (jit_read_descriptor): Use get_jiter_objfile_data.
6276 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
6277 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
6278 (jit_inferior_exit_hook): Use objfile's jited_data field.
6280 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6282 * jit.h: Forward-declare `struct minimal_symbol`.
6283 (struct jit_objfile_data): Migrate to here from jit.c; also add a
6284 constructor, destructor, and an objfile* field.
6285 * jit.c (jit_objfile_data): Remove.
6286 (struct jit_objfile_data): Migrate from here to jit.h.
6287 (jit_objfile_data::~jit_objfile_data): New destructor
6288 implementation with code moved from free_objfile_data.
6289 (free_objfile_data): Delete.
6290 (get_jit_objfile_data): Update to use the jit_data field of objfile.
6291 (jit_find_objf_with_entry_addr): Ditto.
6292 (jit_inferior_exit_hook): Ditto.
6293 (_initialize_jit): Remove the call to
6294 register_objfile_data_with_cleanup.
6295 * objfiles.h (struct objfile) <jit_data>: New field.
6297 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6299 * jit.h: Forward-declare `struct objfile`.
6300 (jit_event_handler): Add a second parameter, the JITer objfile.
6301 * jit.c (jit_read_descriptor): Change the signature to take the
6302 JITer objfile as an argument instead of the jit_program_space_data.
6303 (jit_inferior_init): Update the call to jit_read_descriptor.
6304 (jit_event_handler): Use the new JITer objfile argument when calling
6305 jit_read_descriptor.
6306 * breakpoint.c (handle_jit_event): Update the call to
6307 jit_event_handler to pass the JITer objfile.
6309 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6311 * gdbarch.c: Regenerate.
6312 * gdbarch.h: Regenerate.
6313 * gdbarch.sh (handle_segmentation_fault): Remove method.
6314 * infrun.c (handle_segmentation_fault): Remove.
6315 (print_signal_received_reason): Remove call to
6316 handle_segmentation_fault.
6318 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6320 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6321 Rename to sparc64_linux_report_signal_info and add siggnal
6323 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
6324 instead of sparc64_linux_handle_segmentation_fault.
6326 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6328 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
6329 i386_linux_report_signal_info instead of
6330 i386_linux_handle_segmentation_fault.
6331 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
6332 to i386_linux_report_signal_info and add siggnal argument.
6333 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
6334 of i386_linux_handle_segmentation_fault.
6335 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
6336 to i386_linux_report_signal_info and add siggnal argument.
6338 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6340 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
6343 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6345 * gdbarch.c: Regenerate.
6346 * gdbarch.h: Regenerate.
6347 * gdbarch.sh (report_signal_info): New method.
6348 * infrun.c (print_signal_received_reason): Invoke gdbarch
6349 report_signal_info hook if present.
6351 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6353 * python/py-registers.c : Add 'unordered_map' include.
6354 (gdbpy_new_reggroup): Renamed to...
6355 (gdbpy_get_reggroup): ...this. Update to only create register
6356 group descriptors when needed.
6357 (gdbpy_reggroup_iter_next): Update.
6359 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6361 * python/py-registers.c (gdbpy_register_object_data): New static
6363 (gdbpy_register_object_data_init): New function.
6364 (gdbpy_new_register_descriptor): Renamed to...
6365 (gdbpy_get_register_descriptor): ...this, and update to reuse
6366 existing register descriptors where possible.
6367 (gdbpy_register_descriptor_iter_next): Update.
6368 (gdbpy_initialize_registers): Register new gdbarch data.
6370 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
6372 * linux-nat.c (stopped_pids): Make static.
6374 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
6377 * gdbtypes.c (ada_discrete_type_low_bound,
6378 ada_discrete_type_high_bound): Handle undefined bounds.
6380 2020-07-21 Kamil Rytarowski <n54@gmx.com>
6382 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
6384 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
6387 2020-07-20 John Baldwin <jhb@FreeBSD.org>
6389 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
6390 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
6391 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
6392 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
6393 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
6396 2020-07-20 Ludovic Courtès <ludo@gnu.org>
6398 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
6399 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
6400 which are deprecated in Guile 3.0.
6401 * configure.ac (try_guile_versions): Add "guile-3.0".
6402 * configure (try_guile_versions): Regenerate.
6403 * NEWS: Update entry.
6405 2020-07-20 Ludovic Courtès <ludo@gnu.org>
6406 Doug Evans <dje@google.com>
6409 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
6410 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
6411 USING_GUILE_BEFORE_2_2.
6412 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
6413 Change type to 'scm_t_port_type *'.
6414 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
6415 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
6416 parameter and honor it. Update callers.
6417 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
6418 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
6420 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
6421 USING_GUILE_BEFORE_2_2.
6422 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
6423 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
6424 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
6425 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
6426 and 'SCM_PORT_TYPE'.
6427 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
6428 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
6429 (gdbscm_memory_port_read, gdbscm_memory_port_write)
6430 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
6431 [!USING_GUILE_BEFORE_2_2]: New functions.
6432 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
6433 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
6434 'gdbscm_memory_port_read'.
6435 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
6436 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
6437 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
6439 (ioscm_init_memory_port): Remove.
6440 (ioscm_init_memory_port_stream): New function
6441 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
6443 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6444 Return scm_from_uint (0).
6445 (gdbscm_set_memory_port_read_buffer_size_x)
6446 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6447 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6448 Return scm_from_uint (0).
6449 (gdbscm_set_memory_port_write_buffer_size_x)
6450 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6451 * configure.ac (try_guile_versions): Add "guile-2.2".
6452 * configure: Regenerate.
6455 2020-07-18 Tom Tromey <tom@tromey.com>
6457 * linux-nat.c (linux_multi_process): Remove.
6458 (linux_nat_target::supports_multi_process): Return true.
6460 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6462 * arch/riscv.c (riscv_tdesc_cache): Change map type.
6463 (riscv_lookup_target_description): Return pointer out of
6465 * target-descriptions.c (allocate_target_description): Add
6467 (target_desc_deleter::operator()): Likewise.
6468 * target-descriptions.h (struct target_desc_deleter): Moved to
6470 (target_desc_up): Likewise.
6472 2020-07-17 Tom Tromey <tromey@adacore.com>
6474 * linux-nat.c (linux_nat_target::supports_non_stop)
6475 (linux_nat_target::always_non_stop_p): Use "true".
6476 (linux_nat_target::supports_disable_randomization): Use "true" and
6479 2020-07-16 Caroline Tice <cmtice@google.com>
6481 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
6482 (RNGLIST_HEADER_SIZE64): New constant definition.
6483 (struct dwop_section_names): Add rnglists_dwo.
6484 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
6485 (struct loclist_header): Rename to 'loclists_rnglists_header'.
6486 (struct dwo_sections): Add rnglists field.
6487 (read_attribut_reprocess): Add tag parameter.
6488 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
6489 (cu_debug_rnglists_section): New function (decl & definition).
6490 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
6491 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
6492 die whose range is being checked; get rnglist section from
6493 cu_debug_rnglists_section, to get from either objfile or dwo file as
6494 appropriate. Add cases for DW_RLE_base_addressx,
6495 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
6496 the base address to DW_RLE_offset_pairs (not to all ranges), moving
6497 test inside if-condition and updating complaint message.
6498 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
6499 dwarf2_rnglists_process.
6500 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
6501 dwarf2_ranges_process.
6502 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
6503 need_ranges_base and update comment appropriately. Also pass die tag
6504 to dwarf2_ranges_read.
6505 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
6506 need_ranges_base and update comment appropriately. Also pass die tag
6507 to dwarf2_ranges_process.
6508 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
6509 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
6510 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
6511 need_ranges_base and update comment appropriately. Also pass die tag
6512 to read_attribute_reprocess and dwarf2_ranges_read.
6513 (read_loclist_header): Rename function to read_loclists_rnglists_header,
6514 and update function comment appropriately.
6515 (read_loclist_index): Call read_loclists_rnglists_header instead of
6516 read_loclist_header.
6517 (read_rnglist_index): New function.
6518 (read_attribute_reprocess): Add tag parameter. Add code for
6519 DW_FORM_rnglistx, passing tag to read_rnglist_index.
6520 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
6522 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
6524 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
6527 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
6529 * arch-utils.c (show_architecture): Update formatting of messages.
6531 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6533 * gdbtypes.h (struct type) <bounds>: Handle array and string
6535 * ada-lang.c (assign_aggregate): Use type::bounds on
6537 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
6538 * c-varobj.c (c_number_of_children): Likewise.
6539 (c_describe_child): Likewise.
6540 * eval.c (evaluate_subexp_for_sizeof): Likewise.
6541 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
6542 (f_type_print_base): Likewise.
6543 * f-valprint.c (f77_array_offset_tbl): Likewise.
6544 (f77_get_upperbound): Likewise.
6545 (f77_print_array_1): Likewise.
6546 * guile/scm-type.c (gdbscm_type_range): Likewise.
6547 * m2-typeprint.c (m2_array): Likewise.
6548 (m2_is_long_set_of_type): Likewise.
6549 * m2-valprint.c (get_long_set_bounds): Likewise.
6550 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
6551 * python/py-type.c (typy_range): Likewise.
6552 * rust-lang.c (rust_internal_print_type): Likewise.
6553 * type-stack.c (type_stack::follow_types): Likewise.
6554 * valarith.c (value_subscripted_rvalue): Likewise.
6555 * valops.c (value_cast): Likewise.
6557 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6559 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
6560 callers to use the equivalent accessor methods.
6562 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6564 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
6565 (struct type) <bit_stride>: New method.
6566 (TYPE_BIT_STRIDE): Remove.
6567 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
6569 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6571 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
6572 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
6573 callers to use the equivalent accessor methods instead.
6575 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6577 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
6578 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
6579 callers to use the equivalent accessor methods instead.
6581 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6583 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
6584 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
6585 to use dynamic_prop::kind.
6587 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6589 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
6590 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
6591 to get the bound property's kind and check against
6594 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6596 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
6597 all callers to use type::range_bounds followed by
6598 dynamic_prop::{low,high}.
6600 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6602 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
6603 const_val, set_const_val, baton, set_locexpr, set_loclist,
6604 set_addr_offset, variant_parts, set_variant_parts,
6605 original_type, set_original_type>: New methods.
6606 <kind>: Rename to...
6607 <m_kind>: ... this. Update all users to use the new methods
6609 <data>: Rename to...
6610 <m_data>: ... this. Update all users to use the new methods
6613 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6615 * gdbtypes.c (get_discrete_bounds): Return failure if
6616 the range type's bounds are not both defined and constant
6618 (get_array_bounds): Update comment. Remove undefined bound check.
6620 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6622 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
6623 the type::bounds method directly.
6625 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6627 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
6628 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
6629 are used to set the range type's bounds to use set_bounds.
6631 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6633 * exec.c (_initialize_exec): Update exec-file-mismatch help.
6635 2020-07-10 Pedro Alves <pedro@palves.net>
6637 * gdbthread.h (inferior_ref): Define.
6638 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
6639 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
6641 (scoped_restore_current_thread::restore):
6642 Adjust to gdb::ref_ptr.
6643 (scoped_restore_current_thread::~scoped_restore_current_thread):
6644 Remove manual decref handling.
6645 (scoped_restore_current_thread::scoped_restore_current_thread):
6647 inferior_ref::new_reference/thread_info_ref::new_reference.
6648 Incref the thread before calling get_frame_id instead of after.
6649 Let TARGET_CLOSE_ERROR propagate.
6651 2020-07-10 Pedro Alves <pedro@palves.net>
6653 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
6654 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
6655 NOT_AVAILABLE_ERROR.
6656 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
6657 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
6659 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6660 Pedro Alves <pedro@palves.net>
6663 * infrun.c (threads_are_resumed_pending_p): Delete.
6664 (do_target_wait): Remove threads_are_executing and
6665 threads_are_resumed_pending_p checks from the inferior_matches
6666 lambda. Update comments.
6668 2020-07-10 Pedro Alves <pedro@palves.net>
6671 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
6674 2020-07-10 Pedro Alves <pedro@palves.net>
6677 * infrun.c (handle_no_resumed): Handle multiple targets.
6679 2020-07-10 Pedro Alves <pedro@palves.net>
6682 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
6685 2020-07-10 Pedro Alves <pedro@palves.net>
6688 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
6689 threads, not all threads.
6691 2020-07-10 Pedro Alves <pedro@palves.net>
6694 * remote.c (remote_target::open_1): Pass remote target pointer as
6695 data to create_async_event_handler.
6696 (remote_async_inferior_event_handler): Mark async event handler
6697 before returning if the remote target still has either pending
6698 events or unacknowledged notifications.
6700 2020-07-10 John Baldwin <jhb@FreeBSD.org>
6702 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
6704 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
6707 2020-07-09 John Baldwin <jhb@FreeBSD.org>
6709 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
6712 2020-07-09 John Baldwin <jhb@FreeBSD.org>
6714 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
6715 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
6716 AT_FREEBSD_PS_STRINGS.
6718 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
6720 * auto-load.c (auto_load_objfile_script_1): Convert drive part
6721 of debugfile path on Windows.
6723 2020-07-08 John Baldwin <jhb@FreeBSD.org>
6725 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
6728 2020-07-08 Tom Tromey <tromey@adacore.com>
6730 * ada-lang.c (ada_exception_message_1): Use read_memory.
6732 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6735 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
6736 special handling for inline frames.
6737 * findvar.c (value_of_register_lazy): Skip inline frames when
6738 creating lazy register values.
6739 * frame.c (frame_id_computed_p): Delete definition.
6740 * frame.h (frame_id_computed_p): Delete declaration.
6742 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6744 * NEWS: Mention additions to Python API.
6745 * python/py-arch.c (archpy_register_groups): New function.
6746 (arch_object_methods): Add 'register_groups' method.
6747 * python/py-registers.c (reggroup_iterator_object): New struct.
6748 (reggroup_object): New struct.
6749 (gdbpy_new_reggroup): New function.
6750 (gdbpy_reggroup_to_string): New function.
6751 (gdbpy_reggroup_name): New function.
6752 (gdbpy_reggroup_iter): New function.
6753 (gdbpy_reggroup_iter_next): New function.
6754 (gdbpy_new_reggroup_iterator): New function
6755 (gdbpy_initialize_registers): Register new types.
6756 (reggroup_iterator_object_type): Define new Python type.
6757 (gdbpy_reggroup_getset): New static global.
6758 (reggroup_object_type): Define new Python type.
6759 * python/python-internal.h
6761 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6763 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
6764 * python/py-arch.c (archpy_registers): New function.
6765 (arch_object_methods): Add 'registers' method.
6766 * python/py-registers.c: New file.
6767 * python/python-internal.h
6768 (gdbpy_new_register_descriptor_iterator): Declare.
6769 (gdbpy_initialize_registers): Declare.
6770 * python/python.c (do_start_initialization): Call
6771 gdbpy_initialize_registers.
6772 * NEWS: Mention additions to the Python API.
6774 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6776 * NEWS: Mention new Python API method.
6777 * python/py-unwind.c (pending_framepy_architecture): New function.
6778 (pending_frame_object_methods): Add architecture method.
6780 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6782 * gdbarch.c: Regenerate.
6783 * gdbarch.h: Regenerate.
6784 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
6785 (gdbarch_data): Use internal_error for the case where
6786 deprecated_set_gdbarch_data was originally needed.
6787 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
6788 and use passed in obstack.
6789 (libunwind_frame_set_descr): Should no longer get back NULL from
6791 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
6793 * user-regs.c (user_regs_init): Update parameters, and use passed
6795 (user_reg_add): Should no longer get back NULL from gdbarch_data.
6796 (_initialize_user_regs): Register as a pre-init gdbarch data type.
6798 2020-07-06 Tom de Vries <tdevries@suse.de>
6800 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
6801 End-Of-Sequence in lte_is_less_than.
6802 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
6803 "gdb: Don't reorder line table entries too much when sorting".
6805 2020-07-06 Tom de Vries <tdevries@suse.de>
6808 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
6810 2020-07-05 Tom de Vries <tdevries@suse.de>
6813 * inferior.h (struct infcall_suspend_state_deleter): If available, use
6814 std::uncaught_exceptions instead of deprecated
6815 std::uncaught_exception.
6817 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6819 * macroexp.h (macro_stringify): Return
6820 gdb::unique_xmalloc_ptr<char>.
6821 * macroexp.c (macro_stringify): Likewise.
6822 * macrotab.c (fixup_definition): Update.
6824 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6826 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
6827 (lex_one_token): Update.
6828 * macroexp.c (struct macro_buffer) <release>: Return
6829 gdb::unique_xmalloc_ptr<char>.
6830 (macro_stringify): Update.
6831 (macro_expand): Update.
6832 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
6833 * macroexp.h (macro_expand_next): Likewise.
6835 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
6837 * macroexp.h (macro_lookup_ftype): Remove.
6838 (macro_expand, macro_expand_once, macro_expand_next): Remove
6839 lookup function parameters, add scope parameter.
6840 * macroexp.c (scan, substitute_args, expand, maybe_expand,
6841 macro_expand, macro_expand_once, macro_expand_next): Likewise.
6842 * macroscope.h (standard_macro_lookup): Change parameter type
6844 * macroscope.c (standard_macro_lookup): Likewise.
6845 * c-exp.y (lex_one_token): Update.
6846 * macrocmd.c (macro_expand_command): Likewise.
6847 (macro_expand_once_command): Likewise.
6849 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6851 * inf-loop.c (inferior_event_handler): Remove client_data param.
6852 * inf-loop.h (inferior_event_handler): Likewise.
6853 * infcmd.c (step_1): Adjust.
6854 * infrun.c (proceed): Adjust.
6855 (fetch_inferior_event): Remove client_data param.
6856 (infrun_async_inferior_event_handler): Adjust.
6857 * infrun.h (fetch_inferior_event): Remove `void *` param.
6858 * linux-nat.c (handle_target_event): Adjust.
6859 * record-btrace.c (record_btrace_handle_async_inferior_event):
6861 * record-full.c (record_full_async_inferior_event_handler):
6863 * remote.c (remote_async_inferior_event_handler): Adjust.
6865 2020-07-01 Tom Tromey <tom@tromey.com>
6867 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
6868 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
6870 2020-07-01 Tom Tromey <tom@tromey.com>
6872 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
6874 (tui_win_info::make_window): Merge with
6875 tui_gen_win_info::make_window.
6876 (tui_win_info::make_visible): Move from tui_gen_win_info.
6877 * tui/tui-win.c (tui_win_info::max_width): Move from
6879 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
6881 <window_factory>: Likewise.
6882 * tui/tui-layout.c (tui_win_info::resize): Move from
6884 (make_standard_window): Change return type.
6885 (get_locator_window, tui_get_window_by_name): Likewise.
6886 (tui_layout_window::apply): Remove a cast.
6887 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
6888 (struct tui_win_info): Merge with tui_gen_win_info.
6889 (struct tui_gen_win_info): Remove.
6891 2020-07-01 Tom Tromey <tom@tromey.com>
6893 * tui/tui-stack.h (struct tui_locator_window): Derive from
6895 <do_scroll_horizontal, do_scroll_vertical>: New methods.
6896 <can_box>: New method.
6898 2020-07-01 Tom Tromey <tom@tromey.com>
6900 * tui/tui-stack.h (struct tui_locator_window): Remove body.
6902 2020-07-01 Tom Tromey <tom@tromey.com>
6904 * tui/tui-regs.c (tui_data_window::display_registers_from)
6905 (tui_data_window::display_registers_from)
6906 (tui_data_window::first_data_item_displayed)
6907 (tui_data_window::delete_data_content_windows): Update.
6908 (tui_data_window::refresh_window, tui_data_window::no_refresh):
6910 (tui_data_window::check_register_values): Update.
6911 (tui_data_item_window::rerender): Add parameters. Update.
6912 (tui_data_item_window::refresh_window): Remove.
6913 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
6915 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
6917 <refresh_window, max_height, min_height>: Remove.
6918 <rerender>: Add parameters.
6919 <x, y, visible>: New members.
6920 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
6921 <m_item_width>: New member.
6923 2020-07-01 Tom Tromey <tom@tromey.com>
6925 * tui/tui-regs.c (tui_data_window::show_register_group)
6926 (tui_data_window::check_register_values): Update.
6927 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
6930 2020-07-01 Tom Tromey <tom@tromey.com>
6932 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
6935 2020-07-01 Tom Tromey <tom@tromey.com>
6937 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
6938 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
6940 2020-07-01 Tom Tromey <tom@tromey.com>
6942 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
6943 * tui/tui-winsource.h (enum tui_line_or_address_kind)
6944 (struct tui_line_or_address): Move from tui-data.h.
6945 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
6946 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
6947 (tui_cmd_window, tui_source_window_base, tui_source_window)
6948 (tui_disasm_window): Don't declare.
6949 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
6951 (SINGLE_KEY): Move to tui-stack.c.
6953 2020-07-01 Tom Tromey <tom@tromey.com>
6955 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
6957 * tui/tui-regs.c (class tab_expansion_file): New.
6958 (tab_expansion_file::write): New method.
6959 (tui_register_format): Change return type. Use
6961 (tui_get_register, tui_data_window::display_registers_from)
6962 (tui_data_item_window::rerender): Update.
6963 * tui/tui-io.h (tui_expand_tabs): Don't declare.
6964 * tui/tui-io.c (tui_expand_tabs): Remove.
6966 2020-07-01 Tom Tromey <tom@tromey.com>
6968 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
6970 2020-07-01 Fangrui Song <maskray@google.com>
6972 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
6974 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6976 * dwarf2/read.c (set_die_type): Removed conditions to restrict
6977 forms for DW_AT_associated and DW_AT_allocated attributes,
6978 which is already checked in function attr_to_dynamic_prop.
6980 2020-06-30 Tom Tromey <tromey@adacore.com>
6982 * dwarf2/read.c (quirk_rust_enum): Correctly call
6983 alloc_rust_variant for default-less enum.
6985 2020-06-30 Tom Tromey <tromey@adacore.com>
6988 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
6991 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
6993 * gdbarch.sh (displaced_step_copy_insn): Update doc.
6994 * gdbarch.h: Re-generate.
6996 2020-06-28 Tom Tromey <tom@tromey.com>
6998 * command.h (cmd_types): Remove.
6999 (cmd_type): Don't declare.
7000 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
7002 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
7003 * cli/cli-decode.c (cmd_type): Remove.
7005 2020-06-27 Pedro Alves <palves@redhat.com>
7007 * fork-child.c (prefork_hook): Adjust.
7008 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
7010 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
7011 * inferior.c (inferior::set_tty, inferior::tty): New methods.
7012 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
7013 Remove declarations.
7014 (struct inferior) <set_tty, tty>: New methods.
7015 (struct inferior) <terminal>: Rename to ...
7016 (struct inferior) <m_terminal>: ... this and make private.
7017 * main.c (captured_main_1): Adjust.
7018 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
7019 (mi_cmd_inferior_tty_show): Adjust.
7020 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
7021 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
7023 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
7025 * configure.ac: Add --enable-libctf: handle --disable-static
7027 * acinclude.m4: sinclude ../config/enable.m4.
7028 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
7029 (LIBCTF): Substitute in.
7030 (CTF_DEPS): New, likewise.
7031 (CLIBS): libctf needs symbols from libbfd: move earlier.
7032 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
7034 * ctfread.c: Surround in ENABLE_LIBCTF.
7035 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
7036 * configure: Regenerate.
7037 * config.in: Likewise.
7039 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7041 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
7043 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7045 * inferior.h (struct inferior) <terminal>: Change type to
7046 gdb::unique_xmalloc_ptr<char>.
7047 * inferior.c (inferior::~inferior): Don't free inf->terminal.
7048 * infcmd.c (set_inferior_io_terminal): Don't free terminal
7049 field, adjust to unique pointer.
7050 (get_inferior_io_terminal): Adjust to unique pointer.
7052 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7054 * riscv-tdep.c (riscv_print_registers_info): Loop over all
7055 registers, not just the known core set of registers.
7057 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7059 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
7060 fflags, frm, and fcsr registers.
7061 (riscv_register_reggroup_p): Remove unknown CSRs from save and
7063 (riscv_tdesc_unknown_reg): New function.
7064 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
7065 tdesc_use_registers.
7066 * riscv-tdep.h (struct gdbarch_tdep): Add
7067 unknown_csrs_first_regnum, unknown_csrs_count,
7068 duplicate_fflags_regnum, duplicate_frm_regnum, and
7069 duplicate_fcsr_regnum fields.
7071 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7073 * target-descriptions.c (tdesc_use_registers): Add new parameter a
7074 callback, use the callback (when not null) to help number unknown
7076 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
7077 (tdesc_use_registers): Add extra parameter to declaration.
7079 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7081 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
7083 (class riscv_pending_register_alias): Likewise.
7084 (riscv_register_feature::register_info): Change 'required_p' field
7085 to 'required', and change its type. Add 'check' member function.
7086 (riscv_register_feature::register_info::check): Define new member
7088 (riscv_xreg_feature): Change initialisation of 'required' field.
7089 (riscv_freg_feature): Likewise.
7090 (riscv_virtual_feature): Likewise.
7091 (riscv_csr_feature): Likewise.
7092 (riscv_check_tdesc_feature): Take extra parameter, the csr
7093 tdesc_feature, rewrite the function to use the new
7094 riscv_register_feature::register_info::check function.
7095 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
7097 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7099 * features/Makefile: Remove all references to the deleted files
7101 * features/riscv/32bit-csr.c: Deleted.
7102 * features/riscv/32bit-csr.xml: Deleted.
7103 * features/riscv/64bit-csr.c: Deleted.
7104 * features/riscv/64bit-csr.xml: Deleted.
7105 * features/riscv/rebuild-csr-xml.sh: Deleted.
7107 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7109 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
7110 whitespace error for declaration of names member variable.
7111 (struct riscv_register_feature): Add new prefer_first_name member
7112 variable, and fix whitespace error in declaration of registers.
7113 (riscv_xreg_feature): Initialize prefer_first_name field.
7114 (riscv_freg_feature): Likewise.
7115 (riscv_virtual_feature): Likewise.
7116 (riscv_csr_feature): Likewise.
7117 (riscv_register_name): Expand on comments. Remove register name
7118 modifications for CSR and virtual registers.
7120 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7122 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
7125 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7127 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
7129 (class riscv_pending_register_alias): New class.
7130 (riscv_check_tdesc_feature): Take vector of pending aliases and
7131 populate it as appropriate.
7132 (riscv_setup_register_aliases): Delete.
7133 (riscv_gdbarch_init): Create vector of pending aliases and pass it
7134 to riscv_check_tdesc_feature in all cases. Use the vector to
7135 create the register aliases.
7137 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7139 * sol2-tdep.c (sol2_static_transform_name): Remove.
7140 (sol2_init_abi): Don't register it.
7141 * gdbarch.sh (static_transform_name): Remove.
7142 * gdbarch.c, gdbarch.h: Regenerate.
7144 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
7145 gdbarch_static_transform_name.
7146 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
7147 * stabsread.c (define_symbol) <'X'>: Remove.
7148 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
7151 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
7152 <'S'>: Remove call to gdbarch_static_transform_name.
7154 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7156 * procfs.c (procfs_pre_trace): New function.
7157 (procfs_target::create_inferior): Pass it to fork_inferior.
7159 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7161 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
7162 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
7163 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
7164 sol2-tdep.o, sparc-sol2-tdep.o.
7165 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
7166 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
7167 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
7168 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
7170 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7172 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
7173 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
7175 Remove calls to set_gdbarch_skip_solib_resolver,
7176 set_gdbarch_core_pid_to_str.
7177 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
7178 (i386_sol2_static_transform_name): Remove.
7179 (i386_sol2_init_abi): Call sol2_init_abi.
7180 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7181 set_gdbarch_static_transform_name,
7182 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7183 Use sol2_sigtramp_p.
7184 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
7185 (sol2_sigtramp_p): New function.
7186 (sol2_static_transform_name): New function.
7187 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
7188 (sol2_init_abi): New function.
7189 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
7190 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
7191 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
7192 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
7193 (sparc_sol2_static_transform_name): Remove.
7194 (sparc32_sol2_init_abi): Call sol2_init_abi.
7195 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7196 set_gdbarch_static_transform_name,
7197 set_gdbarch_skip_solib_resolver,
7198 set_gdbarch_core_pid_to_str.
7199 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
7200 (sparc_sol2_static_transform_name): Remove
7201 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
7202 call sol2_sigtramp_p.
7203 (sparc64_sol2_init_abi): Call sol2_init_abi.
7204 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7205 set_gdbarch_static_transform_name,
7206 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7208 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7210 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
7211 * exec.c (validate_exec_file): If from_tty, set both
7212 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
7213 * symfile.c (symbol_file_add_with_addrs): if always_confirm
7214 and from_tty, unconditionally ask a confirmation.
7216 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7218 * target-descriptions.c (tdesc_architecture_name): Protect against
7219 NULL pointer dereference.
7220 (maint_print_xml_tdesc_cmd): New function.
7221 (_initialize_target_descriptions): Register new 'maint print
7222 xml-tdesc' command and give it the filename completer.
7223 * NEWS: Mention new 'maint print xml-tdesc' command.
7225 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7227 * target-descriptions.c (class tdesc_compatible_info): New class.
7228 (struct target_desc): Change type of compatible vector.
7229 (tdesc_compatible_p): Update for change in type of
7230 target_desc::compatible.
7231 (tdesc_compatible_info_list): New function.
7232 (tdesc_compatible_info_arch_name): New function.
7233 (tdesc_add_compatible): Update for change in type of
7234 target_desc::compatible.
7235 (print_c_tdesc::visit_pre): Likewise.
7237 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7239 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
7240 whitespace to underscore.
7241 (maint_print_c_tdesc_cmd): Use fake filename for target
7242 descriptions that came from the target.
7243 (_initialize_target_descriptions): Add filename command completion
7244 for 'maint print c-tdesc'.
7246 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
7248 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
7251 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
7253 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
7255 (dwarf2_find_location_expression): Likewise.
7256 (call_site_parameter_matches): Likewise.
7257 (dwarf2_compile_expr_to_ax): Likewise.
7258 (disassemble_dwarf_expression): Likewise.
7259 (loclist_describe_location): Likewise.
7261 2020-06-23 Pedro Alves <palves@redhat.com>
7263 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
7264 progspace-and-thread.h. Include scoped-mock-context.h instead.
7265 (register_to_value_test): Use scoped_mock_context.
7266 * regcache.c: Include "scoped-mock-context.h".
7267 (cooked_read_test): Don't error out if a target is already pushed.
7268 Use scoped_mock_context. Adjust.
7269 * scoped-mock-context.h: New file.
7271 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7273 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
7275 (ada_language::is_string_type_p): New member function.
7276 * c-lang.c (c_language_data): Delete la_is_string_type_p
7278 (cplus_language_data): Likewise.
7279 (asm_language_data): Likewise.
7280 (minimal_language_data): Likewise.
7281 * d-lang.c (d_language_data): Likewise.
7282 * f-lang.c (f_is_string_type_p): Delete function, implementation
7283 moved to f_language::is_string_type_p.
7284 (f_language_data): Delete la_is_string_type_p initializer.
7285 (f_language::is_string_type_p): New member function,
7286 implementation from f_is_string_type_p.
7287 * go-lang.c (go_is_string_type_p): Delete function, implementation
7288 moved to go_language::is_string_type_p.
7289 (go_language_data): Delete la_is_string_type_p initializer.
7290 (go_language::is_string_type_p): New member function,
7291 implementation from go_is_string_type_p.
7292 * language.c (language_defn::is_string_type_p): Define new member
7294 (default_is_string_type_p): Make static, add comment copied from
7296 (unknown_language_data): Delete la_is_string_type_p initializer.
7297 (unknown_language::is_string_type_p): New member function.
7298 (auto_language_data): Delete la_is_string_type_p initializer.
7299 (auto_language::is_string_type_p): New member function.
7300 * language.h (language_data): Delete la_is_string_type_p field.
7301 (language_defn::is_string_type_p): Declare new function.
7302 (default_is_string_type_p): Delete desclaration, move comment to
7304 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
7305 moved to m2_language::is_string_type_p.
7306 (m2_language_data): Delete la_is_string_type_p initializer.
7307 (m2_language::is_string_type_p): New member function,
7308 implementation from m2_is_string_type_p.
7309 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
7311 * opencl-lang.c (opencl_language_data): Likewise.
7312 * p-lang.c (pascal_is_string_type_p): Delete function,
7313 implementation moved to pascal_language::is_string_type_p.
7314 (pascal_language_data): Delete la_is_string_type_p initializer.
7315 (pascal_language::is_string_type_p): New member function,
7316 implementation from pascal_is_string_type_p.
7317 * rust-lang.c (rust_is_string_type_p): Delete function,
7318 implementation moved to rust_language::is_string_type_p.
7319 (rust_language_data): Delete la_is_string_type_p initializer.
7320 (rust_language::is_string_type_p): New member function,
7321 implementation from rust_is_string_type_p.
7322 * valprint.c (val_print_scalar_or_string_type_p): Update call to
7325 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7327 * ada-lang.c (ada_language_data): Delete la_print_typedef
7329 (ada_language::print_typedef): New member function.
7330 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
7331 (cplus_language_data): Likewise.
7332 (asm_language_data): Likewise.
7333 (minimal_language_data): Likewise.
7334 * d-lang.c (d_language_data): Likewise.
7335 * f-lang.c (f_language_data): Likewise.
7336 (f_language::print_typedef): New member function.
7337 * go-lang.c (go_language_data): Delete la_print_typedef
7339 * language.c (language_defn::print_typedef): Define member
7341 (unknown_language_data): Delete la_print_typedef initializer.
7342 (unknown_language::print_typedef): New member function.
7343 (auto_language_data): Delete la_print_typedef initializer.
7344 (auto_language::print_typedef): New member function.
7345 * language.h (language_data): Delete la_print_typedef field.
7346 (language_defn::print_typedef): Declare new member function.
7347 (LA_PRINT_TYPEDEF): Update call to print_typedef.
7348 (default_print_typedef): Delete declaration.
7349 * m2-lang.c (m2_language_data): Delete la_print_typedef
7351 (m2_language::print_typedef): New member function.
7352 * objc-lang.c (objc_language_data): Delete la_print_typedef
7354 * opencl-lang.c (opencl_language_data): Likewise.
7355 * p-lang.c (pascal_language_data): Likewise.
7356 (pascal_language::print_typedef): New member function.
7357 * rust-lang.c (rust_print_typedef): Delete function,
7358 implementation moved to rust_language::print_typedef.
7359 (rust_language): Delete la_print_typedef initializer.
7360 (rust_language::print_typedef): New member function,
7361 implementation from rust_print_typedef.
7362 * typeprint.c (default_print_typedef): Delete.
7364 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7366 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
7367 (ada_language::printstr): New member function.
7368 * c-lang.c (c_language_data): Delete la_printstr initializer.
7369 (cplus_language_data): Likewise.
7370 (asm_language_data): Likewise.
7371 (minimal_language_data): Likewise.
7372 * d-lang.c (d_language_data): Likewise.
7373 * f-lang.c (f_printstr): Rename to f_language::printstr.
7374 (f_language_data): Delete la_printstr initializer.
7375 (f_language::printstr): New member function, implementation from
7377 * go-lang.c (go_language_data): Delete la_printstr initializer.
7378 * language.c (language_defn::printstr): Define new member
7380 (unk_lang_printstr): Delete.
7381 (unknown_language_data): Delete la_printstr initializer.
7382 (unknown_language::printstr): New member function.
7383 (auto_language_data): Delete la_printstr initializer.
7384 (auto_language::printstr): New member function.
7385 * language.h (language_data): Delete la_printstr field.
7386 (language_defn::printstr): Declare new member function.
7387 (LA_PRINT_STRING): Update call to printstr.
7388 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
7389 (m2_language_data): Delete la_printstr initializer.
7390 (m2_language::printstr): New member function, implementation from
7392 * objc-lang.c (objc_language_data): Delete la_printstr
7394 * opencl-lang.c (opencl_language_data): Likewise.
7395 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
7396 (pascal_language_data): Delete la_printstr initializer.
7397 (pascal_language::printstr): New member function, implementation
7398 from pascal_printstr.
7399 * p-lang.h (pascal_printstr): Delete declaration.
7400 * rust-lang.c (rust_printstr): Update header comment.
7401 (rust_language_data): Delete la_printstr initializer.
7402 (rust_language::printstr): New member function.
7404 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7406 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
7407 (ada_language::printchar): New member function.
7408 * c-lang.c (c_language_data): Delete la_printchar initializer.
7409 (cplus_language_data): Likewise.
7410 (asm_language_data): Likewise.
7411 (minimal_language_data): Likewise.
7412 * d-lang.c (d_language_data): Likewise.
7413 * f-lang.c (f_printchar): Rename to f_language::printchar.
7414 (f_language_data): Delete la_printchar initializer.
7415 (f_language::printchar): New member function, implementation from
7417 * go-lang.c (go_language_data): Delete la_printchar initializer.
7418 * language.c (unk_lang_printchar): Delete.
7419 (language_defn::printchar): Define new member function.
7420 (unknown_language_data): Delete la_printchar initializer.
7421 (unknown_language::printchar): New member function.
7422 (auto_language_data): Delete la_printchar initializer.
7423 (auto_language::printchar): New member function.
7424 * language.h (language_data): Delete la_printchar field.
7425 (language_defn::printchar): Declare new member function.
7426 (LA_PRINT_CHAR): Update call to printchar.
7427 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
7428 (m2_language::printchar): New member function.
7429 * objc-lang.c (objc_language_data): Delete la_printchar
7431 * opencl-lang.c (opencl_language_data): Likewise.
7432 * p-lang.c (pascal_language_data): Delete la_printchar
7434 (pascal_language::printchar): New member function.
7435 * rust-lang.c (rust_printchar): Rename to
7436 rust_language::printchar.
7437 (rust_language_data): Delete la_printchar initializer.
7438 (rust_language::printchar): New member function, implementation
7439 from rust_printchar.
7441 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7443 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
7444 (ada_language_data): Delete la_emitchar initializer.
7445 (ada_language::emitchar): New member function, implementation from
7447 * c-lang.c (c_language_data): Delete la_emitchar initializer.
7448 (cplus_language_data): Likewise.
7449 (asm_language_data): Likewise.
7450 (minimal_language_data): Likewise.
7451 * d-lang.c (d_language_data): Likewise.
7452 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
7453 (f_language_data): Delete la_emitchar initializer.
7454 (f_language::emitchar): New member function, implementation from
7456 * go-lang.c (go_language_data): Delete la_emitchar initializer.
7457 * language.c (unk_lang_emit_char): Delete.
7458 (language_defn::emitchar): New member function definition.
7459 (unknown_language_data): Delete la_emitchar initializer.
7460 (unknown_language::emitchar): New member function.
7461 (auto_language_data): Delete la_emitchar initializer.
7462 (auto_language::emitchar): New member function.
7463 * language.h (language_data): Delete la_emitchar field.
7464 (language_defn::emitchar): New member field declaration.
7465 (LA_EMIT_CHAR): Update call to emitchar.
7466 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
7467 (m2_language_data): Delete la_emitchar initializer.
7468 (m2_language::emitchar): New member function, implementation from
7470 * objc-lang.c (objc_language_data): Delete la_emitchar
7472 * opencl-lang.c (opencl_language_data): Likewise.
7473 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
7474 (pascal_language_data): Delete la_emitchar initializer.
7475 (pascal_language::emitchar): New member function, implementation
7476 from pascal_emit_char.
7477 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
7478 (rust_language_data): Delete la_emitchar initializer.
7479 (rust_language::emitchar): New member function, implementation
7482 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7484 * ada-lang.c (resolve): Rename to ada_language::post_parser.
7485 (ada_language_data): Delete la_post_parser initializer.
7486 (ada_language::post_parser): New member function.
7487 * c-lang.c (c_language_data): Delete la_post_parser initializer.
7488 (cplus_language_data): Likewise.
7489 (asm_language_data): Likewise.
7490 (minimal_language_data): Likewise.
7491 * d-lang.c (d_language_data): Likewise.
7492 * f-lang.c (f_language_data): Likewise.
7493 * go-lang.c (go_language_data): Likewise.
7494 * language.c (unknown_language_data): Likewise.
7495 (auto_language_data): Likewise.
7496 * language.h (language_data): Delete la_post_parser field.
7497 (language_defn::post_parser): New member function.
7498 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
7499 * objc-lang.c (objc_language_data): Likewise.
7500 * opencl-lang.c (opencl_language_data): Likewise.
7501 * p-lang.c (pascal_language_data): Likewise.
7502 * parse.c (parse_exp_in_context): Update call to post_parser.
7503 (null_post_parser): Delete definition.
7504 * parser-defs.h (null_post_parser): Delete declaration.
7505 * rust-lang.c (rust_language_data): Delete la_post_parser
7508 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7510 * ada-lang.c (parse): Rename to ada_language::parser.
7511 (ada_language_data): Delete la_parser initializer.
7512 (ada_language::parser): New member function, implementation from
7514 * c-lang.c (c_language_data): Delete la_parser initializer.
7515 (cplus_language_data): Likewise.
7516 (asm_language_data): Likewise.
7517 (minimal_language_data): Likewise.
7518 * d-lang.c (d_language_data): Likewise.
7519 (d_language::parser): New member function.
7520 * f-lang.c (f_language_data): Delete la_parser initializer.
7521 (f_language::parser): New member function.
7522 * go-lang.c (go_language_data): Delete la_parser initializer.
7523 (go_language::parser): New member function.
7524 * language.c (unk_lang_parser): Delete.
7525 (language_defn::parser): Define new member function.
7526 (unknown_language_data): Delete la_parser initializer.
7527 (unknown_language::parser): New member function.
7528 (auto_language_data): Delete la_parser initializer.
7529 (auto_language::parser): New member function.
7530 * language.h (language_data): Delete la_parser field.
7531 (language_defn::parser): Declare new member function.
7532 * m2-lang.c (m2_language_data): Delete la_parser initializer.
7533 (m2_language::parser): New member function.
7534 * objc-lang.c (objc_language_data): Delete la_parser initializer.
7535 * opencl-lang.c (opencl_language_data): Likewise.
7536 * p-lang.c (pascal_language_data): Likewise.
7537 (pascal_language::parser): New member function.
7538 * parse.c (parse_exp_in_context): Update call to parser.
7539 * rust-lang.c (rust_language_data): Delete la_parser initializer.
7540 (rust_language::parser): New member function.
7542 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7544 * top.c (print_gdb_configuration): Print --with-python-libdir
7545 configuration value.
7547 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7549 * NEWS: Mention change to the alias command.
7551 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7553 * cli/cli-cmds.c (lookup_cmd_for_default_args)
7554 (alias_command_completer)
7555 (make_alias_options_def_group): New functions.
7556 (alias_opts, alias_option_defs): New struct and array.
7557 (alias_usage_error): Update usage.
7558 (alias_command): Handles optional DEFAULT-ARGS... arguments.
7559 Use option framework.
7560 (_initialize_cli_cmds): Update alias command help.
7561 Update aliases command help.
7563 Add NULL for new default_args lookup_cmd argument.
7564 (valid_command_p): Rename to validate_aliased_command.
7565 Add NULL for new default_args lookup_cmd argument. Verify that the
7566 aliased_command has no default args.
7567 * cli/cli-decode.c (help_cmd): Show aliases definitions.
7568 (lookup_cmd_1, lookup_cmd): New argument default_args.
7570 Add NULL for new default_args lookup_cmd argument.
7571 (print_help_for_command): Show default args under the layout
7572 alias some_alias = some_aliased_cmd some_alias_default_arg.
7573 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
7574 xfree default_args in destructor.
7575 * cli/cli-script.c (process_next_line, do_define_command):
7576 Add NULL for new default_args lookup_cmd argument.
7577 * command.h: Declare new default_args argument in lookup_cmd
7579 * completer.c (complete_line_internal_1):
7580 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7581 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
7582 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
7584 * infcmd.c (_initialize_infcmd): Likewise.
7585 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
7586 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
7587 * python/py-param.c (add_setshow_generic): Likewise.
7588 * remote.c (_initialize_remote): Likewise.
7589 * top.c (execute_command): Prepend default_args if command has some.
7591 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7592 * tracepoint.c (validate_actionline, encode_actions_1):
7593 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7595 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7597 * jit.c (jit_read_descriptor): Use bool as the return type.
7598 (jit_breakpoint_re_set_internal): Use bool as the return type.
7599 Invert the return value logic; return true if the jit breakpoint
7600 has been successfully initialized.
7601 (jit_inferior_init): Update the call to
7602 jit_breakpoint_re_set_internal.
7604 2020-06-22 Pedro Alves <palves@redhat.com>
7607 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
7608 Use the current inferior instead. Don't return
7609 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
7611 * sol-thread.c (sol_thread_target::wait): Don't reference
7613 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
7614 (sol_update_thread_list_callback): Use the current inferior's pid
7615 instead of inferior_ptid.
7617 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7619 * procfs.c: Cleanup many comments.
7621 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
7622 (AFTER_WATCHFLAG): Replace by value.
7624 (MAIN_PROC_NAME_FORMAT): Inline ...
7625 (create_procinfo): ... here.
7627 (procfs_debug_inferior): Remove SYS_exec handling.
7628 (syscall_is_exec): Likewise.
7629 (procfs_set_exec_trap): Likewise.
7631 (syscall_is_lwp_exit): Inline in callers.
7632 (syscall_is_exit): Likewise.
7633 (syscall_is_exec): Likewise.
7634 (syscall_is_lwp_create): Likewise.
7636 (invalidate_cache): Remove #if 0 code.
7638 (make_signal_thread_runnable): Remove.
7639 (procfs_target::resume): Remove #if 0 code.
7641 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7644 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
7646 (procfs_target::create_inferior): ... here.
7648 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7650 * exec.c (validate_exec_file): Ensure the build-id is up to
7651 date by calling reopen_exec_file (that checks file timestamp
7652 to decide to re-read the file).
7654 2020-06-18 Pedro Alves <palves@redhat.com>
7657 * gdbthread.h (delete_thread, delete_thread_silent)
7658 (find_thread_ptid): Update comments.
7659 * thread.c (current_thread_): New global.
7660 (is_current_thread): Move higher, and reimplement.
7661 (inferior_thread): Reimplement.
7662 (set_thread_exited): Use bool. Add assertions.
7663 (add_thread_silent): Simplify thread-reuse handling by always
7664 calling delete_thread.
7665 (delete_thread): Remove intro comment.
7666 (find_thread_ptid): Skip exited threads.
7667 (switch_to_thread_no_regs): Write to current_thread_.
7668 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
7669 INFERIOR_PTID. Clear current_thread_.
7671 2020-06-18 Pedro Alves <palves@redhat.com>
7673 * aix-thread.c (pd_update): Use switch_to_thread.
7675 2020-06-18 Pedro Alves <palves@redhat.com>
7677 * ravenscar-thread.c (ravenscar_thread_target): Update.
7678 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
7679 (ravenscar_thread_target::add_active_thread): ... this. Don't
7680 set m_base_ptid here. Update to avoid referencing inferior_ptid.
7681 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
7683 2020-06-18 Pedro Alves <palves@redhat.com>
7685 * nat/windows-nat.c (current_windows_thread): Remove.
7686 * nat/windows-nat.h (current_windows_thread): Remove.
7687 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
7689 (display_selectors): Adjust to fetch the current
7690 windows_thread_info based on inferior_ptid.
7691 (fake_create_process): No longer write to current_windows_thread.
7692 (windows_nat_target::get_windows_debug_event):
7693 Don't set inferior_ptid or current_windows_thread.
7694 (windows_nat_target::wait): Adjust to not rely on
7695 current_windows_thread.
7696 (do_initial_windows_stuff): Now a method of windows_nat_target.
7697 Switch to the last_ptid thread.
7698 (windows_nat_target::attach): Adjust.
7699 (windows_nat_target::detach): Use switch_to_no_thread instead of
7700 writing to inferior_ptid directly.
7701 (windows_nat_target::create_inferior): Adjust.
7703 2020-06-18 Pedro Alves <palves@redhat.com>
7705 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
7707 2020-06-18 Pedro Alves <palves@redhat.com>
7709 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
7710 after creating it, instead of writing to inferior_ptid. Don't
7711 write to inferior_ptid.
7713 2020-06-18 Pedro Alves <palves@redhat.com>
7715 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
7717 2020-06-18 Pedro Alves <palves@redhat.com>
7719 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
7720 it, instead of writing to inferior_ptid.
7722 2020-06-18 Pedro Alves <palves@redhat.com>
7724 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
7727 2020-06-18 Pedro Alves <palves@redhat.com>
7729 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
7730 instead of writing to inferior_ptid directly.
7732 2020-06-18 Pedro Alves <palves@redhat.com>
7734 * corelow.c (core_target::close): Use switch_to_no_thread instead
7735 of writing to inferior_ptid directly.
7736 (add_to_thread_list, core_target_open): Use switch_to_thread
7737 instead of writing to inferior_ptid directly.
7739 2020-06-18 Pedro Alves <palves@redhat.com>
7741 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
7743 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
7745 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
7746 inferior_ptid directly.
7747 (darwin_nat_target::init_thread_list): Switch to thread, instead
7748 of writing to inferior_ptid.
7749 (darwin_nat_target::attach): Don't write to inferior_ptid.
7750 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
7752 2020-06-18 Pedro Alves <palves@redhat.com>
7754 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
7756 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
7757 Instead use switch_to_thread.
7758 (gnu_nat_target::detach): Use switch_to_no_thread
7759 instead of writing to inferior_ptid directly. Used passed-in
7760 inferior instead of looking up the inferior by pid.
7762 2020-06-18 Pedro Alves <palves@redhat.com>
7764 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
7767 2020-06-18 Pedro Alves <palves@redhat.com>
7769 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
7771 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
7773 (nto_procfs_target::detach): Avoid referencing
7774 inferior_ptid. Use switch_to_no_thread instead of writing to
7775 inferior_ptid directly.
7776 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
7777 instead of writing to inferior_ptid directly.
7778 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
7781 2020-06-18 Pedro Alves <palves@redhat.com>
7783 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
7784 after creating it, instead of writing to inferior_ptid.
7785 (gdbsim_target_open): Use switch_to_no_thread instead of writing
7786 to inferior_ptid directly.
7787 (gdbsim_target::wait): Don't write to inferior_ptid.
7789 2020-06-18 Pedro Alves <palves@redhat.com>
7791 * remote.c (remote_target::remote_notice_new_inferior): Use
7792 switch_to_thread instead of writing to inferior_ptid directly.
7793 (remote_target::add_current_inferior_and_thread): Use
7794 switch_to_no_thread instead of writing to inferior_ptid directly.
7795 (extended_remote_target::attach): Use switch_to_inferior_no_thread
7796 and switch_to_thread instead of using set_current_inferior or
7797 writing to inferior_ptid directly.
7799 2020-06-18 Pedro Alves <palves@redhat.com>
7801 * tracectf.c (ctf_target_open): Switch to added thread instead of
7802 writing to inferior_ptid directly.
7803 (ctf_target::close): Use switch_to_no_thread instead of writing to
7804 inferior_ptid directly.
7806 2020-06-18 Pedro Alves <palves@redhat.com>
7808 * tracefile-tfile.c (tfile_target_open): Don't write to
7809 inferior_ptid directly, instead switch to added thread.
7810 (tfile_target::close): Use switch_to_no_thread instead of writing
7811 to inferior_ptid directly.
7813 2020-06-18 Pedro Alves <palves@redhat.com>
7815 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
7816 (procfs_target::detach): Use switch_to_no_thread
7817 instead of writing to inferior_ptid directly.
7818 (do_attach): Change return type to void. Switch to the added
7820 (procfs_target::create_inferior): Switch to the added thread.
7821 (procfs_do_thread_registers): Don't write to inferior_ptid.
7823 2020-06-18 Pedro Alves <palves@redhat.com>
7825 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
7826 of writing to inferior_ptid.
7827 (scoped_restore_exited_inferior): Delete.
7828 (handle_vfork_child_exec_or_exit): Simplify using
7829 scoped_restore_current_pspace_and_thread. Use switch_to_thread
7830 instead of writing to inferior_ptid.
7831 (THREAD_STOPPED_BY): Delete.
7832 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
7833 (thread_stopped_by_hw_breakpoint): Delete.
7834 (save_waitstatus): Use
7835 scoped_restore_current_thread+switch_to_thread, and call
7836 target_stopped_by_watchpoint instead of
7837 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
7838 instead of thread_stopped_by_sw_breakpoint, and
7839 target_stopped_by_hw_breakpoint instead of
7840 thread_stopped_by_hw_breakpoint.
7841 (handle_inferior_event)
7842 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
7843 inferior_ptid directly, nor
7844 set_current_inferior/set_current_program_space. Use
7845 switch_to_thread / switch_to_inferior_no_thread instead.
7847 2020-06-18 Pedro Alves <palves@redhat.com>
7849 * target.c (generic_mourn_inferior): Use switch_to_no_thread
7850 instead of writing to inferior_ptid.
7852 2020-06-18 Pedro Alves <palves@redhat.com>
7854 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
7856 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
7857 to the added thread.
7858 (inf_ptrace_target::detach_success): Use switch_to_no_thread
7859 instead of writing to inferior_ptid.
7861 2020-06-18 Pedro Alves <palves@redhat.com>
7863 * gdbarch-selftests.c: Include "progspace-and-thread.h".
7864 (register_to_value_test): Mock a program_space too. Heap-allocate
7865 the address space. Don't write to inferior_ptid. Use
7866 switch_to_thread instead.
7868 2020-06-18 Pedro Alves <palves@redhat.com>
7870 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
7872 (find_signalled_thread()): New, factored out from
7873 linux_make_corefile_notes and adjusted to handle exited threads.
7874 (linux_make_corefile_notes): Adjust to use the new
7875 find_signalled_thread.
7877 2020-06-18 Pedro Alves <palves@redhat.com>
7879 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
7880 of saving/restoring inferior_ptid.
7882 2020-06-17 Tom Tromey <tom@tromey.com>
7884 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
7885 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
7887 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
7889 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
7891 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
7894 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7896 * regformats/reg-arm.dat: Remove.
7897 * regformats/reg-bfin.dat: Remove.
7898 * regformats/reg-cris.dat: Remove.
7899 * regformats/reg-crisv32.dat: Remove.
7900 * regformats/reg-m32r.dat: Remove.
7901 * regformats/reg-tilegx.dat: Remove.
7902 * regformats/reg-tilegx32.dat: Remove.
7904 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7906 * features/Makefile (WHICH): Remove arm files.
7907 * regformats/arm/arm-with-iwmmxt.dat: Remove.
7908 * regformats/arm/arm-with-neon.dat: Remove.
7909 * regformats/arm/arm-with-vfpv2.dat: Remove.
7910 * regformats/arm/arm-with-vfpv3.dat: Remove.
7912 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7914 * features/Makefile (XMLTOC): Remove rx.xml.
7916 2020-06-17 Pedro Alves <palves@redhat.com>
7918 * gdbthread.h (thread_control_state) <trap_expected> Update
7921 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7923 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
7924 ada_language::lookup_symbol_nonlocal.
7925 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
7926 (ada_language::lookup_symbol_nonlocal): New member function,
7927 implementation from ada_lookup_symbol_nonlocal.
7928 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
7930 (cplus_language_data): Delete la_lookup_symbol_nonlocal
7932 (cplus_language::lookup_symbol_nonlocal): New member function.
7933 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
7934 (minimal_language_data) Likewise.
7935 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
7936 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
7938 (d_language::lookup_symbol_nonlocal): New member function.
7939 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
7941 (f_language::lookup_symbol_nonlocal): New member function.
7942 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
7944 * language.c (unknown_language_data): Likewise.
7945 (auto_language_data): Likewise.
7946 * language.h (language_data): Delete la_lookup_symbol_nonlocal
7948 (language_defn::lookup_symbol_nonlocal): New member function.
7949 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
7951 * objc-lang.c (objc_language_data): Likewise.
7952 * opencl-lang.c (opencl_language_data): Likewise.
7953 * p-lang.c (pascal_language_data): Likewise.
7954 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
7955 rust_language::lookup_symbol_nonlocal.
7956 (rust_language_data): Delete la_lookup_symbol_nonlocal
7958 (rust_language::lookup_symbol_nonlocal): New member function,
7959 implementation from rust_lookup_symbol_nonlocal.
7960 * symtab.c (lookup_symbol_aux): Update call to
7961 lookup_symbol_nonlocal.
7962 (basic_lookup_symbol_nonlocal): Rename to...
7963 (language_defn::lookup_symbol_nonlocal): ...this, and update
7964 header comment. Remove language_defn parameter, and replace with
7966 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
7968 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7970 * ada-lang.c (ada_language_data): Delete la_value_print_inner
7972 (ada_language::value_print_inner): New member function.
7973 * c-lang.c (c_language_data): Delete la_value_print_inner
7975 (cplus_language_data): Likewise.
7976 (asm_language_data): Likewise.
7977 (minimal_language_data): Likewise.
7978 * d-lang.c (d_language_data): Likewise.
7979 (d_language::value_print_inner): New member function.
7980 * f-lang.c (f_language_data): Delete la_value_print_inner
7982 (f_language::value_print_inner): New member function.
7983 * f-lang.h (f_value_print_innner): Rename to...
7984 (f_value_print_inner): ...this (note spelling of 'inner').
7985 * f-valprint.c (f_value_print_innner): Rename to...
7986 (f_value_print_inner): ...this (note spelling of 'inner').
7987 * go-lang.c (go_language_data): Delete la_value_print_inner
7989 (go_language::value_print_inner): New member function.
7990 * language.c (language_defn::value_print_inner): Define new member
7992 (unk_lang_value_print_inner): Delete.
7993 (unknown_language_data): Delete la_value_print_inner initializer.
7994 (unknown_language::value_print_inner): New member function.
7995 (auto_language_data): Delete la_value_print_inner initializer.
7996 (auto_language::value_print_inner): New member function.
7997 * language.h (language_data): Delete la_value_print_inner field.
7998 (language_defn::value_print_inner): Delcare new member function.
7999 * m2-lang.c (m2_language_data): Delete la_value_print_inner
8001 (m2_language::value_print_inner): New member function.
8002 * objc-lang.c (objc_language_data): Delete la_value_print_inner
8004 * opencl-lang.c (opencl_language_data): Likewise.
8005 * p-lang.c (pascal_language_data): Likewise.
8006 (pascal_language::value_print_inner): New member function.
8007 * rust-lang.c (rust_language_data): Delete la_value_print_inner
8009 (rust_language::value_print_inner): New member function.
8010 * valprint.c (do_val_print): Update call to value_print_inner.
8012 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8014 * ada-lang.c (ada_language_data): Delete la_value_print
8016 (ada_language::value_print): New member function.
8017 * c-lang.c (c_language_data): Delete la_value_print initializer.
8018 (cplus_language_data): Likewise.
8019 (asm_language_data): Likewise.
8020 (minimal_language_data): Likewise.
8021 * d-lang.c (d_language_data): Likewise.
8022 * f-lang.c (f_language_data): Likewise.
8023 * go-lang.c (go_language_data): Likewise.
8024 * language.c (unk_lang_value_print): Delete.
8025 (language_defn::value_print): Define new member function.
8026 (unknown_language_data): Delete la_value_print initializer.
8027 (unknown_language::value_print): New member function.
8028 (auto_language_data): Delete la_value_print initializer.
8029 (auto_language::value_print): New member function.
8030 * language.h (language_data): Delete la_value_print field.
8031 (language_defn::value_print): Declare new member function.
8032 (LA_VALUE_PRINT): Update call to value_print.
8033 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
8034 * objc-lang.c (objc_language_data): Likewise.
8035 * opencl-lang.c (opencl_language_data): Likewise.
8036 * p-lang.c (pascal_language_data): Likewise.
8037 (pascal_language::value_print): New member function.
8038 * rust-lang.c (rust_language_data): Delete la_value_print
8041 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8043 * ada-lang.c (ada_watch_location_expression): Rename to
8044 ada_language::watch_location_expression.
8045 (ada_language_data): Delete la_watch_location_expression
8047 (ada_language::watch_location_expression): New member function,
8048 implementation from ada_watch_location_expression.
8049 * breakpoint.c (watch_command_1): Update call to
8050 watch_location_expression.
8051 * c-lang.c (c_watch_location_expression): Rename to
8052 language_defn::watch_location_expression.
8053 (c_language_data): Delete la_watch_location_expression
8055 (cplus_language_data): Likewise.
8056 (asm_language_data): Likewise.
8057 (minimal_language_data): Likewise.
8058 * c-lang.h (c_watch_location_expression): Delete declaration.
8059 * d-lang.c (d_language_data): Delete la_watch_location_expression
8061 * f-lang.c (f_language_data): Likewise.
8062 * go-lang.c (go_language_data): Likewise.
8063 * language.c (language_defn::watch_location_expression): Member
8064 function implementation from c_watch_location_expression.
8065 (unknown_language_data): Delete la_watch_location_expression
8067 (auto_language_data): Likewise.
8068 * language.h (language_data): Delete la_watch_location_expression
8070 (language_defn::watch_location_expression): Declare new member
8072 * m2-lang.c (m2_language_data): Delete
8073 la_watch_location_expression initializer.
8074 * objc-lang.c (objc_language_data): Likewise.
8075 * opencl-lang.c (opencl_language_data): Likewise.
8076 * p-lang.c (pascal_language_data): Likewise.
8077 * rust-lang.c (rust_watch_location_expression): Rename to
8078 rust_language::watch_location_expression.
8079 (rust_language_data): Delete la_watch_location_expression
8081 (rust_language::watch_location_expression): New member function,
8082 implementation from rust_watch_location_expression.
8084 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8086 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
8087 ada_language::collect_symbol_completion_matches.
8088 (ada_language_data): Delete la_collect_symbol_completion_matches
8090 (ada_language::collect_symbol_completion_matches): New member
8091 function, implementation from
8092 ada_collect_symbol_completion_matches.
8093 * c-lang.c (c_language_data): Delete
8094 la_collect_symbol_completion_matches initializer.
8095 (cplus_language_data): Likewise.
8096 (asm_language_data): Likewise.
8097 (minimal_language_data): Likewise.
8098 * d-lang.c (d_language_data): Likewise.
8099 * f-lang.c (f_collect_symbol_completion_matches): Rename to
8100 f_language::collect_symbol_completion_matches.
8101 (f_language_data): Delete la_collect_symbol_completion_matches
8103 (f_language::collect_symbol_completion_matches) New member
8104 function, implementation from f_collect_symbol_completion_matches.
8105 * go-lang.c (go_language_data): Delete
8106 la_collect_symbol_completion_matches initializer.
8107 * language.c (unknown_language_data): Likewise.
8108 (auto_language_data): Likewise.
8109 * language.h (language_data): Delete
8110 la_collect_symbol_completion_matches field.
8111 (language_defn::collect_symbol_completion_matches): New member
8113 * m2-lang.c (m2_language_data): Delete
8114 la_collect_symbol_completion_matches initializer.
8115 * objc-lang.c (objc_language_data): Likewise.
8116 * opencl-lang.c (opencl_language_data): Likewise.
8117 * p-lang.c (pascal_language_data): Likewise.
8118 * rust-lang.c (rust_language_data): Likewise.
8119 * symtab.c (default_collect_symbol_completion_matches): Delete.
8120 (collect_symbol_completion_matches): Update call to
8121 collect_symbol_completion_matches.
8122 (collect_symbol_completion_matches_type): Likewise.
8123 * symtab.h (default_collect_symbol_completion_matches): Delete
8126 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8128 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
8129 (ada_language_data): Delete la_word_break_characters initializer.
8130 (ada_language::word_break_characters): New member function.
8131 * c-lang.c (c_language_data): Delete la_word_break_characters
8133 (cplus_language_data): Likewise.
8134 (asm_language_data): Likewise.
8135 (minimal_language_data): Likewise.
8136 * completer.c: Update global comment.
8137 (advance_to_expression_complete_word_point): Update call to
8138 word_break_characters.
8139 (complete_files_symbols): Likewise.
8140 (complete_line_internal_1): Likewise.
8141 (default_completer_handle_brkchars): Likewise.
8142 (skip_quoted_chars): Likewise.
8143 * d-lang.c (d_language_data): Delete la_word_break_characters
8145 * f-lang.c (f_word_break_characters): Delete.
8146 (f_language_data): Delete la_word_break_characters initializer.
8147 (f_language::word_break_characters): New member function.
8148 * go-lang.c (go_language_data): Delete la_word_break_characters
8150 * language.c (unknown_language_data): Likewise.
8151 (auto_language_data): Likewise.
8152 * language.h (default_word_break_characters): Move declaration to
8153 earlier in the file.
8154 (language_data): Delete la_word_break_characters field.
8155 (language_defn::word_break_characters): New member function.
8156 * m2-lang.c (m2_language_data): Delete la_word_break_characters
8158 * objc-lang.c (objc_language_data): Likewise.
8159 * opencl-lang.c (opencl_language_data): Likewise.
8160 * p-lang.c (pascal_language_data): Likewise.
8161 * rust-lang.c (rust_language_data): Likewise.
8163 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8165 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
8166 (ada_language_data): Delete la_get_symbol_name_matcher
8168 (language_defn::get_symbol_name_matcher_inner): New member
8170 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
8172 (cplus_language_data): Likewise.
8173 (cplus_language::get_symbol_name_matcher_inner): New member
8175 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
8176 (minimal_language_data): Likewise.
8177 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
8178 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
8180 * dictionary.c (iter_match_first_hashed): Update call to
8181 get_symbol_name_matcher.
8182 (iter_match_next_hashed): Likewise.
8183 (iter_match_next_linear): Likewise.
8184 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
8185 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
8187 (f_language::get_symbol_name_matcher_inner): New member function.
8188 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
8190 * language.c (default_symbol_name_matcher): Update header comment,
8192 (language_defn::get_symbol_name_matcher): New definition.
8193 (language_defn::get_symbol_name_matcher_inner): Likewise.
8194 (get_symbol_name_matcher): Delete.
8195 (unknown_language_data): Delete la_get_symbol_name_matcher
8197 (auto_language_data): Likewise.
8198 * language.h (language_data): Delete la_get_symbol_name_matcher
8200 (language_defn::get_symbol_name_matcher): New member function.
8201 (language_defn::get_symbol_name_matcher_inner): Likewise.
8202 (default_symbol_name_matcher): Delete declaration.
8203 * linespec.c (find_methods): Update call to
8204 get_symbol_name_matcher.
8205 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
8207 * minsyms.c (lookup_minimal_symbol): Update call to
8208 get_symbol_name_matcher.
8209 (iterate_over_minimal_symbols): Likewise.
8210 * objc-lang.c (objc_language_data): Delete
8211 la_get_symbol_name_matcher initializer.
8212 * opencl-lang.c (opencl_language_data): Likewise.
8213 * p-lang.c (pascal_language_data): Likewise.
8214 * psymtab.c (psymbol_name_matches): Update call to
8215 get_symbol_name_matcher.
8216 * rust-lang.c (rust_language_data): Delete
8217 la_get_symbol_name_matcher initializer.
8218 * symtab.c (symbol_matches_search_name): Update call to
8219 get_symbol_name_matcher.
8220 (compare_symbol_name): Likewise.
8222 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8224 * ada-lang.c (ada_language_data): Delete la_compute_program
8226 * c-lang.c (c_language_data): Likewise.
8227 (c_language::compute_program): New member function.
8228 (cplus_language_data): Delete la_compute_program initializer.
8229 (cplus_language::compute_program): New member function.
8230 (asm_language_data): Delete la_compute_program initializer.
8231 (minimal_language_data): Likewise.
8232 * c-lang.h (c_compute_program): Update comment.
8233 (cplus_compute_program): Likewise.
8234 * compile/compile-c-support.c (c_compute_program): Likewise.
8235 (cplus_compute_program): Likewise.
8236 * compile/compile.c (compile_to_object): Update call to
8238 * d-lang.c (d_language_data): Delete la_compute_program
8240 * f-lang.c (f_language_data): Likewise.
8241 * go-lang.c (go_language_data): Likewise.
8242 * language.c (unknown_language_data): Likewise.
8243 (auto_language_data): Likewise.
8244 * language.h (language_data): Delete la_compute_program field.
8245 (language_defn::compute_program): New member function.
8246 * m2-lang.c (m2_language_data): Delete la_compute_program
8248 * objc-lang.c (objc_language_data): Likewise.
8249 * opencl-lang.c (opencl_language_data): Likewise.
8250 * p-lang.c (pascal_language_data): Likewise.
8251 * rust-lang.c (rust_language_data): Likewise.
8253 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8255 * ada-lang.c (ada_language_data) Delete
8256 la_class_name_from_physname initializer.
8257 * c-lang.c (c_language_data): Likewise.
8258 (cplus_language_data): Likewise.
8259 (cplus_language::class_name_from_physname): New member function.
8260 (asm_language_data): Delete la_class_name_from_physname
8262 (minimal_language_data): Likewise.
8263 * d-lang.c (d_language_data): Likewise.
8264 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
8265 method on language_defn class.
8266 (guess_full_die_structure_name): Likewise.
8267 * f-lang.c (f_language_data): Delete la_class_name_from_physname
8269 * go-lang.c (go_language_data): Likewise.
8270 * language.c (language_class_name_from_physname): Delete.
8271 (unk_lang_class_name): Delete.
8272 (unknown_language_data): Delete la_class_name_from_physname
8274 (auto_language_data): Likewise.
8275 * language.h (language_data): Delete la_class_name_from_physname
8277 (language_defn::class_name_from_physname): New function.
8278 (language_class_name_from_physname): Delete declaration.
8279 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
8281 * objc-lang.c (objc_language_data): Likewise.
8282 * opencl-lang.c (opencl_language_data): Likewise.
8283 * p-lang.c (pascal_language_data): Likewise.
8284 * rust-lang.c (rust_language_data): Likewise.
8286 2020-06-16 Tom Tromey <tom@tromey.com>
8288 * tui/tui-data.h (STATUS_NAME): New macro.
8289 * tui/tui-layout.c (tui_remove_some_windows)
8290 (initialize_known_windows, tui_register_window)
8291 (tui_layout_split::remove_windows, initialize_layouts)
8292 (tui_new_layout_command): Don't use hard-coded window names.
8294 2020-06-16 Tom Tromey <tom@tromey.com>
8297 * tui/tui.c (tui_ensure_readline_initialized): Rename from
8298 tui_initialize_readline. Only run once. Call rl_initialize.
8299 * tui/tui.h (tui_ensure_readline_initialized): Rename from
8300 tui_initialize_readline.
8301 * tui/tui-io.c (tui_setup_io): Call
8302 tui_ensure_readline_initialized.
8303 * tui/tui-interp.c (tui_interp::init): Update.
8305 2020-06-16 Tom Tromey <tom@tromey.com>
8307 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
8308 Also preserve the status window.
8310 2020-06-16 Tom Tromey <tom@tromey.com>
8312 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
8313 where m_window==nullptr.
8315 2020-06-15 Tom Tromey <tromey@adacore.com>
8317 * windows-nat.c (windows_nat::handle_output_debug_string):
8319 (windows_nat::handle_ms_vc_exception): Update.
8320 * target.h (target_read_string): Change API.
8321 * target.c (target_read_string): Change API.
8322 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
8324 * solib-frv.c (frv_current_sos): Update.
8325 * solib-dsbt.c (dsbt_current_sos): Update.
8326 * solib-darwin.c (darwin_current_sos): Update.
8327 * linux-thread-db.c (inferior_has_bug): Update.
8328 * expprint.c (print_subexp_standard): Update.
8329 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
8330 (ada_exception_message_1): Update.
8332 2020-06-15 Tom Tromey <tromey@adacore.com>
8334 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
8336 2020-06-15 Tom Tromey <tromey@adacore.com>
8338 * valprint.c (read_string): Update comment.
8339 * target.c (MIN): Remove.
8340 (target_read_string): Rewrite.
8342 2020-06-15 Tom Tromey <tromey@adacore.com>
8344 * corefile.c (read_memory_string): Remove.
8345 * ada-valprint.c (ada_value_print_ptr): Update.
8346 * ada-lang.h (ada_tag_name): Change return type.
8347 * ada-lang.c (type_from_tag): Update.
8348 (ada_tag_name_from_tsd): Change return type. Use
8350 (ada_tag_name): Likewise.
8351 * gdbcore.h (read_memory_string): Don't declare.
8353 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
8355 * symtab.c (rbreak_command): Ignore Windows drive colon.
8357 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
8359 * NEWS: Mention removed GDBserver host support.
8361 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
8363 * features/riscv/rebuild-csr-xml.sh: Updated.
8365 2020-06-11 Tom Tromey <tom@tromey.com>
8368 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
8370 2020-06-09 Jonny Grant <jg@jguk.org>
8371 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
8373 * main.c (captured_main_1): Don't print new line after help.
8374 (print_gdb_help): add mailing list and IRC channel information
8375 to --help. Add new lines between items in the footer. Remove
8376 quotes around bug url.
8378 2020-06-11 Keith Seitz <keiths@redhat.com>
8381 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
8382 Resolve typedefs for type length calculations.
8384 2020-06-10 Tom de Vries <tdevries@suse.de>
8387 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
8388 (write_psymbols): Enable .gdb_index for ada.
8389 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
8392 2020-06-10 Tom de Vries <tdevries@suse.de>
8394 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
8395 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
8396 namei" instead of "const char *name" argument.
8397 (dw2_map_matching_symbols): Use "offset_type namei" variant of
8398 dw2_symtab_iter_init.
8400 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8402 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
8403 to use type::field and field::type instead.
8405 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8407 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
8408 to use field::type instead.
8410 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8412 * gdbtypes.h (struct field) <type, set_type>: New methods.
8413 Rename `type` field to...
8414 <m_type>: ... this. Change references throughout to use type or
8416 (FIELD_TYPE): Use field::type. Change call sites that modify
8417 the field's type to use field::set_type instead.
8419 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8421 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
8422 to use type::index_type instead.
8424 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8426 * gdbtypes.h (struct type) <index_type, set_index_type>: New
8428 (TYPE_INDEX_TYPE): Use type::index_type.
8429 * gdbtypes.c (create_array_type_with_stride): Likewise.
8431 2020-06-07 Tom Tromey <tom@tromey.com>
8433 * valprint.c (generic_val_print_float): Remove "embedded_offset"
8435 (generic_value_print): Update.
8437 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8439 Revert commit 982a38f60b0.
8440 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
8442 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8444 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
8445 avoid use after free.
8447 2020-06-05 Tom de Vries <tdevries@suse.de>
8451 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
8453 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
8455 (dwarf2_read_debug_names): Likewise.
8456 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
8457 object when re-using a per_bfd object with an index.
8459 2020-06-03 Tom de Vries <tdevries@suse.de>
8462 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
8464 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
8467 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8469 * ada-lang.c (ada_language_data): Delete skip_trampoline
8471 * c-lang.c (c_language_data): Likewise.
8472 (cplus_language_data): Likewise.
8473 (cplus_language::skip_trampoline): New member function.
8474 (asm_language_data): Delete skip_trampoline initializer.
8475 (minimal_language_data): Likewise.
8476 * d-lang.c (d_language_data): Likewise.
8477 * f-lang.c (f_language_data): Likewise.
8478 * go-lang.c (go_language_data): Likewise.
8479 * language.c (unk_lang_trampoline): Delete function.
8480 (skip_language_trampoline): Update.
8481 (unknown_language_data): Delete skip_trampoline initializer.
8482 (auto_language_data): Likewise.
8483 * language.h (language_data): Delete skip_trampoline field.
8484 (language_defn::skip_trampoline): New function.
8485 * m2-lang.c (m2_language_data): Delete skip_trampoline
8487 * objc-lang.c (objc_skip_trampoline): Delete function, move
8488 implementation to objc_language::skip_trampoline.
8489 (objc_language_data): Delete skip_trampoline initializer.
8490 (objc_language::skip_trampoline): New member function with
8491 implementation from objc_skip_trampoline.
8492 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
8494 * p-lang.c (pascal_language_data): Likewise.
8495 * rust-lang.c (rust_language_data): Likewise.
8497 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8499 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
8500 (ada_language::demangle): New member function.
8501 * c-lang.c (c_language_data): Delete la_demangle initializer.
8502 (cplus_language_data): Delete la_demangle initializer.
8503 (cplus_language::demangle): New member function.
8504 (asm_language_data): Delete la_demangle initializer.
8505 (minimal_language_data): Delete la_demangle initializer.
8506 * d-lang.c (d_language_data): Delete la_demangle initializer.
8507 (d_language::demangle): New member function.
8508 * f-lang.c (f_language_data): Delete la_demangle initializer.
8509 (f_language::demangle): New member function.
8510 * go-lang.c (go_language_data): Delete la_demangle initializer.
8511 (go_language::demangle): New member function.
8512 * language.c (language_demangle): Update.
8513 (unk_lang_demangle): Delete.
8514 (unknown_language_data): Delete la_demangle initializer.
8515 (unknown_language::demangle): New member function.
8516 (auto_language_data): Delete la_demangle initializer.
8517 (auto_language::demangle): New member function.
8518 * language.h (language_data): Delete la_demangle field.
8519 (language_defn::demangle): New function.
8520 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
8521 * objc-lang.c (objc_language_data): Delete la_demangle
8523 (objc_language::demangle): New member function.
8524 * opencl-lang.c (opencl_language_data): Delete la_demangle
8526 * p-lang.c (pascal_language_data): Likewise.
8527 * rust-lang.c (rust_language_data): Likewise.
8528 (rust_language::demangle): New member function.
8530 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8532 * ada-lang.c (ada_language_data): Delete la_print_type
8534 (ada_language::print_type): New member function.
8535 * c-lang.c (c_language_data): Delete la_print_type initializer.
8536 (c_language::print_type): New member function.
8537 (cplus_language_data): Delete la_print_type initializer.
8538 (cplus_language::print_type): New member function.
8539 (asm_language_data): Delete la_print_type initializer.
8540 (asm_language::print_type): New member function.
8541 (minimal_language_data): Delete la_print_type initializer.
8542 (minimal_language::print_type): New member function.
8543 * d-lang.c (d_language_data): Delete la_print_type initializer.
8544 (d_language::print_type): New member function.
8545 * f-lang.c (f_language_data): Delete la_print_type initializer.
8546 (f_language::print_type): New member function.
8547 * go-lang.c (go_language_data): Delete la_print_type initializer.
8548 (go_language::print_type): New member function.
8549 * language.c (unk_lang_print_type): Delete.
8550 (unknown_language_data): Delete la_print_type initializer.
8551 (unknown_language::print_type): New member function.
8552 (auto_language_data): Delete la_print_type initializer.
8553 (auto_language::print_type): New member function.
8554 * language.h (language_data): Delete la_print_type field.
8555 (language_defn::print_type): New function.
8556 (LA_PRINT_TYPE): Update.
8557 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
8558 (m2_language::print_type): New member function.
8559 * objc-lang.c (objc_language_data): Delete la_print_type
8561 (objc_language::print_type): New member function.
8562 * opencl-lang.c (opencl_print_type): Delete, implementation moved
8563 to opencl_language::print_type.
8564 (opencl_language_data): Delete la_print_type initializer.
8565 (opencl_language::print_type): New member function, implementation
8566 from opencl_print_type.
8567 * p-lang.c (pascal_language_data): Delete la_print_type
8569 (pascal_language::print_type): New member function.
8570 * rust-lang.c (rust_print_type): Delete, implementation moved to
8571 rust_language::print_type.
8572 (rust_language_data): Delete la_print_type initializer.
8573 (rust_language::print_type): New member function, implementation
8574 from rust_print_type.
8576 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8578 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
8579 implementation moves to...
8580 (ada_language::sniff_from_mangled_name): ...here. Update return
8582 (ada_language_data): Delete la_sniff_from_mangled_name
8584 * c-lang.c (c_language_data): Likewise.
8585 (cplus_language_data): Likewise.
8586 (cplus_language::sniff_from_mangled_name): New member function,
8587 implementation taken from gdb_sniff_from_mangled_name.
8588 (asm_language_data): Delete la_sniff_from_mangled_name
8590 (minimal_language_data): Likewise.
8591 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
8592 implementation moves to cplus_language::sniff_from_mangled_name.
8593 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
8594 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
8596 (d_language::sniff_from_mangled_name): ...here.
8597 (d_language_data): Delete la_sniff_from_mangled_name initializer.
8598 * f-lang.c (f_language_data): Likewise.
8599 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
8601 (go_language::sniff_from_mangled_name): ...here.
8602 (go_language_data): Delete la_sniff_from_mangled_name initializer.
8603 * language.c (language_sniff_from_mangled_name): Delete.
8604 (unknown_language_data): Delete la_sniff_from_mangled_name
8606 (auto_language_data): Likewise.
8607 * language.h (language_data): Delete la_sniff_from_mangled_name
8609 (language_defn::sniff_from_mangled_name): New function.
8610 (language_sniff_from_mangled_name): Delete declaration.
8611 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
8613 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
8614 implementation moves to...
8615 (objc_language::sniff_from_mangled_name): ...here.
8616 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
8617 * opencl-lang.c (opencl_language_data): Likewise.
8618 * p-lang.c (pascal_language_data): Likewise.
8619 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
8620 implementation moves to...
8621 (rust_language::sniff_from_mangled_name): ...here.
8622 (rust_language_data): Delete la_sniff_from_mangled_name
8624 * symtab.c (symbol_find_demangled_name): Call
8625 sniff_from_mangled_name member function.
8627 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8629 * ada-lang.c (ada_language_data): Delete la_search_name_hash
8631 * c-lang.c (c_language_data): Likewise.
8632 (cplus_language_data): Likewise.
8633 (cplus_language::search_name_hash): New member function.
8634 (asm_language_data): Delete la_search_name_hash initializer.
8635 (minimal_language_data): Likewise.
8636 * d-lang.c (d_language_data): Likewise.
8637 * dictionary.c (default_search_name_hash): Rename to...
8638 (language_defn::search_name_hash): ...this.
8639 * f-lang.c (f_language_data): Likewise.
8640 (f_language::search_name_hash): New member function.
8641 * go-lang.c (go_language_data): Delete la_search_name_hash
8643 * language.c (unknown_language_data): Likewise.
8644 (auto_language_data): Likewise.
8645 * language.h (struct language_data): Delete la_search_name_hash
8647 (language_defn::search_name_hash): Declare new member function.
8648 (default_search_name_hash): Delete declaration.
8649 * m2-lang.c (m2_language_data): Delete la_search_name_hash
8651 * objc-lang.c (objc_language_data): Likewise.
8652 * opencl-lang.c (opencl_language_data): Likewise.
8653 * p-lang.c (pascal_language_data): Likewise.
8654 * rust-lang.c (rust_language_data): Likewise.
8655 * symtab.c (search_name_hash): Update call.
8657 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8659 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
8661 * c-lang.c (class compile_instance): Declare.
8662 (c_language_data): Delete la_get_compile_instance initializer.
8663 (c_language::get_compile_instance): New member function.
8664 (cplus_language_data): Delete la_get_compile_instance initializer.
8665 (cplus_language::get_compile_instance): New member function.
8666 (asm_language_data): Delete la_get_compile_instance initializer.
8667 (minimal_language_data): Likewise.
8668 * c-lang.h (c_get_compile_context): Update comment.
8669 (cplus_get_compile_context): Update comment.
8670 * compile/compile.c (compile_to_object): Update calls, don't rely
8671 on function pointer being NULL.
8672 * d-lang.c (d_language_data): Delete la_get_compile_instance
8674 * f-lang.c (f_language_data): Likewise.
8675 * go-lang.c (go_language_data): Likewise.
8676 * language.c (unknown_language_data): Likewise.
8677 (auto_language_data): Likewise.
8678 * language.h (language_data): Delete la_get_compile_instance field.
8679 (language_defn::get_compile_instance): New member function.
8680 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
8682 * objc-lang.c (objc_language_data): Likewise.
8683 * opencl-lang.c (opencl_language_data): Likewise.
8684 * p-lang.c (pascal_language_data): Likewise.
8685 * rust-lang.c (rust_language_data): Likewise.
8687 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8689 * ada-lang.c (ada_add_all_symbols): Update comment.
8690 (ada_iterate_over_symbols): Delete, move implementation to...
8691 (ada_language::iterate_over_symbols): ...here, a new member
8692 function, rewrite to use range based for loop.
8693 (ada_language_data): Delete la_iterate_over_symbols initializer.
8694 * c-lang.c (c_language_data): Likewise.
8695 (cplus_language_data): Likewise.
8696 (asm_language_data): Likewise.
8697 (minimal_language_data): Likewise.
8698 * d-lang.c (d_language_data): Likewise.
8699 * f-lang.c (f_language_data): Likewise.
8700 * go-lang.c (go_language_data): Likewise.
8701 * language.c (unknown_language_data): Likewise.
8702 (auto_language_data): Likewise.
8703 * language.h (language_data): Delete la_iterate_over_symbols field.
8704 (language_defn::iterate_over_symbols): New member function.
8705 (LA_ITERATE_OVER_SYMBOLS): Update.
8706 * linespec.c (iterate_over_all_matching_symtabs): Update.
8707 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
8709 * objc-lang.c (objc_language_data): Likewise.
8710 * opencl-lang.c (opencl_language_data): Likewise.
8711 * p-lang.c (pascal_language_data): Likewise.
8712 * rust-lang.c (rust_language_data): Likewise.
8714 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8716 * ada-lang.c (ada_language_data): Delete
8717 la_lookup_transparent_type initializer.
8718 * c-lang.c (c_language_data): Likewise.
8719 (cplus_language_data): Likewise.
8720 (cplus_language::lookup_transparent_type): New member function.
8721 (asm_language_data): Delete la_lookup_transparent_type
8723 (minimal_language_data): Likewise.
8724 * d-lang.c (d_language_data): Likewise.
8725 * f-lang.c (f_language_data): Likewise.
8726 * go-lang.c (go_language_data): Likewise.
8727 * language.c (unknown_language_data): Likewise.
8728 (auto_language_data): Likewise.
8729 * language.h (struct language_data): Delete
8730 la_lookup_transparent_type field.
8731 (language_defn::lookup_transparent_type): New member function.
8732 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
8734 * objc-lang.c (objc_language_data): Likewise.
8735 * opencl-lang.c (opencl_language_data): Likewise.
8736 * p-lang.c (pascal_language_data): Likewise.
8737 * rust-lang.c (rust_language_data): Likewise.
8738 * symtab.c (symbol_matches_domain): Update call.
8740 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8742 * ada-lang.c (ada_language_arch_info): Delete function, move
8743 implementation to...
8744 (ada_language::language_arch_info): ...here, a new member
8746 (ada_language_data): Delete la_language_arch_info.
8747 * c-lang.c (c_language_data): Likewise.
8748 (c_language::language_arch_info): New member function.
8749 (cplus_language_arch_info): Delete function, move
8750 implementation to...
8751 (cplus_language::language_arch_info): ...here, a new member
8753 (cplus_language_data): Delete la_language_arch_info.
8754 (asm_language_data): Likewise.
8755 (asm_language::language_arch_info): New member function.
8756 (minimal_language_data): Delete la_language_arch_info.
8757 (minimal_language::language_arch_info): New member function.
8758 * d-lang.c (d_language_arch_info): Delete function, move
8759 implementation to...
8760 (d_language::language_arch_info): ...here, a new member
8762 (d_language_data): Delete la_language_arch_info.
8763 * f-lang.c (f_language_arch_info): Delete function, move
8764 implementation to...
8765 (f_language::language_arch_info): ...here, a new member
8767 (f_language_data): Delete la_language_arch_info.
8768 * go-lang.c (go_language_arch_info): Delete function, move
8769 implementation to...
8770 (go_language::language_arch_info): ...here, a new member
8772 (go_language_data): Delete la_language_arch_info.
8773 * language.c (unknown_language_data): Likewise.
8774 (unknown_language::language_arch_info): New member function.
8775 (auto_language_data): Delete la_language_arch_info.
8776 (auto_language::language_arch_info): New member function.
8777 (language_gdbarch_post_init): Update call to
8778 la_language_arch_info.
8779 * language.h (language_data): Delete la_language_arch_info
8781 (language_defn::language_arch_info): New function.
8782 * m2-lang.c (m2_language_arch_info): Delete function, move
8783 implementation to...
8784 (m2_language::language_arch_info): ...here, a new member
8786 (m2_language_data): Delete la_language_arch_info.
8787 * objc-lang.c (objc_language_arch_info): Delete function, move
8788 implementation to...
8789 (objc_language::language_arch_info): ...here, a new member
8791 (objc_language_data): Delete la_language_arch_info.
8792 * opencl-lang.c (opencl_language_arch_info): Delete function, move
8793 implementation to...
8794 (opencl_language::language_arch_info): ...here, a new member
8796 (opencl_language_data): Delete la_language_arch_info.
8797 * p-lang.c (pascal_language_arch_info): Delete function, move
8798 implementation to...
8799 (pascal_language::language_arch_info): ...here, a new member
8801 (pascal_language_data): Delete la_language_arch_info.
8802 * rust-lang.c (rust_language_arch_info): Delete function, move
8803 implementation to...
8804 (rust_language::language_arch_info): ...here, a new member
8806 (rust_language_data): Delete la_language_arch_info.
8808 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8810 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
8812 * c-lang.c (c_language_data): Likewise.
8813 (cplus_language_data): Likewise.
8814 (cplus_language::pass_by_reference_info): New method.
8815 (asm_language_data): Delete la_pass_by_reference initializer.
8816 (minimal_language_data): Likewise.
8817 * cp-abi.c (cp_pass_by_reference): Remove use of
8818 default_pass_by_reference.
8819 * d-lang.c (d_language_data): Likewise.
8820 * f-lang.c (f_language_data): Likewise.
8821 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
8822 default_pass_by_reference.
8823 * go-lang.c (go_language_data): Likewise.
8824 * language.c (language_pass_by_reference): Update.
8825 (default_pass_by_reference): Delete.
8826 (unknown_language_data): Delete la_pass_by_reference
8828 (auto_language_data): Likewise.
8829 * language.h (struct language_data): Delete la_pass_by_reference
8831 (language_defn::pass_by_reference_info): New member function.
8832 (default_pass_by_reference): Delete declaration.
8833 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
8835 * objc-lang.c (objc_language_data): Likewise.
8836 * opencl-lang.c (opencl_language_data): Likewise.
8837 * p-lang.c (pascal_language_data): Likewise.
8838 * rust-lang.c (rust_language_data): Likewise.
8840 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8842 * ada-lang.c (ada_read_var_value): Delete function, move
8843 implementation to...
8844 (ada_language::read_var_value): ...here.
8845 (ada_language_data): Delete la_read_var_value initializer.
8846 * c-lang.c (c_language_data): Likewise.
8847 (cplus_language_data): Likewise.
8848 (minimal_language_data): Likewise.
8849 * d-lang.c (d_language_data): Likewise.
8850 * f-lang.c (f_language_data): Likewise.
8851 * findvar.c (default_read_var_value): Rename to...
8852 (language_defn::read_var_value): ...this.
8853 * findvar.c (read_var_value): Update header comment, and change to
8854 call member function instead of function pointer.
8855 * go-lang.c (go_language_data): Likewise.
8856 * language.c (unknown_language_data): Delete la_read_var_value
8858 (auto_language_data): Likewise.
8859 * language.h (struct language_data): Delete la_read_var_value
8861 (language_defn::read_var_value): New member function.
8862 (default_read_var_value): Delete declaration.
8863 * m2-lang.c (m2_language_data): Delete la_read_var_value
8865 * objc-lang.c (objc_language_data): Likewise.
8866 * opencl-lang.c (opencl_language_data): Likewise.
8867 * p-lang.c (pascal_language_data): Likewise.
8868 * rust-lang.c (rust_language_data): Likewise.
8869 * value.h (default_read_var_value): Delete declaration.
8871 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8873 * ada-lang.c (ada_print_array_index): Delete function, move
8874 implementation to...
8875 (ada_language::print_array_index): ...here.
8876 (ada_language_data): Delete la_print_array_index initializer.
8877 * c-lang.c (c_language_data): Likewise.
8878 (cplus_language_data): Likewise.
8879 (minimal_language_data): Likewise.
8880 * d-lang.c (d_language_data): Likewise.
8881 * f-lang.c (f_language_data): Likewise.
8882 * go-lang.c (go_language_data): Likewise.
8883 * language.c (default_print_array_index): Delete function, move
8884 implementation to...
8885 (language_defn::print_array_index): ...here.
8886 (unknown_language_data): Delete la_print_array_index initializer.
8887 (auto_language_data): Likewise.
8888 * language.h (struct language_data): Delete la_print_array_index
8890 (language_defn::print_array_index): New member function.
8891 (LA_PRINT_ARRAY_INDEX): Update.
8892 (default_print_array_index): Delete declaration.
8893 * m2-lang.c (m2_language_data): Delete la_print_array_index
8895 * objc-lang.c (objc_language_data): Likewise.
8896 * opencl-lang.c (opencl_language_data): Likewise.
8897 * p-lang.c (pascal_language_data): Likewise.
8898 * rust-lang.c (rust_language_data): Likewise.
8900 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8902 * gdb/ada-lang.c (ada_language_defn): Convert to...
8903 (ada_language_data): ...this.
8904 (class ada_language): New class.
8905 (ada_language_defn): New static global.
8906 * gdb/c-lang.c (c_language_defn): Convert to...
8907 (c_language_data): ...this.
8908 (class c_language): New class.
8909 (c_language_defn): New static global.
8910 (cplus_language_defn): Convert to...
8911 (cplus_language_data): ...this.
8912 (class cplus_language): New class.
8913 (cplus_language_defn): New static global.
8914 (asm_language_defn): Convert to...
8915 (asm_language_data): ...this.
8916 (class asm_language): New class.
8917 (asm_language_defn): New static global.
8918 (minimal_language_defn): Convert to...
8919 (minimal_language_data): ...this.
8920 (class minimal_language): New class.
8921 (minimal_language_defn): New static global.
8922 * gdb/d-lang.c (d_language_defn): Convert to...
8923 (d_language_data): ...this.
8924 (class d_language): New class.
8925 (d_language_defn): New static global.
8926 * gdb/f-lang.c (f_language_defn): Convert to...
8927 (f_language_data): ...this.
8928 (class f_language): New class.
8929 (f_language_defn): New static global.
8930 * gdb/go-lang.c (go_language_defn): Convert to...
8931 (go_language_data): ...this.
8932 (class go_language): New class.
8933 (go_language_defn): New static global.
8934 * gdb/language.c (unknown_language_defn): Remove declaration.
8935 (current_language): Initialize to nullptr, real initialization is
8936 moved to _initialize_language.
8937 (languages): Delete global.
8938 (language_defn::languages): Define.
8939 (set_language_command): Use language_defn::languages.
8940 (set_language): Likewise.
8941 (range_error): Likewise.
8942 (language_enum): Likewise.
8943 (language_def): Likewise.
8944 (add_set_language_command): Use language_def::languages for the
8945 language list, and language_def to lookup language pointers.
8946 (skip_language_trampoline): Use language_defn::languages.
8947 (unknown_language_defn): Convert to...
8948 (unknown_language_data): ...this.
8949 (class unknown_language): New class.
8950 (unknown_language_defn): New static global.
8951 (auto_language_defn): Convert to...
8952 (auto_language_data): ...this.
8953 (class auto_language): New class.
8954 (auto_language_defn): New static global.
8955 (language_gdbarch_post_init): Use language_defn::languages.
8956 (_initialize_language): Initialize current_language.
8957 * gdb/language.h (struct language_defn): Rename to...
8958 (struct language_data): ...this.
8959 (struct language_defn): New.
8960 (auto_language_defn): Delete.
8961 (unknown_language_defn): Delete.
8962 (minimal_language_defn): Delete.
8963 (ada_language_defn): Delete.
8964 (asm_language_defn): Delete.
8965 (c_language_defn): Delete.
8966 (cplus_language_defn): Delete.
8967 (d_language_defn): Delete.
8968 (f_language_defn): Delete.
8969 (go_language_defn): Delete.
8970 (m2_language_defn): Delete.
8971 (objc_language_defn): Delete.
8972 (opencl_language_defn): Delete.
8973 (pascal_language_defn): Delete.
8974 (rust_language_defn): Delete.
8975 * gdb/m2-lang.c (m2_language_defn): Convert to...
8976 (m2_language_data): ...this.
8977 (class m2_language): New class.
8978 (m2_language_defn): New static global.
8979 * gdb/objc-lang.c (objc_language_defn): Convert to...
8980 (objc_language_data): ...this.
8981 (class objc_language): New class.
8982 (objc_language_defn): New static global.
8983 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
8984 (opencl_language_data): ...this.
8985 (class opencl_language): New class.
8986 (opencl_language_defn): New static global.
8987 * gdb/p-lang.c (pascal_language_defn): Convert to...
8988 (pascal_language_data): ...this.
8989 (class pascal_language): New class.
8990 (pascal_language_defn): New static global.
8991 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
8992 language pointer, update comment format.
8993 * gdb/rust-lang.c (rust_language_defn): Convert to...
8994 (rust_language_data): ...this.
8995 (class rust_language): New class.
8996 (rust_language_defn): New static global.
8998 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
9000 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
9002 <m_stmt_at_address>: New member variable.
9003 (lnp_state_machine::record_line): Don't record some lines, update
9004 tracking of is_stmt at the same address.
9005 (lnp_state_machine::lnp_state_machine): Initialise new member
9008 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
9010 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
9011 "-include gnu-nat-mig.h".
9012 * gnu-nat-mig.h: New file.
9013 * gnu-nat.c: Include "gnu-nat-mig.h".
9014 (exc_server, msg_reply_server, notify_server,
9015 process_reply_server): Remove declarations.
9017 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9019 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
9020 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
9021 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
9022 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
9023 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
9024 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
9025 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
9026 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
9027 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
9028 to gnu_nat_target class.
9029 * gnu-nat.c: Likewise.
9030 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
9031 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
9032 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
9034 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
9035 instead of `gnu_target'.
9037 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9039 * i386-gnu-tdep.c: Include "gdbcore.h"
9040 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
9041 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
9042 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
9043 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
9044 i386_gnu_sigcontext_addr): New functions
9045 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
9046 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
9049 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9051 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
9052 before fork_inferior call. Avoid calling it if target_is_pushed returns
9055 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9057 * gnu-nat.h (gnu_target): New variable declaration.
9058 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
9060 * gnu-nat.c (gnu_target): New variable.
9061 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
9062 add_thread_silent, and add_thread calls.
9063 (gnu_nat_target::create_inferior): Pass gnu_target to
9064 add_thread_silent, thread_change_ptid call.
9065 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
9068 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9070 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
9071 (gnu_nat_target::find_memory_regions): Remove unused
9072 `old_address' variable.
9074 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9076 * gnu-nat.c: Include "gdbarch.h".
9078 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9080 * reply_mig_hack.awk (Error return): Cast function through
9081 void *, to bypass compiler function call check.
9083 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9085 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
9086 $(srcdir)/reply_mig_hack.awk.
9088 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9090 * gnu-nat.h (gnu_debug_flag): Set type to bool.
9092 2020-05-30 Jonny Grant <jg@jguk.org>
9094 * configure.ac (ACX_BUGURL): change bug URL to https.
9096 2020-05-30 Pedro Alves <palves@redhat.com>
9098 * cp-support.c (replace_typedefs_template): New.
9099 (replace_typedefs_qualified_name): Handle
9100 DEMANGLE_COMPONENT_TEMPLATE.
9102 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
9104 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
9105 dwarf2/index-cache.h, dwarf2/index-write.c,
9106 dwarf2/index-write.h, dwarf2/line-header.c,
9107 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
9108 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
9109 variables and fields from `dwarf2_per_objfile` to just
9110 `per_objfile` throughout.
9112 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
9114 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9115 <push_dwarf_reg_entry_value>: Add comment.
9117 2020-05-28 Kevin Buettner <kevinb@redhat.com>
9118 Keith Seitz <keiths@redhat.com>
9120 * python/python.c (do_start_initialization): Call PyEval_SaveThread
9121 instead of PyEval_ReleaseLock.
9122 (class gdbpy_gil): Move to earlier in file.
9123 (finalize_python): Set gdb_python_initialized.
9124 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
9125 when not initialized.
9127 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
9129 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9130 <push_dwarf_reg_entry_value>: Remove assert. Override
9131 per_objfile with caller_per_objfile.
9133 2020-05-28 Tom de Vries <tdevries@suse.de>
9135 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
9136 PR gold/15646 workaround to symbol kind "type".
9138 2020-05-27 Tom Tromey <tromey@adacore.com>
9140 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
9142 2020-05-27 Tom Tromey <tromey@adacore.com>
9144 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
9145 Use htab_find_with_hash.
9146 <add_abbrev>: Remove "abbrev_number" parameter.
9147 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
9148 "abbrev_number" parameter. Use htab_find_slot_with_hash.
9149 (hash_abbrev): Add comment.
9150 (abbrev_table::lookup_abbrev): Move to header file.
9151 (abbrev_table::read): Update.
9153 2020-05-27 Tom Tromey <tromey@adacore.com>
9155 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
9157 <canonical_name>: New member.
9158 <raw_name>: Rename from "name".
9159 (partial_die_info): Initialize canonical_name.
9160 (scan_partial_symbols): Check raw_name.
9161 (partial_die_parent_scope, partial_die_full_name)
9162 (add_partial_symbol, add_partial_subprogram)
9163 (add_partial_enumeration, load_partial_dies): Use "name" method.
9164 (partial_die_info::name): New method.
9165 (partial_die_info::read, guess_partial_die_structure_name)
9166 (partial_die_info::fixup): Update.
9168 2020-05-27 Tom Tromey <tromey@adacore.com>
9170 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
9171 <get_ref_die_offset>: Inline.
9172 <get_ref_die_offset_complaint>: New method.
9173 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
9174 (attribute::get_ref_die_offset_complaint): Rename from
9175 get_ref_die_offset. Just issue complaint.
9177 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9179 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
9181 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9183 * exec.c (exec_file_attach): Use errno value of first openp failure.
9185 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9187 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
9188 Don't close thread handle.
9190 2020-05-27 Tom Tromey <tom@tromey.com>
9191 Simon Marchi <simon.marchi@efficios.com>
9193 * objfiles.h (struct objfile) <partial_symtabs>: Now a
9195 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
9197 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
9198 dwarf2_per_bfd_objfile_data_key>: New globals.
9199 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
9200 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
9201 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
9203 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
9204 short-circuit when sharing.
9205 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
9206 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
9208 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9210 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
9212 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
9213 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
9215 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9217 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
9218 build_name_components, find_name_components_bounds>:
9219 Add per_objfile parameter.
9220 (struct mapped_index) <symbol_name_at>: Likewise.
9221 (struct mapped_debug_names): Remove constructor.
9222 <dwarf2_per_objfile>: Remove field.
9223 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
9224 (mapped_index_base::find_name_components_bounds,
9225 mapped_index_base::build_name_components,
9226 dw2_expand_symtabs_matching_symbol): Likewise.
9227 (class mock_mapped_index) <symbol_name_at>: Likewise.
9228 (check_match): Likewise.
9229 (check_find_bounds_finds): Likewise.
9230 (test_mapped_index_find_name_component_bounds): Update.
9231 (CHECK_MATCH): Update.
9232 (dw2_expand_symtabs_matching): Update.
9233 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
9234 per_objfile parameter.
9235 <find_vec_in_debug_names>: Likewise.
9236 <m_per_objfile>: New field.
9237 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
9239 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
9240 (dw2_debug_names_iterator::next): Update.
9241 (dw2_debug_names_lookup_symbol): Update.
9242 (dw2_debug_names_expand_symtabs_for_function): Update.
9243 (dw2_debug_names_map_matching_symbols): Update.
9244 (dw2_debug_names_expand_symtabs_matching): Update.
9245 (dwarf2_read_debug_names): Update.
9247 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9249 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
9250 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
9251 move to dwarf2_per_objfile.
9252 <read_in_chain>: Remove.
9253 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
9254 remove_all_cus, age_comp_units>: New methods.
9255 <m_dwarf2_cus>: New member.
9256 (struct dwarf2_per_cu_data) <cu>: Remove.
9257 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
9258 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
9259 moved to methods of dwarf2_per_objfile.
9260 (dwarf2_clear_marks): Remove.
9261 (dwarf2_queue_item::~dwarf2_queue_item): Update.
9262 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
9263 (dwarf2_per_bfd::free_cached_comp_units): Remove.
9264 (dwarf2_per_objfile::remove_all_cus): New.
9265 (class free_cached_comp_units) <~free_cached_comp_units>:
9268 (dw2_do_instantiate_symtab): Adjust.
9269 (fill_in_sig_entry_from_dwo_entry): Adjust.
9270 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9271 (cutu_reader::cutu_reader): Likewise.
9272 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
9273 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
9274 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
9275 and dwarf2_per_objfile::age_comp_units.
9276 (load_partial_comp_unit): Update.
9277 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
9278 (process_queue): Likewise.
9279 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
9281 (dwarf2_read_addr_index): Likewise.
9282 (follow_die_offset): Likewise.
9283 (dwarf2_fetch_die_loc_sect_off): Likewise.
9284 (dwarf2_fetch_constant_bytes): Likewise.
9285 (dwarf2_fetch_die_type_sect_off): Likewise.
9286 (follow_die_sig_1): Likewise.
9287 (load_full_type_unit): Likewise.
9288 (read_signatured_type): Likewise.
9289 (dwarf2_cu::dwarf2_cu): Don't set cu field.
9290 (dwarf2_cu::~dwarf2_cu): Remove.
9291 (dwarf2_per_objfile::get_cu): New.
9292 (dwarf2_per_objfile::set_cu): New.
9293 (age_cached_comp_units): Rename to...
9294 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
9295 to std::unordered_map.
9296 (free_one_cached_comp_unit): Rename to...
9297 (dwarf2_per_objfile::remove_cu): ... this. Adjust
9298 to std::unordered_map.
9299 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
9300 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
9301 a dwarf2_per_objfile in data.
9302 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
9303 (dwarf2_clear_marks): Remove.
9305 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9307 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
9308 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
9309 (init_tu_and_read_dwo_dies): Likewise.
9310 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
9311 (cutu_reader::cutu_reader): Likewise.
9312 (load_partial_comp_unit): Likewise.
9313 (process_psymtab_comp_unit): Update.
9314 (build_type_psymtabs_1): Update.
9315 (process_skeletonless_type_unit): Update.
9316 (load_full_comp_unit): Update.
9317 (find_partial_die): Update.
9318 (dwarf2_read_addr_index): Update.
9319 (read_signatured_type): Update.
9321 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9323 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
9324 m_header_read_in>: New fields.
9325 <get_header>: New method.
9326 * dwarf2/read.c (per_cu_header_read_in): Remove.
9327 (dwarf2_per_cu_data::get_header): New.
9328 (dwarf2_per_cu_data::addr_size): Update.
9329 (dwarf2_per_cu_data::offset_size): Update.
9330 (dwarf2_per_cu_data::ref_addr_size): Update.
9332 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9334 * dwarf2/read.c (load_cu): Return dwarf2_cu.
9335 (dw2_do_instantiate_symtab): Update.
9336 (queue_and_load_all_dwo_tus): Change parameter from
9337 dwarf2_per_cu_data to dwarf2_cu.
9338 (dwarf2_fetch_die_loc_sect_off): Update.
9339 (dwarf2_fetch_constant_bytes): Update.
9340 (dwarf2_fetch_die_type_sect_off): Update.
9342 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9344 * dwarf2/read.c (process_full_comp_unit,
9345 process_full_type_unit): Remove per_cu, per_objfile paramters.
9346 Add dwarf2_cu parameter.
9347 (process_queue): Update.
9349 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9351 * dwarf2/read.c (create_cu_from_index_list): Replace
9352 dwarf2_per_objfile parameter with dwarf2_per_bfd.
9353 (create_cus_from_index_list): Likewise.
9354 (create_cus_from_index): Likewise.
9355 (create_signatured_type_table_from_index): Likewise.
9356 (create_cus_from_debug_names_list): Likewise.
9357 (create_cus_from_debug_names): Likewise.
9358 (dwarf2_read_gdb_index): Update.
9359 (dwarf2_read_debug_names): Update.
9361 2020-05-27 Tom Tromey <tom@tromey.com>
9362 Simon Marchi <simon.marchi@efficios.com>
9364 * dwarf2/read.h (struct dwarf2_per_objfile)
9365 <get_type_for_signatured_type, set_type_for_signatured_type>:
9367 <m_type_map>: New member.
9368 (struct signatured_type) <type>: Remove.
9370 (dwarf2_per_objfile::get_type_for_signatured_type,
9371 dwarf2_per_objfile::set_type_for_signatured_type): New.
9372 (get_signatured_type): Use new methods.
9374 2020-05-27 Tom Tromey <tom@tromey.com>
9375 Simon Marchi <simon.marchi@efficios.com>
9377 * dwarf2/read.h (struct type_unit_group_unshareable): New.
9378 (struct dwarf2_per_objfile) <type_units>: New member.
9379 <get_type_unit_group_unshareable>: New method.
9380 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
9381 num_symtabs, symtabs>: Remove; move to
9382 type_unit_group_unshareable.
9383 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
9384 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
9385 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
9387 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9389 * dwarf2/read.h (struct dwarf2_per_cu_data):
9390 <dwarf2_per_objfile>: Remove.
9391 * dwarf2/read.c (create_cu_from_index_list): Don't assign
9393 (create_signatured_type_table_from_index): Likewise.
9394 (create_signatured_type_table_from_debug_names): Likewise.
9395 (create_debug_type_hash_table): Likewise.
9396 (fill_in_sig_entry_from_dwo_entry): Likewise.
9397 (create_type_unit_group): Likewise.
9398 (read_comp_units_from_section): Likewise.
9399 (create_cus_hash_table): Likewise.
9401 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9403 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
9404 dwarf2_per_cu_data::dwarf2_per_objfile.
9405 (compute_compunit_symtab_includes): Likewise.
9406 (dwarf2_cu::start_symtab): Likewise.
9408 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9410 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
9412 * dwarf2/read.c (get_die_type_at_offset): Likewise.
9413 (read_namespace_alias): Update.
9414 (lookup_die_type): Update.
9415 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
9416 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
9418 (disassemble_dwarf_expression): Update.
9420 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9422 * dwarf2/read.h (struct dwarf2_queue_item): Add
9423 dwarf2_per_objfile parameter, assign new parameter.
9424 <per_objfile>: New field.
9425 * dwarf2/read.c (free_one_cached_comp_unit): Add
9426 dwarf2_per_objfile parameter.
9427 (queue_comp_unit): Likewise.
9428 (dw2_do_instantiate_symtab): Update.
9429 (process_psymtab_comp_unit): Update.
9430 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
9431 (process_imported_unit_die): Update.
9432 (queue_and_load_dwo_tu): Update.
9433 (follow_die_offset): Update.
9434 (follow_die_sig_1): Update.
9436 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9438 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
9439 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
9440 (read_call_site_scope): Assign per_objfile.
9441 (dwarf2_per_cu_data::objfile): Remove.
9442 * gdbtypes.h (struct call_site) <per_objfile>: New member.
9443 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
9444 dwarf2_per_objfile parameter.
9445 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
9446 dwarf2_per_objfile parameter.
9447 (dwarf_expr_reg_to_entry_parameter): Add output
9448 dwarf2_per_objfile parameter.
9449 (locexpr_get_frame_base): Update.
9450 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
9451 <push_dwarf_reg_entry_value>: Update.
9452 <call_site_to_target_addr>: Update.
9453 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
9455 (value_of_dwarf_reg_entry): Update.
9456 (rw_pieced_value): Update.
9457 (indirect_synthetic_pointer): Update.
9458 (dwarf2_evaluate_property): Update.
9459 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
9461 (locexpr_read_variable): Update.
9462 (locexpr_get_symbol_read_needs): Update.
9463 (loclist_read_variable): Update.
9465 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9467 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9468 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9469 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9471 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9472 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9473 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9475 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
9476 sect_variable_value): Add dwarf2_per_objfile parameter.
9477 (class dwarf_evaluate_loc_desc) <dwarf_call,
9478 dwarf_variable_value>: Update.
9479 (fetch_const_value_from_synthetic_pointer): Add
9480 dwarf2_per_objfile parameter.
9481 (fetch_const_value_from_synthetic_pointer): Update.
9482 (coerced_pieced_ref): Update.
9483 (class symbol_needs_eval_context) <dwarf_call,
9484 dwarf_variable_value>: Update.
9485 (dwarf2_compile_expr_to_ax): Update.
9487 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9489 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
9491 (dwarf2_evaluate_loc_desc_full): Update.
9493 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9495 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
9497 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
9498 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
9499 dwarf2_per_objfile parameter.
9500 (decode_debug_loc_dwo_addresses): Likewise.
9501 (dwarf2_find_location_expression): Update.
9502 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
9503 (locexpr_describe_location_piece): Add dwarf2_per_objfile
9505 (disassemble_dwarf_expression): Add dwarf2_per_objfile
9507 (locexpr_describe_location_1): Likewise.
9508 (locexpr_describe_location): Update.
9510 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9512 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
9514 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
9515 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
9516 (dwarf2_compile_property_to_c): Update.
9517 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
9518 use text offset from objfile.
9519 (locexpr_tracepoint_var_ref): Update.
9520 (locexpr_generate_c_location): Update.
9521 (loclist_describe_location): Update.
9522 (loclist_tracepoint_var_ref): Update.
9523 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
9524 dwarf2_per_objfile parameter.
9525 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
9526 use text offset from objfile.
9527 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
9529 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9531 * dwarf2/expr.h (struct dwarf_expr_context)
9532 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
9534 <per_objfile>: New member.
9535 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
9536 dwarf2_per_objfile parameter. Don't set offset, set
9538 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
9539 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
9540 a dwarf2_per_objfile object instead of an offset.
9541 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
9543 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
9544 to dwarf2_expr_executor constructor. Don't set offset.
9545 (dwarf2_fetch_cfa_info): Update.
9546 (struct dwarf2_frame_cache) <text_offset>: Remove.
9547 <per_objfile>: New field.
9548 (dwarf2_frame_cache): Update.
9549 (dwarf2_frame_prev_register): Update.
9550 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9551 <dwarf_evaluate_loc_desc>: Add constructor.
9552 (dwarf2_evaluate_loc_desc_full): Update.
9553 (dwarf2_locexpr_baton_eval): Update.
9554 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
9556 (dwarf2_loc_desc_get_symbol_read_needs): Update.
9558 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9560 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
9561 addr_sized_int_type>: Move to dwarf2_cu.
9562 <int_type>: Move to dwarf2_per_objfile.
9563 (struct dwarf2_per_objfile) <int_type>: Move here.
9564 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
9565 addr_sized_int_type>: Move here.
9566 (read_func_scope): Update.
9567 (read_array_type): Update.
9568 (read_tag_string_type): Update.
9569 (attr_to_dynamic_prop): Update.
9570 (dwarf2_per_cu_data::int_type): Rename to...
9571 (dwarf2_per_objfile::int_type): ... this.
9572 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
9573 (dwarf2_cu::addr_sized_int_type): ... this.
9574 (read_subrange_type): Update.
9575 (dwarf2_per_cu_data::addr_type): Rename to...
9576 (dwarf2_cu::addr_type): ... this.
9577 (set_die_type): Update.
9579 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9581 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
9582 data through per_cu->cu.
9584 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9586 * dwarf2/read.c (lookup_dwo_comp_unit): Change
9587 dwarf2_per_cu_data parameter fo dwarf2_cu.
9588 (lookup_dwo_type_unit): Likewise.
9589 (read_cutu_die_from_dwo): Likewise.
9590 (lookup_dwo_unit): Likewise.
9591 (open_and_init_dwo_file): Likewise.
9592 (lookup_dwo_cutu): Likewise.
9593 (lookup_dwo_comp_unit): Likewise.
9594 (lookup_dwo_type_unit): Likewise.
9595 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9596 (cutu_reader::cutu_reader): Update.
9598 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9600 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
9602 (process_full_type_unit): Likewise.
9603 (process_queue): Update.
9605 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9607 * dwarf2/read.c (recursively_compute_inclusions): Add
9608 dwarf2_per_objfile parameter.
9609 (compute_compunit_symtab_includes): Likewise.
9610 (process_cu_includes): Update.
9612 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9614 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
9616 (create_type_unit_group): Update.
9617 (process_psymtab_comp_unit_reader): Update.
9618 (build_type_psymtabs_reader): Update.
9620 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9622 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
9623 object through m_this_cu->cu.
9625 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9627 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
9629 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
9631 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9633 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
9634 per_objfile parameter.
9635 (load_full_type_unit): Add per_objfile parameter.
9636 (read_signatured_type): Likewise.
9637 (load_full_comp_unit): Likewise.
9638 (load_cu): Likewise.
9639 (dw2_do_instantiate_symtab): Likewise.
9640 (dw2_get_file_names): Likewise.
9641 (dw2_map_symtabs_matching_filename): Update.
9642 (dw_expand_symtabs_matching_file_matcher): Update.
9643 (dw2_map_symbol_filenames): Update.
9644 (process_psymtab_comp_unit): Add per_objfile parameter.
9645 (build_type_psymtabs_1): Update.
9646 (process_skeletonless_type_unit): Update.
9647 (dwarf2_build_psymtabs_hard): Update.
9648 (load_partial_comp_unit): Add per_objfile parameter.
9649 (scan_partial_symbols): Update.
9650 (load_full_comp_unit): Add per_objfile parameter.
9651 (process_imported_unit_die): Update.
9652 (create_cus_hash_table): Update.
9653 (find_partial_die): Update.
9654 (dwarf2_read_addr_index): Update.
9655 (follow_die_offset): Update.
9656 (dwarf2_fetch_die_loc_sect_off): Update.
9657 (dwarf2_fetch_constant_bytes): Update.
9658 (dwarf2_fetch_die_type_sect_off): Update.
9659 (follow_die_sig_1): Update.
9660 (load_full_type_unit): Add per_objfile parameter.
9661 (read_signatured_type): Likewise.
9663 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9665 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
9668 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9670 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
9671 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9672 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
9674 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9675 (create_cus_from_index): Update.
9676 (dwarf2_read_gdb_index): Update.
9677 (create_cus_from_debug_names): Update.
9678 (dwarf2_read_debug_names): Update.
9679 (get_abbrev_section_for_cu): Update.
9680 (create_all_comp_units): Update.
9681 (read_attribute_value): Update.
9682 (get_debug_line_section): Update.
9683 * dwarf2/index-cache.c (index_cache::store): Update.
9684 * dwarf2/index-write.c (save_gdb_index_command): Update.
9685 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
9687 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9689 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
9691 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
9692 dwarf2_per_cu_data::per_bfd.
9693 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
9694 (create_type_unit_group): Likewise.
9695 (queue_comp_unit): Remove reference to
9696 per_cu->dwarf2_per_objfile.
9697 (maybe_queue_comp_unit): Likewise.
9698 (fill_in_sig_entry_from_dwo_entry): Assign new field.
9699 (create_cus_hash_table): Assign new field.
9701 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9703 * dwarf2/read.c: Replace
9704 dwarf2_cu->per_cu->dwarf2_per_objfile references with
9705 dwarf2_cu->per_objfile throughout.
9707 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9709 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
9710 parameter, don't use per_cu->dwarf2_per_objfile.
9711 (dw2_instantiate_symtab): Likewise.
9712 (dw2_find_last_source_symtab): Update.
9713 (dw2_map_expand_apply): Update.
9714 (dw2_lookup_symbol): Update.
9715 (dw2_expand_symtabs_for_function): Update.
9716 (dw2_expand_all_symtabs): Update.
9717 (dw2_expand_symtabs_with_fullname): Update.
9718 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
9719 don't use per_cu->dwarf2_per_objfile.
9720 (dw2_expand_marked_cus): Update.
9721 (dw2_find_pc_sect_compunit_symtab): Update.
9722 (dw2_debug_names_lookup_symbol): Update.
9723 (dw2_debug_names_expand_symtabs_for_function): Update.
9724 (dw2_debug_names_map_matching_symbols): Update.
9725 (dwarf2_psymtab::expand_psymtab): Update.
9727 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9729 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
9730 <per_objfile>: New member.
9731 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
9732 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
9734 (cutu_reader::cutu_reader): Update.
9735 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
9737 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9739 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
9740 struct dwarf2_per_objfile.
9741 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
9743 * dwarf2/read.c (set_die_type): Update.
9744 (get_die_type_at_offset): Update.
9746 2020-05-27 Tom Tromey <tom@tromey.com>
9747 Simon Marchi <simon.marchi@efficios.com>
9749 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
9751 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
9752 get_symtab, set_symtab>: New methods.
9753 <m_symtabs>: New field.
9754 (struct dwarf2_psymtab): Derive from partial_symtab.
9755 <readin_p, get_compunit_symtab>: Declare methods.
9756 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
9757 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
9759 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
9760 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
9761 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9762 (dw2_symtab_iter_next, dw2_print_stats)
9763 (dw2_expand_symtabs_with_fullname)
9764 (dw2_expand_symtabs_matching_one)
9765 (dw_expand_symtabs_matching_file_matcher)
9766 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
9767 (dw2_debug_names_iterator::next)
9768 (dw2_debug_names_map_matching_symbols)
9769 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
9770 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
9771 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
9773 (get_compunit_symtab, process_full_comp_unit)
9774 (process_full_type_unit): Update.
9775 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
9777 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9779 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
9780 then introduce a new dwarf2_per_objfile type.
9781 <read_line_string>: Move to the new dwarf2_per_objfile type.
9782 <objfile>: Likewise.
9783 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
9784 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
9785 dwarf2_per_objfile->per_bfd.
9786 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
9787 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
9788 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
9789 (dwarf2_per_bfd::free_cached_comp_units): ... this.
9790 (dwarf2_has_info): Allocate dwarf2_per_bfd.
9791 (dwarf2_per_objfile::locate_sections): Rename to...
9792 (dwarf2_per_bfd::locate_sections): ... this.
9793 (dwarf2_per_objfile::get_cutu): Rename to...
9794 (dwarf2_per_bfd::get_cutu): ... this.
9795 (dwarf2_per_objfile::get_cu): Rename to...
9796 (dwarf2_per_bfd::get_cu): ... this.
9797 (dwarf2_per_objfile::get_tu): Rename to...
9798 (dwarf2_per_bfd::get_tu): ... this.
9799 (dwarf2_per_objfile::allocate_per_cu): Rename to...
9800 (dwarf2_per_bfd::allocate_per_cu): ... this.
9801 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
9802 (dwarf2_per_bfd::allocate_signatured_type): ... this.
9803 (get_gdb_index_contents_ftype): Change parameter from
9804 dwarf2_per_objfile to dwarf2_per_bfd.
9805 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
9806 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
9808 2020-05-27 Tom Tromey <tom@tromey.com>
9809 Simon Marchi <simon.marchi@efficios.com>
9811 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
9812 (allocate_piece_closure): Set "per_objfile" member.
9813 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
9814 (locexpr_describe_location, loclist_describe_location): Use new
9816 * dwarf2/read.c (read_call_site_scope)
9817 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
9818 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
9819 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
9820 handle_data_member_location): Set per_objfile member.
9821 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
9823 (struct dwarf2_loclist_baton) <per_objfile>: New member.
9825 2020-05-27 Tom Tromey <tom@tromey.com>
9827 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
9828 allocate_signatured_type>: Declare new methods.
9829 <m_num_psymtabs>: New member.
9830 (struct dwarf2_per_cu_data) <index>: New member.
9831 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
9832 (dwarf2_per_objfile::allocate_signatured_type): New methods.
9833 (create_cu_from_index_list): Use allocate_per_cu.
9834 (create_signatured_type_table_from_index)
9835 (create_signatured_type_table_from_debug_names)
9836 (create_debug_type_hash_table, add_type_unit)
9837 (read_comp_units_from_section): Use allocate_signatured_type.
9839 2020-05-27 Tom Tromey <tom@tromey.com>
9841 * psymtab.c (partial_map_expand_apply)
9842 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9843 (psym_lookup_global_symbol_language)
9844 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9845 (psym_print_stats, psym_expand_symtabs_for_function)
9846 (psym_map_symbol_filenames, psym_map_matching_symbols)
9847 (psym_expand_symtabs_matching)
9848 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9849 (maintenance_check_psymtabs): Update.
9850 * psympriv.h (struct partial_symtab) <readin_p,
9851 get_compunit_symtab>: Add objfile parameter.
9852 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
9854 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
9855 get_compunit_symtab>: Likewise.
9856 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
9858 2020-05-27 Tom Tromey <tom@tromey.com>
9860 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
9862 * dwarf2/read.c (delete_file_name_entry): Fix comment.
9863 (create_cu_from_index_list)
9864 (create_signatured_type_table_from_index)
9865 (create_signatured_type_table_from_debug_names)
9866 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
9867 (dwarf2_create_include_psymtab)
9868 (create_debug_type_hash_table, add_type_unit)
9869 (create_type_unit_group, read_comp_units_from_section)
9870 (dwarf2_compute_name, create_cus_hash_table)
9871 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9872 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
9874 (dw2_get_real_path): Likewise. Change argument to
9877 2020-05-27 Luis Machado <luis.machado@linaro.org>
9880 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
9881 for ldrd (immediate).
9883 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9885 * command.h: Add comment giving the name of class_tui.
9886 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
9887 create the fake command for the help for class_tui.
9889 2020-05-26 Tom Tromey <tromey@adacore.com>
9891 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
9892 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
9893 (val_atr): New function.
9894 (value_val_atr): Use it.
9895 * ada-valprint.c (print_optional_low_bound): Change low bound
9897 (val_print_packed_array_elements): Don't call discrete_position.
9898 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
9899 discrete_position for enum types.
9900 * language.c (default_print_array_index): Change type.
9901 * language.h (struct language_defn) <la_print_array_index>: Add
9902 index_type parameter, change type of index_value.
9903 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
9904 (default_print_array_index): Update.
9905 * valprint.c (maybe_print_array_index): Don't call
9906 value_from_longest. Update.
9907 (value_print_array_elements): Don't call discrete_position.
9909 2020-05-26 Tom Tromey <tromey@adacore.com>
9911 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
9912 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
9914 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
9917 * avr-tdep.c (avr_integer_to_address): Return data or code
9918 address accordingly to the second 'type' argument of the
9921 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
9923 * infcmd.c, inferior.h: (construct_inferior_arguments):
9924 Moved function from here to gdbsupport/common-inferior.{h,cc}
9926 2020-05-23 Tom Tromey <tom@tromey.com>
9928 Revert commit eca1f90c:
9929 * NEWS: Remove entry for completion styling.
9930 * completer.c (_rl_completion_prefix_display_length): Move
9932 (gdb_fnprint): Revert.
9933 (gdb_display_match_list_1): Likewise.
9934 * cli/cli-style.c (completion_prefix_style)
9935 (completion_difference_style, completion_suffix_style): Remove.
9936 (_initialize_cli_style): Revert.
9937 * cli/cli-style.h (completion_prefix_style)
9938 (completion_difference_style, completion_suffix_style): Don't
9941 2020-05-24 Pedro Alves <palves@redhat.com>
9943 * symtab.c (completion_list_add_name): Return boolean indication
9944 of whether the symbol matched.
9945 (completion_list_add_symbol): Don't try to remove C++ aliases if
9946 the symbol didn't match in the first place.
9947 * symtab.h (completion_list_add_name): Return bool.
9949 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
9951 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
9954 2020-05-23 Joel Brobecker <brobecker@adacore.com>
9958 2020-05-23 Tom Tromey <tom@tromey.com>
9960 * NEWS: Add entry for completion styling.
9961 * completer.c (_rl_completion_prefix_display_length): Move
9962 declaration earlier.
9963 (gdb_fnprint): Use completion_style.
9964 (gdb_display_match_list_1): Likewise.
9965 * cli/cli-style.c (completion_prefix_style)
9966 (completion_difference_style, completion_suffix_style): New
9968 (_initialize_cli_style): Register new globals.
9969 * cli/cli-style.h (completion_prefix_style)
9970 (completion_difference_style, completion_suffix_style): Declare.
9972 2020-05-23 Pedro Alves <palves@redhat.com>
9974 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
9975 (parse_escape): Use ISDIGIT instead of isdigit.
9976 (puts_debug): Use gdb_isprint instead of isprint.
9977 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
9978 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
9979 ISSPACE instead of isspace.
9980 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
9982 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
9983 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
9984 instead of isxdigit and ISDIGIT instead of isdigit.
9986 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9988 * gdbtypes.h (struct type) <field>: New method.
9989 (TYPE_FIELDS): Remove, replace all uses with either type::fields
9992 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9994 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
9995 (TYPE_FIELDS): Use type::fields. Change all call sites that
9996 modify the propery to use type::set_fields instead.
9998 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10000 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
10001 type::num_fields instead.
10003 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10005 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
10007 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
10008 that modify the number of fields to use type::set_num_fields
10011 2020-05-22 Tom Tromey <tromey@adacore.com>
10013 * compile/compile-object-load.h (munmap_list_free): Don't
10016 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
10018 * annotate.c (annotate_source_line): Update return type, add call
10019 to update current symtab and line.
10020 * annotate.h (annotate_source_line): Update return type, and
10021 extend header comment.
10022 * source.c (info_line_command): Check annotation_level before
10023 calling annotate_source_line.
10024 * stack.c (print_frame_info): If calling annotate_source_line
10025 returns true, then don't print any other source line information.
10027 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10029 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
10031 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10033 * coffread.c (patch_type): Remove NULL check before xfree.
10034 * corefile.c (set_gnutarget): Likewise.
10035 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
10036 * exec.c (build_section_table): Likewise.
10037 * remote.c (remote_target::pass_signals): Likewise.
10038 * utils.c (n_spaces): Likewise.
10039 * cli/cli-script.c (document_command): Likewise.
10040 * i386-windows-tdep.c (core_process_module_section): Likewise.
10041 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
10043 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
10045 * symfile.c (reread_symbols): Clear objfile's section_offsets
10046 vector and section indices, re-compute them by calling
10049 2020-05-20 Tom Tromey <tromey@adacore.com>
10051 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
10052 (desc_one_bound, desc_index_type): Compute field name.
10054 2020-05-20 Tom de Vries <tdevries@suse.de>
10057 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
10059 2020-05-20 Alan Modra <amodra@gmail.com>
10062 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
10064 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
10065 passed to bfd_set_filename.
10066 * symfile-mem.c (add_vsyscall_page): Likewise for string
10067 passed to symbol_file_add_from_memory.
10068 (symbol_file_add_from_memory): Make name param a const char* and
10071 2020-05-20 Alan Modra <amodra@gmail.com>
10073 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
10074 rather than accessing bfd->filename directly.
10075 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
10076 and use bfd_section_name.
10077 * dwarf2/frame.c (decode_frame_entry): Likewise.
10078 * exec.c (exec_set_section_address): Likewise.
10079 * solib-aix.c (solib_aix_bfd_open): Likewise.
10080 * stap-probe.c (get_stap_base_address): Likewise.
10081 * symfile.c (reread_symbols): Likewise.
10083 2020-05-19 Tom Tromey <tromey@adacore.com>
10085 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
10087 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10089 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
10091 2020-05-19 Pedro Alves <palves@redhat.com>
10093 * NEWS (set exec-file-mismatch): Adjust entry.
10094 * exec.c: Include "build-id.h".
10095 (validate_exec_file): Try to match build IDs instead of filenames.
10096 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
10097 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
10098 and pass down 'warn_if_slow'.
10099 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
10100 gdb_bfd_open_closure to pass it down.
10101 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
10103 2020-05-19 Pedro Alves <palves@redhat.com>
10105 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
10106 * target.c (target_fileio_open_1): Rename to target_fileio_open
10107 and make extern. Use bool.
10108 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
10109 (target_fileio_read_alloc_1): Adjust.
10110 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
10111 (target_fileio_open_warn_if_slow): Delete declaration.
10113 2020-05-19 Pedro Alves <palves@redhat.com>
10115 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
10116 Adjust all callers.
10118 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
10120 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
10121 whether disp is negative.
10123 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10125 * symfile.h (struct symfile_segment_data)
10126 <~symfile_segment_data>: Remove.
10127 <segment_info>: Change to std::vector.
10128 * symfile.c (default_symfile_segments): Update.
10129 * elfread.c (elf_symfile_segments): Update.
10131 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10133 * symfile.h (struct symfile_segment_data) <struct segment>: New.
10135 <segment_bases, segment_sizes>: Remove.
10136 * symfile.c (default_symfile_segments): Update.
10137 * elfread.c (elf_symfile_segments): Update.
10138 * remote.c (remote_target::get_offsets): Update.
10139 * solib-target.c (solib_target_relocate_section_addresses):
10142 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10144 * symfile.h (struct symfile_segment_data): Initialize fields.
10145 <~symfile_segment_data>: Add.
10146 (symfile_segment_data_up): New.
10147 (struct sym_fns) <sym_segments>: Return a
10148 symfile_segment_data_up.
10149 (default_symfile_segments): Return a symfile_segment_data_up.
10150 (free_symfile_segment_data): Remove.
10151 (get_symfile_segment_data): Return a symfile_segment_data_up.
10152 * symfile.c (default_symfile_segments): Likewise.
10153 (get_symfile_segment_data): Likewise.
10154 (free_symfile_segment_data): Remove.
10155 (symfile_find_segment_sections): Update.
10156 * elfread.c (elf_symfile_segments): Return a
10157 symfile_segment_data_up.
10158 * remote.c (remote_target::get_offsets): Update.
10159 * solib-target.c (solib_target_relocate_section_addresses):
10161 * symfile-debug.c (debug_sym_segments): Return a
10162 symfile_segment_data_up.
10164 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10167 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
10168 Hardcode register numbers.
10171 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
10172 procfs_find_LDT_entry): Remove.
10173 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
10174 procfs_find_LDT_entry): Remove.
10175 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
10178 2020-05-17 Pedro Alves <palves@redhat.com>
10179 Andrew Burgess <andrew.burgess@embecosm.com>
10180 Keno Fischer <keno@juliacomputing.com>
10183 * breakpoint.c (build_target_condition_list): Update comments.
10184 (build_target_command_list): Update comments and skip matching
10186 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
10187 a separate function. Simplify "set breakpoint auto-hw off"
10189 (insert_breakpoints): Update comment.
10190 (tracepoint_locations_match): New parameter. For breakpoints,
10191 compare location types too, if the caller wants to.
10192 (handle_automatic_hardware_breakpoints): New functions.
10193 (bp_location_is_less_than): Also sort by location type and
10194 hardware breakpoint length.
10195 (update_global_location_list): Handle "set breakpoint auto-hw on"
10197 (update_breakpoint_locations): Ask breakpoint_locations_match to
10198 ignore location types.
10200 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10202 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
10203 type::name instead.
10205 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10207 * gdbtypes.h (struct type) <name, set_name>: New methods.
10208 (TYPE_CODE): Use type::name. Change all call sites used to set
10209 the name to use type::set_name instead.
10211 2020-05-16 Tom Tromey <tom@tromey.com>
10213 * top.c (quit_force): Update.
10214 * infrun.c (handle_no_resumed): Update.
10215 * top.h (all_uis): New function.
10218 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10220 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
10222 2020-05-16 Pedro Alves <palves@redhat.com>
10225 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
10227 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
10229 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
10231 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
10232 (sparc64_adi_info): Likewise.
10234 2020-05-15 Tom Tromey <tom@tromey.com>
10236 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
10238 (lookup_objfile_from_block): Remove.
10239 (lookup_symbol_in_block, lookup_symbol_in_static_block)
10240 (lookup_global_symbol): Use block_objfile.
10241 * symtab.h (lookup_objfile_from_block): Don't declare.
10242 * printcmd.c (clear_dangling_display_expressions): Use
10244 * parse.c (operator_check_standard): Use block_objfile.
10246 2020-05-15 Tom Tromey <tom@tromey.com>
10248 * language.c (language_alloc_type_symbol): Set
10250 * symtab.c (initialize_objfile_symbol): Remove.
10251 (allocate_symbol): Remove.
10252 (allocate_template_symbol): Remove.
10253 * dwarf2/read.c (fixup_go_packaging): Use "new".
10254 (new_symbol): Use "new".
10255 (read_variable): Don't call initialize_objfile_symbol. Use
10257 (read_func_scope): Use "new".
10258 * xcoffread.c (process_xcoff_symbol): Don't call
10259 initialize_objfile_symbol.
10260 (SYMBOL_DUP): Remove.
10261 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
10263 * symtab.h (allocate_symbol, initialize_objfile_symbol)
10264 (allocate_template_symbol): Don't declare.
10265 (struct symbol): Add copy constructor. Change defaults.
10266 * jit.c (finalize_symtab): Use "new".
10267 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
10269 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10270 (common_block_end): Use "new".
10271 * mdebugread.c (parse_symbol): Use "new".
10272 (new_symbol): Likewise.
10274 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10276 * NEWS: Mention changes to help and apropos.
10278 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10280 * command.h (enum command_class): Improve comments, document
10281 that class_alias is for user-defined aliases, give the class
10282 name for each class, remove unused class_xdb.
10283 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
10284 * breakpoint.c (_initialize_breakpoint): Replace class_alias
10285 by a precise class.
10286 * infcmd.c (_initialize_infcmd): Likewise.
10287 * reverse.c (_initialize_reverse): Likewise.
10288 * stack.c (_initialize_stack): Likewise.
10289 * symfile.c (_initialize_symfile): Likewise.
10290 * tracepoint.c (_initialize_tracepoint): Likewise.
10292 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10294 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
10295 when their aliased command is traversed.
10296 (help_cmd): Add fput_command_names_styled call to
10297 output command name and aliases when command has an alias.
10299 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10301 * cli/cli-decode.h (help_cmd_list): Remove declaration.
10302 * cli/cli-decode.c (help_cmd_list): Declare as static,
10303 remove prefix argument, use bool for recurse arg, rework to show the aliases of
10304 a command together with the command.
10305 (fput_command_name_styled, fput_command_names_styled): New functions.
10306 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
10307 fput_command_name_styled.
10308 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
10309 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
10311 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10313 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
10314 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
10315 * command.h (cmd_show_list): Likewise.
10316 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
10317 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
10319 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10321 * unittests/command-def-selftests.c (traverse_command_structure):
10322 Verify all commands of a list have the same prefix command and
10323 that only the top cmdlist commands have a null prefix.
10325 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10327 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
10328 as prefix, not one of its aliases.
10329 (set_cmd_prefix): Remove.
10330 (do_add_cmd): Centralize the setting of the prefix of a command, when
10331 command is defined after its full chain of prefix commands.
10332 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
10333 (add_setshow_cmd_full): Likewise.
10334 (update_prefix_field_of_prefixed_commands): New function.
10335 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
10336 update_prefix_field_of_prefixed_commands.
10337 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
10338 addresses of remote_set_cmdlist and remote_show_cmdlist given
10339 as argument, not the address of an argument.
10340 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
10341 * gdb/remote.c (_initialize_remote): Likewise.
10343 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10345 * cli/cli-cmds.c (alias_command): Check for an existing alias
10346 using lookup_cmd_composition, as valid_command_p is too strict
10347 and forbids aliases that are the prefix of an existing alias
10349 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
10350 command is properly recognised as a valid command.
10352 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10354 * unittests/help-doc-selftests.c: Rename to
10355 unittests/command-def-selftests.c
10356 * unittests/command-def-selftests.c (help_doc_tests): Update some
10358 (command_structure_tests, traverse_command_structure): New namespace
10360 (command_structure_invariants_tests): New function.
10361 (_initialize_command_def_selftests) Renamed from
10362 _initialize_help_doc_selftests, register command_structure_invariants
10365 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10367 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
10368 an alias of 'show'.
10370 2020-05-15 Joel Brobecker <brobecker@adacore.com>
10372 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
10373 ada_is_fixed_point_type. Update all callers.
10374 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
10376 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
10377 Update all callers.
10378 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
10379 print_fixed_point_type. Update all callers.
10380 * ada-valprint.c (ada_value_print_num): Replace call to
10381 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
10383 2020-05-14 Kevin Buettner <kevinb@redhat.com>
10385 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
10387 (cpu_supports_bts): Add CV_AMD case.
10389 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
10390 Simon Marchi <simon.marchi@efficios.com>
10392 * infrun.c (stop_all_threads): Collect multiple wait events at
10395 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
10397 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
10398 type::code instead.
10400 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
10402 * gdbtypes.h (struct type) <code, set_code>: New methods.
10403 (TYPE_CODE): Use type::code. Change all call sites used to set
10404 the code to use type::set_code instead.
10406 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10407 Tom de Vries <tdevries@suse.de>
10408 Pedro Alves <palves@redhat.com>
10411 * infrun.c (stop_all_threads): Do NOT ignore
10412 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
10413 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
10415 (handle_no_resumed): Remove code handling a live inferior with no
10417 * remote.c (has_single_non_exited_thread): New.
10418 (remote_target::update_thread_list): Do not delete a thread if is
10419 the last thread of the process.
10420 * thread.c (thread_select): Call delete_exited_threads instead of
10423 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10425 * infrun.c (stop_all_threads): Enable/disable thread events of all
10426 targets. Move a debug message denoting the end of the function
10427 into the SCOPED_EXIT block.
10429 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10431 * process-stratum-target.h: Include <set>.
10432 (all_non_exited_process_targets, switch_to_target_no_thread): New
10433 function declarations.
10434 * process-stratum-target.c (all_non_exited_process_targets)
10435 (switch_to_target_no_thread): New function implementations.
10437 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10439 * infrun.c (handle_inferior_event): Extract out a piece of code
10441 (mark_non_executing_threads): ...this new function.
10443 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10445 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
10448 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10450 * regcache.c (regcache_read_pc_protected): New function
10451 implementation that returns 0 if the PC cannot read via
10452 'regcache_read_pc'.
10453 * infrun.c (proceed): Call 'regcache_read_pc_protected'
10454 instead of 'regcache_read_pc'.
10455 (keep_going_pass_signal): Ditto.
10457 2020-05-13 Tom Tromey <tromey@adacore.com>
10459 * ada-lang.c (align_value): Remove.
10460 (ada_template_to_fixed_record_type_1): Use align_up.
10462 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10464 * async-event.c: Update the copyright year.
10465 * async-event.h: Update the copyright year.
10467 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
10469 * objfiles.h (is_addr_in_objfile,
10470 shared_objfile_contains_address_p): Return bool.
10471 * objfile.c (is_addr_in_objfile,
10472 shared_objfile_contains_address_p): Return bool.
10474 2020-05-11 Tom Tromey <tromey@adacore.com>
10476 * cli/cli-cmds.c (info_command): Restore.
10477 (_initialize_cli_cmds): Use add_prefix_command for "info".
10478 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
10480 2020-05-11 Tom Tromey <tromey@adacore.com>
10482 * ada-lang.c (ada_value_primitive_field): Now public.
10483 * ada-lang.h (ada_value_primitive_field): Declare.
10484 * ada-valprint.c (print_field_values): Use
10485 ada_value_primitive_field for wrapper fields.
10487 2020-05-11 Tom de Vries <tdevries@suse.de>
10489 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
10492 2020-05-11 Tom de Vries <tdevries@suse.de>
10495 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
10496 with length 0, if not gdb-produced.
10497 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
10499 2020-05-09 Tom de Vries <tdevries@suse.de>
10502 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
10505 2020-05-09 Tom Tromey <tom@tromey.com>
10507 * top.c (server_command): Now bool.
10508 * top.h (server_command): Now bool.
10510 2020-05-08 Tom Tromey <tromey@adacore.com>
10512 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
10513 already being processed.
10515 2020-05-08 Tom Tromey <tom@tromey.com>
10517 * printcmd.c (struct display) <next>: Remove.
10518 <display>: New constructor.
10519 <exp_string>: Now a std::string.
10520 <enabled_p>: Now a bool.
10521 (display_number): Move definition earlier.
10522 (displays): Rename from display_chain. Now a std::vector.
10523 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
10524 (display_command): Update.
10525 (do_one_display, disable_display)
10526 (enable_disable_display_command, do_enable_disable_display):
10528 (free_display): Remove.
10529 (clear_displays): Rewrite.
10530 (delete_display): Update.
10531 (map_display_numbers): Use function_view. Remove "data"
10533 (do_delete_display): Remove.
10534 (undisplay_command): Update.
10535 (do_one_display, do_displays, disable_display)
10536 (info_display_command): Update.
10537 (do_enable_disable_display): Remove.
10538 (enable_disable_display_command)
10539 (clear_dangling_display_expressions): Update.
10541 2020-05-08 Tom Tromey <tom@tromey.com>
10543 * symtab.c (set_symbol_cache_size)
10544 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
10545 (maintenance_print_symbol_cache_statistics): Update.
10546 * symmisc.c (print_symbol_bcache_statistics)
10547 (print_objfile_statistics, maintenance_print_objfiles)
10548 (maintenance_info_symtabs, maintenance_check_symtabs)
10549 (maintenance_expand_symtabs, maintenance_info_line_tables):
10551 * symfile-debug.c (set_debug_symfile): Update.
10552 * source.c (forget_cached_source_info): Update.
10553 * python/python.c (gdbpy_progspaces): Update.
10554 * psymtab.c (maintenance_info_psymtabs): Update.
10555 * probe.c (parse_probes): Update.
10556 * linespec.c (iterate_over_all_matching_symtabs)
10557 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
10558 * guile/scm-progspace.c (gdbscm_progspaces): Update.
10559 * exec.c (exec_target::close): Update.
10560 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
10561 * breakpoint.c (print_one_breakpoint_location)
10562 (create_longjmp_master_breakpoint)
10563 (create_std_terminate_master_breakpoint): Update.
10564 * progspace.c (program_spaces): Now a std::vector.
10565 (maybe_new_address_space): Update.
10566 (add_program_space): Remove.
10567 (program_space::program_space): Update.
10568 (remove_program_space): Update.
10569 (number_of_program_spaces): Remove.
10570 (print_program_space, update_address_spaces): Update.
10571 * progspace.h (program_spaces): Change type.
10572 (ALL_PSPACES): Remove.
10573 (number_of_program_spaces): Don't declare.
10574 (struct program_space) <next>: Remove.
10576 2020-05-08 Tom Tromey <tom@tromey.com>
10578 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
10579 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
10580 (enable_break): Update.
10581 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
10582 (frv_fdpic_find_canonical_descriptor): Update.
10583 (frv_fetch_objfile_link_map): Update.
10584 * progspace.c (program_space::free_all_objfiles): Update.
10585 (program_space::solibs): New method.
10586 * progspace.h (struct program_space) <solibs>: New method.
10587 * solist.h (master_so_list): Don't declare.
10588 (ALL_SO_LIBS): Remove.
10589 * solib.h (so_list_head): Remove.
10590 (update_solib_list): Update comment.
10591 * solib.c (master_so_list): Remove.
10592 (solib_used, update_solib_list, solib_add)
10593 (info_sharedlibrary_command, clear_solib)
10594 (reload_shared_libraries_1, remove_user_added_objfile): Update.
10596 2020-05-08 Tom Tromey <tom@tromey.com>
10598 * extension.c (extension_languages): Now a std::array.
10599 (ALL_EXTENSION_LANGUAGES): Remove.
10600 (get_ext_lang_defn, get_ext_lang_of_file)
10601 (eval_ext_lang_from_control_command): Update.
10602 (finish_ext_lang_initialization)
10603 (auto_load_ext_lang_scripts_for_objfile)
10604 (ext_lang_type_printers::ext_lang_type_printers)
10605 (apply_ext_lang_type_printers)
10606 (ext_lang_type_printers::~ext_lang_type_printers)
10607 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
10608 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
10609 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
10610 (get_matching_xmethod_workers, ext_lang_colorize)
10611 (ext_lang_before_prompt): Update.
10612 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
10614 2020-05-08 Tom Tromey <tom@tromey.com>
10616 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
10618 <swap_string, m_string>: Remove.
10619 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
10621 * stabsread.c (define_symbol, read_type): Update.
10622 * linespec.c (find_linespec_symbols): Update.
10623 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
10624 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
10625 * dbxread.c (read_dbx_symtab): Update.
10626 * cp-support.h (cp_canonicalize_string_full)
10627 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
10628 Return unique_xmalloc_ptr.
10629 * cp-support.c (inspect_type): Update.
10630 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
10631 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
10633 * c-typeprint.c (print_name_maybe_canonical): Update.
10634 * break-catch-throw.c (check_status_exception_catchpoint):
10637 2020-05-08 Tom de Vries <tdevries@suse.de>
10639 * infrun.c (follow_fork): Copy current_line and current_symtab to
10642 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10644 * async-event.c (struct async_signal_handler, struct
10645 async_event_handler): Reformat, remove typedef.
10647 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10649 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
10650 access thistype->main_type->dyn_prop_list directly.
10652 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10654 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
10655 (remove_dyn_prop): Remove. Update all users to use
10656 type::remove_dyn_prop.
10657 * gdbtypes.c (remove_dyn_prop): Rename to...
10658 (type::remove_dyn_prop): ... this.
10660 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
10662 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
10663 (add_dyn_prop): Remove. Update all users to use
10664 type::add_dyn_prop.
10665 * gdbtypes.c (add_dyn_prop): Rename to...
10666 (type::add_dyn_prop): ... this.
10668 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10670 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
10671 (get_dyn_prop): Remove. Update all users to use
10673 * gdbtypes.c (get_dyn_prop): Rename to...
10674 (type::dyn_prop): ... this.
10676 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
10678 * gdbtypes.h (struct main_type) <flag_static>: Remove.
10680 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
10682 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
10683 instruction, skip it if it's there.
10685 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
10687 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
10689 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
10691 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
10692 * gdbtypes.c (recursive_dump_type): Remove use of
10695 2020-05-03 Tom Tromey <tom@tromey.com>
10697 * breakpoint.c (catch_command, tcatch_command): Remove.
10698 (_initialize_breakpoint): Use add_basic_prefix_cmd,
10699 add_show_prefix_cmd.
10700 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
10701 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
10703 (add_internal_problem_command): Use add_basic_prefix_cmd,
10704 add_show_prefix_cmd.
10705 * mips-tdep.c (set_mipsfpu_command): Remove.
10706 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
10707 * dwarf2/index-cache.c (set_index_cache_command): Remove.
10708 (_initialize_index_cache): Use add_basic_prefix_cmd.
10709 * memattr.c (dummy_cmd): Remove.
10710 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
10711 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
10712 (_initialize_tui_win): Use add_basic_prefix_cmd,
10713 add_show_prefix_cmd.
10714 * cli/cli-logging.c (set_logging_command): Remove.
10715 (_initialize_cli_logging): Use add_basic_prefix_cmd,
10716 add_show_prefix_cmd.
10717 (show_logging_command): Remove.
10718 * target.c (target_command): Remove.
10719 (add_target): Use add_basic_prefix_cmd.
10721 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
10723 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
10725 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10727 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
10730 2020-04-30 Kamil Rytarowski <n54@gmx.com>
10732 * nbsd-nat.c (nbsd_enable_proc_events)
10733 (nbsd_nat_target::post_startup_inferior): Add.
10734 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
10735 (nbsd_nat_target::update_thread_list): Rewrite.
10736 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
10737 "PTRACE_LWP_CREATE".
10738 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
10740 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10742 * stack.c (_initialize_stack): Remove duplicated creation
10743 of "frame" command and "f" alias.
10745 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
10748 * gdbtypes.c (check_typedef): Calculate size of array of
10751 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
10754 * i386-tdep.c (i386_push_dummy_call): Call
10755 i386_thiscall_push_dummy_call.
10756 (i386_thiscall_push_dummy_call): New function.
10757 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
10758 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
10759 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
10761 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10763 * gdbarch.sh (do_read): Add shellcheck disable directive for
10766 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10768 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
10769 "referenced but not assigned" warning.
10771 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10773 * gdbarch.sh: Remove code that sets fallbackdefault.
10775 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10777 * gdbarch.sh: Use shell operators && and || instead of
10780 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10782 * gdbarch.sh: Use $(...) instead of `...`.
10784 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10786 * gdbarch.sh: Use double quotes around variables.
10788 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10790 * gdbarch.sh: Use %s with printf, instead of variables in the
10793 2020-04-29 Tom Tromey <tromey@adacore.com>
10796 * dwarf2/read.c (update_enumeration_type_from_children): Compute
10798 (read_enumeration_type): Call
10799 update_enumeration_type_from_children later. Update comments.
10800 (process_enumeration_scope): Don't create type fields.
10802 2020-04-29 Kamil Rytarowski <n54@gmx.com>
10804 * nbsd-tdep.c: Include "xml-syscall.h".
10805 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
10807 2020-04-29 Kamil Rytarowski <n54@gmx.com>
10809 * nbsd-nat.c: Include "sys/wait.h".
10810 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
10811 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
10812 (nbsd_nat_target::remove_exec_catchpoint)
10813 (nbsd_nat_target::set_syscall_catchpoint): Add.
10814 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
10815 (nbsd_nat_target::insert_exec_catchpoint)
10816 (nbsd_nat_target::remove_exec_catchpoint)
10817 (nbsd_nat_target::set_syscall_catchpoint): Add.
10818 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
10819 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
10820 `nbsd_get_syscall_number'.
10822 2020-04-29 Tom Tromey <tom@tromey.com>
10824 * stack.c (print_block_frame_labels): Remove.
10826 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
10829 * ada-valprint.c (val_print_packed_array_elements): Move array
10830 end bracket to new line.
10831 (ada_val_print_string): Remove extra spaces before first array
10833 * c-valprint.c (c_value_print_array): Likewise.
10834 * m2-valprint.c (m2_print_array_contents): Likewise.
10835 (m2_value_print_inner): Likewise.
10836 * p-valprint.c (pascal_value_print_inner): Likewise.
10837 * valprint.c (generic_val_print_array): Likewise.
10838 (value_print_array_elements): Move first array element and array
10839 end bracket to new line.
10841 2020-04-29 Tom de Vries <tdevries@suse.de>
10844 * linespec.c (find_method): Fix ix calculation.
10846 2020-04-28 Kamil Rytarowski <n54@gmx.com>
10848 * syscalls/update-netbsd.sh: New file.
10849 * syscalls/netbsd.xml: Regenerate.
10850 * data-directory/Makefile.in: Register `netbsd.xml' in
10853 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
10855 * syscalls/update-freebsd.sh: Add double quotes.
10857 2020-04-28 Tom Tromey <tom@tromey.com>
10860 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
10861 (cmdpy_init): Allow class_tui.
10863 2020-04-28 Mark Williams <mark@myosotissp.com>
10866 * dwarf2read.c: Add missing assingments to list_in_scope when
10867 start_symtab was already called.
10869 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
10872 * dwarf2/read.c (offset_map_type): Use
10873 gdb:hash_enum<sect_offset> as hash function.
10875 2020-04-28 Tom de Vries <tdevries@suse.de>
10877 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
10878 with DW_AT_signature.
10880 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
10882 * configure.ac: Remove check for fs_base/gs_base in
10884 * configure: Re-generate.
10885 * config.in: Re-generate.
10886 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
10887 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
10888 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
10890 2020-04-27 Luis Machado <luis.machado@linaro.org>
10892 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
10893 problematic inline frame unwinding situation.
10894 * frame.c (frame_id_computed_p): New function.
10895 * frame.h (frame_id_computed_p): New prototype.
10897 2020-04-26 Tom Tromey <tom@tromey.com>
10899 * command.h (enum command_class) <class_pseudo>: Remove.
10901 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10903 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
10906 2020-04-25 Kamil Rytarowski <n54@gmx.com>
10908 * inf-ptrace.c (inf_ptrace_target::wait): Remove
10909 `PT_GET_PROCESS_STATE' block.
10911 2020-04-24 Tom Tromey <tom@tromey.com>
10913 * symtab.h (symbol_get_demangled_name): Don't declare.
10914 * symtab.c (symbol_get_demangled_name): Remove.
10915 (general_symbol_info::natural_name)
10916 (general_symbol_info::demangled_name): Update.
10918 2020-04-24 Tom Tromey <tom@tromey.com>
10921 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
10923 2020-04-24 Tom Tromey <tom@tromey.com>
10926 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
10928 (new_symbol): Likewise.
10929 * compile/compile-object-load.c (get_out_value_type): Use
10930 symbol_matches_search_name.
10932 2020-04-24 Tom Tromey <tom@tromey.com>
10934 * dwarf2/read.c (add_partial_symbol): Do not call
10935 compute_and_set_names.
10937 2020-04-24 Tom Tromey <tom@tromey.com>
10939 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
10942 2020-04-24 Tom Tromey <tom@tromey.com>
10944 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
10945 (add_psymbol_to_list): New overload. Make old overload call new
10947 * psympriv.h (add_psymbol_to_list): New overload.
10949 2020-04-24 Tom Tromey <tom@tromey.com>
10951 * dwarf2/read.c (partial_die_info::read) <case
10952 DW_AT_linkage_name>: Use value_as_string.
10953 (dwarf2_string_attr): Use value_as_string.
10954 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
10956 * dwarf2/attribute.c (attribute::value_as_string): New method.
10958 2020-04-24 Tom Tromey <tom@tromey.com>
10960 * symtab.c (general_symbol_info::natural_name)
10961 (general_symbol_info::demangled_name): Check for language_rust.
10963 2020-04-24 Tom Tromey <tom@tromey.com>
10965 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
10966 (dwarf2_physname): ... from here.
10967 (partial_die_info::read): Add Rust "{" hack.
10969 2020-04-24 Tom Tromey <tom@tromey.com>
10971 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
10973 (symbol_set_demangled_name): Don't declare.
10974 * symtab.c (general_symbol_info::set_demangled_name): Rename from
10975 symbol_set_demangled_name.
10976 (general_symbol_info::set_language)
10977 (general_symbol_info::compute_and_set_names): Update.
10978 * minsyms.c (minimal_symbol_reader::install): Update.
10979 * dwarf2/read.c (new_symbol): Update.
10981 2020-04-24 Tom Tromey <tromey@adacore.com>
10984 * python/py-type.c (convert_field): Handle
10985 FIELD_LOC_KIND_DWARF_BLOCK.
10986 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
10987 (typy_get_dynamic): Nw function.
10988 (type_object_getset): Add "dynamic".
10991 2020-04-24 Tom Tromey <tromey@adacore.com>
10993 * ada-typeprint.c (print_choices, print_variant_part)
10994 (print_record_field_types_dynamic): New functions.
10995 (print_record_field_types): Use print_record_field_types_dynamic.
10997 2020-04-24 Tom Tromey <tromey@adacore.com>
10999 * dwarf2/read.c (handle_data_member_location): New overload.
11000 (dwarf2_add_field): Use it.
11001 (decode_locdesc): Add "computed" parameter. Update comment.
11002 * gdbtypes.c (is_dynamic_type_internal): Also look for
11003 FIELD_LOC_KIND_DWARF_BLOCK.
11004 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
11005 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
11006 virtual base classes.
11007 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
11008 FIELD_LOC_KIND_DWARF_BLOCK.
11010 2020-04-24 Tom Tromey <tromey@adacore.com>
11012 * dwarf2/read.c (read_structure_type): Handle dynamic length.
11013 * gdbtypes.c (is_dynamic_type_internal): Check
11014 TYPE_HAS_DYNAMIC_LENGTH.
11015 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
11016 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
11018 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
11021 2020-04-24 Tom Tromey <tromey@adacore.com>
11023 * dwarf2/read.c (struct variant_field): Rewrite.
11024 (struct variant_part_builder): New.
11025 (struct nextfield): Remove "variant" field. Add "offset".
11026 (struct field_info): Add "current_variant_part" and
11028 (alloc_discriminant_info): Remove.
11029 (alloc_rust_variant): New function.
11030 (quirk_rust_enum): Update.
11031 (dwarf2_add_field): Set "offset" member. Don't handle
11032 DW_TAG_variant_part.
11033 (offset_map_type): New typedef.
11034 (convert_variant_range, create_one_variant)
11035 (create_one_variant_part, create_variant_parts)
11036 (add_variant_property): New functions.
11037 (dwarf2_attach_fields_to_type): Call add_variant_property.
11038 (read_structure_type): Don't handle DW_TAG_variant_part.
11039 (handle_variant_part, handle_variant): New functions.
11040 (handle_struct_member_die): Use them.
11041 (process_structure_scope): Don't handle variant parts.
11042 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
11043 (struct discriminant_info): Remove.
11044 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
11045 (struct main_type) <flag_discriminated_union>: Remove.
11046 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
11047 (rust_enum_variant): Return int. Remove "contents". Rewrite.
11048 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
11050 * valops.c (value_union_variant): Remove.
11051 * value.h (value_union_variant): Don't declare.
11053 2020-04-24 Tom Tromey <tromey@adacore.com>
11055 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
11056 (ada_value_primitive_packed_val): Update.
11057 * ada-valprint.c (ada_value_print_1): Update.
11058 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
11059 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
11060 just an address. Use evaluate_for_locexpr_baton.
11061 (dwarf2_evaluate_property): Update.
11062 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
11064 * findvar.c (default_read_var_value): Update.
11065 * gdbtypes.c (compute_variant_fields_inner)
11066 (resolve_dynamic_type_internal): Update.
11067 (resolve_dynamic_type): Change type of valaddr parameter.
11068 * gdbtypes.h (resolve_dynamic_type): Update.
11069 * valarith.c (value_subscripted_rvalue): Update.
11070 * value.c (value_from_contents_and_address): Update.
11072 2020-04-24 Tom Tromey <tromey@adacore.com>
11074 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
11075 "push_initial_value" parameter.
11076 (dwarf2_evaluate_property): Likewise.
11077 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
11079 2020-04-24 Tom Tromey <tromey@adacore.com>
11081 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
11082 (variant::matches, compute_variant_fields_recurse)
11083 (compute_variant_fields_inner, compute_variant_fields): New
11085 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
11086 Use resolved_type after type is made.
11087 (operator==): Add new cases.
11088 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
11089 (struct discriminant_range, struct variant, struct variant_part):
11091 (union dynamic_prop_data) <variant_parts, original_type>: New
11093 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
11094 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
11096 * value.c (unpack_bits_as_long): Now public.
11097 * value.h (unpack_bits_as_long): Declare.
11099 2020-04-24 Tom Tromey <tromey@adacore.com>
11101 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
11102 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
11104 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
11106 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
11108 2020-04-24 Kamil Rytarowski <n54@gmx.com>
11110 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
11111 (remove_fork_catchpoint, post_startup_inferior)
11112 (post_attach): Move...
11113 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
11114 (remove_fork_catchpoint, post_startup_inferior)
11115 (post_attach): ...here.
11116 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
11117 (remove_fork_catchpoint, post_startup_inferior)
11118 (post_attach): Move...
11119 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
11120 (remove_fork_catchpoint, post_startup_inferior)
11121 (post_attach): ...here.
11123 2020-04-24 Tom Tromey <tromey@adacore.com>
11125 * nat/windows-nat.h (struct windows_thread_info)
11126 <pc_adjusted>: New member.
11127 * windows-nat.c (windows_fetch_one_register): Check
11129 (windows_nat_target::get_windows_debug_event)
11130 (windows_nat_target::wait): Set pc_adjusted.
11132 2020-04-24 Tom de Vries <tdevries@suse.de>
11134 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
11135 Run gdb-add-index inside temp dir.
11137 2020-04-23 Tom Tromey <tromey@adacore.com>
11139 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
11142 2020-04-23 Luis Machado <luis.machado@linaro.org>
11144 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11145 get_frame_register instead of gdbarch_unwind_pc.
11147 2020-04-23 Tom de Vries <tdevries@suse.de>
11149 * symtab.c (lookup_global_symbol): Prefer def over decl.
11151 2020-04-23 Tom de Vries <tdevries@suse.de>
11154 * block.c (best_symbol, better_symbol): Promote to external.
11155 * block.h (best_symbol, better_symbol): Declare.
11156 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
11159 2020-04-23 Tom Tromey <tromey@adacore.com>
11162 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
11163 "const char *", not a "const std::string &".
11164 <name_and_matcher::operator==>: Update.
11165 * unittests/lookup_name_info-selftests.c: Change type of
11168 2020-04-23 Tom Tromey <tom@tromey.com>
11170 * inferior.h (iterate_over_inferiors): Don't declare.
11171 * inferior.c (iterate_over_inferiors): Remove.
11172 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
11174 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
11175 use iterate_over_inferiors.
11176 (darwin_resume_inferior_it)
11177 (struct resume_inferior_threads_param)
11178 (darwin_resume_inferior_threads_it): Remove.
11179 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
11181 2020-04-23 Tom de Vries <tdevries@suse.de>
11183 * blockframe.c (find_pc_partial_function): Use
11184 find_pc_sect_compunit_symtab rather than
11185 objfile->sf->qf->find_pc_sect_compunit_symtab.
11187 2020-04-22 Tom de Vries <tdevries@suse.de>
11190 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
11193 2020-04-22 Tom de Vries <tdevries@suse.de>
11196 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
11199 2020-04-22 Tom de Vries <tdevries@suse.de>
11202 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
11203 CU if already created.
11205 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11207 * infrun.c (displaced_step_fixup): Switch to the event_thread
11208 before calling displaced_step_restore, not after.
11210 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11212 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
11213 its inferior is not recorded by us.
11214 (record_btrace_target_open): Replace call to
11215 all_non_exited_threads () with call to current_inferior
11216 ()->non_exited_threads ().
11217 (record_btrace_target::stop_recording): Likewise.
11218 (record_btrace_target::close): Likewise.
11219 (record_btrace_target::wait): Likewise.
11220 (record_btrace_target::record_stop_replaying): Likewise.
11222 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11224 * btrace.c (btrace_enable): Throw an error on double enables and
11225 when enabling recording fails.
11226 (btrace_disable): Throw an error if the thread is not recorded.
11228 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11230 * record-btrace.c (record_btrace_target::fetch_registers): Forward
11231 request if we do not have a thread_info.
11233 2020-04-21 Tom de Vries <tdevries@suse.de>
11237 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
11238 exception in get_frame_id.
11240 2020-04-20 Tom Tromey <tromey@adacore.com>
11242 * python/python.c (struct gdbpy_event): Mark move constructor as
11244 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
11245 constructor as noexcept.
11246 * completer.h (struct completion_result): Mark move constructor as
11248 * completer.c (completion_result::completion_result): Use
11249 initialization style. Don't call reset_match_list.
11251 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
11253 * MAINTAINERS (Write After Approval): Add myself.
11255 2020-04-18 Tom Tromey <tom@tromey.com>
11257 * windows-tdep.c (init_w32_command_list)
11258 (w32_prefix_command_valid): Restore.
11259 (_initialize_windows_tdep): Call init_w32_command_list.
11261 2020-04-18 Tom Tromey <tom@tromey.com>
11263 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
11264 * value.c (value_fn_field): Update.
11265 * valops.c (find_function_in_inferior)
11266 (value_allocate_space_in_inferior): Update.
11267 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11269 * tui/tui-source.c (tui_source_window::set_contents): Update.
11270 * symtab.c (lookup_global_or_static_symbol)
11271 (find_function_start_sal_1, skip_prologue_sal)
11272 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
11273 * symmisc.c (dump_msymbols, dump_symtab_1)
11274 (maintenance_print_one_line_table): Update.
11275 * symfile.c (init_entry_point_info, section_is_mapped)
11276 (list_overlays_command, simple_read_overlay_table)
11277 (simple_overlay_update_1): Update.
11278 * stap-probe.c (handle_stap_probe): Update.
11279 * stabsread.c (dbx_init_float_type, define_symbol)
11280 (read_one_struct_field, read_enum_type, read_range_type): Update.
11281 * source.c (info_line_command): Update.
11282 * python/python.c (gdbpy_source_objfile_script)
11283 (gdbpy_execute_objfile_script): Update.
11284 * python/py-type.c (save_objfile_types): Update.
11285 * python/py-objfile.c (py_free_objfile): Update.
11286 * python/py-inferior.c (python_new_objfile): Update.
11287 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
11288 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
11289 (maintenance_check_psymtabs): Update.
11290 * printcmd.c (info_address_command): Update.
11291 * objfiles.h (struct objfile) <arch>: New method, from
11293 (get_objfile_arch): Don't declare.
11294 * objfiles.c (get_objfile_arch): Remove.
11295 (filter_overlapping_sections): Update.
11296 * minsyms.c (msymbol_is_function): Update.
11297 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
11298 (output_nondebug_symbol): Update.
11299 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
11300 (mdebug_expand_psymtab): Update.
11301 * machoread.c (macho_add_oso_symfile): Update.
11302 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
11304 * linux-fork.c (checkpoint_command): Update.
11305 * linespec.c (convert_linespec_to_sals): Update.
11306 * jit.c (finalize_symtab): Update.
11307 * infrun.c (insert_exception_resume_from_probe): Update.
11308 * ia64-tdep.c (ia64_find_unwind_table): Update.
11309 * hppa-tdep.c (internalize_unwinds): Update.
11310 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
11312 * gcore.c (call_target_sbrk): Update.
11313 * elfread.c (record_minimal_symbol, elf_symtab_read)
11314 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
11315 (elf_gnu_ifunc_resolve_by_got): Update.
11316 * dwarf2/read.c (create_addrmap_from_index)
11317 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11318 (read_debug_names_from_section)
11319 (process_psymtab_comp_unit_reader, add_partial_symbol)
11320 (add_partial_subprogram, process_full_comp_unit)
11321 (read_file_scope, read_func_scope, read_lexical_block_scope)
11322 (read_call_site_scope, dwarf2_ranges_read)
11323 (dwarf2_record_block_ranges, dwarf2_add_field)
11324 (mark_common_block_symbol_computed, read_tag_pointer_type)
11325 (read_tag_string_type, dwarf2_init_float_type)
11326 (dwarf2_init_complex_target_type, read_base_type)
11327 (partial_die_info::read, partial_die_info::read)
11328 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
11329 (dwarf2_fetch_die_loc_sect_off): Update.
11330 * dwarf2/loc.c (dwarf2_find_location_expression)
11331 (class dwarf_evaluate_loc_desc, rw_pieced_value)
11332 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
11333 (dwarf2_loc_desc_get_symbol_read_needs)
11334 (locexpr_describe_location_piece, locexpr_describe_location_1)
11335 (loclist_describe_location): Update.
11336 * dwarf2/index-write.c (write_debug_names): Update.
11337 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
11338 * dtrace-probe.c (dtrace_process_dof): Update.
11339 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
11340 (process_one_symbol): Update.
11341 * ctfread.c (ctf_init_float_type, read_base_type): Update.
11342 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
11343 (coff_read_enum_type): Update.
11344 * cli/cli-cmds.c (edit_command, list_command): Update.
11345 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
11346 * breakpoint.c (create_overlay_event_breakpoint)
11347 (create_longjmp_master_breakpoint)
11348 (create_std_terminate_master_breakpoint)
11349 (create_exception_master_breakpoint, get_sal_arch): Update.
11350 * block.c (block_gdbarch): Update.
11351 * annotate.c (annotate_source_line): Update.
11353 2020-04-17 Tom Tromey <tromey@adacore.com>
11355 * auto-load.c (show_auto_load_cmd): Remove.
11356 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
11357 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
11358 (maintenance_print_arc_command): Remove.
11359 * tui/tui-win.c (tui_command): Remove.
11360 (tui_get_cmd_list): Use add_basic_prefix_cmd.
11361 * tui/tui-layout.c (tui_layout_command): Remove.
11362 (_initialize_tui_layout): Use add_basic_prefix_cmd.
11363 * python/python.c (user_set_python, user_show_python): Remove.
11364 (_initialize_python): Use add_basic_prefix_cmd,
11365 add_show_prefix_cmd.
11366 * guile/guile.c (set_guile_command, show_guile_command): Remove.
11367 (install_gdb_commands): Use add_basic_prefix_cmd,
11368 add_show_prefix_cmd.
11369 (info_guile_command): Remove.
11370 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
11371 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
11372 add_show_prefix_cmd.
11373 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
11374 Remove do_set and do_show parameters.
11375 * cli/cli-style.c (set_style, show_style): Remove.
11376 (_initialize_cli_style): Use add_basic_prefix_cmd,
11377 add_show_prefix_cmd.
11378 (cli_style_option::add_setshow_commands): Remove do_set and
11379 do_show parameters.
11380 (cli_style_option::add_setshow_commands): Use
11381 add_basic_prefix_cmd, add_show_prefix_cmd.
11382 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
11383 (set_style_name): Remove.
11384 * cli/cli-dump.c (dump_command, append_command): Remove.
11385 (srec_dump_command, ihex_dump_command, verilog_dump_command)
11386 (tekhex_dump_command, binary_dump_command)
11387 (binary_append_command): Remove.
11388 (_initialize_cli_dump): Use add_basic_prefix_cmd.
11389 * windows-tdep.c (w32_prefix_command_valid): Remove global.
11390 (init_w32_command_list): Remove; move into ...
11391 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
11392 * valprint.c (set_print, show_print, set_print_raw)
11393 (show_print_raw): Remove.
11394 (_initialize_valprint): Use add_basic_prefix_cmd,
11395 add_show_prefix_cmd.
11396 * typeprint.c (set_print_type, show_print_type): Remove.
11397 (_initialize_typeprint): Use add_basic_prefix_cmd,
11398 add_show_prefix_cmd.
11399 * record.c (set_record_command, show_record_command): Remove.
11400 (_initialize_record): Use add_basic_prefix_cmd,
11401 add_show_prefix_cmd.
11402 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
11403 add_show_prefix_cmd.
11404 (info_command, show_command, set_debug, show_debug): Remove.
11405 * top.h (set_history, show_history): Don't declare.
11406 * top.c (set_history, show_history): Remove.
11407 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
11408 (unset_tdesc_cmd): Remove.
11409 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
11410 add_show_prefix_cmd.
11411 * symtab.c (info_module_command): Remove.
11412 (_initialize_symtab): Use add_basic_prefix_cmd.
11413 * symfile.c (overlay_command): Remove.
11414 (_initialize_symfile): Use add_basic_prefix_cmd.
11415 * sparc64-tdep.c (info_adi_command): Remove.
11416 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
11417 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
11418 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
11419 add_show_prefix_cmd.
11420 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
11421 (_initialize_serial): Use add_basic_prefix_cmd,
11422 add_show_prefix_cmd.
11423 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
11424 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
11425 add_show_prefix_cmd.
11426 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
11427 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
11428 add_show_prefix_cmd.
11429 * riscv-tdep.c (show_riscv_command, set_riscv_command)
11430 (show_debug_riscv_command, set_debug_riscv_command): Remove.
11431 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
11432 add_show_prefix_cmd.
11433 * remote.c (remote_command, set_remote_cmd): Remove.
11434 (_initialize_remote): Use add_basic_prefix_cmd.
11435 * record-full.c (set_record_full_command)
11436 (show_record_full_command): Remove.
11437 (_initialize_record_full): Use add_basic_prefix_cmd,
11438 add_show_prefix_cmd.
11439 * record-btrace.c (cmd_set_record_btrace)
11440 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
11441 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
11442 (cmd_show_record_btrace_pt): Remove.
11443 (_initialize_record_btrace): Use add_basic_prefix_cmd,
11444 add_show_prefix_cmd.
11445 * ravenscar-thread.c (set_ravenscar_command)
11446 (show_ravenscar_command): Remove.
11447 (_initialize_ravenscar): Use add_basic_prefix_cmd,
11448 add_show_prefix_cmd.
11449 * mips-tdep.c (show_mips_command, set_mips_command)
11450 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
11451 add_show_prefix_cmd.
11452 * maint.c (maintenance_command, maintenance_info_command)
11453 (maintenance_check_command, maintenance_print_command)
11454 (maintenance_set_cmd, maintenance_show_cmd): Remove.
11455 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
11456 add_show_prefix_cmd.
11457 (show_per_command_cmd): Remove.
11458 * maint-test-settings.c (maintenance_set_test_settings_cmd):
11460 (maintenance_show_test_settings_cmd): Remove.
11461 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
11462 add_show_prefix_cmd.
11463 * maint-test-options.c (maintenance_test_options_command):
11465 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
11466 * macrocmd.c (macro_command): Remove
11467 (_initialize_macrocmd): Use add_basic_prefix_cmd.
11468 * language.c (set_check, show_check): Remove.
11469 (_initialize_language): Use add_basic_prefix_cmd,
11470 add_show_prefix_cmd.
11471 * infcmd.c (unset_command): Remove.
11472 (_initialize_infcmd): Use add_basic_prefix_cmd.
11473 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
11474 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
11475 add_show_prefix_cmd.
11476 * go32-nat.c (go32_info_dos_command): Remove.
11477 (_initialize_go32_nat): Use add_basic_prefix_cmd.
11478 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
11479 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
11480 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
11481 (_initialize_frame): Use add_basic_prefix_cmd,
11482 add_show_prefix_cmd.
11483 * dcache.c (set_dcache_command, show_dcache_command): Remove.
11484 (_initialize_dcache): Use add_basic_prefix_cmd,
11485 add_show_prefix_cmd.
11486 * cp-support.c (maint_cplus_command): Remove.
11487 (_initialize_cp_support): Use add_basic_prefix_cmd.
11488 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
11489 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
11490 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
11491 add_basic_prefix_cmd, add_show_prefix_cmd.
11492 * breakpoint.c (save_command): Remove.
11493 (_initialize_breakpoint): Use add_basic_prefix_cmd.
11494 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
11495 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
11496 add_show_prefix_cmd.
11497 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
11498 (set_ada_command, show_ada_command): Remove.
11499 (_initialize_ada_language): Use add_basic_prefix_cmd,
11500 add_show_prefix_cmd.
11501 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
11503 2020-04-16 Kamil Rytarowski <n54@gmx.com>
11505 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
11506 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
11508 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11510 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
11513 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11515 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
11516 import table is not at beginning of .idata section.
11518 2020-04-16 Pedro Alves <palves@redhat.com>
11520 * inferior.c (delete_inferior): Use delete operator directly
11521 instead of delete_program_space.
11522 * progspace.c (add_program_space): New, factored out from
11523 program_space::program_space.
11524 (remove_program_space): New, factored out from
11525 delete_program_space.
11526 (program_space::program_space): Remove intro comment. Rewrite.
11527 (program_space::~program_space): Remove intro comment. Call
11528 remove_program_space.
11529 (delete_program_space): Delete.
11530 * progspace.h (program_space::program_space): Make explicit. Move
11531 intro comment here, adjusted.
11532 (program_space::~program_space): Move intro comment here,
11534 (delete_program_space): Remove.
11536 2020-04-16 Tom Tromey <tromey@adacore.com>
11538 * windows-nat.c (windows_nat::handle_access_violation): New
11540 * nat/windows-nat.h (handle_access_violation): Declare.
11541 * nat/windows-nat.c (handle_exception): Move Cygwin code to
11542 windows-nat.c. Call handle_access_violation.
11544 2020-04-16 Tom de Vries <tdevries@suse.de>
11547 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
11548 CUs without psymtab.
11550 2020-04-16 Kevin Buettner <kevinb@redhat.com>
11552 * python/python.c (do_start_initialization): Don't call
11553 PyEval_InitThreads for Python 3.9 and beyond.
11555 2020-04-15 Kamil Rytarowski <n54@gmx.com>
11557 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
11559 (obsd_nat_target::wait): Likewise.
11561 2020-04-15 Tom Tromey <tromey@adacore.com>
11563 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
11564 (DEBUG_EXCEPT): Use debug_printf.
11566 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
11568 * completer.c (class completion_tracker::completion_hash_entry)
11569 <hash_name>: New member function.
11570 (completion_tracker::discard_completions): New callback to hash a
11571 completion_hash_entry, pass this to htab_create_alloc.
11573 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
11575 * windows-nat.c (windows_make_so): Warn rather than stopping with
11576 an error if realpath() fails.
11578 2020-04-14 Kamil Rytarowski <n54@gmx.com>
11580 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
11581 (nbsd_nat_target::info_proc): Add do_status.
11583 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
11584 Tom de Vries <tdevries@suse.de>
11587 * psympriv.h (struct partial_symtab::read_symtab)
11588 (struct partial_symtab::expand_psymtab)
11589 (struct partial_symtab::read_dependencies): Update comments.
11590 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
11591 read_symtab for includer.
11592 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
11593 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
11594 (struct dwarf2_include_psymtab::m_readin): Remove.
11595 (struct dwarf2_include_psymtab::includer): New member function.
11596 (dwarf2_psymtab::expand_psymtab): Assert !readin.
11598 2020-04-14 Tom de Vries <tdevries@suse.de>
11601 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
11602 with NULL symbol_matcher and lookup_name.
11603 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
11605 * dwarf2/read.c (dw2_expand_symtabs_matching)
11606 (dw2_debug_names_expand_symtabs_matching): Same.
11607 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
11608 Make lookup_name a pointer. Update comment.
11609 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
11610 lookup_name being a pointer.
11611 * symfile.c (expand_symtabs_matching): Same.
11612 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
11613 * linespec.c (iterate_over_all_matching_symtabs): Same.
11615 2020-04-13 Tom Tromey <tom@tromey.com>
11617 * run-on-main-thread.c: Update include.
11618 * unittests/main-thread-selftests.c: Update include.
11619 * tui/tui-win.c: Update include.
11620 * tui/tui-io.c: Update include.
11621 * tui/tui-interp.c: Update include.
11622 * tui/tui-hooks.c: Update include.
11623 * top.h: Update include.
11624 * top.c: Update include.
11625 * ser-base.c: Update include.
11626 * remote.c: Update include.
11627 * remote-notif.c: Update include.
11628 * remote-fileio.c: Update include.
11629 * record-full.c: Update include.
11630 * record-btrace.c: Update include.
11631 * python/python.c: Update include.
11632 * posix-hdep.c: Update include.
11633 * mingw-hdep.c: Update include.
11634 * mi/mi-main.c: Update include.
11635 * mi/mi-interp.c: Update include.
11636 * main.c: Update include.
11637 * linux-nat.c: Update include.
11638 * interps.c: Update include.
11639 * infrun.c: Update include.
11640 * inf-loop.c: Update include.
11641 * event-top.c: Update include.
11642 * event-loop.c: Move to ../gdbsupport/.
11643 * event-loop.h: Move to ../gdbsupport/.
11644 * async-event.h: Update include.
11645 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
11647 2020-04-13 Tom Tromey <tom@tromey.com>
11649 * tui/tui-win.c: Include async-event.h.
11650 * remote.c: Include async-event.h.
11651 * remote-notif.c: Include async-event.h.
11652 * record-full.c: Include async-event.h.
11653 * record-btrace.c: Include async-event.h.
11654 * infrun.c: Include async-event.h.
11655 * event-top.c: Include async-event.h.
11656 * event-loop.h: Move some declarations to async-event.h.
11657 * event-loop.c: Don't include ser-event.h or top.h. Move some
11658 code to async-event.c.
11659 * async-event.h: New file.
11660 * async-event.c: New file.
11661 * Makefile.in (COMMON_SFILES): Add async-event.c.
11662 (HFILES_NO_SRCDIR): Add async-event.h.
11664 2020-04-13 Tom Tromey <tom@tromey.com>
11666 * utils.c (flush_streams): New function.
11667 * event-loop.c (gdb_wait_for_event): Call flush_streams.
11669 2020-04-13 Tom Tromey <tom@tromey.com>
11671 * event-loop.c (handle_file_event): Use warning, not
11674 2020-04-13 Tom Tromey <tom@tromey.com>
11676 * event-loop.c: Include <chrono>.
11678 2020-04-13 Tom Tromey <tom@tromey.com>
11680 * gdb_select.h: Move to ../gdbsupport/.
11681 * event-loop.c: Update include path.
11682 * top.c: Update include path.
11683 * ser-base.c: Update include path.
11684 * ui-file.c: Update include path.
11685 * ser-tcp.c: Update include path.
11686 * guile/scm-ports.c: Update include path.
11687 * posix-hdep.c: Update include path.
11688 * ser-unix.c: Update include path.
11689 * gdb_usleep.c: Update include path.
11690 * mingw-hdep.c: Update include path.
11691 * inflow.c: Update include path.
11692 * infrun.c: Update include path.
11693 * event-top.c: Update include path.
11695 2020-04-13 Tom Tromey <tom@tromey.com>
11697 * configure: Rebuild.
11698 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
11700 2020-04-13 Tom Tromey <tom@tromey.com>
11702 * event-loop.h (start_event_loop): Don't declare.
11703 * event-loop.c (start_event_loop): Move...
11704 * main.c (start_event_loop): ...here. Now static.
11706 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
11708 * MAINTAINERS: Update my email address.
11710 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11712 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
11715 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11717 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
11718 (nbsd_nat_target::info_proc): Add do_cmdline.
11720 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11722 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
11723 (nbsd_nat_target::info_proc): Add do_cwd.
11725 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11727 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
11729 2020-04-11 Kamil Rytarowski <n54@gmx.com>
11731 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
11732 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
11733 (nbsd_nat_target::info_proc): New functions.
11734 * nbsd-nat.c (kinfo_get_vmmap): New function.
11735 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
11736 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
11737 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
11738 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
11740 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
11741 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
11742 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
11743 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
11744 (KINFO_VME_FLAG_GROWS_DOWN): New.
11746 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
11748 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
11751 2020-04-10 Tom Tromey <tromey@adacore.com>
11753 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
11755 2020-04-10 Tom Tromey <tromey@adacore.com>
11757 * symtab.c (get_symbol_address, get_msymbol_address): Skip
11758 separate debug files.
11760 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
11762 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11764 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11766 * windows-nat.c (windows_nat_target::get_windows_debug_event):
11767 Check for STATUS_WX86_BREAKPOINT.
11768 (windows_nat_target::wait): Same.
11770 2020-04-10 Tom de Vries <tdevries@suse.de>
11773 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
11775 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11777 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
11778 (Write After Approval): Remove Tom de Vries.
11780 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
11783 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11785 * buildsym.c (record_line): Fix undefined behavior and preserve
11788 2020-04-09 Kamil Rytarowski <n54@gmx.com>
11790 * auxv.h (svr4_auxv_parse): New.
11791 * auxv.c (default_auxv_parse): Split into default_auxv_parse
11792 and generic_auxv_parse.
11793 (svr4_auxv_parse): Add.
11794 * obsd-tdep.c: Include "auxv.h".
11795 (obsd_auxv_parse): Remove.
11796 (obsd_init_abi): Remove comment.
11797 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
11798 from `obsd_auxv_parse' to `svr4_auxv_parse'.
11799 * nbsd-tdep.c: Include "auxv.h".
11800 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
11802 2020-04-08 Tom Tromey <tromey@adacore.com>
11804 * nat/windows-nat.h (last_wait_event): Don't declare.
11805 (wait_for_debug_event): Update comment.
11806 * nat/windows-nat.c (last_wait_event): Now static.
11808 2020-04-08 Tom Tromey <tromey@adacore.com>
11810 * windows-nat.c (wait_for_debug_event): Move to
11812 * nat/windows-nat.h (wait_for_debug_event): Declare.
11813 * nat/windows-nat.c (wait_for_debug_event): Move from
11814 windows-nat.c. No longer static.
11816 2020-04-08 Tom Tromey <tromey@adacore.com>
11818 * windows-nat.c (get_windows_debug_event): Use
11819 fetch_pending_stop.
11820 * nat/windows-nat.h (fetch_pending_stop): Declare.
11821 * nat/windows-nat.c (fetch_pending_stop): New function.
11823 2020-04-08 Tom Tromey <tromey@adacore.com>
11825 * windows-nat.c (windows_continue): Use matching_pending_stop and
11826 continue_last_debug_event.
11827 * nat/windows-nat.h (matching_pending_stop)
11828 (continue_last_debug_event): Declare.
11829 * nat/windows-nat.c (DEBUG_EVENTS): New define.
11830 (matching_pending_stop, continue_last_debug_event): New
11833 2020-04-08 Tom Tromey <tromey@adacore.com>
11835 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
11836 (handle_exception_result): Move to nat/windows-nat.h.
11837 (DEBUG_EXCEPTION_SIMPLE): Remove.
11838 (windows_nat::handle_ms_vc_exception): New function.
11839 (handle_exception): Move to nat/windows-nat.c.
11840 (get_windows_debug_event): Update.
11841 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
11843 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
11844 (handle_exception_result): Move from windows-nat.c.
11845 (handle_exception): Declare.
11846 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
11847 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
11850 2020-04-08 Tom Tromey <tromey@adacore.com>
11852 * windows-nat.c (exception_count, event_count): Remove.
11853 (handle_exception, get_windows_debug_event)
11854 (do_initial_windows_stuff): Update.
11856 2020-04-08 Tom Tromey <tromey@adacore.com>
11858 * windows-nat.c (windows_nat::handle_load_dll)
11859 (windows_nat::handle_unload_dll): Rename. No longer static.
11860 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
11863 2020-04-08 Tom Tromey <tromey@adacore.com>
11865 * complaints.h (stop_whining): Declare at top-level.
11866 (complaint): Don't declare stop_whining.
11868 2020-04-08 Tom Tromey <tromey@adacore.com>
11870 * windows-nat.c (windows_nat::handle_output_debug_string):
11871 Rename. No longer static.
11872 * nat/windows-nat.h (handle_output_debug_string): Declare.
11874 2020-04-08 Tom Tromey <tromey@adacore.com>
11876 * windows-nat.c (current_process_handle, current_process_id)
11877 (main_thread_id, last_sig, current_event, last_wait_event)
11878 (current_windows_thread, desired_stop_thread_id, pending_stops)
11879 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
11880 (display_selectors, fake_create_process)
11881 (get_windows_debug_event): Update.
11882 * nat/windows-nat.h (current_process_handle, current_process_id)
11883 (main_thread_id, last_sig, current_event, last_wait_event)
11884 (current_windows_thread, desired_stop_thread_id, pending_stops)
11885 (struct pending_stop, siginfo_er): Move from windows-nat.c.
11886 * nat/windows-nat.c (current_process_handle, current_process_id)
11887 (main_thread_id, last_sig, current_event, last_wait_event)
11888 (current_windows_thread, desired_stop_thread_id, pending_stops)
11889 (siginfo_er): New globals. Move from windows-nat.c.
11891 2020-04-08 Tom Tromey <tromey@adacore.com>
11893 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
11894 (handle_load_dll): Update.
11895 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
11897 2020-04-08 Tom Tromey <tromey@adacore.com>
11899 * windows-nat.c (enum thread_disposition_type): Move to
11901 (windows_nat::thread_rec): Rename from thread_rec. No longer
11903 (windows_add_thread, windows_nat_target::fetch_registers)
11904 (windows_nat_target::store_registers, handle_exception)
11905 (windows_nat_target::resume, get_windows_debug_event)
11906 (windows_nat_target::get_tib_address)
11907 (windows_nat_target::thread_name)
11908 (windows_nat_target::thread_alive): Update.
11909 * nat/windows-nat.h (enum thread_disposition_type): Move from
11911 (thread_rec): Declare.
11913 2020-04-08 Tom Tromey <tromey@adacore.com>
11915 * windows-nat.c: Add "using namespace".
11916 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
11917 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
11919 2020-04-08 Tom Tromey <tromey@adacore.com>
11921 * nat/windows-nat.h (struct windows_thread_info): Declare
11923 * nat/windows-nat.c (~windows_thread_info): New.
11925 2020-04-08 Tom Tromey <tromey@adacore.com>
11928 * windows-nat.c (current_event): Update comment.
11929 (last_wait_event, desired_stop_thread_id): New globals.
11930 (struct pending_stop): New.
11931 (pending_stops): New global.
11932 (windows_nat_target) <stopped_by_sw_breakpoint>
11933 <supports_stopped_by_sw_breakpoint>: New methods.
11934 (windows_fetch_one_register): Add assertions. Adjust PC.
11935 (windows_continue): Handle pending stops. Suspend other threads
11936 when stepping. Use last_wait_event
11937 (wait_for_debug_event): New function.
11938 (get_windows_debug_event): Use wait_for_debug_event. Handle
11939 pending stops. Queue spurious stops.
11940 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
11941 (windows_nat_target::kill): Use wait_for_debug_event.
11942 * nat/windows-nat.h (struct windows_thread_info)
11943 <stopped_at_software_breakpoint>: New field.
11944 * nat/windows-nat.c (windows_thread_info::resume): Clear
11945 stopped_at_software_breakpoint.
11947 2020-04-08 Tom Tromey <tromey@adacore.com>
11949 * windows-nat.c (enum thread_disposition_type): New.
11950 (thread_rec): Replace "get_context" parameter with "disposition";
11952 (windows_add_thread, windows_nat_target::fetch_registers)
11953 (windows_nat_target::store_registers, handle_exception)
11954 (windows_nat_target::resume, get_windows_debug_event)
11955 (windows_nat_target::get_tib_address)
11956 (windows_nat_target::thread_name)
11957 (windows_nat_target::thread_alive): Update.
11959 2020-04-08 Tom Tromey <tromey@adacore.com>
11961 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
11962 (windows_continue): Use windows_continue::resume.
11963 * nat/windows-nat.h (struct windows_thread_info) <suspend,
11964 resume>: Declare new methods.
11965 * nat/windows-nat.c: New file.
11966 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
11968 2020-04-08 Tom Tromey <tromey@adacore.com>
11970 * windows-nat.c (windows_add_thread, windows_delete_thread)
11971 (windows_nat_target::fetch_registers)
11972 (windows_nat_target::store_registers, fake_create_process)
11973 (windows_nat_target::resume, windows_nat_target::resume)
11974 (get_windows_debug_event, windows_nat_target::wait)
11975 (windows_nat_target::pid_to_str)
11976 (windows_nat_target::get_tib_address)
11977 (windows_nat_target::get_ada_task_ptid)
11978 (windows_nat_target::thread_name)
11979 (windows_nat_target::thread_alive): Use lwp, not tid.
11981 2020-04-08 Tom Tromey <tromey@adacore.com>
11983 * windows-nat.c (handle_exception)
11984 (windows_nat_target::thread_name): Update.
11985 * nat/windows-nat.h (windows_thread_info): Remove destructor.
11986 <name>: Now unique_xmalloc_ptr.
11988 2020-04-08 Tom Tromey <tromey@adacore.com>
11990 * windows-nat.c (thread_rec)
11991 (windows_nat_target::fetch_registers): Update.
11992 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
11994 <debug_registers_changed, reload_context>: Now bool.
11996 2020-04-08 Tom Tromey <tromey@adacore.com>
11998 * windows-nat.c (windows_add_thread): Use new.
11999 (windows_init_thread_list, windows_delete_thread): Use delete.
12000 (get_windows_debug_event): Update.
12001 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
12002 destructor, and initializers.
12004 2020-04-08 Tom Tromey <tromey@adacore.com>
12006 * windows-nat.c (struct windows_thread_info): Remove.
12007 * nat/windows-nat.h: New file.
12009 2020-04-08 Tom Tromey <tromey@adacore.com>
12011 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
12012 (thread_rec, windows_add_thread, windows_delete_thread)
12013 (windows_continue): Update.
12015 2020-04-08 Tom Tromey <tromey@adacore.com>
12017 * windows-nat.c (struct windows_thread_info): Remove typedef.
12018 (thread_head): Remove.
12019 (thread_list): New global.
12020 (thread_rec, windows_add_thread, windows_init_thread_list)
12021 (windows_delete_thread, windows_continue): Update.
12023 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12025 * windows-tdep.h (windows_init_abi): Add comment.
12026 (cygwin_init_abi): New declaration.
12027 * windows-tdep.c: Split signal enumeration in two, one for
12028 Windows and one for Cygwin.
12029 (windows_gdb_signal_to_target): Only deal with signal of the
12031 (cygwin_gdb_signal_to_target): New function.
12032 (windows_init_abi): Rename to windows_init_abi_common, don't set
12033 gdb_signal_to_target gdbarch method. Add new new function with
12035 (cygwin_init_abi): New function.
12036 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
12037 comment. Don't call windows_init_abi.
12038 (amd64_windows_init_abi): Add comment, call windows_init_abi.
12039 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
12040 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
12041 i386_windows_init_abi_common, don't call windows_init_abi. Add
12042 a new function of this name.
12043 (i386_cygwin_init_abi): New function.
12044 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
12047 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12049 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
12051 (dwarf2_read_gdb_index): Update.
12053 2020-04-07 Kamil Rytarowski <n54@gmx.com>
12055 * nbsd-tdep.c: Include "objfiles.h".
12056 (nbsd_skip_solib_resolver): New.
12057 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
12059 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12061 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
12062 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
12063 with DW_LLE_base_addressx are being emitted in DWARFv5.
12064 Add the newly added kind DW_LOC_OFFSET_PAIR also.
12065 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
12068 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12070 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
12071 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
12072 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
12073 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
12074 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
12075 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
12076 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
12079 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12081 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
12082 (read_loclist_index): New function definition.
12083 (lookup_loclist_base): New function definition.
12084 (read_loclist_header): New function definition.
12085 (dwarf2_cu): Add loclist_base and loclist_header field.
12086 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
12087 (read_full_die_1): Read the value of DW_AT_loclists_base.
12088 (read_attribute_reprocess): Handle DW_FORM_loclistx.
12089 (read_attribute_value): Handle DW_FORM_loclistx.
12090 (skip_one_die): Handle DW_FORM_loclistx.
12091 (loclist_header): New structure declaration.
12092 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
12094 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12096 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
12097 constructor. Remove `addr` parameter from other constructor and
12098 add `per_cu` parameter.
12099 * dwarf2/read.c (create_partial_symtab): Update.
12101 2020-04-07 Tom de Vries <tdevries@suse.de>
12104 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
12105 (partial_die_info::fixup): Inherit has_const_value.
12107 2020-04-07 Tom de Vries <tdevries@suse.de>
12109 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
12110 symbols without address.
12112 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12114 * nbsd-nat.h (struct thread_info): Add forward declaration.
12115 (nbsd_nat_target::thread_alive): Add.
12116 (nbsd_nat_target::thread_name): Likewise.
12117 (nbsd_nat_target::update_thread_list): Likewise.
12118 (update_thread_list::post_attach): Likewise.
12119 (post_attach::pid_to_str): Likewise.
12120 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
12121 (nbsd_thread_lister): Add.
12122 (nbsd_nat_target::thread_alive): Likewise.
12123 (nbsd_nat_target::thread_name): Likewise.
12124 (nbsd_add_threads): Likewise.
12125 (update_thread_list::post_attach): Likewise.
12126 (nbsd_nat_target::update_thread_list): Likewise.
12127 (post_attach::pid_to_str): Likewise.
12129 2020-04-06 Tom Tromey <tromey@adacore.com>
12131 * ada-valprint.c (print_variant_part): Extract the variant field.
12132 (print_field_values): Use the field as the outer value when
12135 2020-04-06 Tom Tromey <tromey@adacore.com>
12137 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
12138 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
12139 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
12140 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
12141 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
12143 2020-04-06 Tom Tromey <tromey@adacore.com>
12145 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
12148 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12150 * nbsd-tdep.c: Include "gdbarch.h".
12151 Define enum with NetBSD signal numbers.
12152 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
12153 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
12154 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
12155 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
12156 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
12157 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
12158 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
12159 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12160 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
12161 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
12162 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
12163 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
12165 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
12168 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
12170 2020-04-03 Tom Tromey <tromey@adacore.com>
12172 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
12173 Read constant block.
12175 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12177 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
12178 (gdb_bfd_get_full_section_contents): New declaration.
12179 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
12180 * windows-tdep.c (is_linked_with_cygwin_dll): Use
12181 gdb_bfd_get_full_section_contents.
12183 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12185 * exec.c (build_section_table): Replace internal_error with
12187 (section_table_xfer_memory_partial): Likewise.
12188 * mdebugread.c (parse_partial_symbols): Likewise.
12189 * psymtab.c (lookup_partial_symbol): Likewise.
12190 * utils.c (wrap_here): Likewise.
12192 2020-04-02 Tom Tromey <tromey@adacore.com>
12194 * f-lang.c (build_fortran_types): Use arch_type to initialize
12195 builtin_complex_s32 in the TYPE_CODE_ERROR case.
12197 2020-04-02 Tom Tromey <tromey@adacore.com>
12199 * dwarf2/read.c (partial_die_info::read): Do not create a vector
12202 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
12203 Bernd Edlinger <bernd.edlinger@hotmail.de>
12204 Tom Tromey <tromey@adacore.com>
12206 * buildsym.c (buildsym_compunit::record_line): Remove
12207 deduplication code.
12209 2020-04-02 Tom de Vries <tdevries@suse.de>
12212 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
12214 2020-04-02 Tom de Vries <tdevries@suse.de>
12216 * dwarf2/read.c (dwarf2_gdb_index_functions,
12217 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
12219 * psymtab.c (psym_lookup_global_symbol_language): New function.
12220 (psym_functions): Init psym_lookup_global_symbol_language with
12221 psym_lookup_global_symbol_language.
12222 * symfile-debug.c (debug_sym_quick_functions): Init
12223 lookup_global_symbol_language with NULL.
12224 * symfile.c (set_initial_language): Remove fixme comment.
12225 * symfile.h (struct quick_symbol_functions): Add
12226 lookup_global_symbol_language.
12227 * symtab.c (find_quick_global_symbol_language): New function.
12228 (find_main_name): Use find_quick_global_symbol_language.
12230 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
12232 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
12234 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12236 * buildsym.c (record_line): Fix undefined behavior and preserve
12239 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12241 * buildsym.c (record_line): Fix the resizing condition.
12243 2020-04-01 Tom Tromey <tom@tromey.com>
12245 * value.h (value_literal_complex): Add comment.
12246 * valops.c (value_literal_complex): Refer to value.h.
12248 2020-04-01 Tom Tromey <tom@tromey.com>
12250 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
12251 (scalar_type): New rule, from typebase.
12252 (typebase): Use scalar_type. Recognize complex types.
12253 (field_name): Handle FLOAT_KEYWORD.
12254 (ident_tokens): Add _Complex and __complex__.
12256 2020-04-01 Tom Tromey <tom@tromey.com>
12259 * valarith.c (promotion_type, complex_binop): New functions.
12260 (scalar_binop): Handle complex numbers. Use promotion_type.
12261 (value_pos, value_neg, value_complement): Handle complex numbers.
12263 2020-04-01 Tom Tromey <tom@tromey.com>
12265 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
12266 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
12267 (parse_number): Handle complex numbers.
12269 2020-04-01 Tom Tromey <tom@tromey.com>
12271 * c-valprint.c (c_decorations): Change complex suffix to "i".
12273 2020-04-01 Tom Tromey <tom@tromey.com>
12275 * valprint.c (generic_value_print_complex): Use accessors.
12276 * value.h (value_real_part, value_imaginary_part): Declare.
12277 * valops.c (value_real_part, value_imaginary_part): New
12279 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
12281 2020-04-01 Tom Tromey <tom@tromey.com>
12283 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
12284 (read_range_type): Update.
12285 * mdebugread.c (basic_type): Update.
12286 * go-lang.c (build_go_types): Use init_complex_type.
12287 * gdbtypes.h (struct main_type) <complex_type>: New member.
12288 (init_complex_type): Update.
12289 (arch_complex_type): Don't declare.
12290 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
12291 Make name if none given. Use alloc_type_copy. Look for cached
12293 (arch_complex_type): Remove.
12294 (gdbtypes_post_init): Use init_complex_type.
12295 * f-lang.c (build_fortran_types): Use init_complex_type.
12296 * dwarf2/read.c (read_base_type): Update.
12297 * d-lang.c (build_d_types): Use init_complex_type.
12298 * ctfread.c (read_base_type): Update.
12300 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12302 * infrun.c (stop_all_threads): Update assertion, plus when
12303 stopping threads, take into account that we might be trying
12304 to stop an all-stop target.
12305 (stop_waiting): Call 'stop_all_threads' if there exists a
12308 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12310 * target.h (exists_non_stop_target): New function declaration.
12311 * target.c (exists_non_stop_target): New function.
12313 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
12316 * eval.c (is_integral_or_integral_reference): New function.
12317 (evaluate_subexp_standard): Allow integer references in
12318 pointer arithmetic.
12320 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12322 * remote.c (remote_target::remote_parse_stop_reply): Remove the
12323 check for no ptid in the stop reply when the target is non-stop.
12325 2020-04-01 Tom Tromey <tromey@adacore.com>
12327 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
12328 "name" parameter to rvalue reference. Initialize m_name_holder.
12329 <lookup_name_info>: New overloads.
12330 <name>: Return gdb::string_view.
12331 <c_str>: New method.
12332 <make_ignore_params>: Update.
12333 <search_name_hash>: Update.
12334 <language_lookup_name>: Return const char *.
12335 <m_name>: Change type.
12336 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
12337 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
12338 (lookup_name_info::match_any): Update.
12339 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
12341 * minsyms.c (linkage_name_str): Update.
12342 * language.c (default_symbol_name_matcher): Update.
12343 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
12345 * ada-lang.c (ada_fold_name): Change parameter to string_view.
12346 (ada_lookup_name_info::ada_lookup_name_info): Update.
12347 (literal_symbol_name_matcher): Update.
12349 2020-04-01 Tom Tromey <tromey@adacore.com>
12351 * psymtab.c (psymtab_search_name): Remove function.
12352 (psym_lookup_symbol): Create search name and lookup name here.
12353 (lookup_partial_symbol): Remove "name" parameter; add
12355 (psym_expand_symtabs_for_function): Update.
12357 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
12360 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
12362 2020-03-31 Tom Tromey <tromey@adacore.com>
12364 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
12367 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
12369 * features/riscv/32bit-csr.xml: Regenerated.
12370 * features/riscv/64bit-csr.xml: Regenerated.
12372 2020-03-30 Tom Tromey <tromey@adacore.com>
12374 * ada-valprint.c (print_variant_part): Update.
12375 * ada-lang.h (ada_which_variant_applies): Update.
12376 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
12377 outer_valaddr parameters; replace with "outer" value parameter.
12378 (to_fixed_variant_branch_type): Update.
12380 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12382 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
12383 <list>. Remove inclusion of observable.h.
12384 (PPC_DEBUG_CURRENT_VERSION): Move up define.
12385 (struct arch_lwp_info): New struct.
12386 (class ppc_linux_dreg_interface): New class.
12387 (struct ppc_linux_process_info): New struct.
12388 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
12389 <low_new_clone, low_forget_process, low_prepare_to_resume>
12390 <copy_thread_dreg_state, mark_thread_stale>
12391 <mark_debug_registers_changed, register_hw_breakpoint>
12392 <clear_hw_breakpoint, register_wp, clear_wp>
12393 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
12394 <num_memory_accesses, get_trigger_type>
12395 <create_watchpoint_request, hwdebug_point_cmp>
12396 <init_arch_lwp_info, get_arch_lwp_info>
12397 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
12399 <struct ptid_hash>: New inner struct.
12400 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
12402 (saved_dabr_value, hwdebug_info, max_slots_number)
12403 (struct hw_break_tuple, struct thread_points, ppc_threads)
12404 (have_ptrace_hwdebug_interface)
12405 (hwdebug_find_thread_points_by_tid)
12406 (hwdebug_insert_point, hwdebug_remove_point): Remove.
12407 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
12408 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
12409 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
12410 use m_dreg_interface.
12411 (hwdebug_point_cmp): Change to...
12412 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
12413 reference arguments instead of pointers.
12414 (ppc_linux_nat_target::ranged_break_num_registers): Use
12416 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
12417 m_dreg_interface. Call register_hw_breakpoint.
12418 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
12419 m_dreg_interface. Call clear_hw_breakpoint.
12420 (get_trigger_type): Change to...
12421 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
12423 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
12424 use m_dreg_interface. Call register_hw_breakpoint.
12425 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
12426 use m_dreg_interface. Call clear_hw_breakpoint.
12427 (can_use_watchpoint_cond_accel): Change to...
12428 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
12429 method. Update comment, use m_dreg_interface and
12431 (calculate_dvc): Change to...
12432 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
12434 (num_memory_accesses): Change to...
12435 (ppc_linux_nat_target::num_memory_accesses): ...this method.
12436 (check_condition): Change to...
12437 (ppc_linux_nat_target::check_condition): ...this method.
12438 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
12439 comment, use m_dreg_interface.
12440 (create_watchpoint_request): Change to...
12441 (ppc_linux_nat_target::create_watchpoint_request): ...this
12442 method. Use m_dreg_interface.
12443 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
12444 m_dreg_interface. Call register_hw_breakpoint or register_wp.
12445 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
12446 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
12447 (ppc_linux_nat_target::low_forget_process)
12448 (ppc_linux_nat_target::low_new_fork)
12449 (ppc_linux_nat_target::low_new_clone)
12450 (ppc_linux_nat_target::low_delete_thread)
12451 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
12452 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
12453 only call mark_thread_stale.
12454 (ppc_linux_thread_exit): Remove.
12455 (ppc_linux_nat_target::stopped_data_address): Change to...
12456 (ppc_linux_nat_target::low_stopped_data_address): This. Add
12457 comment, use m_dreg_interface and m_thread_hw_breakpoints.
12458 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
12459 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
12460 comment. Call low_stopped_data_address.
12461 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
12463 (ppc_linux_nat_target::masked_watch_num_registers): Use
12465 (ppc_linux_nat_target::copy_thread_dreg_state)
12466 (ppc_linux_nat_target::mark_thread_stale)
12467 (ppc_linux_nat_target::mark_debug_registers_changed)
12468 (ppc_linux_nat_target::register_hw_breakpoint)
12469 (ppc_linux_nat_target::clear_hw_breakpoint)
12470 (ppc_linux_nat_target::register_wp)
12471 (ppc_linux_nat_target::clear_wp)
12472 (ppc_linux_nat_target::init_arch_lwp_info)
12473 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
12474 (_initialize_ppc_linux_nat): Remove observer callback.
12476 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12478 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
12479 (ppc_linux_nat_target::auxv_parse)
12480 (ppc_linux_nat_target::read_description)
12481 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
12484 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12486 * linux-nat.h (low_new_clone): New method.
12487 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
12489 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12491 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
12492 (dbx_expand_psymtab): ... this.
12493 (start_psymtab): Update.
12494 * mdebugread.c (psymtab_to_symtab_1): Rename to...
12495 (mdebug_expand_psymtab): ... this.
12496 (parse_partial_symbols): Update.
12497 (new_psymtab): Update.
12498 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
12499 (xcoff_expand_psymtab): ... this.
12500 (xcoff_start_psymtab): Update.
12502 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12504 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
12505 <expand_dependencies>: ... this.
12506 * psymtab.c (partial_symtab::read_dependencies): Rename to...
12507 (partial_symtab::expand_dependencies): ... this.
12508 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
12510 (dwarf2_psymtab::expand_psymtab): Update.
12511 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12512 * mdebugread.c (psymtab_to_symtab_1): Update.
12513 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12515 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12517 * psympriv.h (discard_psymtab): Remove.
12518 * dbxread.c (dbx_end_psymtab): Update.
12519 * xcoffread.c (xcoff_end_psymtab): Update.
12521 2020-03-28 Tom Tromey <tom@tromey.com>
12523 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
12526 2020-03-28 Tom Tromey <tom@tromey.com>
12528 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
12530 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
12532 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12534 2020-03-26 John Baldwin <jhb@FreeBSD.org>
12536 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
12538 2020-03-26 Tom Tromey <tom@tromey.com>
12540 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
12541 (mark_common_block_symbol_computed, read_tag_string_type)
12542 (attr_to_dynamic_prop, read_subrange_type): Update.
12543 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
12544 to be methods on struct attribute.
12545 (skip_one_die, process_imported_unit_die, read_namespace_alias)
12546 (read_call_site_scope, partial_die_info::read)
12547 (partial_die_info::read, lookup_die_type, follow_die_ref):
12549 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
12550 from dwarf2_get_ref_die_offset.
12551 (attribute::constant_value): New method, from
12552 dwarf2_get_attr_constant_value.
12553 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
12555 <constant_value>: New method.
12557 2020-03-26 Tom Tromey <tom@tromey.com>
12559 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
12560 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
12561 (dwarf_type_encoding_name): Move to stringify.c.
12562 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
12563 * dwarf2/stringify.c: New file.
12564 * dwarf2/stringify.h: New file.
12566 2020-03-26 Tom Tromey <tom@tromey.com>
12568 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
12571 2020-03-26 Tom Tromey <tom@tromey.com>
12573 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
12575 * dwarf2/read.c (lookup_addr_base): Move to die.h.
12576 (lookup_ranges_base): Likewise.
12577 (read_cutu_die_from_dwo, read_full_die_1): Update.
12579 2020-03-26 Tom Tromey <tom@tromey.com>
12581 * dwarf2/read.c (read_import_statement, read_file_scope)
12582 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
12583 (read_lexical_block_scope, read_call_site_scope)
12584 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
12585 (handle_struct_member_die, process_structure_scope)
12586 (update_enumeration_type_from_children)
12587 (process_enumeration_scope, read_array_type, read_common_block)
12588 (read_namespace, read_module, read_subroutine_type): Update.
12589 (sibling_die): Remove.
12591 2020-03-26 Tom Tromey <tom@tromey.com>
12593 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
12594 (build_type_psymtabs_reader, read_structure_type)
12595 (read_enumeration_type, read_full_die_1): Update.
12596 (dwarf2_attr_no_follow): Move to die.h.
12597 * dwarf2/die.h (struct die_info) <attr>: New method.
12599 2020-03-26 Tom Tromey <tom@tromey.com>
12601 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
12602 <base_address>: Now an optional.
12603 (dwarf2_find_base_address, dwarf2_rnglists_process)
12604 (dwarf2_ranges_process, fill_in_loclist_baton)
12605 (dwarf2_symbol_mark_computed): Update.
12607 2020-03-26 Tom Tromey <tom@tromey.com>
12609 * dwarf2/read.c (struct die_info): Move to die.h.
12610 * dwarf2/die.h: New file.
12612 2020-03-26 Tom Tromey <tom@tromey.com>
12614 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
12616 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12617 Move to line-header.c.
12618 (read_checked_initial_length_and_offset, read_formatted_entries):
12620 (dwarf_decode_line_header): Split into two.
12621 * dwarf2/line-header.c
12622 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12624 (read_checked_initial_length_and_offset, read_formatted_entries):
12626 (dwarf_decode_line_header): New function, split from read.c.
12628 2020-03-26 Tom Tromey <tom@tromey.com>
12630 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
12632 * dwarf2/read.c (read_attribute_value): Update.
12633 (dwarf2_per_objfile::read_line_string): Rename from
12634 read_indirect_line_string.
12635 (read_formatted_entries): Update.
12637 2020-03-26 Tom Tromey <tom@tromey.com>
12639 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
12642 2020-03-26 Tom Tromey <tom@tromey.com>
12644 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
12646 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
12647 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
12650 2020-03-26 Tom Tromey <tom@tromey.com>
12652 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
12653 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
12654 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
12655 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
12657 2020-03-26 Tom Tromey <tom@tromey.com>
12659 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
12660 file_names_size, file_full_name, file_file_name>: Use const.
12661 <file_name_at, file_names>: Add const overload.
12662 * dwarf2/line-header.c (line_header::file_file_name)
12663 (line_header::file_full_name): Update.
12665 2020-03-26 Tom Tromey <tom@tromey.com>
12667 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
12668 (macro_start_file, consume_improper_spaces)
12669 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
12670 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
12671 (dwarf_decode_macros): Move to macro.c.
12672 * dwarf2/macro.c: New file.
12673 * dwarf2/macro.h: New file.
12674 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
12676 2020-03-26 Tom Tromey <tom@tromey.com>
12678 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
12680 * dwarf2/section.c: New method. From
12681 read_indirect_string_at_offset_from.
12682 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
12683 (read_indirect_string_at_offset_from): Move to section.c.
12684 (read_indirect_string_at_offset): Rewrite.
12685 (read_indirect_line_string_at_offset): Remove.
12686 (read_indirect_string, read_indirect_line_string)
12687 (dwarf_decode_macro_bytes): Update.
12689 2020-03-26 Tom Tromey <tom@tromey.com>
12691 * dwarf2/section.h (struct dwarf2_section_info)
12692 <overload_complaint>: Declare.
12693 (dwarf2_section_buffer_overflow_complaint): Don't declare.
12694 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
12695 Rename from dwarf2_section_buffer_overflow_complaint.
12696 * dwarf2/read.c (skip_one_die, partial_die_info::read)
12697 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
12699 2020-03-26 Tom Tromey <tom@tromey.com>
12701 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
12703 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
12705 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
12708 2020-03-26 Tom Tromey <tom@tromey.com>
12710 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
12712 2020-03-26 Tom Tromey <tom@tromey.com>
12714 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
12716 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
12718 (dwarf_decode_macros): Update.
12720 2020-03-26 Tom Tromey <tom@tromey.com>
12722 * dwarf2/read.c (read_attribute_value): Update.
12723 (read_indirect_string_from_dwz): Move to dwz.c; change into
12725 (dwarf_decode_macro_bytes): Update.
12726 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
12727 * dwarf2/dwz.c: New file.
12728 * Makefile.in (COMMON_SFILES): Add dwz.c.
12730 2020-03-26 Tom Tromey <tom@tromey.com>
12732 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
12733 * dwarf2/read.c: Add include.
12734 * dwarf2/index-write.c: Add include.
12735 * dwarf2/index-cache.c: Add include.
12736 * dwarf2/dwz.h: New file.
12738 2020-03-25 Tom Tromey <tom@tromey.com>
12740 * compile/compile-object-load.c (get_out_value_type): Mention
12741 correct symbol name in error message.
12743 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
12745 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12747 2020-03-25 Tom de Vries <tdevries@suse.de>
12749 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
12750 * symmisc.c (dump_symtab_1): Print user and includes fields.
12751 (maintenance_info_symtabs): Same.
12753 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
12756 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
12757 (riscv_regcache_cooked_write): New function.
12758 (riscv_push_dummy_call): Use new function.
12759 (riscv_return_value): Likewise.
12761 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
12763 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
12764 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
12765 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
12766 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
12767 * infrun.c (follow_fork): Likewise.
12768 (follow_fork_inferior): Likewise.
12769 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
12770 * linux-nat.h (class linux_nat_target): Likewise.
12771 * remote.c (class remote_target) <follow_fork>: Likewise.
12772 (remote_target::follow_fork): Likewise.
12773 * target-delegates.c: Re-generate.
12774 * target.c (default_follow_fork): Likewise.
12775 (target_follow_fork): Likewise.
12776 * target.h (struct target_ops) <follow_fork>: Likewise.
12777 (target_follow_fork): Likewise.
12779 2020-03-24 Tom de Vries <tdevries@suse.de>
12781 * psymtab.c (maintenance_info_psymtabs): Print user field.
12783 2020-03-20 Tom Tromey <tromey@adacore.com>
12785 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
12787 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
12790 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
12792 * ptrace.m4: Don't check for ptrace declaration.
12793 * config.in: Re-generate.
12794 * configure: Re-generate.
12795 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
12798 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12800 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
12802 * i386-bsd-nat.c (gdb_ptrace): Likewise.
12803 * sparc-nat.c (gdb_ptrace): Likewise.
12804 * x86-bsd-nat.c (gdb_ptrace): Likewise.
12806 2020-03-20 Tom Tromey <tromey@adacore.com>
12808 * c-exp.y (lex_one_token): Fix assert.
12810 2020-03-20 Tom Tromey <tromey@adacore.com>
12812 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
12813 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
12816 2020-03-20 Tom Tromey <tromey@adacore.com>
12818 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
12820 2020-03-20 Tom Tromey <tromey@adacore.com>
12822 * ada-valprint.c (print_variant_part): Remove parameters; switch
12823 to value-based API.
12824 (print_field_values): Likewise.
12825 (ada_val_print_struct_union): Likewise.
12826 (ada_value_print_1): Update.
12828 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12830 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
12831 nbsd_nat_target instead of inf_ptrace_target.
12832 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12835 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12837 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
12838 it to the ptrace call.
12839 * (store_registers): Likewise.
12841 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12843 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
12844 it to the ptrace call.
12845 * (store_registers): Likewise.
12847 2020-03-19 Luis Machado <luis.machado@linaro.org>
12849 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
12850 valid, fetch vg value from ptrace.
12852 2020-03-19 Kamil Rytarowski <n54@gmx.com>
12853 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
12854 * inf-ptrace.c: Likewise.
12855 * (gdb_ptrace): Add.
12856 * (inf_ptrace_target::resume): Update.
12857 * (inf_ptrace_target::xfer_partial): Likewise.
12858 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
12859 * (inf_ptrace_peek_poke): Update.
12861 2020-03-19 Kamil Rytarowski <n54@gmx.com>
12863 * x86-bsd-nat.c (gdb_ptrace): New.
12864 * (x86bsd_dr_set): Add new argument `ptid'.
12865 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
12866 x86bsd_dr_set_addr): Update.
12868 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12870 * remote.c (remote_target::process_stop_reply): Handle events for
12871 all threads differently.
12873 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12875 * completer.c (completion_tracker::remove_completion): Define new
12877 * completer.h (completion_tracker::remove_completion): Declare new
12879 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
12880 when adding a C++ function symbol.
12882 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12884 * completer.c (completion_tracker::completion_hash_entry): Define
12886 (advance_to_filename_complete_word_point): Call
12887 recompute_lowest_common_denominator.
12888 (completion_tracker::completion_tracker): Call discard_completions
12889 to setup the hash table.
12890 (completion_tracker::discard_completions): Allow for being called
12891 from the constructor, pass new equal function, and element deleter
12892 when constructing the hash table. Initialise new class member
12894 (completion_tracker::maybe_add_completion): Remove use of
12895 m_entries_vec, and store more information into m_entries_hash.
12896 (completion_tracker::recompute_lcd_visitor): New function, most
12897 content taken from...
12898 (completion_tracker::recompute_lowest_common_denominator):
12899 ...here, this now just visits each item in the hash calling the
12901 (completion_tracker::build_completion_result): Remove use of
12902 m_entries_vec, call recompute_lowest_common_denominator.
12903 * completer.h (completion_tracker::have_completions): Remove use
12905 (completion_tracker::completion_hash_entry): Declare new class.
12906 (completion_tracker::recompute_lowest_common_denominator): Change
12907 function signature.
12908 (completion_tracker::recompute_lcd_visitor): Declare new function.
12909 (completion_tracker::m_entries_vec): Delete.
12910 (completion_tracker::m_entries_hash): Initialize to NULL.
12911 (completion_tracker::m_lowest_common_denominator_valid): New
12913 (completion_tracker::m_lowest_common_denominator_max_length): New
12916 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12918 * regformats/regdef.h: Put reg in gdb namespace.
12920 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12922 * i386-bsd-nat.c (gdb_ptrace): New.
12923 * (i386bsd_fetch_inferior_registers,
12924 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12925 * (i386bsd_fetch_inferior_registers,
12926 i386bsd_store_inferior_registers) Use gdb_ptrace.
12928 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12930 * amd64-bsd-nat.c (gdb_ptrace): New.
12931 * (amd64bsd_fetch_inferior_registers,
12932 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12933 * (amd64bsd_fetch_inferior_registers,
12934 amd64bsd_store_inferior_registers) Use gdb_ptrace.
12936 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12938 * user-regs.c (user_reg::read): Rename to...
12939 (user_reg::xread): ...this.
12940 * (append_user_reg): Rename argument `read' to `xread'.
12941 * (user_reg_add_builtin): Likewise.
12942 * (user_reg_add): Likewise.
12943 * (value_of_user_reg): Likewise.
12945 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12947 * sparc-nat.c (gdb_ptrace): New.
12948 * sparc-nat.c (sparc_fetch_inferior_registers)
12949 (sparc_store_inferior_registers) Remove obsolete comment.
12950 * sparc-nat.c (sparc_fetch_inferior_registers)
12951 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
12952 * sparc-nat.c (sparc_fetch_inferior_registers)
12953 (sparc_store_inferior_registers) Use gdb_ptrace.
12955 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12957 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
12958 it to the ptrace call.
12959 * sh-nbsd-nat.c (store_registers): Likewise.
12961 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12963 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
12964 nbsd_nat_target instead of inf_ptrace_target.
12965 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12968 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12970 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
12972 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12974 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
12976 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
12978 2020-03-17 Tom de Vries <tdevries@suse.de>
12981 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
12983 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
12985 (process_imported_unit_die): Skip import of c++ CUs.
12987 2020-03-16 Tom Tromey <tom@tromey.com>
12989 * p-valprint.c (pascal_object_print_value): Initialize
12992 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
12993 Shahab Vahedi <shahab@synopsys.com>
12995 * Makefile.in: Add arch/arc.o
12996 * configure.tgt: Likewise.
12997 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
12998 (_initialize_arc_tdep): Don't initialize old target descriptions.
12999 (arc_read_description): New function to cache target descriptions.
13000 * arc-tdep.h (arc_read_description): Add proto type.
13001 * arch/arc.c: New file.
13002 * arch/arc.h: Likewise.
13003 * features/Makefile: Replace old target descriptions with new.
13004 * features/arc-arcompact.c: Remove.
13005 * features/arc-arcompact.xml: Likewise.
13006 * features/arc-v2.c: Likewise
13007 * features/arc-v2.xml: Likewise
13008 * features/arc/aux-arcompact.xml: New file.
13009 * features/arc/aux-v2.xml: Likewise.
13010 * features/arc/core-arcompact.xml: Likewise.
13011 * features/arc/core-v2.xml: Likewise.
13012 * features/arc/aux-arcompact.c: Generate.
13013 * features/arc/aux-v2.c: Likewise.
13014 * features/arc/core-arcompact.c: Likewise.
13015 * features/arc/core-v2.c: Likewise.
13016 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
13018 2020-03-16 Tom Tromey <tromey@adacore.com>
13021 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
13022 putting value into bcache.
13024 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13027 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
13029 (amd64_windows_init_abi_common): ... this. Don't set size of
13031 (amd64_windows_init_abi): New function.
13032 (amd64_cygwin_init_abi): New function.
13033 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
13035 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
13038 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13040 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
13041 * windows-tdep.c (CYGWIN_DLL_NAME): New.
13042 (pe_import_directory_entry): New struct type.
13043 (is_linked_with_cygwin_dll): New function.
13044 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
13045 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
13046 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
13048 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13050 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
13051 i386_cygwin_core_osabi_sniffer.
13053 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13055 * i386-cygwin-tdep.c: Rename to...
13056 * i386-windows-tdep.c: ... this.
13057 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
13058 i386-windows-tdep.c.
13059 * configure.tgt: Likewise.
13061 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13063 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
13064 * osabi.c (gdb_osabi_names): Add "Windows".
13065 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
13066 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
13067 (i386_cygwin_core_osabi_sniffer): New function, extracted from
13068 i386_cygwin_osabi_sniffer.
13069 (_initialize_i386_cygwin_tdep): Register OS ABI
13070 GDB_OSABI_WINDOWS for i386.
13071 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
13072 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
13073 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
13075 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
13076 when the target matches '*-*-mingw*'.
13078 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13080 * defs.h (enum gdb_osabi): Move to...
13081 * osabi.h (enum gdb_osabi): ... here.
13082 * gdbarch.sh: Include osabi.h in gdbarch.h.
13083 * gdbarch.h: Re-generate.
13085 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13087 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
13089 (_initialize_amd64_windows_tdep): Register osabi sniffer.
13091 2020-03-14 Tom Tromey <tom@tromey.com>
13093 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
13095 (c_type_print_modifier): Likewise. Add "language" parameter.
13096 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
13097 (c_type_print_base_1): Update.
13098 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
13100 * type-stack.c (type_stack::insert): Handle tp_atomic and
13102 (type_stack::follow_type_instance_flags): Likewise.
13103 (type_stack::follow_types): Likewise. Merge type-following code.
13104 * c-exp.y (RESTRICT, ATOMIC): New tokens.
13105 (space_identifier, cv_with_space_id)
13106 (const_or_volatile_or_space_identifier_noopt)
13107 (const_or_volatile_or_space_identifier): Remove.
13108 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
13110 (ptr_operator, typebase): Update.
13111 (enum token_flag) <FLAG_C>: New constant.
13112 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
13114 (lex_one_token): Handle FLAG_C.
13116 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13118 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
13119 it to the ptrace call.
13120 * m68k-bsd-nat.c (store_registers): Likewise.
13122 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13124 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
13126 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
13127 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
13128 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
13130 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13132 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
13133 nbsd_nat_target instead of inf_ptrace_target.
13134 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13137 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13139 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
13142 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13144 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
13145 it to the ptrace call.
13146 * alpha-bsd-nat.c (store_registers): Likewise.
13148 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13150 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
13152 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
13153 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
13154 fill_fpregset): Likewise.
13156 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13158 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
13159 nbsd_nat_target instead of inf_ptrace_target.
13160 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13163 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13165 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
13168 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13170 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
13171 it to the ptrace call.
13172 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
13173 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
13174 * arm-nbsd-nat.c (store_register): Likewise.
13175 * arm-nbsd-nat.c (store_regs): Likewise.
13176 * arm-nbsd-nat.c (store_fp_register): Likewise.
13177 * arm-nbsd-nat.c (store_fp_regs): Likewise.
13179 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13181 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
13182 nbsd_nat_target instead of inf_ptrace_target.
13183 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13186 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13188 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
13189 it to the ptrace call.
13190 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
13192 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13194 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
13195 it to the ptrace call.
13196 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
13198 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13200 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
13202 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
13204 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13206 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
13207 instead of inf_ptrace_target.
13208 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13211 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13213 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13216 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13218 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13221 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13223 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
13226 2020-03-13 Tom Tromey <tom@tromey.com>
13228 * value.h (val_print): Don't declare.
13229 * valprint.h (val_print_array_elements)
13230 (val_print_scalar_formatted, generic_val_print): Don't declare.
13231 * valprint.c (generic_val_print_array): Take a struct value.
13232 (generic_val_print_ptr, generic_val_print_memberptr)
13233 (generic_val_print_bool, generic_val_print_int)
13234 (generic_val_print_char, generic_val_print_complex)
13235 (generic_val_print): Remove.
13236 (generic_value_print): Update.
13237 (do_val_print): Remove unused parameters. Don't call
13239 (val_print): Remove.
13240 (common_val_print): Update. Don't call value_check_printable.
13241 (val_print_scalar_formatted, val_print_array_elements): Remove.
13242 * rust-lang.c (rust_val_print): Remove.
13243 (rust_language_defn): Update.
13244 * p-valprint.c (pascal_val_print): Remove.
13245 (pascal_value_print_inner): Update.
13246 (pascal_object_print_val_fields, pascal_object_print_val):
13248 (pascal_object_print_static_field): Update.
13249 * p-lang.h (pascal_val_print): Don't declare.
13250 * p-lang.c (pascal_language_defn): Update.
13251 * opencl-lang.c (opencl_language_defn): Update.
13252 * objc-lang.c (objc_language_defn): Update.
13253 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
13254 * m2-lang.h (m2_val_print): Don't declare.
13255 * m2-lang.c (m2_language_defn): Update.
13256 * language.h (struct language_defn) <la_val_print>: Remove.
13257 * language.c (unk_lang_value_print_inner): Rename. Change
13259 (unknown_language_defn, auto_language_defn): Update.
13260 * go-valprint.c (go_val_print): Remove.
13261 * go-lang.h (go_val_print): Don't declare.
13262 * go-lang.c (go_language_defn): Update.
13263 * f-valprint.c (f_val_print): Remove.
13264 * f-lang.h (f_value_print): Don't declare.
13265 * f-lang.c (f_language_defn): Update.
13266 * d-valprint.c (d_val_print): Remove.
13267 * d-lang.h (d_value_print): Don't declare.
13268 * d-lang.c (d_language_defn): Update.
13269 * cp-valprint.c (cp_print_value_fields)
13270 (cp_print_value_fields_rtti, cp_print_value): Remove.
13271 (cp_print_static_field): Update.
13272 * c-valprint.c (c_val_print_array, c_val_print_ptr)
13273 (c_val_print_struct, c_val_print_union, c_val_print_int)
13274 (c_val_print_memberptr, c_val_print): Remove.
13275 * c-lang.h (c_val_print_array, cp_print_value_fields)
13276 (cp_print_value_fields_rtti): Don't declare.
13277 * c-lang.c (c_language_defn, cplus_language_defn)
13278 (asm_language_defn, minimal_language_defn): Update.
13279 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
13280 (ada_val_print_enum): Take a struct value.
13281 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
13282 (ada_val_print): Remove.
13283 (ada_value_print_1): Update.
13284 (printable_val_type): Remove.
13285 * ada-lang.h (ada_val_print): Don't declare.
13286 * ada-lang.c (ada_language_defn): Update.
13288 2020-03-13 Tom Tromey <tom@tromey.com>
13290 * valprint.c (do_val_print): Update.
13291 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
13293 (value_to_value_object_no_release): Declare.
13294 * python/py-value.c (value_to_value_object_no_release): New
13296 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
13298 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
13300 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
13302 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
13304 (gdbscm_apply_val_pretty_printer): Take a struct value.
13305 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
13307 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
13309 * extension-priv.h (struct extension_language_ops)
13310 <apply_val_pretty_printer>: Take a struct value.
13311 * cp-valprint.c (cp_print_value): Create a struct value.
13312 (cp_print_value): Update.
13314 2020-03-13 Tom Tromey <tom@tromey.com>
13316 * ada-valprint.c (print_field_values): Call common_val_print.
13318 2020-03-13 Tom Tromey <tom@tromey.com>
13320 * ada-valprint.c (val_print_packed_array_elements): Remove
13321 bitoffset and val parameters. Call common_val_print.
13322 (ada_val_print_string): Remove offset, address, and original_value
13324 (ada_val_print_array): Update.
13325 (ada_value_print_array): New function.
13326 (ada_value_print_1): Call it.
13328 2020-03-13 Tom Tromey <tom@tromey.com>
13330 * ada-valprint.c (ada_value_print): Use common_val_print.
13332 2020-03-13 Tom Tromey <tom@tromey.com>
13334 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
13336 2020-03-13 Tom Tromey <tom@tromey.com>
13338 * ada-valprint.c (ada_value_print_num): New function.
13339 (ada_value_print_1): Use it.
13341 2020-03-13 Tom Tromey <tom@tromey.com>
13343 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
13345 2020-03-13 Tom Tromey <tom@tromey.com>
13347 * ada-valprint.c (ada_value_print_ptr): New function.
13348 (ada_value_print_1): Use it.
13350 2020-03-13 Tom Tromey <tom@tromey.com>
13352 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
13353 call common_val_print.
13354 (ada_val_print_1): Update.
13355 (ada_value_print_1): New function.
13356 (ada_value_print_inner): Rewrite.
13358 2020-03-13 Tom Tromey <tom@tromey.com>
13360 * cp-valprint.c (cp_print_value_fields): Update.
13361 (cp_print_value): New function.
13363 2020-03-13 Tom Tromey <tom@tromey.com>
13365 * m2-valprint.c (m2_value_print_inner): Use
13366 cp_print_value_fields.
13367 * cp-valprint.c (cp_print_value_fields): New function.
13368 * c-valprint.c (c_value_print_struct): New function.
13369 (c_value_print_inner): Use c_value_print_struct.
13370 * c-lang.h (cp_print_value_fields): Declare.
13372 2020-03-13 Tom Tromey <tom@tromey.com>
13374 * c-valprint.c (c_value_print_array): New function.
13375 (c_value_print_inner): Use it.
13377 2020-03-13 Tom Tromey <tom@tromey.com>
13379 * c-valprint.c (c_value_print_memberptr): New function.
13380 (c_value_print_inner): Use it.
13382 2020-03-13 Tom Tromey <tom@tromey.com>
13384 * c-valprint.c (c_value_print_int): New function.
13385 (c_value_print_inner): Use it.
13387 2020-03-13 Tom Tromey <tom@tromey.com>
13389 * c-valprint.c (c_value_print_ptr): New function.
13390 (c_value_print_inner): Use it.
13392 2020-03-13 Tom Tromey <tom@tromey.com>
13394 * c-valprint.c (c_value_print_inner): Rewrite.
13396 2020-03-13 Tom Tromey <tom@tromey.com>
13398 * valprint.c (generic_value_print_complex): New function.
13399 (generic_value_print): Use it.
13401 2020-03-13 Tom Tromey <tom@tromey.com>
13403 * valprint.c (generic_val_print_float): Don't call
13404 val_print_scalar_formatted.
13405 (generic_val_print, generic_value_print): Update.
13407 2020-03-13 Tom Tromey <tom@tromey.com>
13409 * valprint.c (generic_value_print_char): New function
13410 (generic_value_print): Use it.
13412 2020-03-13 Tom Tromey <tom@tromey.com>
13414 * valprint.c (generic_value_print_int): New function.
13415 (generic_value_print): Use it.
13417 2020-03-13 Tom Tromey <tom@tromey.com>
13419 * valprint.c (generic_value_print_bool): New function.
13420 (generic_value_print): Use it.
13422 2020-03-13 Tom Tromey <tom@tromey.com>
13424 * valprint.c (generic_val_print_func): Simplify.
13425 (generic_val_print, generic_value_print): Update.
13427 2020-03-13 Tom Tromey <tom@tromey.com>
13429 * valprint.c (generic_val_print_flags): Remove.
13430 (generic_val_print, generic_value_print): Update.
13431 (val_print_type_code_flags): Add original_value parameter.
13433 2020-03-13 Tom Tromey <tom@tromey.com>
13435 * valprint.c (generic_val_print): Update.
13436 (generic_value_print): Update.
13437 * valprint.c (generic_val_print_enum): Don't call
13438 val_print_scalar_formatted.
13440 2020-03-13 Tom Tromey <tom@tromey.com>
13442 * valprint.c (generic_value_print): Call generic_value_print_ptr.
13443 * valprint.c (generic_value_print_ptr): New function.
13445 2020-03-13 Tom Tromey <tom@tromey.com>
13447 * valprint.c (generic_value_print): Rewrite.
13449 2020-03-13 Tom Tromey <tom@tromey.com>
13451 * p-valprint.c (pascal_object_print_value_fields)
13452 (pascal_object_print_value): New functions.
13454 2020-03-13 Tom Tromey <tom@tromey.com>
13456 * p-valprint.c (pascal_value_print_inner): Rewrite.
13458 2020-03-13 Tom Tromey <tom@tromey.com>
13460 * f-valprint.c (f_value_print_innner): Rewrite.
13462 2020-03-13 Tom Tromey <tom@tromey.com>
13464 * m2-valprint.c (m2_print_unbounded_array): New overload.
13465 (m2_print_unbounded_array): Update.
13466 (m2_print_array_contents): Take a struct value.
13467 (m2_value_print_inner): Rewrite.
13469 2020-03-13 Tom Tromey <tom@tromey.com>
13471 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
13472 (d_value_print_inner): New function.
13473 * d-lang.h (d_value_print_inner): Declare.
13474 * d-lang.c (d_language_defn): Use d_value_print_inner.
13476 2020-03-13 Tom Tromey <tom@tromey.com>
13478 * go-valprint.c (go_value_print_inner): New function.
13479 * go-lang.h (go_value_print_inner): Declare.
13480 * go-lang.c (go_language_defn): Use go_value_print_inner.
13482 2020-03-13 Tom Tromey <tom@tromey.com>
13484 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
13486 (rust_val_print): Rewrite.
13487 (rust_value_print_inner): New function, from rust_val_print.
13488 (rust_language_defn): Use rust_value_print_inner.
13490 2020-03-13 Tom Tromey <tom@tromey.com>
13492 * ada-valprint.c (ada_value_print_inner): New function.
13493 * ada-lang.h (ada_value_print_inner): Declare.
13494 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
13496 2020-03-13 Tom Tromey <tom@tromey.com>
13498 * f-valprint.c (f_value_print_innner): New function.
13499 * f-lang.h (f_value_print_innner): Declare.
13500 * f-lang.c (f_language_defn): Use f_value_print_innner.
13502 2020-03-13 Tom Tromey <tom@tromey.com>
13504 * p-valprint.c (pascal_value_print_inner): New function.
13505 * p-lang.h (pascal_value_print_inner): Declare.
13506 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
13508 2020-03-13 Tom Tromey <tom@tromey.com>
13510 * m2-valprint.c (m2_value_print_inner): New function.
13511 * m2-lang.h (m2_value_print_inner): Declare.
13512 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
13514 2020-03-13 Tom Tromey <tom@tromey.com>
13516 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
13517 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
13518 * c-valprint.c (c_value_print_inner): New function.
13519 * c-lang.h (c_value_print_inner): Declare.
13520 * c-lang.c (c_language_defn, cplus_language_defn)
13521 (asm_language_defn, minimal_language_defn): Use
13522 c_value_print_inner.
13524 2020-03-13 Tom Tromey <tom@tromey.com>
13526 * p-valprint.c (pascal_object_print_value_fields): Now static.
13527 * p-lang.h (pascal_object_print_value_fields): Don't declare.
13529 2020-03-13 Tom Tromey <tom@tromey.com>
13531 * c-valprint.c (c_val_print_array): Simplify.
13533 2020-03-13 Tom Tromey <tom@tromey.com>
13535 * valprint.c (value_print_array_elements): New function.
13536 * valprint.h (value_print_array_elements): Declare.
13538 2020-03-13 Tom Tromey <tom@tromey.com>
13540 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
13541 * mips-tdep.c (mips_print_register): Use
13542 value_print_scalar_formatted.
13544 2020-03-13 Tom Tromey <tom@tromey.com>
13546 * valprint.h (value_print_scalar_formatted): Declare.
13547 * valprint.c (value_print_scalar_formatted): New function.
13549 2020-03-13 Tom Tromey <tom@tromey.com>
13551 * valprint.h (generic_value_print): Declare.
13552 * valprint.c (generic_value_print): New function.
13554 2020-03-13 Tom Tromey <tom@tromey.com>
13556 * valprint.c (do_val_print): Call la_value_print_inner, if
13558 * rust-lang.c (rust_language_defn): Update.
13559 * p-lang.c (pascal_language_defn): Update.
13560 * opencl-lang.c (opencl_language_defn): Update.
13561 * objc-lang.c (objc_language_defn): Update.
13562 * m2-lang.c (m2_language_defn): Update.
13563 * language.h (struct language_defn) <la_value_print_inner>: New
13565 * language.c (unknown_language_defn, auto_language_defn): Update.
13566 * go-lang.c (go_language_defn): Update.
13567 * f-lang.c (f_language_defn): Update.
13568 * d-lang.c (d_language_defn): Update.
13569 * c-lang.c (c_language_defn, cplus_language_defn)
13570 (asm_language_defn, minimal_language_defn): Update.
13571 * ada-lang.c (ada_language_defn): Update.
13573 2020-03-13 Tom Tromey <tom@tromey.com>
13575 * c-valprint.c (c_value_print): Use common_val_print.
13577 2020-03-13 Tom Tromey <tom@tromey.com>
13579 * cp-valprint.c (cp_print_static_field): Use common_val_print.
13581 2020-03-13 Tom Tromey <tom@tromey.com>
13583 * f-valprint.c (f77_print_array_1, f_val_print): Use
13586 2020-03-13 Tom Tromey <tom@tromey.com>
13588 * riscv-tdep.c (riscv_print_one_register_info): Use
13591 2020-03-13 Tom Tromey <tom@tromey.com>
13593 * mi/mi-main.c (output_register): Use common_val_print.
13595 2020-03-13 Tom Tromey <tom@tromey.com>
13597 * infcmd.c (default_print_one_register_info): Use
13600 2020-03-13 Tom Tromey <tom@tromey.com>
13602 * valprint.h (common_val_print_checked): Declare.
13603 * valprint.c (common_val_print_checked): New function.
13604 * stack.c (print_frame_arg): Use common_val_print_checked.
13606 2020-03-13 Tom Tromey <tom@tromey.com>
13608 * valprint.c (do_val_print): New function, from val_print.
13609 (val_print): Use do_val_print.
13610 (common_val_print): Use do_val_print.
13612 2020-03-13 Tom Tromey <tom@tromey.com>
13614 * valprint.c (value_print): Use scoped_value_mark.
13616 2020-03-13 Tom de Vries <tdevries@suse.de>
13619 * psymtab.c (partial_symtab::partial_symtab): Don't set
13620 globals_offset and statics_offset. Push element onto
13621 current_global_psymbols and current_static_psymbols stacks.
13622 (concat): New function.
13623 (end_psymtab_common): Set globals_offset and statics_offset. Pop
13624 element from current_global_psymbols and current_static_psymbols
13625 stacks. Concat popped elements to global_psymbols and
13627 (add_psymbol_to_list): Use current_global_psymbols and
13628 current_static_psymbols stacks.
13629 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
13630 current_static_psymbols fields.
13632 2020-03-12 Christian Biesinger <cbiesinger@google.com>
13634 * corelow.c (sniff_core_bfd): Remove.
13635 (class core_target) <m_core_vec>: Remove.
13636 (core_target::core_target): Update.
13637 (core_file_fns): Remove.
13638 (deprecated_add_core_fns): Remove.
13639 (default_core_sniffer): Remove.
13640 (sniff_core_bfd): Remove.
13641 (default_check_format): Remove.
13642 (gdb_check_format): Remove.
13643 (core_target_open): Update.
13644 (core_target::get_core_register_section): Update.
13645 (get_core_registers_cb): Update.
13646 (core_target::fetch_registers): Update.
13647 * gdbcore.h (struct core_fns): Remove.
13648 (deprecated_add_core_fns): Remove.
13649 (default_core_sniffer): Remove.
13650 (default_check_format): Remove.
13652 2020-03-12 Tom Tromey <tom@tromey.com>
13654 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
13656 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
13658 2020-03-12 Tom Tromey <tom@tromey.com>
13660 * remote.c (remote_target::download_tracepoint)
13661 (remote_target::enable_tracepoint)
13662 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
13663 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
13666 2020-03-12 Tom Tromey <tom@tromey.com>
13668 * symfile-mem.c: Update CORE_ADDR size assert.
13670 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13672 * selftest.m4: Move to gdbsupport/.
13673 * acinclude.m4: Update path to selftest.m4.
13675 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13677 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
13678 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
13679 gdbarch-selfselftests.c and selftest-arch.c.
13680 (SUBDIR_UNITTESTS_OBS): Rename to...
13681 (SELFTESTS_OBS): ... this.
13682 (COMMON_SFILES): Remove disasm-selftests.c and
13683 gdbarch-selftests.c.
13684 * configure.ac: Don't add selftest-arch.{c,o} to
13686 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
13687 preprocessor conditions.
13689 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13691 * configure.ac: Don't source bfd/development.sh.
13692 * selftest.m4: Modify comment.
13693 * configure: Re-generate.
13695 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13697 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
13698 not "true" or "false".
13699 * configure: Re-generate.
13701 2020-03-12 Christian Biesinger <cbiesinger@google.com>
13703 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
13704 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
13705 renamed to arm_nbsd_supply_gregset.
13706 (fetch_register): Update to call arm_nbsd_supply_gregset.
13707 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
13708 (arm_netbsd_nat_target::fetch_registers): Update.
13709 (fetch_elfcore_registers): Removed.
13710 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
13711 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
13712 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
13713 not require NetBSD system headers.
13714 (arm_nbsd_regset): New struct.
13715 (arm_nbsd_iterate_over_regset_sections): New function.
13716 (arm_netbsd_init_abi_common): Updated to call
13717 set_gdbarch_iterate_over_regset_sections.
13718 * arm-nbsd-tdep.h: New file.
13720 2020-03-11 Kevin Buettner <kevinb@redhat.com>
13722 * symtab.c (find_pc_sect_line): Add check which prevents infinite
13725 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
13727 * configure: Re-generate.
13729 2020-03-11 Tom Tromey <tromey@adacore.com>
13731 * ada-typeprint.c (print_choices): Fix comment.
13733 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
13735 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
13736 previous item in the list, when the list has no items.
13738 2020-03-11 Tom de Vries <tdevries@suse.de>
13740 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
13741 PROP_LOCLIST handling code.
13743 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
13745 * buildsym-legacy.c (record_line): Pass extra parameter to
13747 * buildsym.c (buildsym_compunit::record_line): Take an extra
13748 parameter, reduce duplication in the line table, and record the
13749 is_stmt flag in the line table.
13750 * buildsym.h (buildsym_compunit::record_line): Add extra
13752 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
13753 non-statement lines.
13754 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
13755 this to the symtab builder.
13756 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
13757 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
13758 through to dwarf_record_line_1.
13759 * infrun.c (process_event_stop_test): When stepping, don't stop at
13760 a non-statement instruction, and only refresh the step info when
13761 we land in the middle of a line's range. Also add an extra
13763 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
13765 * record-btrace.c (btrace_find_line_range): Only record lines
13766 marked as is-statement.
13767 * stack.c (frame_show_address): Show the frame address if we are
13768 in a non-statement sal.
13769 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
13770 (maintenance_print_one_line_table): Print a header for the is_stmt
13771 column, and include is_stmt information in the output.
13772 * symtab.c (find_pc_sect_line): Find lines marked as statements in
13773 preference to non-statements.
13774 (find_pcs_for_symtab_line): Prefer is-statement entries.
13775 (find_line_common): Likewise.
13776 * symtab.h (struct linetable_entry): Add is_stmt field.
13777 (struct symtab_and_line): Likewise.
13778 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
13779 arranging the line table.
13781 2020-03-07 Tom de Vries <tdevries@suse.de>
13783 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
13786 2020-03-07 Tom Tromey <tom@tromey.com>
13788 * valops.c (value_literal_complex): Remove obsolete comment.
13789 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
13792 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13794 * infrun.h: Forward-declare thread_info.
13795 (set_step_info): Add thread_info parameter, add doc.
13796 * infrun.c (set_step_info): Add thread_info parameter, move doc
13798 * infrun.c (process_event_stop_test): Pass thread to
13799 set_step_info call.
13800 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
13802 (prepare_one_step): Add thread_info parameter, pass it to
13803 set_step_frame and prepare_one_step (recursive) call.
13804 (step_1): Pass thread to prepare_one_step call.
13805 (step_command_fsm::should_stop): Pass thread to
13807 (until_next_fsm): Pass thread to set_step_frame call.
13808 (finish_command): Pass thread to set_step_info call.
13810 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
13812 * windows-tdep.c (windows_solib_create_inferior_hook):
13813 Check if inferior is running.
13815 2020-03-06 Tom de Vries <tdevries@suse.de>
13817 * NEWS: Fix "the the".
13820 2020-03-06 Tom de Vries <tdevries@suse.de>
13822 * psymtab.c (psymtab_to_symtab): Don't print "done.".
13824 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13826 * .dir-locals.el: Add a comment referencing the other copies of
13829 2020-03-05 John Baldwin <jhb@FreeBSD.org>
13831 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
13834 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13836 * .gitattributes: New file.
13838 2020-03-04 Tom Tromey <tom@tromey.com>
13840 * symmisc.c (print_symbol_bcache_statistics)
13841 (print_objfile_statistics): Update.
13842 * symfile.c (allocate_symtab): Use intern.
13843 * psymtab.c (partial_symtab::partial_symtab): Use intern.
13844 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13845 macro_cache>: Remove.
13846 <string_cache>: New member.
13847 (struct objfile) <intern>: New methods.
13848 * elfread.c (elf_symtab_read): Use intern.
13849 * dwarf2/read.c (fixup_go_packaging): Intern package name.
13850 (dwarf2_compute_name, dwarf2_physname)
13851 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
13853 (guess_partial_die_structure_name): Update.
13854 (partial_die_info::fixup): Intern name.
13855 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
13857 (dwarf2_name): Intern name. Update.
13858 * buildsym.c (buildsym_compunit::get_macro_table): Use
13861 2020-03-04 Tom Tromey <tom@tromey.com>
13863 * jit.c (bfd_open_from_target_memory): Make "target" const.
13864 * corefile.c (gnutarget): Now const.
13865 * gdbcore.h (gnutarget): Now const.
13867 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
13869 * NEWS: Mention support for WOW64 processes.
13870 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
13871 (amd64_windows_segment_register_p): Remove static.
13872 (_initialize_amd64_windows_nat): Update.
13873 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
13874 * i386-windows-nat.c (context_offset): Update.
13875 (i386_mappings): Rename and remove static.
13876 (i386_windows_segment_register_p): Remove static.
13877 (_initialize_i386_windows_nat): Update.
13878 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
13879 (STATUS_WX86_SINGLE_STEP): New macro.
13880 (EnumProcessModulesEx): New macro.
13881 (Wow64SuspendThread): New macro.
13882 (Wow64GetThreadContext): New macro.
13883 (Wow64SetThreadContext): New macro.
13884 (Wow64GetThreadSelectorEntry): New macro.
13885 (windows_set_context_register_offsets): Add static.
13886 (windows_set_segment_register_p): Likewise.
13887 (windows_add_thread): Adapt for WOW64 processes.
13888 (windows_fetch_one_register): Likewise.
13889 (windows_nat_target::fetch_registers): Likewise.
13890 (windows_store_one_register): Likewise.
13891 (display_selector): Likewise.
13892 (display_selectors): Likewise.
13893 (handle_exception): Likewise.
13894 (windows_continue): Likewise.
13895 (windows_nat_target::resume): Likewise.
13896 (windows_add_all_dlls): Likewise.
13897 (do_initial_windows_stuff): Likewise.
13898 (windows_nat_target::attach): Likewise.
13899 (windows_get_exec_module_filename): Likewise.
13900 (windows_nat_target::create_inferior): Likewise.
13901 (windows_xfer_siginfo): Likewise.
13902 (_initialize_loadable): Initialize Wow64SuspendThread,
13903 Wow64GetThreadContext, Wow64SetThreadContext,
13904 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
13905 * windows-nat.h (windows_set_context_register_offsets):
13906 Remove declaration.
13907 (windows_set_segment_register_p): Likewise.
13908 (i386_windows_segment_register_p): Add declaration.
13909 (amd64_windows_segment_register_p): Likewise.
13911 2020-03-04 Luis Machado <luis.machado@linaro.org>
13913 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
13914 in "info registers" for AArch64/ARM.
13916 The change caused "info registers" to not print GPR's.
13920 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13922 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13923 when reg->group is empty and reggroup is not.
13925 2020-03-03 Tom Tromey <tromey@adacore.com>
13927 * dwarf2/frame.c (struct dwarf2_frame_cache)
13928 <checked_tailcall_bottom, entry_cfa_sp_offset,
13929 entry_cfa_sp_offset_p>: Remove members.
13930 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
13931 (dwarf2_frame_prev_register): Don't call
13932 dwarf2_tailcall_sniffer_first.
13933 (dwarf2_append_unwinders): Don't append tailcall unwinder.
13934 * frame-unwind.c (add_unwinder): New fuction.
13935 (frame_unwind_init): Use it. Add tailcall unwinder.
13937 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
13938 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13940 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
13941 value should be printed as true.
13943 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
13945 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
13946 (windows_init_abi): Set and use windows_so_ops.
13948 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
13950 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
13951 when verifying if dealing with a convenience variable.
13953 2020-03-03 Luis Machado <luis.machado@linaro.org>
13955 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
13957 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13959 * infrun.c (gdbarch_supports_displaced_stepping): New.
13960 (use_displaced_stepping): Break up conditions in smaller pieces.
13961 Use gdbarch_supports_displaced_stepping.
13962 (displaced_step_prepare_throw): Use
13963 gdbarch_supports_displaced_stepping.
13965 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13967 * NEWS: Mention new behaviour of the history filename.
13968 * top.c (write_history_p): Add comment.
13969 (show_write_history_p): Add header comment, give a different
13970 message when history writing is on, but the history filename is
13972 (history_filename): Add comment.
13973 (history_filename_empty): New function.
13974 (show_history_filename): Add header comment, give a different
13975 message when the filename is empty.
13976 (init_history): Compare history_filename against nullptr, and only
13977 read history if the filename is not empty.
13978 (set_history_filename): Add header comment, and only make
13979 non-empty filenames absolute.
13980 (init_main): Make the filename argument to 'set history filename'
13983 2020-03-02 Christian Biesinger <cbiesinger@google.com>
13985 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
13986 (arm_supply_vfpregset): ...this, and update to use VFP registers.
13987 (fetch_fp_register): Update.
13988 (fetch_fp_regs): Update.
13989 (store_fp_register): Update.
13990 (store_fp_regs): Update.
13991 (arm_netbsd_nat_target::read_description): New function.
13992 (fetch_elfcore_registers): Update.
13994 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13996 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
13997 general_thread if the stop reply is missing a thread-id.
13998 (remote_target::process_stop_reply): Use the first non-exited
13999 thread if the target didn't pass a thread-id.
14000 * infrun.c (do_target_wait): Move call to
14001 switch_to_inferior_no_thread to ....
14002 (do_target_wait_1): ... here.
14004 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
14006 * debuginfod-support.c: Include defs.h first.
14008 2020-02-28 Tom de Vries <tdevries@suse.de>
14010 * symfile.c (set_initial_language): Use default language for lookup.
14012 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
14014 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
14015 reader variable, pass `this` to read_cutu_die_from_dwo.
14017 2020-02-27 Aaron Merey <amerey@redhat.com>
14019 * source.c (open_source_file): Check for nullptr when computing
14022 2020-02-27 Tom Tromey <tromey@adacore.com>
14024 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
14026 (dwarf2_add_field): Don't update nfields.
14027 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
14029 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14031 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
14034 2020-02-26 Tom Tromey <tom@tromey.com>
14036 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
14037 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
14038 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
14039 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
14042 2020-02-26 Tom Tromey <tom@tromey.com>
14044 * dwarf2/index-write.c (psym_index_map): Change type.
14045 (add_address_entry_worker, write_one_signatured_type)
14046 (recursively_count_psymbols, recursively_write_psymbols)
14047 (class debug_names, psyms_seen_size, write_gdbindex)
14048 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
14050 2020-02-26 Aaron Merey <amerey@redhat.com>
14052 * Makefile.in: Handle optional debuginfod support.
14054 * README: Add --with-debuginfod summary.
14055 * config.in: Regenerate.
14056 * configure: Regenerate.
14057 * configure.ac: Handle optional debuginfod support.
14058 * debuginfod-support.c: debuginfod helper functions.
14059 * debuginfod-support.h: Ditto.
14060 * doc/gdb.texinfo: Add --with-debuginfod to configure options
14062 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
14063 when a dwz file cannot be found.
14064 * elfread.c (elf_symfile_read): Query debuginfod servers when a
14065 debuginfo file cannot be found.
14066 * source.c (open_source_file): Query debuginfod servers when a
14067 source file cannot be found.
14068 * top.c (print_gdb_configuration): Include
14069 --{with,without}-debuginfod in the output.
14071 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
14073 * thread.c (thr_try_catch_cmd): Print thread name.
14075 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
14077 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
14078 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14079 dwarf2_fetch_die_type_sect_off): Move to...
14080 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
14081 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14082 dwarf2_fetch_die_type_sect_off): ... here.
14083 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
14084 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14085 dwarf2_fetch_die_type_sect_off): Move doc to header file.
14087 2020-02-26 Tom de Vries <tdevries@suse.de>
14090 * symfile.c (set_initial_language): Exit-early if
14091 language_mode == language_mode_manual.
14093 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14095 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
14096 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
14097 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
14099 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
14101 * gdbtypes.c (create_array_type_with_stride): Handle negative
14103 * valarith.c (value_subscripted_rvalue): Likewise.
14105 2020-02-25 Luis Machado <luis.machado@linaro.org>
14107 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
14109 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14111 * loc.h (dwarf2_get_die_type): Move to...
14112 * read.h (dwarf2_get_die_type): ... here.
14113 * read.c (dwarf2_get_die_type): Move doc to header.
14115 2020-02-25 Joel Brobecker <brobecker@adacore.com>
14117 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
14118 'gnulib/Makefile.in' to the list.
14120 2020-02-24 Tom Tromey <tom@tromey.com>
14122 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
14124 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
14127 2020-02-24 Tom Tromey <tom@tromey.com>
14129 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
14131 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
14132 (dw2_do_instantiate_symtab, dw2_get_file_names)
14133 (build_type_psymtab_dependencies, load_full_type_unit): Update.
14135 2020-02-24 Tom Tromey <tom@tromey.com>
14137 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
14138 make_scoped_restore.
14139 (dwarf2_psymtab::read_symtab): Don't clear
14140 reading_partial_symbols.
14142 2020-02-24 Tom de Vries <tdevries@suse.de>
14145 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
14147 2020-02-24 Tom de Vries <tdevries@suse.de>
14149 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
14150 commands layout next/prev/regs.
14152 2020-02-22 Tom Tromey <tom@tromey.com>
14154 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
14155 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
14157 2020-02-22 Tom Tromey <tom@tromey.com>
14159 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
14161 2020-02-22 Tom Tromey <tom@tromey.com>
14163 * tui/tui-win.c (_initialize_tui_win): Add usage text.
14164 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
14165 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
14166 * tui/tui.c (_initialize_tui): Add usage text.
14168 2020-02-22 Tom Tromey <tom@tromey.com>
14170 * tui/tui-win.c (tui_set_focus_command)
14171 (tui_set_win_height_command): Use error_no_arg.
14172 (_initialize_tui_win): Update help text.
14173 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
14175 2020-02-22 Tom Tromey <tom@tromey.com>
14177 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
14178 * tui/tui-disasm.h (struct tui_disasm_window)
14179 <display_start_addr>: Declare.
14180 * tui/tui-source.h (struct tui_source_window)
14181 <display_start_addr>: Declare.
14182 * tui/tui-winsource.h (struct tui_source_window_base)
14183 <show_source_line, display_start_addr>: New methods.
14184 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
14185 Rename and move to protected section.
14186 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
14187 (tui_source_window_base::do_erase_source_content): Update.
14188 (tui_source_window_base::show_source_line): Now a method.
14189 (tui_source_window_base::show_source_content)
14190 (tui_source_window_base::tui_source_window_base)
14191 (tui_source_window_base::rerender)
14192 (tui_source_window_base::refill)
14193 (tui_source_window_base::do_scroll_horizontal)
14194 (tui_source_window_base::set_is_exec_point_at)
14195 (tui_source_window_base::update_breakpoint_info)
14196 (tui_source_window_base::update_exec_info): Update.
14197 * tui/tui-source.c (tui_source_window::set_contents)
14198 (tui_source_window::showing_source_p)
14199 (tui_source_window::do_scroll_vertical)
14200 (tui_source_window::location_matches_p)
14201 (tui_source_window::line_is_displayed): Update.
14202 (tui_source_window::display_start_addr): New method.
14203 * tui/tui-disasm.c (tui_disasm_window::set_contents)
14204 (tui_disasm_window::do_scroll_vertical)
14205 (tui_disasm_window::location_matches_p): Update.
14206 (tui_disasm_window::display_start_addr): New method.
14208 2020-02-22 Tom Tromey <tom@tromey.com>
14210 * NEWS: Add entry for gdb.register_window_type.
14211 * tui/tui-layout.h (window_factory): New typedef.
14212 (tui_register_window): Declare.
14213 * tui/tui-layout.c (saved_tui_windows): New global.
14214 (tui_apply_current_layout): Use it.
14215 (tui_register_window): New function.
14216 * python/python.c (do_start_initialization): Call
14217 gdbpy_initialize_tui.
14218 (python_GdbMethods): Add "register_window_type" function.
14219 * python/python-internal.h (gdbpy_register_tui_window)
14220 (gdbpy_initialize_tui): Declare.
14221 * python/py-tui.c: New file.
14222 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
14224 2020-02-22 Tom Tromey <tom@tromey.com>
14226 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
14228 2020-02-22 Tom Tromey <tom@tromey.com>
14230 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
14231 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
14232 * tui/tui-data.c (tui_set_win_with_focus): Remove.
14233 (tui_set_win_focus_to): Move from tui-win.c.
14235 2020-02-22 Tom Tromey <tom@tromey.com>
14237 * tui/tui-layout.c (make_standard_window, get_locator_window): New
14239 (known_window_types): New global.
14240 (tui_get_window_by_name): Reimplement.
14241 (initialize_known_windows): New function.
14242 (validate_window_name): Rewrite.
14243 (_initialize_tui_layout): Call initialize_known_windows.
14245 2020-02-22 Tom Tromey <tom@tromey.com>
14247 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
14249 * tui/tui-winsource.h (struct tui_source_window_base)
14250 <tui_source_window_base>: Remove parameter.
14251 * tui/tui-winsource.c
14252 (tui_source_window_base::tui_source_window_base): Remove
14254 (tui_source_window_base::refill): Update.
14255 * tui/tui-stack.h (struct tui_locator_window)
14256 <tui_locator_window>: Update.
14257 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
14258 Default the constructor.
14259 * tui/tui-regs.h (struct tui_data_item_window)
14260 <tui_data_item_window>: Default the constructor.
14261 (struct tui_data_window) <tui_data_window>: Likewise.
14262 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
14263 Default the constructor.
14264 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
14265 Default the constructor.
14267 (struct tui_win_info) <tui_win_info>: Default the constructor.
14268 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
14269 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
14270 Default the constructor.
14272 2020-02-22 Tom Tromey <tom@tromey.com>
14274 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
14275 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
14276 * tui/tui-win.c (tui_resize_all): Don't call
14277 tui_delete_invisible_windows.
14278 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
14280 (tui_set_layout): Update.
14281 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
14282 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
14283 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
14285 2020-02-22 Tom Tromey <tom@tromey.com>
14287 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
14290 2020-02-22 Tom Tromey <tom@tromey.com>
14292 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
14294 2020-02-22 Tom Tromey <tom@tromey.com>
14296 * tui/tui-winsource.h (struct tui_source_window_iterator)
14297 <inner_iterator>: New etytypedef.
14298 <tui_source_window_iterator>: Take "end" parameter.
14299 <tui_source_window_iterator>: Take iterator.
14300 <operator*, advance>: Update.
14301 <m_iter>: Change type.
14302 <m_end>: New field.
14303 (struct tui_source_windows) <begin, end>: Update.
14304 * tui/tui-layout.c (tui_windows): New global.
14305 (tui_apply_current_layout): Clear tui_windows.
14306 (tui_layout_window::apply): Update tui_windows.
14307 * tui/tui-data.h (tui_windows): Declare.
14308 (all_tui_windows): Now inline function.
14309 (class tui_window_iterator, struct all_tui_windows): Remove.
14311 2020-02-22 Tom Tromey <tom@tromey.com>
14314 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
14315 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
14317 (class tui_layout_window) <get_sizes>: Likewise.
14318 (class tui_layout_split) <tui_layout_split>: Add "vertical"
14320 <get_sizes>: Add "height" argument.
14321 <m_vertical>: New field.
14322 * tui/tui-layout.c (tui_layout_split::clone): Update.
14323 (tui_layout_split::get_sizes): Add "height" argument.
14324 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
14325 (tui_new_layout_command): Parse "-horizontal".
14326 (_initialize_tui_layout): Update help string.
14327 (tui_layout_split::specification): Add "-horizontal" when needed.
14328 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
14330 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
14333 2020-02-22 Tom Tromey <tom@tromey.com>
14335 * tui/tui-layout.h (enum tui_adjust_result): New.
14336 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
14337 (class tui_layout_window) <adjust_size>: Return
14338 tui_adjust_result. Rewrite.
14339 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
14340 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
14342 2020-02-22 Tom Tromey <tom@tromey.com>
14344 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
14345 parameter and return types.
14346 (class tui_layout_base) <specification>: Add "depth".
14347 (class tui_layout_window) <specification>: Add "depth".
14348 (class tui_layout_split) <specification>: Add "depth".
14349 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
14351 (tui_new_layout_command): Parse sub-layouts.
14352 (_initialize_tui_layout): Update help string.
14353 (tui_layout_window::specification): Add "depth".
14354 (add_layout_command): Update.
14356 2020-02-22 Tom Tromey <tom@tromey.com>
14358 * NEWS: Add "tui new-layout" item.
14359 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
14360 Add new-layout command to help text.
14361 (validate_window_name): New function.
14362 (tui_new_layout_command): New function.
14363 (_initialize_tui_layout): Register "new-layout".
14364 (tui_layout_window::specification): New method.
14365 (tui_layout_window::specification): New method.
14366 * tui/tui-layout.h (class tui_layout_base) <specification>: New
14368 (class tui_layout_window) <specification>: New method.
14369 (class tui_layout_split) <specification>: New method.
14371 2020-02-22 Tom Tromey <tom@tromey.com>
14373 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
14374 * tui/tui-win.c (window_name_completer): Update comment.
14375 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
14377 (class tui_layout_window) <replace_window>: Likewise.
14378 (class tui_layout_split) <replace_window>: Likewise.
14379 (tui_set_layout): Don't declare.
14380 (tui_set_initial_layout): Declare function.
14381 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
14382 (asm_regs_layout): New globals.
14383 (tui_current_layout, show_layout): Remove.
14384 (tui_set_layout, tui_add_win_to_layout): Rewrite.
14385 (find_layout, tui_apply_layout): New function.
14386 (layout_completer): Remove.
14387 (tui_next_layout): Reimplement.
14388 (tui_next_layout_command): New function.
14389 (tui_set_initial_layout, tui_prev_layout_command): New functions.
14390 (tui_regs_layout): Reimplement.
14391 (tui_regs_layout_command): New function.
14392 (extract_display_start_addr): Rewrite.
14393 (next_layout, prev_layout): Remove.
14394 (tui_layout_window::replace_window): New method.
14395 (tui_layout_split::replace_window): New method.
14396 (destroy_layout): New function.
14397 (layout_list): New global.
14398 (add_layout_command): New function.
14399 (initialize_layouts): Update.
14400 (tui_layout_command): New function.
14401 (_initialize_tui_layout): Install "layout" commands.
14402 * tui/tui-data.h (enum tui_layout_type): Remove.
14403 (tui_current_layout): Don't declare.
14405 2020-02-22 Tom Tromey <tom@tromey.com>
14407 * tui/tui-regs.c (tui_reg_layout): Remove.
14408 (tui_reg_command): Use tui_regs_layout.
14409 * tui/tui-layout.h (tui_reg_command): Declare.
14410 * tui/tui-layout.c (tui_reg_command): New function.
14412 2020-02-22 Tom Tromey <tom@tromey.com>
14414 * tui/tui.c (tui_rl_delete_other_windows): Call
14415 tui_remove_some_windows.
14416 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
14418 (class tui_layout_window) <remove_windows>: New method.
14419 (class tui_layout_split) <remove_windows>: Declare.
14420 (tui_remove_some_windows): Declare.
14421 * tui/tui-layout.c (tui_remove_some_windows): New function.
14422 (tui_layout_split::remove_windows): New method.
14424 2020-02-22 Tom Tromey <tom@tromey.com>
14426 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
14427 * tui/tui-layout.h (tui_next_layout): Declare.
14428 * tui/tui-layout.c (tui_next_layout): New function.
14430 2020-02-22 Tom Tromey <tom@tromey.com>
14432 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
14433 correct coordinates.
14435 2020-02-22 Tom Tromey <tom@tromey.com>
14437 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
14438 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
14441 2020-02-22 Tom Tromey <tom@tromey.com>
14443 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
14444 TUI_DISASM_WIN, not tui_win_list.
14446 2020-02-22 Tom Tromey <tom@tromey.com>
14448 * valprint.c (generic_val_print_enum_1)
14449 (val_print_type_code_flags): Style member names.
14450 * rust-lang.c (val_print_struct, rust_print_enum)
14451 (rust_print_struct_def, rust_internal_print_type): Style member
14453 * p-valprint.c (pascal_object_print_value_fields): Style member
14454 names. Only call fprintf_symbol_filtered for static members.
14455 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
14456 * f-valprint.c (f_val_print): Style member names.
14457 * f-typeprint.c (f_type_print_base): Style member names.
14458 * cp-valprint.c (cp_print_value_fields): Style member names. Only
14459 call fprintf_symbol_filtered for static members.
14460 (cp_print_class_member): Style member names.
14461 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
14463 * ada-valprint.c (ada_print_scalar): Style enum names.
14464 (ada_val_print_enum): Likewise.
14465 * ada-typeprint.c (print_enum_type): Style enum names.
14467 2020-02-21 Tom Tromey <tom@tromey.com>
14469 * psympriv.h (struct partial_symtab): Update comment.
14471 2020-02-21 Tom Tromey <tromey@adacore.com>
14473 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
14476 2020-02-21 Tom de Vries <tdevries@suse.de>
14479 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
14480 if dependencies[i]->user != NULL.
14482 2020-02-21 Ali Tamur <tamur@google.com>
14484 * dwarf2/read.c (dwarf2_name): Add null check.
14486 2020-02-20 Tom Tromey <tom@tromey.com>
14488 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
14489 ">=", in binary search.
14490 (dwarf2_find_containing_comp_unit): New overload.
14491 (run_test): New self-test.
14492 (_initialize_dwarf2_read): Register new test.
14494 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
14496 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
14497 * riscv-tdep.h: Likewise.
14498 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
14500 * features/riscv/64bit-csr.xml: Regenerated.
14502 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
14503 Tom Tromey <tom@tromey.com>
14505 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
14506 of 'fputc_unfiltered'.
14507 (putchar_unfiltered): Call 'fputc_unfiltered'.
14508 (fputc_unfiltered): Call 'fputs_unfiltered'.
14510 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
14512 * config.in: Regenerate.
14513 * configure: Regenerate.
14514 * configure.ac: Add --with-python-libdir option.
14515 * main.c: Use WITH_PYTHON_LIBDIR.
14517 2020-02-19 Tom Tromey <tom@tromey.com>
14519 * symtab.c (general_symbol_info::compute_and_set_names): Use
14520 obstack_strndup. Simplify call to symbol_set_demangled_name.
14522 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
14524 * dwarf2/read.c (allocate_signatured_type_table,
14525 allocate_dwo_unit_table, allocate_type_unit_groups_table,
14526 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
14527 Remove objfile parameter, update all callers.
14529 2020-02-19 Doug Evans <dje@google.com>
14532 * rust-lang.c (rust_print_enum): Apply embedded_offset to
14533 rust_enum_variant calculation.
14535 2020-02-19 Tom Tromey <tromey@adacore.com>
14537 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
14539 2020-02-19 Tom Tromey <tromey@adacore.com>
14541 * ada-lang.c (cache_symbol): Use obstack_strdup.
14543 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14545 * configure: Regenerate.
14547 2020-02-19 Tom Tromey <tromey@adacore.com>
14549 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
14552 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
14554 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
14556 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14558 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
14559 if GDBSERVER is not defined.
14560 (riscv_tdesc_cache): Likewise, also store const target_desc.
14561 (STATIC_IN_GDB): Define.
14562 (riscv_create_target_description): Update declaration with
14564 (riscv_lookup_target_description): New function, only define if
14565 GDBSERVER is not defined.
14566 * arch/riscv.h (riscv_create_target_description): Declare only
14567 when GDBSERVER is defined.
14568 (riscv_lookup_target_description): New declaration when GDBSERVER
14570 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
14571 (riscv_linux_read_features): ...this, and return
14572 riscv_gdbarch_features instead of target_desc.
14573 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
14574 (riscv_linux_read_description): Rename to...
14575 (riscv_linux_read_features): ...this.
14576 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14577 Update to use riscv_gdbarch_features and
14578 riscv_lookup_target_description.
14579 * riscv-tdep.c (riscv_find_default_target_description): Use
14580 riscv_lookup_target_description instead of
14581 riscv_create_target_description.
14583 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14585 * valprint.c (generic_val_print_enum_1): When printing a flag
14586 enum with value 0 and there is no enumerator with value 0, print
14587 just "0" instead of "(unknown: 0x0)".
14589 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14591 * valprint.c (generic_val_print_enum_1): Print unknown part of
14594 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14596 * dwarf2/read.c (update_enumeration_type_from_children): Allow
14597 flag enums to contain duplicate enumerators.
14598 * valprint.c (generic_val_print_enum_1): Update comment.
14600 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14602 * dwarf2/read.c: Include "count-one-bits.h".
14603 (update_enumeration_type_from_children): If an enumerator has
14604 multiple bits set, don't treat the enumeration as a "flag enum".
14605 * valprint.c (generic_val_print_enum_1): Assert that enumerators
14606 of flag enums have 0 or 1 bit set.
14608 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
14610 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
14612 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14613 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14614 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14615 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14616 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14618 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14620 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
14622 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14624 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
14625 displaced_step_closure_up.
14626 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14627 (struct displaced_step_closure_up):
14628 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14629 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14630 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
14632 * gdbarch.sh (displaced_step_copy_insn): Likewise.
14633 * gdbarch.c, gdbarch.h: Re-generate.
14634 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
14635 displaced_step_closure_up.
14636 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14637 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14638 * infrun.h (displaced_step_closure_up): New type alias.
14639 (struct displaced_step_inferior_state) <step_closure>: Change
14640 type to displaced_step_closure_up.
14641 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
14642 displaced_step_closure_up.
14643 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14645 2020-02-14 Tom Tromey <tom@tromey.com>
14647 * minidebug.c (gnu_debug_key): New global.
14648 (find_separate_debug_file_in_section): Use it.
14650 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14652 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
14654 * gdbarch.c: Re-generate.
14655 * gdbarch.h: Re-generate.
14656 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
14658 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
14659 type to std::unique_ptr.
14660 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14661 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14662 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14663 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14664 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
14665 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14666 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14667 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14668 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14670 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14672 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
14674 (displaced_step_clear): Rename to...
14675 (displaced_step_reset): ... this. Just call displaced->reset ().
14676 (displaced_step_clear_cleanup): Rename to...
14677 (displaced_step_reset_cleanup): ... this.
14678 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
14679 (displaced_step_fixup): Likewise.
14680 (resume_1): Likewise.
14681 (handle_inferior_event): Restore child's memory before calling
14682 displaced_step_fixup on the parent.
14683 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
14684 to std::unique_ptr.
14685 <step_closure>: Change type to std::unique_ptr.
14687 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14689 * arm-tdep.c: Include count-one-bits.h.
14690 (cleanup_block_store_pc): Use count_one_bits.
14691 (cleanup_block_load_pc): Use count_one_bits.
14692 (arm_copy_block_xfer): Use count_one_bits.
14693 (thumb2_copy_block_xfer): Use count_one_bits.
14694 (thumb_copy_pop_pc_16bit): Use count_one_bits.
14695 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
14696 (thumb_get_next_pcs_raw): Use count_one_bits.
14697 (arm_get_next_pcs_raw): Use count_one_bits_l.
14698 * arch/arm.c (bitcount): Remove.
14699 * arch/arm.h (bitcount): Remove.
14701 2020-02-14 Tom Tromey <tromey@adacore.com>
14703 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
14705 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
14706 * dwarf2/loc.c (call_site_find_chain_1): Return
14707 unique_xmalloc_ptr.
14708 (call_site_find_chain): Likewise.
14710 2020-02-14 Richard Biener <rguenther@suse.de>
14712 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
14713 on expression with division operators.
14715 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14717 * MAINTAINERS (Write After Approval): Adding myself.
14719 2020-02-12 Tom Tromey <tom@tromey.com>
14721 * event-loop.c (event_data, gdb_event, event_handler_func):
14724 2020-02-12 Tom Tromey <tom@tromey.com>
14726 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
14727 (dwarf2_frame_objfile_data): Add comment.
14728 (find_comp_unit, set_comp_unit): New functions.
14729 (dwarf2_frame_find_fde): Use find_comp_unit.
14730 (dwarf2_build_frame_info): Use set_comp_unit.
14732 2020-02-12 Tom Tromey <tom@tromey.com>
14734 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
14735 (comp_unit): Don't initialize objfile.
14736 (execute_cfa_program): Add text_offset parameter.
14737 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
14738 (dwarf2_frame_cache): Update.
14739 (dwarf2_build_frame_info): Don't set "objfile" member.
14741 2020-02-12 Tom Tromey <tom@tromey.com>
14743 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
14744 (decode_frame_entry): Likewise.
14745 (dwarf2_build_frame_info): Update.
14747 2020-02-12 Tom Tromey <tom@tromey.com>
14749 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
14750 (decode_frame_entry_1): Use the comp_unit obstack.
14752 2020-02-12 Tom Tromey <tom@tromey.com>
14754 * dwarf2/frame.c (struct comp_unit): Add initializers and
14756 (dwarf2_frame_objfile_data): Store a comp_unit.
14757 (dwarf2_frame_find_fde): Update.
14758 (dwarf2_build_frame_info): Use "new".
14760 2020-02-12 Tom Tromey <tom@tromey.com>
14762 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
14763 (dwarf2_fde_table): Typedef for std::vector.
14764 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
14765 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
14766 (decode_frame_entry): Update.
14767 (dwarf2_build_frame_info): Use "new".
14769 2020-02-12 Christian Biesinger <cbiesinger@google.com>
14771 * arm-tdep.c (arm_gdbarch_init): Update.
14772 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
14773 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
14774 have_neon, is_m>: Change to bool.
14776 2020-02-12 Christian Biesinger <cbiesinger@google.com>
14778 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
14780 2020-02-12 Tom Tromey <tom@tromey.com>
14782 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
14784 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
14786 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
14787 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
14789 2020-02-11 Tom Tromey <tom@tromey.com>
14791 * psymtab.h: Update comment.
14793 2020-02-11 Tom Tromey <tom@tromey.com>
14795 * gdb_obstack.h (struct auto_obstack): Use
14796 DISABLE_COPY_AND_ASSIGN.
14798 2020-02-11 Tom Tromey <tom@tromey.com>
14800 * dwarf2/frame.h (struct objfile): Don't forward declare.
14802 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14804 * cris-tdep.c (cris_supply_gregset): Change signature to match
14805 what struct regset expects.
14806 (cris_regset): New struct.
14807 (fetch_core_registers): Remove.
14808 (cris_iterate_over_regset_sections): New function.
14809 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
14810 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
14812 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14814 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
14817 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14819 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
14821 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14823 * configure: Re-generate.
14825 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14827 * configure: Re-generate.
14829 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14831 * acinclude: Update warning.m4 path.
14832 * warning.m4: Move to gdbsupport.
14834 2020-02-11 Tom Tromey <tromey@adacore.com>
14836 * remote.c (remote_console_output): Update.
14837 * printcmd.c (printf_command): Update.
14838 * event-loop.c (gdb_wait_for_event): Update.
14839 * linux-nat.c (sigchld_handler): Update.
14840 * remote-sim.c (gdb_os_write_stdout): Update.
14841 (gdb_os_flush_stdout): Update.
14842 (gdb_os_flush_stderr): Update.
14843 (gdb_os_write_stderr): Update.
14844 * exceptions.c (print_exception): Update.
14845 * remote-fileio.c (remote_fileio_func_read): Update.
14846 (remote_fileio_func_write): Update.
14847 * tui/tui.c (tui_enable): Update.
14848 * tui/tui-interp.c (tui_interp::init): Update.
14849 * utils.c (init_page_info): Update.
14850 (putchar_unfiltered, fputc_unfiltered): Update.
14851 (gdb_flush): Update.
14852 (emit_style_escape): Update.
14853 (flush_wrap_buffer, fputs_maybe_filtered): Update.
14854 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
14855 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
14856 (stderr_file::write): Update.
14857 (stderr_file::puts): Update.
14858 * ui-file.h (ui_file_isatty, ui_file_write)
14859 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
14860 (ui_file_puts): Don't declare.
14862 2020-02-10 Tom de Vries <tdevries@suse.de>
14864 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
14865 sentinel to char *.
14867 2020-02-09 Tom de Vries <tdevries@suse.de>
14869 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
14870 filename if it matches "<artificial>".
14872 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
14874 * windows-tdep.c (struct enum_value_name): New struct.
14875 (create_enum): New function.
14876 (windows_get_siginfo_type): Create and use enum types.
14878 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
14880 * NEWS: Mention $_siginfo support for Windows.
14881 * windows-nat.c (handle_exception): Set siginfo_er.
14882 (windows_nat_target::mourn_inferior): Reset siginfo_er.
14883 (windows_xfer_siginfo): New function.
14884 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
14885 * windows-tdep.c (struct windows_gdbarch_data): New struct.
14886 (init_windows_gdbarch_data): New function.
14887 (get_windows_gdbarch_data): New function.
14888 (windows_get_siginfo_type): New function.
14889 (windows_init_abi): Register windows_get_siginfo_type.
14890 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
14892 2020-02-08 Tom Tromey <tom@tromey.com>
14894 * dwarf2/read.c (class cutu_reader) <cutu_reader,
14895 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
14896 <keep>: Declare method.
14897 <m_keep>: Remove member.
14898 <~cutu_reader>: Remove.
14899 (cutu_reader::init_tu_and_read_dwo_dies): Update.
14900 (cutu_reader::cutu_reader): Update.
14901 (cutu_reader::keep): Rename from ~cutu_reader.
14902 (process_psymtab_comp_unit, build_type_psymtabs_1)
14903 (process_skeletonless_type_unit, load_partial_comp_unit)
14904 (load_full_comp_unit, dwarf2_read_addr_index)
14905 (read_signatured_type): Update.
14907 2020-02-08 Tom Tromey <tom@tromey.com>
14909 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
14910 "want_partial_unit" parameter.
14911 (process_psymtab_comp_unit): Change want_partial_unit to bool.
14912 Inline check for DW_TAG_partial_unit.
14913 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
14915 2020-02-08 Tom Tromey <tom@tromey.com>
14917 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
14919 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
14922 2020-02-08 Tom Tromey <tom@tromey.com>
14924 * dwarf2/read.c (read_address): Move to comp-unit.c.
14925 (dwarf2_rnglists_process, dwarf2_ranges_process)
14926 (read_attribute_value, dwarf_decode_lines_1)
14927 (var_decode_location, decode_locdesc): Update.
14928 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
14929 read.c. Remove "cu" parameter.
14930 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
14933 2020-02-08 Tom Tromey <tom@tromey.com>
14935 * dwarf2/read.c (read_attribute_value, read_indirect_string)
14936 (read_indirect_line_string): Update.
14937 * dwarf2/comp-unit.c (read_offset): Remove.
14938 (read_comp_unit_head): Update.
14939 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
14941 (read_offset): Don't declare.
14943 2020-02-08 Tom Tromey <tom@tromey.com>
14945 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
14946 * dwarf2/read.c (struct comp_unit_head): Move to
14947 dwarf2/comp-unit.h.
14948 (enum class rcuh_kind): Move to comp-unit.h.
14949 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
14950 (read_comp_unit_head, error_check_comp_unit_head)
14951 (read_and_check_comp_unit_head): Move to comp-unit.c.
14952 (read_offset, dwarf_unit_type_name): Likewise.
14953 (create_debug_type_hash_table, read_cutu_die_from_dwo)
14954 (cutu_reader::cutu_reader, read_call_site_scope)
14955 (find_partial_die, follow_die_offset): Update.
14956 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
14958 2020-02-08 Tom Tromey <tom@tromey.com>
14960 * dwarf2/read.c (read_offset_1): Move to leb.c.
14961 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
14962 (dwarf_decode_macro_bytes): Update.
14963 * dwarf2/leb.c (read_offset): Rename; move from read.c.
14964 * dwarf2/leb.h (read_offset): Declare.
14966 2020-02-08 Tom Tromey <tom@tromey.com>
14968 * dwarf2/read.c (dwarf2_section_size): Remove.
14969 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
14971 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
14973 2020-02-08 Tom Tromey <tom@tromey.com>
14975 * dwarf2/read.c (read_initial_length): Move to leb.c.
14976 * dwarf2/leb.h (read_initial_length): Declare.
14977 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
14978 handle_nonstd parameter.
14979 * dwarf2/frame.c (read_initial_length): Remove.
14980 (decode_frame_entry_1): Update.
14982 2020-02-08 Tom Tromey <tom@tromey.com>
14984 * dwarf2/loc.c (dwarf2_find_location_expression)
14985 (dwarf_evaluate_loc_desc::get_tls_address)
14986 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14987 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
14988 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
14989 (dwarf2_compile_property_to_c)
14990 (dwarf2_loc_desc_get_symbol_read_needs)
14991 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
14992 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
14993 (loclist_describe_location, loclist_tracepoint_var_ref)
14994 (loclist_generate_c_location): Update.
14995 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
14996 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
14997 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
14998 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
14999 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
15000 (dwarf2_per_cu_data::addr_size)
15001 (dwarf2_per_cu_data::ref_addr_size)
15002 (dwarf2_per_cu_data::text_offset)
15003 (dwarf2_per_cu_data::addr_type): Now methods.
15004 (per_cu_header_read_in): Make per_cu "const".
15005 (dwarf2_version): Remove.
15006 (dwarf2_per_cu_data::int_type): Now a method.
15007 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
15008 (set_die_type, read_array_type, read_subrange_index_type)
15009 (read_tag_string_type, read_subrange_type): Update.
15010 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
15011 offset_size, ref_addr_size, text_offset, addr_type, version,
15012 objfile, int_type, addr_sized_int_type>: Declare methods.
15014 2020-02-08 Tom Tromey <tom@tromey.com>
15016 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
15019 2020-02-08 Tom Tromey <tom@tromey.com>
15021 * dwarf2/read.h (dwarf_line_debug): Declare.
15022 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
15023 * dwarf2/read.c: Move line_header code to new files.
15024 (dwarf_line_debug): No longer static.
15025 * dwarf2/line-header.c: New file.
15026 * dwarf2/line-header.h: New file.
15028 2020-02-08 Tom Tromey <tom@tromey.com>
15030 * dwarf2/read.c (struct line_header) <file_full_name,
15031 file_file_name>: Return unique_xmalloc_ptr.
15032 (line_header::file_file_name): Update.
15033 (line_header::file_full_name): Update.
15034 (dw2_get_file_names_reader): Update.
15035 (macro_start_file): Update.
15037 2020-02-08 Tom Tromey <tom@tromey.com>
15039 * dwarf2/read.c (struct line_header) <file_full_name,
15040 file_file_name>: Declare methods.
15041 (dw2_get_file_names_reader): Update.
15042 (file_file_name): Now a method.
15043 (file_full_name): Likewise.
15044 (macro_start_file): Update.
15046 2020-02-08 Tom Tromey <tom@tromey.com>
15048 * dwarf2/read.c (dwarf_always_disassemble)
15049 (show_dwarf_always_disassemble): Move to loc.c.
15050 (_initialize_dwarf2_read): Move "always-disassemble" registration
15052 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
15053 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
15055 (show_dwarf_always_disassemble): Move from read.c.
15056 (_initialize_dwarf2loc): Move always-disassemble from read.c.
15058 2020-02-08 Tom Tromey <tom@tromey.com>
15060 * dwarf2/read.c (~dwarf2_per_objfile): Update.
15061 (create_quick_file_names_table): Return htab_up.
15062 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
15064 * dwarf2/read.h (struct dwarf2_per_objfile)
15065 <quick_file_names_table>: Now htab_up.
15067 2020-02-08 Tom Tromey <tom@tromey.com>
15069 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
15071 2020-02-08 Tom Tromey <tom@tromey.com>
15073 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
15075 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
15076 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
15077 (abbrev_table::abbrev_table): No longer inline.
15078 (ABBREV_HASH_SIZE): Remove.
15079 (abbrev_table::m_abbrevs): Now an htab_up.
15081 2020-02-08 Tom Tromey <tom@tromey.com>
15083 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
15084 (cutu_reader): Update.
15085 (build_type_psymtabs_1): Update.
15086 * dwarf2/abbrev.c (abbrev_table::read): Rename.
15087 (abbrev_table::alloc_abbrev): Update.
15088 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
15089 (abbrev_table::read): New static method, renamed from
15090 abbrev_table_read_table.
15091 (abbrev_table::alloc_abbrev)
15092 (abbrev_table::add_abbrev): Now private.
15093 (abbrev_table::abbrev_table): Now private.
15094 (abbrev_table::m_abbrev_obstack): Now private. Rename.
15096 2020-02-08 Tom Tromey <tom@tromey.com>
15098 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
15099 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
15102 2020-02-08 Tom Tromey <tom@tromey.com>
15104 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
15106 (lookup_dwo_unit_in_dwp): Update.
15107 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
15110 2020-02-08 Tom Tromey <tom@tromey.com>
15112 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
15115 2020-02-08 Tom Tromey <tom@tromey.com>
15117 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
15119 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
15120 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
15121 Change type to htab_up.
15123 2020-02-08 Tom Tromey <tom@tromey.com>
15125 * dwarf2/read.c (allocate_type_unit_groups_table): Return
15126 htab_up. Don't allocate on obstack.
15127 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
15128 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
15129 Change type to htab_up.
15131 2020-02-08 Tom Tromey <tom@tromey.com>
15133 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
15134 Change type to htab_up.
15135 * dwarf2/read.c (create_signatured_type_table_from_index)
15136 (create_signatured_type_table_from_debug_names)
15137 (create_all_type_units, add_type_unit)
15138 (lookup_dwo_signatured_type, lookup_signatured_type)
15139 (process_skeletonless_type_unit): Update.
15140 (create_debug_type_hash_table, create_debug_types_hash_table):
15141 Change type of types_htab.
15142 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
15143 htab_up. Don't allocate on obstack.
15144 (create_cus_hash_table): Change type of cus_htab parameter.
15145 (struct dwo_file) <cus, tus>: Now htab_up.
15146 (lookup_dwo_signatured_type, lookup_dwo_cutu)
15147 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
15148 (queue_and_load_all_dwo_tus): Update.
15149 * dwarf2/index-write.c (write_gdbindex): Update.
15150 (write_debug_names): Update.
15152 2020-02-08 Tom Tromey <tom@tromey.com>
15154 * dwarf2/read.h (struct dwarf2_queue_item): Move from
15155 dwarf2/read.c. Remove "next" member. Add constructor ntad
15157 (struct dwarf2_per_objfile) <queue>: New member.
15158 * dwarf2/read.c (struct dwarf2_queue_item): Move to
15160 (dwarf2_queue, dwarf2_queue_tail): Remove.
15161 (class dwarf2_queue_guard): Add parameter to constructor. Use
15162 DISABLE_COPY_AND_ASSIGN.
15163 <m_per_objfile>: New member.
15164 <~dwarf2_queue_guard>: Rewrite.
15165 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
15167 (~dwarf2_queue_item): New.
15169 2020-02-08 Tom Tromey <tom@tromey.com>
15171 * dwarf2/read.c (struct die_info) <has_children>: New member.
15172 (dw2_get_file_names_reader): Remove has_children.
15173 (dw2_get_file_names): Update.
15174 (read_cutu_die_from_dwo): Remove has_children.
15175 (cutu_reader::init_tu_and_read_dwo_dies)
15176 (cutu_reader::cutu_reader): Update.
15177 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
15178 Remove has_children.
15179 (build_type_psymtabs_1, process_skeletonless_type_unit)
15180 (load_partial_comp_unit, load_full_comp_unit): Update.
15181 (create_dwo_cu_reader): Remove has_children.
15182 (create_cus_hash_table, read_die_and_children): Update.
15183 (read_full_die_1,read_full_die): Remove has_children.
15184 (read_signatured_type): Update.
15185 (class cutu_reader) <has_children>: Remove.
15187 2020-02-08 Tom Tromey <tom@tromey.com>
15189 * dwarf2/expr.c: Rename from dwarf2expr.c.
15190 * dwarf2/expr.h: Rename from dwarf2expr.h.
15191 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
15192 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
15193 * dwarf2/frame.c: Rename from dwarf2-frame.c.
15194 * dwarf2/frame.h: Rename from dwarf2-frame.h.
15195 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
15196 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
15197 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
15198 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
15199 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
15200 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
15201 * dwarf2/loc.c: Rename from dwarf2loc.c.
15202 * dwarf2/loc.h: Rename from dwarf2loc.h.
15203 * dwarf2/read.c: Rename from dwarf2read.c.
15204 * dwarf2/read.h: Rename from dwarf2read.h.
15205 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
15206 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
15207 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
15208 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
15209 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
15210 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
15211 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
15212 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
15213 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
15214 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
15215 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
15216 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
15217 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
15219 * Makefile.in (COMMON_SFILES): Update.
15220 (HFILES_NO_SRCDIR): Update.
15222 2020-02-08 Tom Tromey <tom@tromey.com>
15224 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
15225 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
15227 2020-02-08 Tom Tromey <tom@tromey.com>
15229 * dwarf2read.h (struct die_info): Don't declare.
15231 2020-02-08 Tom Tromey <tom@tromey.com>
15233 * dwarf2read.h (die_info_ptr): Remove typedef.
15235 2020-02-08 Tom Tromey <tom@tromey.com>
15237 * dwarf2read.c (read_call_site_scope)
15238 (handle_data_member_location, dwarf2_add_member_fn)
15239 (mark_common_block_symbol_computed, read_common_block)
15240 (attr_to_dynamic_prop, partial_die_info::read)
15241 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
15242 (dwarf2_symbol_mark_computed, set_die_type): Update.
15243 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
15245 (attr_form_is_block): Don't declare.
15246 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
15248 2020-02-08 Tom Tromey <tom@tromey.com>
15250 * dwarf2read.c (dwarf2_find_base_address, )
15251 (read_call_site_scope, rust_containing_type)
15252 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
15253 (handle_data_member_location, dwarf2_add_member_fn)
15254 (get_alignment, read_structure_type, process_structure_scope)
15255 (mark_common_block_symbol_computed, read_common_block)
15256 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
15257 (partial_die_info::read, read_attribute_value, new_symbol)
15258 (lookup_die_type, dwarf2_get_ref_die_offset)
15259 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
15260 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
15261 (dwarf2_symbol_mark_computed): Update.
15262 * dwarf2/attribute.h (struct attribute) <value_as_address,
15263 form_is_section_offset, form_is_constant, form_is_ref>: Declare
15265 (value_as_address, attr_form_is_section_offset)
15266 (attr_form_is_constant, attr_form_is_ref): Don't declare.
15267 * dwarf2/attribute.c (attribute::value_as_address)
15268 (attribute::form_is_section_offset, attribute::form_is_constant)
15269 (attribute::form_is_ref): Now methods.
15271 2020-02-08 Tom Tromey <tom@tromey.com>
15273 * dwarf2read.c (struct attribute, DW_STRING)
15274 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
15275 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
15276 (attr_form_is_block, attr_form_is_section_offset)
15277 (attr_form_is_constant, attr_form_is_ref): Move.
15278 * dwarf2/attribute.h: New file.
15279 * dwarf2/attribute.c: New file, from dwarf2read.c.
15280 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
15282 2020-02-08 Tom Tromey <tom@tromey.com>
15284 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
15285 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
15287 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
15288 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
15289 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
15291 * dwarf2/abbrev.h: New file.
15292 * dwarf2/abbrev.c: New file, from dwarf2read.c.
15293 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
15295 2020-02-08 Tom Tromey <tom@tromey.com>
15297 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
15298 (dwarf2_section_size, dwarf2_get_section_info)
15299 (create_signatured_type_table_from_debug_names)
15300 (create_addrmap_from_aranges, read_debug_names_from_section)
15301 (get_gdb_index_contents_from_section, read_comp_unit_head)
15302 (error_check_comp_unit_head, read_abbrev_offset)
15303 (create_debug_type_hash_table, init_cu_die_reader)
15304 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
15305 (read_comp_units_from_section, create_cus_hash_table)
15306 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
15307 (create_dwp_v2_section, dwarf2_rnglists_process)
15308 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
15309 (abbrev_table_read_table, read_indirect_string_at_offset_from)
15310 (read_indirect_string_from_dwz, read_addr_index_1)
15311 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
15312 (dwarf_decode_macro_bytes, dwarf_decode_macros)
15313 (fill_in_loclist_baton): Update.
15314 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
15315 get_containing_section, get_bfd_owner, get_bfd_section,
15316 get_file_name, get_id, get_flags, empty, read>: Declare methods.
15317 (dwarf2_read_section, get_section_name, get_section_file_name)
15318 (get_containing_section, get_section_bfd_owner)
15319 (get_section_bfd_section, get_section_name, get_section_file_name)
15320 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
15322 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
15323 (dwarf2_section_info::get_bfd_owner)
15324 (dwarf2_section_info::get_bfd_section)
15325 (dwarf2_section_info::get_name)
15326 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
15327 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
15328 (dwarf2_section_info::read): Now methods.
15329 * dwarf-index-write.c (class debug_names): Update.
15331 2020-02-08 Tom Tromey <tom@tromey.com>
15333 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
15334 Move to dwarf2/section.h.
15335 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
15336 (get_section_bfd_section, get_section_name)
15337 (get_section_file_name, get_section_id, get_section_flags)
15338 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
15340 * dwarf2/section.h: New file.
15341 * dwarf2/section.c: New file, from dwarf2read.c.
15342 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
15344 2020-02-08 Tom Tromey <tom@tromey.com>
15346 * dwarf2read.h (read_unsigned_leb128): Don't declare.
15347 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
15348 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
15349 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
15350 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
15351 * dwarf2/leb.h: New file, from dwarf2read.c.
15352 * dwarf2/leb.c: New file, from dwarf2read.c.
15353 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
15355 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
15356 (COMMON_SFILES): Add dwarf2/leb.c.
15358 2020-02-08 Joel Brobecker <brobecker@adacore.com>
15362 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15365 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
15366 * gdb/remote.c (remote_console_output): Update.
15367 * gdb/ui-file.c (fputs_unfiltered): Rename to...
15368 (ui_file_puts): ...this.
15369 * gdb/ui-file.h (ui_file_puts): Add declaration.
15370 * gdb/utils.c (emit_style_escape): Update.
15371 (flush_wrap_buffer): Update.
15372 (fputs_maybe_filtered): Update.
15373 (fputs_unfiltered): Add function.
15375 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15377 * gdb/event-loop.c (gdb_wait_for_event): Update.
15378 * gdb/printcmd.c (printf_command): Update.
15379 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
15380 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
15381 (gdb_os_flush_stderr): Update.
15382 * gdb/remote.c (remote_console_output): Update.
15383 * gdb/ui-file.c (gdb_flush): Rename to...
15384 (ui_file_flush): ...this.
15385 (stderr_file::write): Update.
15386 (stderr_file::puts): Update.
15387 * gdb/ui-file.h (gdb_flush): Rename to...
15388 (ui_file_flush): ...this.
15389 * gdb/utils.c (gdb_flush): Add function.
15390 * gdb/utils.h (gdb_flush): Add declaration.
15392 2020-02-07 Tom Tromey <tromey@adacore.com>
15394 PR breakpoints/24915:
15395 * source.c (find_and_open_source): Do not check basenames_may_differ.
15397 2020-02-07 Tom Tromey <tom@tromey.com>
15399 * README: Update gdbserver documentation.
15400 * gdbserver: Move to top level.
15401 * configure.tgt (build_gdbserver): Remove.
15402 * configure.ac: Remove --enable-gdbserver.
15403 * configure: Rebuild.
15404 * Makefile.in (distclean): Don't mention gdbserver.
15406 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
15408 * source-cache.c (source_cache::ensure): Surround
15409 get_plain_source_lines with a try/catch.
15410 (source_cache::get_line_charpos): Get rid of try/catch
15411 and only check for the return value of "ensure".
15412 * tui/tui-source.c (tui_source_window::set_contents):
15413 Simplify "nlines" calculation.
15415 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
15417 * MAINTAINERS (Write After Approval): Add myself.
15419 2020-02-05 Christian Biesinger <cbiesinger@google.com>
15421 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
15424 2020-02-05 Christian Biesinger <cbiesinger@google.com>
15426 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
15428 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
15430 * nat/riscv-linux-tdesc.h: New file.
15431 * nat/riscv-linux-tdesc.c: New file, taking code from...
15432 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15434 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
15437 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
15439 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
15440 we don't set the fake simulator ptid to the null_ptid.
15442 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
15444 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
15445 * gdbthread.h (class thread_info) <resumed>: Likewise.
15446 * infrun.c (resume_1): Likewise.
15447 (proceed): Likewise.
15448 (infrun_thread_stop_requested): Likewise.
15449 (stop_all_threads): Likewise.
15450 (handle_inferior_event): Likewise.
15451 (restart_threads): Likewise.
15452 (finish_step_over): Likewise.
15453 (keep_going_stepped_thread): Likewise.
15454 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
15455 (linux_handle_extended_wait): Likewise.
15456 * record-btrace.c (get_thread_current_frame_id): Likewise.
15457 * record-full.c (record_full_wait_1): Likewise.
15458 * remote.c (remote_target::process_initial_stop_replies): Likewise.
15459 * target.c (target_resume): Likewise.
15460 * thread.c (set_running_thread): Likewise.
15462 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15464 * f-valprint.c (f77_print_array_1): Changed datatype of index
15465 variable to LONGEST from int to enable it to contain bound
15468 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
15470 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
15471 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
15472 offsets according to FLEN determined.
15473 (riscv_linux_nat_target::read_description): Determine FLEN
15475 (riscv_linux_nat_target::fetch_registers): Size regset buffer
15476 according to FLEN determined.
15477 (riscv_linux_nat_target::store_registers): Likewise.
15479 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
15481 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
15482 when reg->group is empty and reggroup is not.
15484 2020-01-31 Tom Tromey <tromey@adacore.com>
15486 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
15487 Call beneath target's mourn_inferior after unpushing.
15489 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15492 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
15493 have enough lines to fill the screen, still return the lowest
15496 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15498 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
15499 '-', '<', and '>' commands.
15501 2020-01-29 Pedro Alves <palves@redhat.com>
15502 Sergio Durigan Junior <sergiodj@redhat.com>
15504 * infcmd.c (construct_inferior_arguments): Assert that
15505 'argc' is greater than 0.
15507 2020-01-29 Luis Machado <luis.machado@linaro.org>
15509 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
15510 (BRK_INSN_MASK): Define to 0xd4200000.
15511 (aarch64_program_breakpoint_here_p): New function.
15512 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
15513 * arch-utils.c (default_program_breakpoint_here_p): Moved from
15515 * arch-utils.h (default_program_breakpoint_here_p): Moved from
15517 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
15518 call gdbarch_program_breakpoint_here_p.
15519 (program_breakpoint_here): Moved to arch-utils.c, renamed to
15520 default_program_breakpoint_here_p, changed return type to bool and
15522 * breakpoint.h (program_breakpoint_here): Moved prototype to
15523 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
15524 return type to bool.
15525 * gdbarch.c: Regenerate.
15526 * gdbarch.h: Regenerate.
15527 * gdbarch.sh (program_breakpoint_here_p): New method.
15528 * infrun.c (handle_signal_stop): Call
15529 gdbarch_program_breakpoint_here_p.
15531 2020-01-26 Tom Tromey <tom@tromey.com>
15533 * ctfread.c (struct ctf_fp_info): Reindent.
15534 (_initialize_ctfread): Remove.
15536 2020-01-26 Tom Tromey <tom@tromey.com>
15538 * psymtab.c (partial_map_expand_apply)
15539 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
15540 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
15541 (psym_print_stats, psym_expand_symtabs_for_function)
15542 (psym_map_symbol_filenames, psym_map_matching_symbols)
15543 (psym_expand_symtabs_matching)
15544 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
15545 (maintenance_check_psymtabs): Use new methods.
15546 * psympriv.h (struct partial_symtab) <readin_p,
15547 get_compunit_symtab>: New methods.
15548 <readin, compunit_symtab>: Remove members.
15549 (struct standard_psymtab): New.
15550 (struct legacy_psymtab): Derive from standard_psymtab.
15551 * dwarf2read.h (struct dwarf2_psymtab): Derive from
15553 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
15555 2020-01-26 Tom Tromey <tom@tromey.com>
15557 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
15558 read_dependencies. Add assert.
15559 * psymtab.c (partial_symtab::read_dependencies): New method.
15560 * psympriv.h (struct partial_symtab) <read_dependencies>: New
15562 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
15563 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
15565 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
15568 2020-01-26 Tom Tromey <tom@tromey.com>
15570 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
15571 Call expand_psymtab.
15572 (xcoff_read_symtab): Call expand_psymtab.
15573 (xcoff_start_psymtab, xcoff_end_psymtab): Set
15574 legacy_expand_psymtab.
15575 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
15577 (struct legacy_psymtab) <expand_psymtab>: Implement.
15578 <legacy_expand_psymtab>: New member.
15579 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
15580 (parse_partial_symbols): Set legacy_expand_psymtab.
15581 (psymtab_to_symtab_1): Change argument order. Call
15583 (new_psymtab): Set legacy_expand_psymtab.
15584 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
15585 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
15587 (dwarf2_psymtab::expand_psymtab): Rename from
15588 psymtab_to_symtab_1. Call expand_psymtab.
15589 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
15590 (dbx_end_psymtab): Likewise.
15591 (dbx_psymtab_to_symtab_1): Change argument order. Call
15593 (dbx_read_symtab): Call expand_psymtab.
15594 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
15595 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
15596 (ctf_psymtab::read_symtab): Call expand_psymtab.
15598 2020-01-26 Tom Tromey <tom@tromey.com>
15600 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
15601 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
15603 * mdebugread.c (mdebug_read_symtab): Remove prints.
15604 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
15606 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
15608 2020-01-26 Tom Tromey <tom@tromey.com>
15610 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
15611 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
15612 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
15614 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
15615 * psymtab.c (psymtab_to_symtab): Call method.
15616 (dump_psymtab): Update.
15617 * psympriv.h (struct partial_symtab): Add virtual destructor.
15618 <read_symtab>: New method.
15619 (struct legacy_symtab): New.
15620 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
15621 (struct pst_map) <pst>: Now a legacy_psymtab.
15622 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
15623 (new_psymtab): Use legacy_psymtab.
15624 * dwarf2read.h (struct dwarf2_psymtab): New.
15625 (struct dwarf2_per_cu_data) <psymtab>: Use it.
15626 * dwarf2read.c (dwarf2_create_include_psymtab)
15627 (dwarf2_build_include_psymtabs, create_type_unit_group)
15628 (create_partial_symtab, process_psymtab_comp_unit_reader)
15629 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
15630 (set_partial_user): Use dwarf2_psymtab.
15631 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
15632 (psymtab_to_symtab_1, process_full_comp_unit)
15633 (process_full_type_unit, dwarf2_ranges_read)
15634 (dwarf2_get_pc_bounds, psymtab_include_file_name)
15635 (dwarf_decode_lines): Use dwarf2_psymtab.
15636 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
15637 (add_address_entry_worker, write_one_signatured_type)
15638 (recursively_count_psymbols, recursively_write_psymbols)
15639 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
15640 (write_debug_names): Likewise.
15641 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
15642 <pst>: Now a legacy_psymtab.
15643 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
15644 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
15645 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
15646 * ctfread.c (struct ctf_psymtab): New.
15647 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
15649 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
15650 (create_partial_symtab): Return a ctf_psymtab.
15651 (scan_partial_symbols): Update.
15653 2020-01-26 Tom Tromey <tom@tromey.com>
15655 * xcoffread.c (xcoff_start_psymtab): Use new.
15656 * psymtab.c (partial_symtab::partial_symtab): New constructor,
15657 renamed from start_psymtab_common.
15658 * psympriv.h (struct partial_symtab): Add new constructor.
15659 (start_psymtab_common): Don't declare.
15660 * mdebugread.c (parse_partial_symbols): Use new.
15661 * dwarf2read.c (create_partial_symtab): Use new.
15662 * dbxread.c (start_psymtab): Use new.
15663 * ctfread.c (create_partial_symtab): Use new.
15665 2020-01-26 Tom Tromey <tom@tromey.com>
15667 * xcoffread.c (xcoff_end_psymtab): Use new.
15668 * psymtab.c (start_psymtab_common): Use new.
15669 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
15671 * psympriv.h (struct partial_symtab): Add parameters to
15672 constructor. Don't inline.
15673 (allocate_psymtab): Don't declare.
15674 * mdebugread.c (new_psymtab): Use new.
15675 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
15676 * dbxread.c (dbx_end_psymtab): Use new.
15678 2020-01-26 Tom Tromey <tom@tromey.com>
15680 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
15681 allocate_psymtab. Update documentation.
15682 * psymtab.c (psymtab_storage::install_psymtab): Rename from
15683 allocate_psymtab. Do not use new.
15684 (allocate_psymtab): Use new. Update.
15686 2020-01-26 Tom Tromey <tom@tromey.com>
15688 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
15689 * psymtab.c (psym_print_stats): Update.
15690 * psympriv.h (struct partial_symtab) <readin,
15691 psymtabs_addrmap_supported, anonymous>: Now bool.
15692 * mdebugread.c (psymtab_to_symtab_1): Update.
15693 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
15694 (build_type_psymtabs_reader, psymtab_to_symtab_1)
15695 (process_full_comp_unit, process_full_type_unit): Update.
15696 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
15697 * ctfread.c (psymtab_to_symtab): Update.
15699 2020-01-26 Tom Tromey <tom@tromey.com>
15701 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
15702 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
15703 * psymtab.c (psymtab_storage): Delete psymtabs.
15704 (psymtab_storage::allocate_psymtab): Use new.
15705 (psymtab_storage::discard_psymtab): Use delete.
15706 * psympriv.h (struct partial_symtab): Add constructor and
15709 2020-01-26 Tom Tromey <tom@tromey.com>
15711 * machoread.c: Do not include psympriv.h.
15713 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15715 * NEWS: Mention the new option and the set/show commands.
15717 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15719 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
15720 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
15721 (validate_exec_file): New variables, enums, functions.
15722 (exec_file_locate_attach, print_section_info): Style the filenames.
15723 (_initialize_exec): Install show_exec_file_mismatch_command and
15724 set_exec_file_mismatch_command.
15725 * gdbcore.h (validate_exec_file): Declare.
15726 * infcmd.c (attach_command): Call validate_exec_file.
15727 * remote.c ( remote_target::remote_add_inferior): Likewise.
15729 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15731 * frame.c (find_frame_sal): Move call to get_next_frame into more
15733 * inline-frame.c (inilne_state) <inline_state>: Update argument
15735 (inilne_state) <skipped_symbol>: Rename to...
15736 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
15737 (skip_inline_frames): Build vector of skipped symbols and use this
15738 to reate the inline_state.
15739 (inline_skipped_symbol): Add a comment and some assertions, fetch
15740 skipped symbol from the list.
15742 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15744 * buildsym.c (lte_is_less_than): Delete.
15745 (buildsym_compunit::end_symtab_with_blockvector): Create local
15746 lambda function to sort line table entries, and use
15747 std::stable_sort instead of std::sort.
15748 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
15749 markers when looking for a previous line.
15751 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15753 * dwarf2read.c (lnp_state_machine::record_line): Include
15754 end_sequence parameter in debug print out. Record the line if we
15755 are at an end_sequence marker even if it's not the start of a
15757 * symmisc.c (maintenance_print_one_line_table): Print end of
15758 sequence markers with 'END' not '0'.
15760 2020-01-24 Pedro Alves <palves@redhat.com>
15763 * thread.c (scoped_restore_current_thread::restore): Use
15764 switch_to_inferior_no_thread.
15765 * exec.c: Include "progspace-and-thread.h".
15766 (add_target_sections, remove_target_sections):
15767 scoped_restore_current_pspace_and_thread instead of
15768 scoped_restore_current_thread.
15769 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
15770 and aspace to the inferior before calling clone_program_space.
15771 Remove stale comment.
15773 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15775 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
15776 (arm_netbsd_nat_target::fetch_registers): ...this.
15777 (arm_nbsd_nat_target::store_registers): Rename to...
15778 (arm_netbsd_nat_target::store_registers): ...this.
15780 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15782 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
15785 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15787 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
15789 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
15791 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
15792 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
15793 the correct replacement (iterate_over_regset_sections).
15794 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
15797 2020-01-24 Graham Markall <graham.markall@embecosm.com>
15800 * gdb/python/python.c (execute_gdb_command): Call
15801 async_enable_stdin in catch block.
15803 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15805 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
15806 SWITCH_THRU_ALL_UIS.
15808 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15811 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
15812 comment, add extra parameter, and update to store previous symbol
15814 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
15815 add extra parameter.
15816 * tui/tui-disasm.c (tui_disassemble): Update header comment,
15817 remove unneeded parameter, add try/catch around gdb_print_insn,
15818 rewrite to add items to asm_lines vector.
15819 (tui_find_backward_disassembly_start_address): New function.
15820 (tui_find_disassembly_address): Updated throughout.
15821 (tui_disasm_window::set_contents): Update for changes to
15823 (tui_disasm_window::do_scroll_vertical): No need to adjust the
15824 number of lines to scroll.
15826 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
15828 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
15829 (SECT_OFF_DATA): Likewise.
15830 (SECT_OFF_RODATA): Likewise.
15831 (SECT_OFF_TEXT): Likewise.
15832 (SECT_OFF_BSS): Likewise.
15833 (struct objfile) <text_section_offset, data_section_offset>: New
15835 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
15836 objfile::text_section_offset.
15837 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
15838 * coffread.c (coff_symtab_read): Likewise.
15839 (enter_linenos): Likewise.
15840 (process_coff_symbol): Likewise.
15841 * ctfread.c (get_objfile_text_range): Likewise.
15842 * dtrace-probe.c (dtrace_probe::get_relocated_address):
15843 Use objfile::data_section_offset.
15844 * dwarf2-frame.c (execute_cfa_program): Use
15845 objfile::text_section_offset.
15846 (dwarf2_frame_find_fde): Likewise.
15847 * dwarf2read.c (create_addrmap_from_index): Likewise.
15848 (create_addrmap_from_aranges): Likewise.
15849 (dw2_find_pc_sect_compunit_symtab): Likewise.
15850 (process_psymtab_comp_unit_reader): Likewise.
15851 (add_partial_symbol): Likewise.
15852 (add_partial_subprogram): Likewise.
15853 (process_full_comp_unit): Likewise.
15854 (read_file_scope): Likewise.
15855 (read_func_scope): Likewise.
15856 (read_lexical_block_scope): Likewise.
15857 (read_call_site_scope): Likewise.
15858 (dwarf2_rnglists_process): Likewise.
15859 (dwarf2_ranges_process): Likewise.
15860 (dwarf2_ranges_read): Likewise.
15861 (dwarf_decode_lines_1): Likewise.
15862 (new_symbol): Likewise.
15863 (dwarf2_fetch_die_loc_sect_off): Likewise.
15864 (dwarf2_per_cu_text_offset): Likewise.
15865 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
15866 * hppa-tdep.c (read_unwind_info): Likewise.
15867 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
15868 * psympriv.h (struct partial_symtab): Likewise.
15869 * psymtab.c (find_pc_sect_psymtab): Likewise.
15870 * solib-svr4.c (enable_break): Likewise.
15871 * stap-probe.c (relocate_address): Use
15872 objfile::data_section_offset.
15873 * xcoffread.c (enter_line_range): Use
15874 objfile::text_section_offset.
15875 (read_xcoff_symtab): Likewise.
15877 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
15879 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
15880 declaration to narrower scopes.
15882 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
15884 * darwin-nat.h (struct darwin_exception_msg, enum
15885 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
15887 (class darwin_nat_target) <wait_1, check_new_threads,
15888 decode_exception_message, decode_message, stop_inferior,
15889 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
15890 * darwin-nat.c (darwin_check_new_threads): Rename to...
15891 (darwin_nat_target::check_new_threads): ... this.
15892 (darwin_suspend_inferior_it): Remove.
15893 (darwin_decode_exception_message): Rename to...
15894 (darwin_nat_target::decode_exception_message): ... this.
15895 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
15896 (darwin_decode_message): Rename to...
15897 (darwin_nat_target::decode_message): ... this.
15898 (cancel_breakpoint): Rename to...
15899 (darwin_nat_target::cancel_breakpoint): ... this.
15900 (darwin_wait): Rename to...
15901 (darwin_nat_target::wait_1): ... this. Use range-based for loop
15902 instead of iterate_over_inferiors.
15903 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
15904 (darwin_stop_inferior): Rename to...
15905 (darwin_nat_target::stop_inferior): ... this.
15906 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
15907 (darwin_init_thread_list): Rename to...
15908 (darwin_nat_target::init_thread_list): ... this.
15909 (darwin_ptrace_him): Rename to...
15910 (darwin_nat_target::ptrace_him): ... this.
15911 (darwin_nat_target::create_inferior): Pass lambda function to
15913 (darwin_nat_target::detach): Call stop_inferior instead of
15914 darwin_stop_inferior.
15915 * fork-inferior.h (fork_inferior): Change init_trace_fun
15916 parameter to gdb::function_view.
15917 * fork-inferior.c (fork_inferior): Likewise.
15919 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
15921 * i386-cygwin-tdep.c (core_process_module_section): Update.
15922 * windows-nat.c (struct lm_info_windows): Add text_offset.
15923 (windows_xfer_shared_libraries): Update.
15924 * windows-tdep.c (windows_xfer_shared_library):
15925 Add text_offset_cached argument.
15926 * windows-tdep.h (windows_xfer_shared_library): Update.
15928 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15930 * gdbarch.sh: Add declaration for _initialize_gdbarch.
15932 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15934 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
15935 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
15936 replace with range-based for.
15937 (gdbsim_interrupt_inferior): Remove.
15938 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
15939 with a range-based for. Inline code from
15940 gdbsim_interrupt_inferior.
15942 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15944 * infrun.c (proceed): Fix indentation.
15946 2020-01-21 Tom Tromey <tromey@adacore.com>
15948 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
15949 * python/python.c (python_extension_ops): Update.
15950 (gdbpy_colorize): New function.
15951 * python/lib/gdb/__init__.py (colorize): New function.
15952 * extension.h (ext_lang_colorize): Declare.
15953 * extension.c (ext_lang_colorize): New function.
15954 * extension-priv.h (struct extension_language_ops) <colorize>: New
15956 * cli/cli-style.c (_initialize_cli_style): Update help text.
15958 2020-01-21 Luis Machado <luis.machado@linaro.org>
15960 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
15961 <cond>: Change type to bool.
15962 (aarch64_displaced_step_b_cond): Update cond to use bool type.
15963 (aarch64_displaced_step_cb): Likewise.
15964 (aarch64_displaced_step_tb): Likewise.
15966 2020-01-21 Luis Machado <luis.machado@linaro.org>
15968 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
15971 2020-01-21 Luis Machado <luis.machado@linaro.org>
15973 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
15974 <pc_adjust>: Adjust the documentation.
15975 (aarch64_displaced_step_fixup): Check if PC really moved before
15978 2020-01-19 Tom Tromey <tom@tromey.com>
15980 * disasm.c (~gdb_disassembler): New destructor.
15981 (gdb_buffered_insn_length): Call disassemble_free_target.
15982 * disasm.h (class gdb_disassembler): Declare destructor. Use
15983 DISABLE_COPY_AND_ASSIGN.
15985 2020-01-19 Tom Tromey <tom@tromey.com>
15987 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
15988 (die_reader_func_ftype): Remove.
15989 (cutu_reader): New class.
15990 (dw2_get_file_names_reader): Remove "data" parameter.
15991 (dw2_get_file_names): Use cutu_reader.
15992 (create_debug_type_hash_table): Update.
15993 (read_cutu_die_from_dwo): Update comment.
15994 (lookup_dwo_unit): Add dwo_name parameter.
15995 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
15996 die_reader_func_ftype and data parameters.
15997 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
15998 Remove die_reader_func_ftype and data parameters.
15999 (~cutu_reader): New; from init_cutu_and_read_dies.
16000 (cutu_reader::cutu_reader): Rename from
16001 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
16002 and data parameters.
16003 (init_cutu_and_read_dies_simple): Remove.
16004 (struct process_psymtab_comp_unit_data): Remove.
16005 (process_psymtab_comp_unit_reader): Remove data parameter; add
16006 want_partial_unit and pretend_language parameters.
16007 (process_psymtab_comp_unit): Use cutu_reader.
16008 (build_type_psymtabs_reader): Remove data parameter.
16009 (build_type_psymtabs_1): Use cutu_reader.
16010 (process_skeletonless_type_unit): Likewise.
16011 (load_partial_comp_unit_reader): Remove.
16012 (load_partial_comp_unit): Use cutu_reader.
16013 (load_full_comp_unit_reader): Remove.
16014 (load_full_comp_unit): Use cutu_reader.
16015 (struct create_dwo_cu_data): Remove.
16016 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
16017 dwo_unit parameters.
16018 (create_cus_hash_table): Use cutu_reader.
16019 (struct dwarf2_read_addr_index_data): Remove.
16020 (dwarf2_read_addr_index_reader): Remove.
16021 (dwarf2_read_addr_index): Use cutu_reader.
16022 (read_signatured_type_reader): Remove.
16023 (read_signatured_type): Use cutu_reader.
16025 2020-01-19 Tom Tromey <tom@tromey.com>
16027 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
16028 * tui/tui-wingeneral.h (class tui_suppress_output): New.
16029 (tui_wrefresh): Declare.
16030 * tui/tui-wingeneral.c (suppress_output): New global.
16031 (tui_suppress_output, ~tui_suppress_output): New constructor and
16033 (tui_wrefresh): New function.
16034 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
16035 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
16036 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
16038 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
16040 (tui_data_window::no_refresh): New method.
16041 (tui_data_item_window::refresh_window): Call tui_wrefresh.
16042 (tui_reg_command): Use tui_suppress_output
16043 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
16044 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
16046 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
16048 2020-01-19 Tom Tromey <tom@tromey.com>
16050 * tui/tui-winsource.c (tui_update_source_windows_with_line):
16051 Handle case where symtab is null.
16053 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
16055 * linux-fork.c (one_fork_p): Simplify.
16057 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16059 * top.c (struct qt_args): Remove.
16060 (kill_or_detach): Change return type to void, replace `void *`
16061 parameter with a proper one.
16062 (print_inferior_quit_action): Likewise.
16063 (quit_confirm): Use range-based for loop to iterate over inferiors.
16064 (quit_force): Likewise.
16066 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16068 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
16069 `void *` parameter with proper parameters.
16070 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
16071 (print_one_inferior): Change return type to void, replace `void *`
16072 parameter with proper parameters.
16073 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
16075 (get_other_inferior): Remove.
16076 (mi_cmd_remove_inferior): Use range-based loop to iterate over
16079 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16081 * mi/mi-interp.c (report_initial_inferior): Remove.
16082 (mi_interp::init): Use range-based for to iterate over inferiors.
16084 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16086 * python/py-inferior.c (build_inferior_list): Remove.
16087 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
16089 2020-01-16 Christian Biesinger <cbiesinger@google.com>
16091 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
16092 (btrace_stitch_trace): Likewise.
16093 * charset.c (intermediate_encoding): Likewise (vaild).
16094 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
16095 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
16096 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
16098 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
16100 * windows-tdep.c (windows_get_tlb_type):
16101 Add rtl_user_process_parameters type.
16103 2020-01-16 Pedro Alves <palves@redhat.com>
16104 Norbert Lange <nolange79@gmail.com>
16107 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
16108 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
16109 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
16110 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
16111 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
16112 (ps_plog): Redeclare exported functions with default visibility.
16114 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
16116 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
16117 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
16119 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
16121 * infcmd.c (post_create_inferior): Use get_thread_regcache
16122 instead of get_current_regcache.
16124 2020-01-14 Tom Tromey <tom@tromey.com>
16127 * python/python.c (gdbpy_decode_line): Treat empty string the same
16130 2020-01-14 Tom Tromey <tom@tromey.com>
16132 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
16134 2020-01-14 Tom Tromey <tom@tromey.com>
16136 * nat/linux-btrace.c: Don't include <config.h>.
16137 * nat/linux-ptrace.c: Don't include <config.h>.
16138 * nat/x86-linux-dregs.c: Don't include <config.h>.
16140 2020-01-14 Tom Tromey <tom@tromey.com>
16142 * configure: Rebuild.
16143 * configure.ac: Move many checks to ../gdbsupport/common.m4.
16145 2020-01-14 Tom Tromey <tom@tromey.com>
16147 * nat/x86-linux-dregs.c: Include configh.h.
16148 * nat/linux-ptrace.c: Include configh.h.
16149 * nat/linux-btrace.c: Include configh.h.
16150 * defs.h: Include config.h, bfd.h.
16151 * configure.ac: Don't source common.host.
16152 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
16153 * configure: Rebuild.
16154 * acinclude.m4: Update path.
16155 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
16156 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
16157 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
16158 (CLIBS): Add LIBSUPPORT.
16160 (COMMON_SFILES): Remove gdbsupport files.
16161 (HFILES_NO_SRCDIR): Likewise.
16162 (stamp-version): Update path to create-version.sh.
16163 (ALLDEPFILES): Remove gdbsupport files.
16165 2020-01-14 Tom Tromey <tom@tromey.com>
16167 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
16168 USE_WIN32API when needed.
16169 * configure.ac (USE_WIN32API): Don't define.
16170 (WIN32LIBS): Use WIN32APILIBS.
16171 * configure: Rebuild.
16173 2020-01-14 Tom Tromey <tom@tromey.com>
16175 * configure: Rebuild.
16176 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
16178 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16180 * skip.c (skip_function_command): Make skip w/o arguments use the
16181 name of the inlined function if pc is inside any inlined function.
16183 2020-01-14 Luis Machado <luis.machado@linaro.org>
16185 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
16186 * infrun.c (resume_1): Likewise.
16187 (handle_inferior_event): Remove stale comment.
16188 * linux-nat.c (linux_nat_target::resume): Update comments.
16189 (save_stop_reason): Likewise.
16190 (linux_nat_filter_event): Likewise.
16191 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
16193 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16195 * elfread.c (record_minimal_symbol): Set section index to 0 for
16196 non-allocatable sections.
16199 2020-01-13 Ali Tamur <tamur@google.com>
16201 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
16202 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
16203 to gdb::optional. Update comments.
16204 (dwo_file): Update comments.
16205 (read_attribute): Update API to take an additional out parameter,
16206 need_reprocess. This is used to mark attributes that need other
16207 attributes (e.g. str_offsets_base) for correct computation which may not
16208 have been read yet.
16209 (read_attribute_reprocess): New function declaration.
16210 (read_addr_index): Likewise.
16211 (read_dwo_str_index): Likewise.
16212 (read_stub_str_index): Likewise.
16213 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
16214 (lookup_addr_base): New function definition.
16215 (lookup_ranges_base): Likewise.
16216 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
16217 lookup_ranges_base.
16218 (init_cutu_and_read_dies): Update comments.
16219 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
16220 unit. This is used to inherit parent's str_offsets_base and addr_base.
16222 (init_cutu_and_read_dies_simple): Reflect API changes.
16223 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
16224 (create_cus_hash_table): Change API to take parent compile unit.
16225 Reflect API changes.
16226 (open_and_init_dwo_file): Reflect API changes.
16227 (dwarf2_get_pc_bounds): Update comments.
16228 (dwarf2_record_block_ranges): Likewise.
16229 (read_full_die_1): Change implementation to reprocess attributes that
16230 need str_offsets_base and addr_base.
16231 (partial_die_info::read): Likewise.
16232 (read_attribute_reprocess): New function definition.
16233 (read_attribute_value): Change API to take an additional out parameter,
16234 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
16235 when a non-dwo compile unit has index based attributes.
16236 (read_attribute): Reflect API changes.
16237 (read_addr_index_1): Reflect API changes. Update comments.
16238 (dwarf2_read_addr_index_data): Reflect API changes.
16239 (dwarf2_read_addr_index): Likewise.
16240 (read_str_index): Change API and implementation. This becomes a helper
16241 to be used by the new string index related methods. Update error
16242 message and comments.
16243 (read_dwo_str_index): New function definition.
16244 (read_stub_str_index): Likewise.
16245 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
16246 * symfile.h (dwarf2_debug_sections): Likewise.
16247 * xcoffread.c (dwarf2_debug_sections): Likewise.
16249 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16251 * gdbcore.h (struct core_fns) <core_read_registers>: Change
16252 core_reg_sect type to gdb_byte *.
16253 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
16254 * cris-tdep.c (fetch_core_registers): Likewise.
16255 * corelow.c (core_target::get_core_register_section): Change
16256 type of `contents` to gdb::byte_vector.
16258 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16260 * tui/tui-wingeneral.c (box_win): Position the title in the center
16263 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16265 * corelow.c (core_target::get_core_register_section): Use
16266 std::vector instead of alloca.
16268 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16270 * warning.m4: Add -Wmissing-declarations to build_warnings.
16271 * configure: Re-generate.
16273 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16275 * python/python.c (init__gdb_module): Add declaration.
16277 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16279 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
16280 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
16281 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
16282 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
16283 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
16284 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
16285 * ada-exp.y (_initialize_ada_exp): Add declaration.
16286 * ada-lang.c (_initialize_ada_language): Add declaration.
16287 * ada-tasks.c (_initialize_tasks): Add declaration.
16288 * agent.c (_initialize_agent): Add declaration.
16289 * aix-thread.c (_initialize_aix_thread): Add declaration.
16290 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
16291 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
16292 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
16293 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
16294 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
16295 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
16296 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
16297 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
16298 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
16299 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
16300 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
16301 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
16302 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
16303 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
16304 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
16305 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
16306 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
16307 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
16308 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
16309 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
16310 * annotate.c (_initialize_annotate): Add declaration.
16311 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
16312 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
16313 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
16314 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
16315 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
16316 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
16317 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
16318 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
16319 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
16320 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
16321 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
16322 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
16323 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
16324 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
16325 * auto-load.c (_initialize_auto_load): Add declaration.
16326 * auxv.c (_initialize_auxv): Add declaration.
16327 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
16328 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
16329 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
16330 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
16331 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
16332 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
16333 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
16334 * breakpoint.c (_initialize_breakpoint): Add declaration.
16335 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
16336 * btrace.c (_initialize_btrace): Add declaration.
16337 * charset.c (_initialize_charset): Add declaration.
16338 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
16339 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
16340 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
16341 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
16342 * cli/cli-script.c (_initialize_cli_script): Add declaration.
16343 * cli/cli-style.c (_initialize_cli_style): Add declaration.
16344 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
16345 * coffread.c (_initialize_coffread): Add declaration.
16346 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
16347 * compile/compile.c (_initialize_compile): Add declaration.
16348 * complaints.c (_initialize_complaints): Add declaration.
16349 * completer.c (_initialize_completer): Add declaration.
16350 * copying.c (_initialize_copying): Add declaration.
16351 * corefile.c (_initialize_core): Add declaration.
16352 * corelow.c (_initialize_corelow): Add declaration.
16353 * cp-abi.c (_initialize_cp_abi): Add declaration.
16354 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
16355 * cp-support.c (_initialize_cp_support): Add declaration.
16356 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
16357 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
16358 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
16359 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
16360 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
16361 * ctfread.c (_initialize_ctfread): Add declaration.
16362 * d-lang.c (_initialize_d_language): Add declaration.
16363 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
16364 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
16365 * dbxread.c (_initialize_dbxread): Add declaration.
16366 * dcache.c (_initialize_dcache): Add declaration.
16367 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
16368 * disasm.c (_initialize_disasm): Add declaration.
16369 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
16370 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
16371 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
16372 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
16373 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
16374 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
16375 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
16376 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
16377 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
16378 * elfread.c (_initialize_elfread): Add declaration.
16379 * exec.c (_initialize_exec): Add declaration.
16380 * extension.c (_initialize_extension): Add declaration.
16381 * f-lang.c (_initialize_f_language): Add declaration.
16382 * f-valprint.c (_initialize_f_valprint): Add declaration.
16383 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
16384 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
16385 * filesystem.c (_initialize_filesystem): Add declaration.
16386 * findcmd.c (_initialize_mem_search): Add declaration.
16387 * findvar.c (_initialize_findvar): Add declaration.
16388 * fork-child.c (_initialize_fork_child): Add declaration.
16389 * frame-base.c (_initialize_frame_base): Add declaration.
16390 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
16391 * frame.c (_initialize_frame): Add declaration.
16392 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
16393 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
16394 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
16395 * gcore.c (_initialize_gcore): Add declaration.
16396 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
16397 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
16398 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
16399 * gdbarch.c (_initialize_gdbarch): Add declaration.
16400 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
16401 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
16402 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
16403 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
16404 * go-lang.c (_initialize_go_language): Add declaration.
16405 * go32-nat.c (_initialize_go32_nat): Add declaration.
16406 * guile/guile.c (_initialize_guile): Add declaration.
16407 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
16408 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
16409 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
16410 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
16411 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
16412 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
16413 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
16414 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
16415 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
16416 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
16417 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
16418 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
16419 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
16420 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
16421 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
16422 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
16423 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
16424 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
16425 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
16426 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
16427 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
16428 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
16429 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
16430 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
16431 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
16432 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
16433 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
16434 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
16435 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
16436 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
16437 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
16438 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
16439 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
16440 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
16441 * infcall.c (_initialize_infcall): Add declaration.
16442 * infcmd.c (_initialize_infcmd): Add declaration.
16443 * inflow.c (_initialize_inflow): Add declaration.
16444 * infrun.c (_initialize_infrun): Add declaration.
16445 * interps.c (_initialize_interpreter): Add declaration.
16446 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
16447 * jit.c (_initialize_jit): Add declaration.
16448 * language.c (_initialize_language): Add declaration.
16449 * linux-fork.c (_initialize_linux_fork): Add declaration.
16450 * linux-nat.c (_initialize_linux_nat): Add declaration.
16451 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
16452 * linux-thread-db.c (_initialize_thread_db): Add declaration.
16453 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
16454 * m2-lang.c (_initialize_m2_language): Add declaration.
16455 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
16456 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
16457 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
16458 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
16459 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
16460 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
16461 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
16462 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
16463 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
16464 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
16465 * machoread.c (_initialize_machoread): Add declaration.
16466 * macrocmd.c (_initialize_macrocmd): Add declaration.
16467 * macroscope.c (_initialize_macroscope): Add declaration.
16468 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
16469 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
16470 * maint.c (_initialize_maint_cmds): Add declaration.
16471 * mdebugread.c (_initialize_mdebugread): Add declaration.
16472 * memattr.c (_initialize_mem): Add declaration.
16473 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
16474 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
16475 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
16476 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
16477 * mi/mi-main.c (_initialize_mi_main): Add declaration.
16478 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
16479 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
16480 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
16481 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
16482 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
16483 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
16484 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
16485 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
16486 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
16487 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
16488 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
16489 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
16490 * mipsread.c (_initialize_mipsread): Add declaration.
16491 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
16492 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
16493 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
16494 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
16495 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
16496 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
16497 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
16498 * nto-procfs.c (_initialize_procfs): Add declaration.
16499 * objc-lang.c (_initialize_objc_language): Add declaration.
16500 * observable.c (_initialize_observer): Add declaration.
16501 * opencl-lang.c (_initialize_opencl_language): Add declaration.
16502 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
16503 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
16504 * osabi.c (_initialize_gdb_osabi): Add declaration.
16505 * osdata.c (_initialize_osdata): Add declaration.
16506 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
16507 * parse.c (_initialize_parse): Add declaration.
16508 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
16509 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
16510 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
16511 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
16512 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
16513 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
16514 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
16515 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
16516 * printcmd.c (_initialize_printcmd): Add declaration.
16517 * probe.c (_initialize_probe): Add declaration.
16518 * proc-api.c (_initialize_proc_api): Add declaration.
16519 * proc-events.c (_initialize_proc_events): Add declaration.
16520 * proc-service.c (_initialize_proc_service): Add declaration.
16521 * procfs.c (_initialize_procfs): Add declaration.
16522 * producer.c (_initialize_producer): Add declaration.
16523 * psymtab.c (_initialize_psymtab): Add declaration.
16524 * python/python.c (_initialize_python): Add declaration.
16525 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
16526 * record-btrace.c (_initialize_record_btrace): Add declaration.
16527 * record-full.c (_initialize_record_full): Add declaration.
16528 * record.c (_initialize_record): Add declaration.
16529 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
16530 * regcache.c (_initialize_regcache): Add declaration.
16531 * reggroups.c (_initialize_reggroup): Add declaration.
16532 * remote-notif.c (_initialize_notif): Add declaration.
16533 * remote-sim.c (_initialize_remote_sim): Add declaration.
16534 * remote.c (_initialize_remote): Add declaration.
16535 * reverse.c (_initialize_reverse): Add declaration.
16536 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
16537 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
16538 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
16539 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
16540 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
16541 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
16542 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
16543 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
16545 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
16546 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
16547 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
16548 * rust-exp.y (_initialize_rust_exp): Add declaration.
16549 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
16550 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
16551 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
16552 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
16553 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
16554 * score-tdep.c (_initialize_score_tdep): Add declaration.
16555 * ser-go32.c (_initialize_ser_dos): Add declaration.
16556 * ser-mingw.c (_initialize_ser_windows): Add declaration.
16557 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
16558 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
16559 * ser-uds.c (_initialize_ser_socket): Add declaration.
16560 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
16561 * serial.c (_initialize_serial): Add declaration.
16562 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
16563 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
16564 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
16565 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
16566 * skip.c (_initialize_step_skip): Add declaration.
16567 * sol-thread.c (_initialize_sol_thread): Add declaration.
16568 * solib-aix.c (_initialize_solib_aix): Add declaration.
16569 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
16570 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
16571 * solib-frv.c (_initialize_frv_solib): Add declaration.
16572 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
16573 * solib-target.c (_initialize_solib_target): Add declaration.
16574 * solib.c (_initialize_solib): Add declaration.
16575 * source-cache.c (_initialize_source_cache): Add declaration.
16576 * source.c (_initialize_source): Add declaration.
16577 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
16578 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
16579 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
16580 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
16581 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
16582 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
16583 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
16584 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
16585 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
16586 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
16587 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
16588 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
16589 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
16590 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
16591 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
16592 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
16593 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
16594 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
16595 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
16596 * stabsread.c (_initialize_stabsread): Add declaration.
16597 * stack.c (_initialize_stack): Add declaration.
16598 * stap-probe.c (_initialize_stap_probe): Add declaration.
16599 * std-regs.c (_initialize_frame_reg): Add declaration.
16600 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
16601 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
16602 * symfile.c (_initialize_symfile): Add declaration.
16603 * symmisc.c (_initialize_symmisc): Add declaration.
16604 * symtab.c (_initialize_symtab): Add declaration.
16605 * target.c (_initialize_target): Add declaration.
16606 * target-connection.c (_initialize_target_connection): Add
16608 * target-dcache.c (_initialize_target_dcache): Add declaration.
16609 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
16610 * thread.c (_initialize_thread): Add declaration.
16611 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
16612 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
16613 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
16614 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
16615 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
16616 * tracectf.c (_initialize_ctf): Add declaration.
16617 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
16618 * tracefile.c (_initialize_tracefile): Add declaration.
16619 * tracepoint.c (_initialize_tracepoint): Add declaration.
16620 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
16621 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
16622 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
16623 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
16624 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
16625 * tui/tui-win.c (_initialize_tui_win): Add declaration.
16626 * tui/tui.c (_initialize_tui): Add declaration.
16627 * typeprint.c (_initialize_typeprint): Add declaration.
16628 * ui-style.c (_initialize_ui_style): Add declaration.
16629 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
16630 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
16631 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
16632 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
16633 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
16634 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
16635 * unittests/filtered_iterator-selftests.c
16636 (_initialize_filtered_iterator_selftests): Add declaration.
16637 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
16638 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
16639 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
16640 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
16641 * unittests/main-thread-selftests.c
16642 (_initialize_main_thread_selftests): Add declaration.
16643 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
16644 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
16645 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
16646 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
16647 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
16648 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
16649 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
16650 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
16651 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
16652 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
16653 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
16654 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
16655 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
16656 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
16657 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
16659 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
16660 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
16661 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
16662 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
16663 * user-regs.c (_initialize_user_regs): Add declaration.
16664 * utils.c (_initialize_utils): Add declaration.
16665 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
16666 * valops.c (_initialize_valops): Add declaration.
16667 * valprint.c (_initialize_valprint): Add declaration.
16668 * value.c (_initialize_values): Add declaration.
16669 * varobj.c (_initialize_varobj): Add declaration.
16670 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
16671 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
16672 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
16673 * windows-nat.c (_initialize_windows_nat): Add declaration.
16674 (_initialize_check_for_gdb_ini): Add declaration.
16675 (_initialize_loadable): Add declaration.
16676 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
16677 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
16678 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
16679 * xcoffread.c (_initialize_xcoffread): Add declaration.
16680 * xml-support.c (_initialize_xml_support): Add declaration.
16681 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
16682 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
16683 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
16684 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
16686 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16688 * regformats/regdat.sh: Generate declaration for init function.
16690 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16692 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
16694 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
16695 close_one_inferior>: New methods.
16696 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
16697 pass down target to find_inferior_pid.
16698 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
16699 Pass down target to find_inferior_ptid.
16700 (gdbsim_target::create_inferior): Pass down target to
16702 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
16703 target down to find_inferior_ptid and switch_to_thread.
16704 (gdbsim_target::close): Update to call close_one_inferior.
16705 (struct resume_data): Remove.
16706 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
16707 directly, rather than through a void pointer.
16708 (gdbsim_target::resume): Update to call resume_one_inferior.
16710 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
16712 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
16714 2020-01-12 Pedro Alves <palves@redhat.com>
16716 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
16717 directly for the current inferior instead of
16718 discard_all_inferiors.
16719 (discard_all_inferiors): Delete.
16721 2020-01-11 Tom Tromey <tom@tromey.com>
16723 * tui/tui-wingeneral.c (box_win): Check cli_styling.
16724 * tui/tui-winsource.c (tui_source_window_base::refill): Use
16725 deprecated_safe_get_selected_frame.
16727 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16729 * inferior.c (print_inferior): Switch inferior before printing it.
16731 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
16732 Pedro Alves <palves@redhat.com>
16734 * progspace-and-thread.c (switch_to_program_space_and_thread):
16735 Assert there's an inferior for PSPACE. Use
16736 switch_to_inferior_no_thread to switch the inferior too.
16737 * progspace.c (program_space::~program_space): Call
16738 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
16739 (program_space::free_all_objfiles): Don't call clear_symtab_users
16741 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
16743 2020-01-10 Pedro Alves <palves@redhat.com>
16745 * NEWS: Mention multi-target debugging, "info connections", and
16746 "add-inferior -no-connection".
16748 2020-01-10 Pedro Alves <palves@redhat.com>
16750 * infrun.c: Include "target-connection.h".
16751 (check_multi_target_resumption): New.
16752 (proceed): Call it.
16753 * target-connection.c (make_target_connection_string): Make
16755 * target-connection.h (make_target_connection_string): Declare.
16757 2020-01-10 Pedro Alves <palves@redhat.com>
16759 * Makefile.in (COMMON_SFILES): Add target-connection.c.
16760 * inferior.c (uiout_field_connection): New function.
16761 (print_inferior): Add new "connection-id" column.
16762 (add_inferior_command): Show connection number/string of added
16764 * process-stratum-target.h
16765 (process_stratum_target::connection_string): New virtual method.
16766 (process_stratum_target::connection_number): New field.
16767 * remote.c (remote_target::connection_string): New override.
16768 * target-connection.c: New file.
16769 * target-connection.h: New file.
16770 * target.c (decref_target): Remove process_stratum targets from
16771 the connection list.
16772 (target_stack::push): Add process_stratum targets to the
16775 2020-01-10 Pedro Alves <palves@redhat.com>
16778 2016-04-12 Pedro Alves <palves@redhat.com>
16779 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
16780 Remove references to name.
16781 * serial.h (struct serial) <name>: Delete.
16783 2020-01-10 Pedro Alves <palves@redhat.com>
16785 * gdbarch-selftests.c (register_to_value_test): Remove "target
16786 already pushed" check.
16788 2020-01-10 Pedro Alves <palves@redhat.com>
16789 John Baldwin <jhb@FreeBSD.org>
16791 * aarch64-linux-nat.c
16792 (aarch64_linux_nat_target::thread_architecture): Adjust.
16793 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
16794 (task_command_1): Likewise.
16795 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
16796 (aix_thread_target::wait, aix_thread_target::fetch_registers)
16797 (aix_thread_target::store_registers)
16798 (aix_thread_target::thread_alive): Adjust.
16799 * amd64-fbsd-tdep.c: Include "inferior.h".
16800 (amd64fbsd_get_thread_local_address): Pass down target.
16801 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
16802 thread's gdbarch instead of target_gdbarch.
16803 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
16804 get_last_target_status.
16805 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
16806 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
16808 (update_inserted_breakpoint_locations): Skip if inferiors with no
16810 (update_global_location_list): When handling moribund locations,
16811 find representative inferior for location's pspace, and use thread
16812 count of its process_stratum target.
16813 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
16814 * bsd-uthread.c (bsd_uthread_target::wait): Use
16815 as_process_stratum_target and adjust thread_change_ptid and
16817 (bsd_uthread_target::update_thread_list): Use
16818 as_process_stratum_target and adjust find_thread_ptid,
16819 thread_change_ptid and add_thread calls.
16820 * btrace.c (maint_btrace_packet_history_cmd): Adjust
16821 find_thread_ptid call.
16822 * corelow.c (add_to_thread_list): Adjust add_thread call.
16823 (core_target_open): Adjust add_thread_silent and thread_count
16825 (core_target::pid_to_str): Adjust find_inferior_ptid call.
16826 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
16827 * event-top.c (async_disconnect): Pop targets from all inferiors.
16828 * exec.c (add_target_sections): Push exec target on all inferiors
16829 sharing the program space.
16830 (remove_target_sections): Remove the exec target from all
16831 inferiors sharing the program space.
16832 (exec_on_vfork): New.
16833 * exec.h (exec_on_vfork): Declare.
16834 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
16836 (fbsd_nat_target::update_thread_list): Adjust.
16837 (fbsd_nat_target::resume): Adjust.
16838 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
16840 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
16841 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
16842 get_thread_arch_regcache call.
16843 * fork-child.c (gdb_startup_inferior): Pass target down to
16844 startup_inferior and set_executing.
16845 * gdbthread.h (struct process_stratum_target): Forward declare.
16846 (add_thread, add_thread_silent, add_thread_with_info)
16847 (in_thread_list): Add process_stratum_target parameter.
16848 (find_thread_ptid(inferior*, ptid_t)): New overload.
16849 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
16851 (all_threads()): Delete overload.
16852 (all_threads, all_non_exited_threads): Add process_stratum_target
16854 (all_threads_safe): Use brace initialization.
16855 (thread_count): Add process_stratum_target parameter.
16856 (set_resumed, set_running, set_stop_requested, set_executing)
16857 (threads_are_executing, finish_thread_state): Add
16858 process_stratum_target parameter.
16859 (switch_to_thread): Use is_current_thread.
16860 * i386-fbsd-tdep.c: Include "inferior.h".
16861 (i386fbsd_get_thread_local_address): Pass down target.
16862 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
16863 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
16864 have_inferiors check.
16865 * inf-ptrace.c (inf_ptrace_target::create_inferior)
16866 (inf_ptrace_target::attach): Adjust.
16867 * infcall.c (run_inferior_call): Adjust.
16868 * infcmd.c (run_command_1): Pass target to
16869 scoped_finish_thread_state.
16870 (proceed_thread_callback): Skip inferiors with no execution.
16871 (continue_command): Rename 'all_threads' local to avoid hiding
16872 'all_threads' function. Adjust get_last_target_status call.
16873 (prepare_one_step): Adjust set_running call.
16874 (signal_command): Use user_visible_resume_target. Compare thread
16875 pointers instead of inferior_ptid.
16876 (info_program_command): Adjust to pass down target.
16877 (attach_command): Mark target's 'thread_executing' flag.
16878 (stop_current_target_threads_ns): New, factored out from ...
16879 (interrupt_target_1): ... this. Switch inferior before making
16882 (struct all_inferiors_iterator, struct all_inferiors_range)
16883 (struct all_inferiors_safe_range)
16884 (struct all_non_exited_inferiors_range): Filter on
16885 process_stratum_target too. Remove explicit.
16886 * inferior.c (inferior::inferior): Push dummy target on target
16888 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
16889 Add process_stratum_target parameter, and pass it down.
16890 (have_live_inferiors): Adjust.
16891 (switch_to_inferior_and_push_target): New.
16892 (add_inferior_command, clone_inferior_command): Handle
16893 "-no-connection" parameter. Use
16894 switch_to_inferior_and_push_target.
16895 (_initialize_inferior): Mention "-no-connection" option in
16896 the help of "add-inferior" and "clone-inferior" commands.
16897 * inferior.h: Include "process-stratum-target.h".
16898 (interrupt_target_1): Use bool.
16899 (struct inferior) <push_target, unpush_target, target_is_pushed,
16900 find_target_beneath, top_target, process_target, target_at,
16902 (discard_all_inferiors): Delete.
16903 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
16904 (all_inferiors, all_non_exited_inferiors): Add
16905 process_stratum_target parameter.
16906 * infrun.c: Include "gdb_select.h" and <unordered_map>.
16907 (target_last_proc_target): New global.
16908 (follow_fork_inferior): Push target on new inferior. Pass target
16909 to add_thread_silent. Call exec_on_vfork. Handle target's
16911 (follow_fork): Adjust get_last_target_status call. Also consider
16913 (follow_exec): Push target on new inferior.
16914 (struct execution_control_state) <target>: New field.
16915 (user_visible_resume_target): New.
16916 (do_target_resume): Call target_async.
16917 (resume_1): Set target's threads_executing flag. Consider resume
16919 (commit_resume_all_targets): New.
16920 (proceed): Also consider resume target. Skip threads of inferiors
16921 with no execution. Commit resumtion in all targets.
16922 (start_remote): Pass current inferior to wait_for_inferior.
16923 (infrun_thread_stop_requested): Consider target as well. Pass
16924 thread_info pointer to clear_inline_frame_state instead of ptid.
16925 (infrun_thread_thread_exit): Consider target as well.
16926 (random_pending_event_thread): New inferior parameter. Use it.
16927 (do_target_wait): Rename to ...
16928 (do_target_wait_1): ... this. Add inferior parameter, and pass it
16930 (threads_are_resumed_pending_p, do_target_wait): New.
16931 (prepare_for_detach): Adjust calls.
16932 (wait_for_inferior): New inferior parameter. Handle it. Use
16933 do_target_wait_1 instead of do_target_wait.
16934 (fetch_inferior_event): Adjust. Switch to representative
16935 inferior. Pass target down.
16936 (set_last_target_status): Add process_stratum_target parameter.
16937 Save target in global.
16938 (get_last_target_status): Add process_stratum_target parameter and
16940 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
16941 (context_switch): Check inferior_ptid == null_ptid before calling
16943 (get_inferior_stop_soon): Pass down target.
16944 (wait_one): Rename to ...
16945 (poll_one_curr_target): ... this.
16946 (struct wait_one_event): New.
16948 (stop_all_threads): Adjust.
16949 (handle_no_resumed, handle_inferior_event): Adjust to consider the
16951 (switch_back_to_stepped_thread): Also consider target.
16952 (print_stop_event): Update.
16953 (normal_stop): Update. Also consider the resume target.
16954 * infrun.h (wait_for_inferior): Remove declaration.
16955 (user_visible_resume_target): New declaration.
16956 (get_last_target_status, set_last_target_status): New
16957 process_stratum_target parameter.
16958 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16959 process_stratum_target parameter, and use it.
16960 (clear_inline_frame_state (thread_info*)): New.
16961 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16962 process_stratum_target parameter.
16963 (clear_inline_frame_state (thread_info*)): Declare.
16964 * linux-fork.c (delete_checkpoint_command): Pass target down to
16966 (checkpoint_command): Adjust.
16967 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
16968 instead of just tweaking inferior_ptid.
16969 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
16970 (exit_lwp): Pass target down to find_thread_ptid.
16971 (attach_proc_task_lwp_callback): Pass target down to
16972 add_thread/set_running/set_executing.
16973 (linux_nat_target::attach): Pass target down to
16974 thread_change_ptid.
16975 (get_detach_signal): Pass target down to find_thread_ptid.
16976 Consider last target status's target.
16977 (linux_resume_one_lwp_throw, resume_lwp)
16978 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
16979 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
16980 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
16981 (linux_nat_target::async_wait_fd): New.
16982 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
16984 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
16985 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
16986 * linux-thread-db.c (struct thread_db_info::process_target): New
16988 (add_thread_db_info): Save target.
16989 (get_thread_db_info): New process_stratum_target parameter. Also
16991 (delete_thread_db_info): New process_stratum_target parameter.
16993 (thread_from_lwp): Adjust to pass down target.
16994 (thread_db_notice_clone): Pass down target.
16995 (check_thread_db_callback): Pass down target.
16996 (try_thread_db_load_1): Always push the thread_db target.
16997 (try_thread_db_load, record_thread): Pass target down.
16998 (thread_db_target::detach): Pass target down. Always unpush the
17000 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
17001 target down. Always unpush the thread_db target.
17002 (find_new_threads_callback, thread_db_find_new_threads_2)
17003 (thread_db_target::update_thread_list): Pass target down.
17004 (thread_db_target::pid_to_str): Pass current inferior down.
17005 (thread_db_target::get_thread_local_address): Pass target down.
17006 (thread_db_target::resume, maintenance_check_libthread_db): Pass
17008 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
17009 * procfs.c (procfs_target::procfs_init_inferior): Declare.
17010 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
17011 (procfs_init_inferior): Rename to ...
17012 (procfs_target::procfs_init_inferior): ... this and adjust.
17013 (procfs_target::create_inferior, procfs_notice_thread)
17014 (procfs_do_thread_registers): Adjust.
17015 * ppc-fbsd-tdep.c: Include "inferior.h".
17016 (ppcfbsd_get_thread_local_address): Pass down target.
17017 * proc-service.c (ps_xfer_memory): Switch current inferior and
17018 program space as well.
17019 (get_ps_regcache): Pass target down.
17020 * process-stratum-target.c
17021 (process_stratum_target::thread_address_space)
17022 (process_stratum_target::thread_architecture): Pass target down.
17023 * process-stratum-target.h
17024 (process_stratum_target::threads_executing): New field.
17025 (as_process_stratum_target): New.
17026 * ravenscar-thread.c
17027 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
17028 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
17030 * record-btrace.c (record_btrace_target::info_record): Adjust.
17031 (record_btrace_target::record_method)
17032 (record_btrace_target::record_is_replaying)
17033 (record_btrace_target::fetch_registers)
17034 (get_thread_current_frame_id, record_btrace_target::resume)
17035 (record_btrace_target::wait, record_btrace_target::stop): Pass
17037 * record-full.c (record_full_wait_1): Switch to event thread.
17039 * regcache.c (regcache::regcache)
17040 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
17041 process_stratum_target parameter and handle it.
17042 (current_thread_target): New global.
17043 (get_thread_regcache): Add process_stratum_target parameter and
17044 handle it. Switch inferior before calling target method.
17045 (get_thread_regcache): Pass target down.
17046 (get_thread_regcache_for_ptid): Pass target down.
17047 (registers_changed_ptid): Add process_stratum_target parameter and
17049 (registers_changed_thread, registers_changed): Pass target down.
17050 (test_get_thread_arch_aspace_regcache): New.
17051 (current_regcache_test): Define a couple local test_target_ops
17052 instances and use them for testing.
17053 (readwrite_regcache): Pass process_stratum_target parameter.
17054 (cooked_read_test, cooked_write_test): Pass mock_target down.
17055 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
17056 (get_thread_arch_aspace_regcache): Add process_stratum_target
17058 (regcache::target): New method.
17059 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
17060 (regcache::registers_changed_ptid): Add process_stratum_target
17062 (regcache::m_target): New field.
17063 (registers_changed_ptid): Add process_stratum_target parameter.
17064 * remote.c (remote_state::supports_vCont_probed): New field.
17065 (remote_target::async_wait_fd): New method.
17066 (remote_unpush_and_throw): Add remote_target parameter.
17067 (get_current_remote_target): Adjust.
17068 (remote_target::remote_add_inferior): Push target.
17069 (remote_target::remote_add_thread)
17070 (remote_target::remote_notice_new_inferior)
17071 (get_remote_thread_info): Pass target down.
17072 (remote_target::update_thread_list): Skip threads of inferiors
17073 bound to other targets. (remote_target::close): Don't discard
17074 inferiors. (remote_target::add_current_inferior_and_thread)
17075 (remote_target::process_initial_stop_replies)
17076 (remote_target::start_remote)
17077 (remote_target::remote_serial_quit_handler): Pass down target.
17078 (remote_target::remote_unpush_target): New remote_target
17079 parameter. Unpush the target from all inferiors.
17080 (remote_target::remote_unpush_and_throw): New remote_target
17081 parameter. Pass it down.
17082 (remote_target::open_1): Check whether the current inferior has
17083 execution instead of checking whether any inferior is live. Pass
17085 (remote_target::remote_detach_1): Pass down target. Use
17086 remote_unpush_target.
17087 (extended_remote_target::attach): Pass down target.
17088 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
17089 (remote_target::append_resumption): Pass down target.
17090 (remote_target::append_pending_thread_resumptions)
17091 (remote_target::remote_resume_with_hc, remote_target::resume)
17092 (remote_target::commit_resume): Pass down target.
17093 (remote_target::remote_stop_ns): Check supports_vCont_probed.
17094 (remote_target::interrupt_query)
17095 (remote_target::remove_new_fork_children)
17096 (remote_target::check_pending_events_prevent_wildcard_vcont)
17097 (remote_target::remote_parse_stop_reply)
17098 (remote_target::process_stop_reply): Pass down target.
17099 (first_remote_resumed_thread): New remote_target parameter. Pass
17101 (remote_target::wait_as): Pass down target.
17102 (unpush_and_perror): New remote_target parameter. Pass it down.
17103 (remote_target::readchar, remote_target::remote_serial_write)
17104 (remote_target::getpkt_or_notif_sane_1)
17105 (remote_target::kill_new_fork_children, remote_target::kill): Pass
17107 (remote_target::mourn_inferior): Pass down target. Use
17108 remote_unpush_target.
17109 (remote_target::core_of_thread)
17110 (remote_target::remote_btrace_maybe_reopen): Pass down target.
17111 (remote_target::pid_to_exec_file)
17112 (remote_target::thread_handle_to_thread_info): Pass down target.
17113 (remote_target::async_wait_fd): New.
17114 * riscv-fbsd-tdep.c: Include "inferior.h".
17115 (riscv_fbsd_get_thread_local_address): Pass down target.
17116 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
17117 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
17118 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
17120 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
17121 * solib-svr4.c (enable_break): Pass down target.
17122 * spu-multiarch.c (parse_spufs_run): Pass down target.
17123 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
17124 * target-delegates.c: Regenerate.
17125 * target.c (g_target_stack): Delete.
17126 (current_top_target): Return the current inferior's top target.
17127 (target_has_execution_1): Refer to the passed-in inferior's top
17129 (target_supports_terminal_ours): Check whether the initial
17130 inferior was already created.
17131 (decref_target): New.
17132 (target_stack::push): Incref/decref the target.
17133 (push_target, push_target, unpush_target): Adjust.
17134 (target_stack::unpush): Defref target.
17135 (target_is_pushed): Return bool. Adjust to refer to the current
17136 inferior's target stack.
17137 (dispose_inferior): Delete, and inline parts ...
17138 (target_preopen): ... here. Only dispose of the current inferior.
17139 (target_detach): Hold strong target reference while detaching.
17141 (target_thread_name): Add assertion.
17142 (target_resume): Pass down target.
17143 (target_ops::beneath, find_target_at): Adjust to refer to the
17144 current inferior's target stack.
17145 (get_dummy_target): New.
17146 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
17147 has a thread running.
17148 (initialize_targets): Rename to ...
17149 (_initialize_target): ... this.
17150 * target.h: Include "gdbsupport/refcounted-object.h".
17151 (struct target_ops): Inherit refcounted_object.
17152 (target_ops::shortname, target_ops::longname): Make const.
17153 (target_ops::async_wait_fd): New method.
17154 (decref_target): Declare.
17155 (struct target_ops_ref_policy): New.
17156 (target_ops_ref): New typedef.
17157 (get_dummy_target): Declare function.
17158 (target_is_pushed): Return bool.
17159 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
17160 (all_matching_threads_iterator::all_matching_threads_iterator):
17161 Handle filter target.
17162 * thread-iter.h (struct all_matching_threads_iterator, struct
17163 all_matching_threads_range, class all_non_exited_threads_range):
17164 Filter by target too. Remove explicit.
17165 * thread.c (threads_executing): Delete.
17166 (inferior_thread): Pass down current inferior.
17167 (clear_thread_inferior_resources): Pass down thread pointer
17169 (add_thread_silent, add_thread_with_info, add_thread): Add
17170 process_stratum_target parameter. Use it for thread and inferior
17172 (is_current_thread): New.
17173 (thread_info::deletable): Use it.
17174 (find_thread_ptid, thread_count, in_thread_list)
17175 (thread_change_ptid, set_resumed, set_running): New
17176 process_stratum_target parameter. Pass it down.
17177 (set_executing): New process_stratum_target parameter. Pass it
17178 down. Adjust reference to 'threads_executing'.
17179 (threads_are_executing): New process_stratum_target parameter.
17180 Adjust reference to 'threads_executing'.
17181 (set_stop_requested, finish_thread_state): New
17182 process_stratum_target parameter. Pass it down.
17183 (switch_to_thread): Also match inferior.
17184 (switch_to_thread): New process_stratum_target parameter. Pass it
17186 (update_threads_executing): Reimplement.
17187 * top.c (quit_force): Pop targets from all inferior.
17188 (gdb_init): Don't call initialize_targets.
17189 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
17191 (windows_add_thread, windows_delete_thread): Adjust.
17192 (get_windows_debug_event): Rename to ...
17193 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
17194 * tracefile-tfile.c (tfile_target_open): Pass down target.
17195 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
17197 (switch_to_thread): Add process_stratum_target parameter.
17198 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
17200 (mi_on_resume): Pass target down.
17201 * nat/fork-inferior.c (startup_inferior): Add
17202 process_stratum_target parameter. Pass it down.
17203 * nat/fork-inferior.h (startup_inferior): Add
17204 process_stratum_target parameter.
17205 * python/py-threadevent.c (py_get_event_thread): Pass target down.
17207 2020-01-10 Pedro Alves <palves@redhat.com>
17209 * remote.c (remote_target::start_remote): Don't set inferior_ptid
17210 directly. Instead find the first thread in the thread list and
17211 use switch_to_thread.
17213 2020-01-10 Pedro Alves <palves@redhat.com>
17215 * remote.c (remote_target::remote_add_inferior): Don't bind a
17216 process to the current inferior if the current inferior is already
17217 bound to a process.
17219 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17220 Pedro Alves <palves@redhat.com>
17222 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
17223 If no process is specified, return null_ptid instead of
17225 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
17226 TARGET_WAITKIND_SIGNALLED with no pid.
17228 2020-01-10 Pedro Alves <palves@redhat.com>
17230 * remote.c (first_remote_resumed_thread): New.
17231 (remote_target::wait_as): Use it as default event_ptid instead of
17234 2020-01-10 Pedro Alves <palves@redhat.com>
17236 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
17238 2020-01-10 Pedro Alves <palves@redhat.com>
17240 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
17243 2020-01-10 Pedro Alves <palves@redhat.com>
17245 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
17246 ptid to get_last_target_status.
17247 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
17248 ptid to get_last_target_status.
17249 * infcmd.c (continue_command): Don't pass a target_waitstatus to
17250 get_last_target_status.
17251 (info_program_command): Don't pass a target_waitstatus to
17252 get_last_target_status.
17253 * infrun.c (init_wait_for_inferior): Use
17254 nullify_last_target_wait_ptid.
17255 (get_last_target_status): Handle nullptr arguments.
17256 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
17257 (print_stop_event): Don't pass a ptid to get_last_target_status.
17258 (normal_stop): Don't pass a ptid to get_last_target_status.
17259 * infrun.h (get_last_target_status, set_last_target_status): Move
17260 comments here and update.
17261 (nullify_last_target_wait_ptid): Declare.
17262 * linux-fork.c (fork_load_infrun_state): Remove local extern
17263 declaration of nullify_last_target_wait_ptid.
17264 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
17265 to get_last_target_status.
17267 2020-01-10 Pedro Alves <palves@redhat.com>
17269 * gdbthread.h (scoped_restore_current_thread)
17270 <dont_restore, restore, m_dont_restore>: Declare.
17271 * thread.c (thread_alive): Add assertion. Return bool.
17272 (switch_to_thread_if_alive): New.
17273 (prune_threads): Switch inferior/thread.
17274 (print_thread_info_1): Switch thread before calling target methods.
17275 (scoped_restore_current_thread::restore): New, factored out from
17277 (scoped_restore_current_thread::~scoped_restore_current_thread):
17279 (scoped_restore_current_thread::scoped_restore_current_thread):
17281 (thread_apply_all_command, thread_select): Use
17282 switch_to_thread_if_alive.
17283 * infrun.c (proceed, restart_threads, handle_signal_stop)
17284 (switch_back_to_stepped_thread): Switch current thread before
17285 calling target methods.
17287 2020-01-10 Pedro Alves <palves@redhat.com>
17289 * inferior.c (switch_to_inferior_no_thread): New function,
17290 factored out from ...
17291 (inferior_command): ... here.
17292 * inferior.h (switch_to_inferior_no_thread): Declare.
17293 * mi/mi-main.c (run_one_inferior): Use
17294 switch_to_inferior_no_thread.
17296 2020-01-10 Pedro Alves <palves@redhat.com>
17298 * infcmd.c (kill_command): Remove dead code.
17300 2020-01-10 Pedro Alves <palves@redhat.com>
17302 * remote.c (remote_target::mourn_inferior): No longer check
17303 whether the target is running.
17305 2020-01-10 Pedro Alves <palves@redhat.com>
17307 * corelow.c (core_target::has_execution): Change parameter type to
17309 * inferior.c (number_of_live_inferiors): Use
17310 inferior::has_execution instead of target_has_execution_1.
17311 * inferior.h (inferior::has_execution): New.
17312 * linux-thread-db.c (thread_db_target::update_thread_list): Use
17313 inferior::has_execution instead of target_has_execution_1.
17314 * process-stratum-target.c
17315 (process_stratum_target::has_execution): Change parameter type to
17316 inferior pointer. Check the inferior's PID instead of
17318 * process-stratum-target.h
17319 (process_stratum_target::has_execution): Change parameter type to
17321 * record-full.c (record_full_core_target::has_execution): Change
17322 parameter type to inferior pointer.
17323 * target.c (target_has_execution_1): Change parameter type to
17325 (target_has_execution_current): Adjust.
17326 * target.h (target_ops::has_execution): Change parameter type to
17328 (target_has_execution_1): Change parameter type to inferior
17329 pointer. Change return type to bool.
17330 * tracefile.h (tracefile_target::has_execution): Change parameter
17331 type to inferior pointer.
17333 2020-01-10 Pedro Alves <palves@redhat.com>
17335 * exceptions.c (print_flush): Remove current_top_target() check.
17337 2020-01-10 Pedro Alves <palves@redhat.com>
17339 * remote.c (show_remote_exec_file): Show the current inferior's
17340 exec-file instead of the command variable's value.
17342 2020-01-10 Pedro Alves <palves@redhat.com>
17344 * record-full.c (record_full_resume_ptid): New global.
17345 (record_full_target::resume): Set it.
17346 (record_full_wait_1): Use record_full_resume_ptid instead of
17349 2020-01-10 Pedro Alves <palves@redhat.com>
17351 * gdbthread.h (scoped_restore_current_thread)
17352 <dont_restore, restore, m_dont_restore>: Declare.
17353 * thread.c (thread_alive): Add assertion. Return bool.
17354 (switch_to_thread_if_alive): New.
17355 (prune_threads): Switch inferior/thread.
17356 (print_thread_info_1): Switch thread before calling target methods.
17357 (scoped_restore_current_thread::restore): New, factored out from
17359 (scoped_restore_current_thread::~scoped_restore_current_thread):
17361 (scoped_restore_current_thread::scoped_restore_current_thread):
17363 (thread_apply_all_command, thread_select): Use
17364 switch_to_thread_if_alive.
17366 2020-01-10 George Barrett <bob@bob131.so>
17368 * stap-probe.c (stap_modify_semaphore): Don't check for null
17370 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
17371 for null semaphores.
17373 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17375 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
17376 all source windows, and maintain horizontal scroll status while
17379 2020-01-09 Tom Tromey <tom@tromey.com>
17382 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
17383 update_source_window, not print_source_lines.
17385 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17387 * tui/tui.c (tui_enable): Register tui hooks after calling
17390 2020-01-09 Christian Biesinger <cbiesinger@google.com>
17392 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
17394 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
17396 * thread.c (print_thread_info_1): Fix indentation.
17398 2020-01-09 Christian Biesinger <cbiesinger@google.com>
17400 * symtab.c (general_symbol_info::compute_and_set_names): Move the
17401 unique_xmalloc_ptr outside the if to always free the demangled name.
17403 2020-01-08 Tom Tromey <tromey@adacore.com>
17405 * xcoffread.c (enter_line_range, read_xcoff_symtab)
17406 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
17407 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
17408 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
17410 (section_offsets): New typedef.
17411 * symtab.c (fixup_section, get_msymbol_address): Update.
17412 * symmisc.c (dump_msymbols): Update.
17413 * symfile.h (relative_addr_info_to_section_offsets)
17414 (symfile_map_offsets_to_segments): Update.
17415 * symfile.c (build_section_addr_info_from_objfile)
17416 (init_objfile_sect_indices): Update.
17417 (struct place_section_arg): Change type of "offsets".
17418 (place_section): Update.
17419 (relative_addr_info_to_section_offsets): Change type of
17420 "section_offsets". Remove "num_sections" parameter.
17421 (default_symfile_offsets, syms_from_objfile_1)
17422 (set_objfile_default_section_offset): Update.
17423 (reread_symbols): No need to preserve section offsets by hand.
17424 (symfile_map_offsets_to_segments): Change type of "offsets".
17425 * stap-probe.c (relocate_address): Update.
17426 * stabsread.h (process_one_symbol): Update.
17427 * solib-target.c (struct lm_info_target) <offsets>: Change type.
17428 (solib_target_relocate_section_addresses): Update.
17429 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
17431 * solib-frv.c (frv_relocate_main_executable): Update.
17432 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
17433 * solib-aix.c (solib_aix_get_section_offsets): Change return
17435 (solib_aix_solib_create_inferior_hook): Update.
17436 * remote.c (remote_target::get_offsets): Update.
17437 * psymtab.c (find_pc_sect_psymtab): Update.
17438 * psympriv.h (struct partial_symbol) <address, text_low,
17439 text_high>: Update.
17440 * objfiles.h (obj_section_offset): Update.
17441 (struct objfile) <section_offsets>: Change type.
17442 <num_sections>: Remove.
17443 (objfile_relocate): Update.
17444 * objfiles.c (entry_point_address_query): Update
17445 (relocate_one_symbol): Change type of "section_offsets".
17446 (objfile_relocate1, objfile_relocate1): Change type of
17448 (objfile_rebase1): Update.
17449 * mipsread.c (mipscoff_symfile_read): Update.
17450 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
17452 * mdebugread.c (parse_symbol): Change type of "section_offsets".
17453 (parse_external, psymtab_to_symtab_1): Update.
17454 * machoread.c (macho_symfile_offsets): Update.
17455 * ia64-tdep.c (ia64_find_unwind_table): Update.
17456 * hppa-tdep.c (read_unwind_info): Update.
17457 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
17458 * dwarf2read.c (create_addrmap_from_index)
17459 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
17460 (process_psymtab_comp_unit_reader, add_partial_symbol)
17461 (add_partial_subprogram, process_full_comp_unit)
17462 (read_file_scope, read_func_scope, read_lexical_block_scope)
17463 (read_call_site_scope, dwarf2_rnglists_process)
17464 (dwarf2_ranges_process, dwarf2_ranges_read)
17465 (dwarf_decode_lines_1, var_decode_location, new_symbol)
17466 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
17468 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
17470 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
17471 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
17472 (process_one_symbol): Change type of "section_offsets".
17473 * ctfread.c (get_objfile_text_range): Update.
17474 * coffread.c (coff_symtab_read, enter_linenos)
17475 (process_coff_symbol): Update.
17476 * coff-pe-read.c (add_pe_forwarded_sym): Update.
17477 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
17479 2020-01-08 Tom Tromey <tromey@adacore.com>
17481 * dwarf2read.c (parse_macro_definition): Use std::string.
17482 (parse_macro_definition): Likewise.
17484 2020-01-08 Tom Tromey <tromey@adacore.com>
17486 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
17487 (ATTR_ALLOC_CHUNK): Remove.
17489 2020-01-08 Tom Tromey <tromey@adacore.com>
17491 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
17493 2020-01-08 Tom Tromey <tromey@adacore.com>
17495 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
17496 (dwarf2_compute_name, open_dwo_file): Likewise.
17497 (process_enumeration_scope): Use std::vector.
17498 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
17499 (partial_die_info::fixup, dwarf2_start_subfile)
17500 (guess_full_die_structure_name, dwarf2_name): Likewise.
17501 (determine_prefix): Update.
17502 (guess_full_die_structure_name): Make return type const.
17503 (partial_die_full_name): Return unique_xmalloc_ptr.
17504 (DW_FIELD_ALLOC_CHUNK): Remove.
17506 2020-01-07 Tom Tromey <tromey@adacore.com>
17509 * stap-probe.c (class stap_static_probe_ops): Add constructor.
17511 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17513 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
17515 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
17517 * stack.c (print_frame_info): Move disassemble_next_line code
17518 inside source_print block.
17520 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17522 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
17523 gdb/signals.h, as we are now using native signal symbols.
17525 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
17527 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
17528 overflow by an early check of content vs threshold.
17529 * tui/tui-source.c (tui_source_window::line_is_displayed):
17532 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17534 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
17536 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17538 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
17539 export table if no section contains it's RVA.
17541 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17543 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
17545 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
17547 * source.c (print_source_lines_base): Set last_line_listed.
17549 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
17551 * tui/tui-disasm.c: Remove trailing spaces.
17553 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17554 Pedro Alves <palves@redhat.com>
17556 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
17557 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
17558 (windows_gdb_signal_to_target): New function, uses the above
17559 enumeration to convert GDB internal signal codes to equivalent
17561 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
17562 * windows-nat.c: Include "gdb_wait.h".
17563 (get_windows_debug_event): Extract the fatal exception from the
17564 exit status and convert to the equivalent Posix signal number.
17565 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
17566 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
17567 * gdbsupport/gdb_wait.c: New file, implements
17568 windows_status_to_termsig.
17569 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
17570 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
17572 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
17574 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
17577 2020-01-05 Luis Machado <luis.machado@linaro.org>
17579 * aarch64-linux-nat.c
17580 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
17581 and bfd_mach_aarch64.
17583 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17585 * ui-file.c (stdio_file::can_emit_style_escape)
17586 (tee_file::can_emit_style_escape): Ensure style is used also on
17587 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
17589 * main.c (set_gdb_data_directory): Use file style to output the
17590 warning that the given pathname is not a directory.
17591 * top.c (show_history_filename, gdb_safe_append_history)
17592 (show_gdb_datadir): Use file style.
17594 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
17596 * solib-target.c (struct lm_info_target):
17597 Change offsets to be a unique_xmalloc_ptr.
17598 (solib_target_relocate_section_addresses): Update.
17600 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
17602 * windows-nat.c (windows_clear_solib): Free so_list linked list.
17604 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
17606 * MAINTAINERS (Write After Approval): Add myself.
17608 2020-01-02 Luis Machado <luis.machado@linaro.org>
17610 * proc-service.c (get_ps_regcache): Remove reference to obsolete
17611 Cell BE architecture.
17612 * target.h (struct target_ops) <thread_architecture>: Likewise.
17614 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
17616 * Makefile.in: Use INSTALL_PROGRAM_ENV.
17618 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
17620 * MAINTAINERS (Write After Approval): Add myself.
17622 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17624 * gdbarch.sh: Update copyright year range of generated files.
17626 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17628 Update copyright year range in all GDB files.
17630 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17632 * copyright.py: Convert to Python 3.
17634 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17636 * copyright.py: Adapt after move of gnulib directory from gdb
17637 directory to toplevel directory.
17639 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17641 * copyright.py (main): Exit if run from the wrong directory.
17643 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17645 * top.c (print_gdb_version): Change copyright year to 2020.
17647 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17649 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
17651 For older changes see ChangeLog-2019.
17657 version-control: never