1 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
3 * linux-tdep.c (get_linux_inferior_data): Add inferior
5 (linux_vsyscall_range): Pass current inferior.
7 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
9 * infrun.c (displaced_step_prepare_throw): Change return type to
10 displaced_step_prepare_status.
11 (displaced_step_prepare): Likewise.
12 (displaced_step_finish): Change return type to
13 displaced_step_finish_status.
15 (stop_all_threads): Adjust.
16 * displaced-stepping.h: New file.
18 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
20 * infrun.c (displaced_step_fixup): Rename to...
21 (displaced_step_finish): ... this, update all callers.
23 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
25 * infrun.h (get_displaced_step_closure_by_addr): Rename to...
26 (get_displaced_step_copy_insn_closure_by_addr): ... this.
28 (displaced_step_closure): Rename to...
29 (displaced_step_copy_insn_closure): ... this. Update all users.
30 (displaced_step_closure_up): Rename to...
31 (displaced_step_copy_insn_closure_up). ... this. Update all
33 (buf_displaced_step_closure): Rename to...
34 (buf_displaced_step_copy_insn_closure): ... this. Update all
36 * infrun.c (get_displaced_step_closure_by_addr): Rename to...
37 (get_displaced_step_copy_insn_closure_by_addr): ... this.
39 * aarch64-tdep.c (aarch64_displaced_step_closure): Rename to...
40 (aarch64_displaced_step_copy_insn_closure): ... this. Update
42 * amd64-tdep.c (amd64_displaced_step_closure): Rename to...
43 (amd64_displaced_step_copy_insn_closure): ... this. Update all
45 * arm-tdep.h (arm_displaced_step_closure): Rename to...
46 (arm_displaced_step_copy_insn_closure): ... this. Update all
48 * i386-tdep.h (i386_displaced_step_closure): Rename to...
49 (i386_displaced_step_copy_insn_closure): ... this. Update all
51 * rs6000-tdep.c (ppc_displaced_step_closure): Rename to...
52 (ppc_displaced_step_copy_insn_closure): ... this. Update all
54 * s390-tdep.c (s390_displaced_step_closure): Rename to...
55 (s390_displaced_step_copy_insn_closure): ... this. Update all
57 * gdbarch.h: Re-generate.
58 * gdbarch.c: Re-generate.
60 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
62 * gdbthread.h (thread_step_over_chain_enqueue): Rename to...
63 (global_thread_step_over_chain_enqueue): ... this. Update all
65 (thread_step_over_chain_remove): Rename to...
66 (global_thread_step_over_chain_remove): ... this. Update all
68 (thread_step_over_chain_next): Rename to...
69 (global_thread_step_over_chain_next): ... this. Update all
71 * infrun.h (step_over_queue_head): Rename to...
72 (global_thread_step_over_chain_head): ... this. Update all
74 * infrun.c (step_over_queue_head): Rename to...
75 (global_thread_step_over_chain_head): ... this. Update all
77 * thread.c (step_over_chain_remove): Rename to...
78 (thread_step_over_chain_remove): ... this. Update all users.
79 (thread_step_over_chain_next): Rename to...
80 (global_thread_step_over_chain_next): ... this. Update all
82 (thread_step_over_chain_enqueue): Rename to...
83 (global_thread_step_over_chain_enqueue): ... this. Update all
85 (thread_step_over_chain_remove): Rename to...
86 (global_thread_step_over_chain_remove): ... this. Update all
89 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
91 * infrun.c (get_displaced_stepping_state): Remove, change
92 callers to access the field directly.
94 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
96 * infrun.c (handle_inferior_event): Restore displaced step
97 buffer bytes in child process when handling fork, even if fork
98 happened in another thread than the displaced-stepping one.
100 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
102 * infrun.c (infrun_inferior_execd): New function.
103 (_initialize_infrun): Attach inferior_execd observer.
105 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
107 * observable.h (inferior_execd): Declare new observable.
108 * observable.c (inferior_execd): Declare new observable.
109 * infrun.c (follow_exec): Notify inferior_execd observer.
110 * jit.c (jit_inferior_created_hook): Make static.
111 (_initialize_jit): Register inferior_execd observer.
112 * jit.h (jit_inferior_created_hook): Remove declaration.
113 * solib.c (_initialize_solib): Register inferior_execd observer.
115 2020-12-04 Tom de Vries <tdevries@suse.de>
118 * completer.c (completion_tracker::build_completion_result): Don't
119 access match_list[0][-1].
121 2020-12-04 Tom Tromey <tromey@adacore.com>
123 * linespec.c (struct linespec_token): Rename; remove typedef.
124 * guile/scm-block.c (struct block_smob): Remove typedef.
125 (struct block_syms_progress_smob): Likewise.
126 * guile/scm-symbol.c (struct symbol_smob): Remove typedef.
127 * guile/scm-symtab.c (symtab_smob): Remove typedef.
128 (struct sal_smob): Remove typedef.
129 * guile/scm-param.c (struct param_smob): Remove typedef.
130 * guile/scm-progspace.c (struct pspace_smob): Rename.
131 * guile/scm-objfile.c (struct objfile_smob): Rename.
132 * guile/scm-iterator.c (struct iterator_smob): Rename.
133 * guile/scm-frame.c (struct frame_smob): Rename.
134 * guile/scm-arch.c (struct arch_smob): Rename.
135 * guile/scm-type.c (struct field_smob): Remove typedef.
136 (struct type_smob): Rename.
137 * guile/scm-cmd.c (struct command_smob): Remove typedef.
138 * guile/scm-ports.c (struct ioscm_memory_port): Remove typedef.
139 * guile/scm-value.c (struct value_smob): Remove typedef.
140 * guile/scm-lazy-string.c (lazy_string_smob): Remove typedef.
141 * guile/guile-internal.h (struct scheme_variable)
142 (struct scheme_function, struct scheme_integer_constant)
143 (struct gdb_smob, struct chained_gdb_smob)
144 (struct eqable_gdb_smob, arch_smob, frame_smob, iterator_smob)
145 (objfile_smob, pspace_smob, type_smob): Remove typedef.
146 * guile/scm-pretty-print.c (pretty_printer_smob): Remove typedef.
147 (struct pretty_printer_worker_smob): Remove typedef.
148 * guile/scm-exception.c (struct exception_smob): Remove typedef.
149 * python/py-block.c (struct block_object): Remove typedef.
150 (block_syms_iterator_object): Update.
152 (block_syms_iterator_object): Remove typedef.
153 * python/py-inferior.c (struct membuf_object): Remove typedef.
154 * python/py-symtab.c (struct symtab_object): Remove typedef.
155 (set_symtab): Update.
156 (sal_object): Remove typedef.
158 * python/py-frame.c (frame_object): Remove typedef.
159 * python/py-record-btrace.c (struct btpy_list_object): Remove
161 * python/py-arch.c (struct arch_object): Remove typedef.
162 * python/py-linetable.c (struct linetable_entry_object)
163 (linetable_object, struct ltpy_iterator_object): Remove typedef.
164 * python/py-events.h (eventregistry_object): Remove typedef.
165 (struct events_object): Remove typedef.
166 * python/python-internal.h (gdbpy_breakpoint_object): Remove
168 (thread_object): Remove typedef.
169 * python/py-progspace.c (pspace_object): Remove typedef.
170 * python/py-value.c (struct value_object): Remove typedef.
171 * python/py-record.h (recpy_record_object): Remove typedef.
172 (struct recpy_element_object): Remove typedef.
173 * python/py-lazy-string.c (lazy_string_object): Remove typedef.
174 * python/py-objfile.c (objfile_object): Remove typedef.
175 * python/py-cmd.c (struct cmdpy_object): Remove typedef.
176 * python/py-type.c (type_object): Remove typedef.
177 (typy_iterator_object): Update.
179 (field_object): Remove typedef.
180 (typy_iterator_object): Remove typedef.
181 * python/py-registers.c (register_descriptor_iterator_object):
183 (struct register_descriptor_object)
184 (struct reggroup_iterator_object, struct reggroup_object): Remove
186 * python/py-record.c (recpy_gap_object): Remove typedef.
187 * python/py-symbol.c (symbol_object): Remove typedef.
188 (set_symbol): Update.
189 * python/py-event.h (event_object): Remove typedef.
190 * python/py-param.c (parmpy_object): Remove typedef.
191 * python/py-instruction.c (struct py_insn_obj): Remove typedef.
192 * python/py-unwind.c (struct pending_frame_object): Remove typedef.
193 (unwind_info_object, struct cached_frame_info): Likewise.
195 2020-12-04 Tom Tromey <tromey@adacore.com>
197 * value.c (value_internal_function_name): Make return type const.
198 * value.h (value_internal_function_name): Make return type const.
200 2020-12-04 Luis Machado <luis.machado@linaro.org>
202 * aarch64-tdep.c (submask, bit, bits): Remove.
203 * arch/aarch64-insn.c (extract_signed_bitfield): Remove.
204 (aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond)
205 (aarch64_decode_cb, aarch64_decode_tb)
206 (aarch64_decode_ldr_literal): Use sbits to extract a signed
208 * arch/aarch64-insn.h (submask, bits, bit, sbits): New macros.
210 2020-12-04 Tom de Vries <tdevries@suse.de>
213 * i386-tdep.c (i386_16_byte_align_p): Skip static fields.
215 2020-12-03 Simon Marchi <simon.marchi@polymtl.ca>
218 * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of
219 dwarf2_frame_bfd_data and dwarf2_frame_objfile_data.
221 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
223 * arch/riscv.c: Include 'rv32e-xregs.c'.
224 (riscv_create_target_description): Update to handle rv32e.
225 * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New
227 <operator==>: Update to account for new field.
229 * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml.
230 * features/riscv/rv32e-xregs.c: Generated.
231 * features/riscv/rv32e-xregs.xml: New file.
232 * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the
234 (riscv_debug_infcall): Likewise.
235 (riscv_debug_unwinder): Likewise.
236 (riscv_debug_gdbarch): Likewise.
237 (enum riscv_register_required_status): Delete.
238 (struct riscv_register_feature): Add constructor, delete default
239 constructor, copy, and assign constructors.
240 (struct riscv_register_feature::register_info) <required>: Delete.
241 <check>: Update comment and arguments.
242 (struct riscv_register_feature) <name>: Change to member function.
243 <prefer_first_name>: Delete.
244 <tdesc_feature>: New member function.
245 <registers>: Rename to...
246 <m_registers>: ...this.
247 <m_feature_name>: New member variable.
248 (riscv_register_feature::register_info::check): Update arguments.
249 (riscv_xreg_feature): Rewrite as class, create a single static
250 instance of the class.
251 (riscv_freg_feature): Likewise.
252 (riscv_virtual_feature): Likewise.
253 (riscv_csr_feature): Likewise.
254 (riscv_create_csr_aliases): Has become a member function inside
255 riscv_csr_feature class.
256 (riscv_abi_embedded): New function definition.
257 (riscv_register_name): Adjust to use new feature objects.
258 (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi,
259 and adjust available argument registers.
260 (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag.
261 (riscv_check_tdesc_feature): Delete.
262 (riscv_tdesc_unknown_reg): Adjust to use new feature objects.
263 (riscv_gdbarch_init): Delete target description checking code, and
264 instead call to the new feature objects to perform the checks.
265 Reorder handling of no abi information case, allows small code
267 (_initialize_riscv_tdep): Remove call, this is now done in the
268 riscv_csr_feature constructor.
269 * riscv-tdep.h (riscv_abi_embedded): Declare.
271 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
273 * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
276 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
278 * riscv-tdep.c (riscv_is_unknown_csr): New function,
279 implementation moved from riscv_register_reggroup_p.
280 (riscv_register_reggroup_p): Update group handling for unknown
283 2020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
285 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
286 (dwarf2_get_dwz_file): Convert 'filename' to a
287 std::string. Use dwz_search_other_debugdirs to search for DWZ
288 files in the debug-file-directories provided by the user as well.
290 2020-12-01 Tom Tromey <tom@tromey.com>
292 * parse.c (expr_builder::expr_builder): Initialize expout.
293 (expr_builder::release): Use expression::resize.
294 (expression::expression, expression::~expression)
295 (expression::resize): New methods.
296 (write_exp_elt): Use expression::resize.
297 (prefixify_expression): Update.
298 (increase_expout_size): Use expression::resize.
299 * expression.h (struct expression): Add constructor, destructor.
300 <resize>: New method.
301 (expression_up): Change type.
303 2020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
304 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
305 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
308 2020-11-30 Tom de Vries <tdevries@suse.de>
311 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
312 is_reference parameter.
313 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
315 2020-11-30 Tom Tromey <tom@tromey.com>
317 * rust-lang.c (rust_op_name): Remove.
318 (exp_descriptor_rust): Update.
319 * parser-defs.h (op_name_standard): Don't declare.
320 (struct exp_descriptor) <op_name>: Remove.
321 * parse.c (exp_descriptor_standard): Update.
322 * opencl-lang.c (exp_descriptor_opencl): Update.
323 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
324 * f-lang.c (op_name_f): Remove.
325 (f_language::exp_descriptor_tab): Update.
326 * expression.h (op_name): Update.
327 * expprint.c (op_name): Rewrite.
328 (op_name_standard): Remove.
329 (dump_raw_expression, dump_subexp): Update.
330 * c-lang.c (exp_descriptor_c): Update.
331 * ax-gdb.c (gen_expr): Update.
332 * ada-lang.c (ada_op_name): Remove.
333 (ada_exp_descriptor): Update.
335 2020-11-30 Tom Tromey <tom@tromey.com>
337 * eval.c (init_array_element): Remove.
338 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
340 2020-11-29 Hannes Domani <ssbssa@yahoo.de>
343 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
344 static locator win info.
346 2020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
348 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
351 2020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
353 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
354 is always initialized.
356 2020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
357 * MAINTAINERS (Write After Approval): Add myself.
359 2020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
361 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
362 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
364 2020-11-25 Tom Tromey <tom@tromey.com>
366 * eval.c (evaluate_subexp_standard): Remove unnecessary
369 2020-11-25 Tom Tromey <tom@tromey.com>
371 * d-lang.c: Include parser-defs.h.
372 * rust-lang.c: Include parser-defs.h.
373 * c-lang.h: Do not include parser-defs.h.
375 2020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
377 * regcache.h (struct cached_reg): Remove typedef.
379 2020-11-24 Joel Brobecker <brobecker@adacore.com>
381 * README: Fix the URL of the MPFR library.
383 2020-11-24 Joel Brobecker <brobecker@adacore.com>
385 * README: Document the --with-libgmp-prefix configure option.
387 2020-11-24 Joel Brobecker <brobecker@adacore.com>
389 * NEWS: Add entry documenting support for DWARF-based fixed
392 2020-11-24 Joel Brobecker <brobecker@adacore.com>
394 * NEWS: Document that building GDB now requires GMP.
396 2020-11-24 Joel Brobecker <brobecker@adacore.com>
398 * typeprint.c (print_type_scalar): Add handling of
399 TYPE_CODE_FIXED_POINT.
401 2020-11-24 Joel Brobecker <brobecker@adacore.com>
403 * valarith.c (fixed_point_binop): Replace the
404 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
407 2020-11-24 Joel Brobecker <brobecker@adacore.com>
409 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
410 replacing fixed_point_scaling_factor. All callers updated
411 throughout this project.
412 (fixed_point_scaling_factor): Delete declaration.
413 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
414 fixed_point_scaling_factor. Adjust implementation accordingly.
416 2020-11-24 Joel Brobecker <brobecker@adacore.com>
418 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
419 replacing the fixed_point_type_base_type function. All callers
420 updated throughout this project.
421 (fixed_point_type_base_type): Remove declaration.
422 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
423 fixed_point_type_base_type. Adjust implementation accordingly.
425 2020-11-24 Joel Brobecker <brobecker@adacore.com>
427 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
429 (INIT_FIXED_POINT_SPECIFIC): Adjust.
430 (TYPE_FIXED_POINT_INFO): Delete macro.
431 (allocate_fixed_point_type_info): Change return type to void.
432 * gdbtypes.c (copy_type_recursive): Replace the use of
433 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
434 (fixed_point_scaling_factor): Likewise.
435 (allocate_fixed_point_type_info): Change return type to void.
436 Adjust implementation accordingly.
437 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
438 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
440 2020-11-24 Joel Brobecker <brobecker@adacore.com>
442 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
443 into one single gdb::array_view parameter.
444 (gdb_mpz::write): Likewise.
445 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
446 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
447 into one single gdb::array_view parameter.
448 Adjust implementation accordingly.
449 (gdb_mpz::write): Likewise.
450 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
451 * unittests/gmp-utils-selftests.c: Adapt following changes above.
452 * valarith.c, valops.c, valprint.c, value.c: Likewise.
454 2020-11-24 Joel Brobecker <brobecker@adacore.com>
456 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
457 Change return type to std::string. Update all callers.
458 * gmp-utils.c (gmp_string_printf): Likewise.
460 2020-11-24 Joel Brobecker <brobecker@adacore.com>
462 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
463 instead of mpq_set_ui to initialize our GMP rational.
465 2020-11-23 Tom de Vries <tdevries@suse.de>
467 * debuginfod-support.c (debuginfod_source_query)
468 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
470 2020-11-21 Tom Tromey <tom@tromey.com>
472 * breakpoint.c (watchpoint_exp_is_const): Return bool.
474 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
476 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
478 (gdb_mpz_write_all_from_small): Likewise.
480 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
482 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
485 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
487 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
488 ctf_arc_open_by_name.
490 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
492 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
493 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
495 2020-11-20 Pedro Alves <pedro@palves.net>
497 * language.c (language_arch_info::lookup_primitive_type): Use
498 gdb::function_view instead of gdb::function.
499 (template language_lookup_primitive_type): Rename to ...
500 (language_lookup_primitive_type_1): ... this, and make static.
501 (language_lookup_primitive_type(const struct language_defn *,
502 struct gdbarch *, const char *): Make non-template.
503 (language_lookup_primitive_type(const struct language_defn *,
504 struct gdbarch *, std::function<bool (struct type *)>): Make
505 non-template and use gdb::function_view.
506 * language.h (language_arch_info::lookup_primitive_type): Use
507 gdb::function_view instead of std::function.
508 (language_lookup_primitive_type): No longer template.
509 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
510 lambda instead of a std::function.
512 2020-11-19 Andreas Arnez <arnez@linux.ibm.com>
515 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
518 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
520 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
522 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
524 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
525 in `loop_cb` parameter.
526 * gdbarch.c: Re-generate.
527 * gdbarch.h: Re-generate.
528 * arch-utils.c (default_read_core_file_mappings): Remove `other`
530 * arch-utils.h (default_read_core_file_mappings): Likewise.
531 * corelow.c (core_target::build_file_mappings): Likewise.
532 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
533 (linux_core_info_proc_mappings): Likewise.
535 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
537 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
538 * NEWS: Mention new options.
539 * f-array-walker.h: New file.
540 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
541 (repack_array_slices): New static global.
542 (show_repack_array_slices): New function.
543 (fortran_array_slicing_debug): New static global.
544 (show_fortran_array_slicing_debug): New function.
545 (value_f90_subarray): Delete.
546 (skip_undetermined_arglist): Delete.
547 (class fortran_array_repacker_base_impl): New class.
548 (class fortran_lazy_array_repacker_impl): New class.
549 (class fortran_array_repacker_impl): New class.
550 (fortran_value_subarray): Complete rewrite.
551 (set_fortran_list): New static global.
552 (show_fortran_list): Likewise.
553 (_initialize_f_language): Register new commands.
554 (fortran_adjust_dynamic_array_base_address_hack): New function.
555 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
557 * f-valprint.c: Include 'f-array-walker.h'.
558 (class fortran_array_printer_impl): New class.
559 (f77_print_array_1): Delete.
560 (f77_print_array): Delete.
561 (fortran_print_array): New.
562 (f_value_print_inner): Update to call fortran_print_array.
563 * gdbtypes.c: Include 'f-lang.h'.
564 (resolve_dynamic_type_internal): Call
565 fortran_adjust_dynamic_array_base_address_hack.
567 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
569 * breakpoint.c (struct watch_options): New struct.
570 (watch_option_defs): New static global.
571 (make_watch_options_def_group): New function.
572 (watch_maybe_just_location): Convert option parsing.
573 (watch_command_completer): New function.
574 (_initialize_breakpoint): Build help text using options mechanism.
576 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
578 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
579 (watch_command_1): Update parameter types. Convert locals to
581 (watch_command_wrapper): Change parameter type.
582 (watch_maybe_just_location): Change locals to bool.
583 (rwatch_command_wrapper): Update parameter type.
584 (awatch_command_wrapper): Update parameter type.
585 * breakpoint.h (watch_command_wrapper): Change parameter type.
586 (rwatch_command_wrapper): Update parameter type.
587 (awatch_command_wrapper): Update parameter type.
588 * eval.c (fetch_subexp_value): Change parameter type.
589 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
591 * value.h (fetch_subexp_value): Change parameter type in
594 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
596 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
599 2020-11-18 Keith Seitz <keiths@redhat.com>
601 * linux-tdep.c (dump_note_entry_p): Return true instead of
604 2020-11-18 Tom de Vries <tdevries@suse.de>
606 * debuginfod-support.c (debuginfod_source_query)
607 (debuginfod_debuginfo_query): Also do early exit if
608 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
610 2020-11-18 Tom de Vries <tdevries@suse.de>
612 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
615 2020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
617 * gdbtypes.h (get_array_bounds): Return bool, adjust some
618 callers. Move doc here.
619 * gdbtypes.c (get_array_bounds): Return bool
621 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
623 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
625 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
626 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
629 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
631 * printcmd.c: Include 'safe-ctype.c'.
632 (skip_over_slash_fmt): New function.
633 (print_command_completer): Call skip_over_slash_fmt.
634 (display_and_x_command_completer): New function.
635 (_initialize_printcmd): Add command completion for 'x' and
638 2020-11-16 Pedro Alves <pedro@palves.net>
640 * frame.c (get_prev_frame): Move get_frame_id call from here ...
641 (get_prev_frame_always_1): ... to here.
642 * inline-frame.c (inline_frame_this_id): Mention
643 get_prev_frame_always_1 in comment.
645 2020-11-15 Joel Brobecker <brobecker@adacore.com>
647 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
649 (value_less): Add fixed-point handling.
651 2020-11-15 Joel Brobecker <brobecker@adacore.com>
653 * eval.c (binop_promote): Add fixed-point type handling.
654 * valarith.c (fixed_point_binop): New function.
655 (scalar_binop): Add fixed-point type handling.
656 (value_neg): Add fixed-point type handling.
657 * valops.c (value_cast_to_fixed_point): New function.
658 (value_cast): Add fixed-point type handling.
660 2020-11-15 Joel Brobecker <brobecker@adacore.com>
662 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
664 * c-typeprint.c (c_type_print_varspec_prefix)
665 (c_type_print_varspec_suffix, c_type_print_base_1): Add
666 TYPE_CODE_FIXED_POINT handling.
667 * p-typeprint.c (pascal_type_print_varspec_prefix)
668 (pascal_type_print_varspec_suffix): Likewise.
669 * typeprint.c (print_type_fixed_point): New function.
670 * typeprint.h (print_type_fixed_point): Add declaration.
672 2020-11-15 Joel Brobecker <brobecker@adacore.com>
674 * printcmd.c (print_scalar_formatted): Add fixed-point type
675 handling when options->format is set.
677 2020-11-15 Joel Brobecker <brobecker@adacore.com>
679 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
680 * dwarf2/read.c (get_dwarf2_rational_constant)
681 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
682 (has_zero_over_zero_small_attribute): New functions.
683 read_base_type, set_die_type): Add fixed-point type handling.
684 * gdb-gdb.py.in: Add fixed-point type handling.
685 * gdbtypes.c: #include "gmp-utils.h".
686 (create_range_type, set_type_code): Add fixed-point type handling.
687 (init_fixed_point_type): New function.
688 (is_integral_type, is_scalar_type): Add fixed-point type handling.
689 (print_fixed_point_type_info): New function.
690 (recursive_dump_type, copy_type_recursive): Add fixed-point type
692 (fixed_point_type_storage): New typedef.
693 (fixed_point_objfile_key): New static global.
694 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
695 (fixed_point_type_base_type, fixed_point_scaling_factor): New
697 * gdbtypes.h: #include "gmp-utils.h".
698 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
699 (union type_specific) <fixed_point_info>: New field.
700 (struct fixed_point_type_info): New struct.
701 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
702 (init_fixed_point_type, is_fixed_point_type)
703 (fixed_point_type_base_type, fixed_point_scaling_factor)
704 (allocate_fixed_point_type_info): Add declarations.
705 * valprint.c (generic_val_print_fixed_point): New function.
706 (generic_value_print): Add fixed-point type handling.
707 * value.c (value_as_address, unpack_long): Add fixed-point type
710 2020-11-15 Joel Brobecker <brobecker@adacore.com>
712 * utils.h (uinteger_pow): Add declaration.
713 * utils.c (uinteger_pow): Moved here (without changes)...
714 * valarith.c (uinteger_pow): ... from here.
716 2020-11-15 Joel Brobecker <brobecker@adacore.com>
718 * gmp-utils.h, gmp-utils.c: New file.
719 * unittests/gmp-utils-selftests.c: New file.
720 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
721 unittests/gmp-utils-selftests.c.
722 (COMMON_SFILES) Add gmp-utils.c.
723 (HFILES_NO_SRCDIR): Add gmp-utils.h.
725 2020-11-15 Joel Brobecker <brobecker@adacore.com>
727 * configure.ac: Generate an error if a usable GMP library
729 * configure: Regenerate.
731 2020-11-15 Joel Brobecker <brobecker@adacore.com>
733 * configure.ac: Add support for --with-libgmp-prefix.
734 * Makefile.in (LIBGMP): New variable.
735 (CLIBS): Include $(LIBGMP).
736 * configure, config.in: Regenerate
738 2020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
741 * f-exp.y (COMPLETE): New token.
742 (exp): Two new rules for tab-completion.
743 (saw_name_at_eof): New static global.
744 (last_was_structop): Likewise.
745 (yylex): Set new variables, and return COMPLETE token at the end
746 of the input stream in some cases.
748 2020-11-14 Tom Tromey <tom@tromey.com>
750 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
752 2020-11-14 Tom Tromey <tom@tromey.com>
754 * opencl-lang.c (opencl_component_ref): Make "comps" const.
756 2020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
758 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
760 2020-11-13 Tom Tromey <tom@tromey.com>
762 * c-lang.c (convert_ucn, convert_octal, convert_hex)
763 (convert_escape, parse_one_string): Constify.
765 2020-11-13 Keith Seitz <keiths@redhat.com>
767 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
768 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
769 outside of ELF segments" warning for debugin
771 2020-11-13 Keith Seitz <keiths@redhat.com>
774 * elfread.c (elf_symfile_segments): Output a BFD file name
775 for the "Loadable section ... outside of ELF segments" warning.
777 2020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
780 * arm-tdep.c (class arm_instruction_reader): New.
781 (target_arm_instruction_reader): New.
782 (arm_analyze_prologue): Add instruction reader parameter and use
783 it. Use arm_expand_immediate.
784 (class target_arm_instruction_reader): Adjust.
785 (arm_skip_prologue): Adjust.
786 (arm_expand_immediate): New.
787 (arm_scan_prologue): Adjust.
788 (arm_analyze_prologue_test): New.
789 (class test_arm_instruction_reader): New.
791 2020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
793 * f-lang.c (fortran_argument_convert): Add declaration. Add
794 header comment, taken from f-lang.h. Make static.
795 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
796 (fortran_argument_convert): Delete declaration.
798 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
800 * ada-exp.y (find_primitive_type): Make parameter const.
801 * ada-lang.c (enum ada_primitive_types): Delete.
802 (ada_language::language_arch_info): Update.
803 * c-lang.c (enum c_primitive_types): Delete.
804 (c_language_arch_info): Update.
805 (enum cplus_primitive_types): Delete.
806 (cplus_language::language_arch_info): Update.
807 * d-lang.c (enum d_primitive_types): Delete.
808 (d_language::language_arch_info): Update.
809 * f-lang.c (enum f_primitive_types): Delete.
810 (f_language::language_arch_info): Update.
811 * go-lang.c (enum go_primitive_types): Delete.
812 (go_language::language_arch_info): Update.
813 * language.c (auto_or_unknown_language::language_arch_info):
815 (language_gdbarch_post_init): Use obstack_new, use array indexing.
816 (language_string_char_type): Add header comment, call function in
818 (language_bool_type): Likewise
819 (language_arch_info::bool_type): Define.
820 (language_lookup_primitive_type_1): Delete.
821 (language_lookup_primitive_type): Rewrite as a templated function
822 to call function in language_arch_info, then instantiate twice.
823 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
824 (language_arch_info::lookup_primitive_type_and_symbol): Define.
825 (language_arch_info::lookup_primitive_type): Define twice with
826 different signatures.
827 (language_arch_info::lookup_primitive_type_as_symbol): Define.
828 (language_lookup_primitive_type_as_symbol): Rewrite to call a
829 member function in language_arch_info.
830 * language.h (language_arch_info): Complete rewrite.
831 (language_lookup_primitive_type): Make templated.
832 * m2-lang.c (enum m2_primitive_types): Delete.
833 (m2_language::language_arch_info): Update.
834 * opencl-lang.c (OCL_P_TYPE): Delete.
835 (enum opencl_primitive_types): Delete.
836 (opencl_type_data): Delete.
837 (builtin_opencl_type): Delete.
838 (lookup_opencl_vector_type): Update.
839 (opencl_language::language_arch_info): Update, lots of content
841 (build_opencl_types): ...here. This function is now deleted.
842 (_initialize_opencl_language): Delete.
843 * p-lang.c (enum pascal_primitive_types): Delete.
844 (pascal_language::language_arch_info): Update.
845 * rust-lang.c (enum rust_primitive_types): Delete.
846 (rust_language::language_arch_info): Update.
848 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
850 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
853 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
855 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
858 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
860 * dwarf2/read.c (dwarf_read_debug_printf,
861 dwarf_read_debug_printf_v): New macros, use throughout the file.
863 2020-11-12 Shahab Vahedi <shahab@synopsys.com>
866 * arc-linux-tdep.c (collect_register): Populate "eret" by
867 "pc" value from the regcache when asked for "pc" value.
869 2020-11-12 Tom Tromey <tom@tromey.com>
872 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
875 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
877 * features/Makefile (XMLTOC): Add rx.xml.
878 (FEATURE_XMLFILES): Remove rx.xml.
879 (FEATURE_CFILES rule): Pass '-single-feature' flag.
880 * features/rx.c: Regenerate.
881 * features/rx.xml: Wrap in `target` tags, and reindent.
882 * target-descriptions.c (struct maint_print_c_tdesc_options): New
884 (maint_print_c_tdesc_opt_def): New typedef.
885 (maint_print_c_tdesc_opt_defs): New static global.
886 (make_maint_print_c_tdesc_options_def_group): New function.
887 (maint_print_c_tdesc_cmd): Make use of command line flags, only
888 print single feature C file for target descriptions containing a
890 (maint_print_c_tdesc_cmd_completer): New function.
891 (_initialize_target_descriptions): Update call to register command
892 completer, and include command line flag in help text.
894 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
896 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
898 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
901 2020-11-10 Tom Tromey <tom@tromey.com>
903 * value.h (internalvar_name): Update.
904 * value.c (internalvar_name): Make return type const.
906 2020-11-10 Tom Tromey <tom@tromey.com>
908 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
909 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
912 2020-11-10 Tom Tromey <tom@tromey.com>
914 * objc-lang.h (value_nsstring): Update.
915 * objc-lang.c (value_nsstring): Make "ptr" const.
917 2020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
919 * expprint.c (print_subexp_funcall): Increment expression position
920 after reading argument count.
921 * f-lang.c (print_subexp_f): Skip over opcode before calling
923 (dump_subexp_body_f): Likewise.
925 2020-11-06 Romain Geissler <romain.geissler@amadeus.com>
928 * configure: Regenerate.
929 * configure.ac: Check for python modules ctypes instead of
932 2020-11-06 Pedro Alves <pedro@palves.net>
934 * macroexp.c (struct macro_buffer): Split in two classes. Add
936 (struct shared_macro_buffer): New, factored out from struct
938 (struct growable_macro_buffer): New, factored out from struct
940 (set_token, get_comment, get_identifier, get_pp_number)
941 (get_character_constant, get_string_literal, get_punctuator)
942 (get_next_token_for_substitution): Constify parameters.
943 (substitute_args): Constify locals.
945 2020-11-05 Tom Tromey <tom@tromey.com>
947 * dwarf2/read.c (read_cutu_die_from_dwo)
948 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
949 (build_type_psymtabs_1): Update.
950 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
952 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
953 Don't read section. Add assert.
955 2020-11-04 Tom Tromey <tromey@adacore.com>
957 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
959 2020-11-04 Tom Tromey <tromey@adacore.com>
961 * ada-typeprint.c (ada_print_type): Handle __T types.
963 2020-11-04 Tom Tromey <tromey@adacore.com>
965 * dwarf2/read.c (add_partial_symbol, process_die):
966 Handle DW_TAG_array_type.
967 (is_type_tag_for_partial): Add "lang" parameter.
968 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
970 2020-11-04 Tom Tromey <tromey@adacore.com>
972 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
974 2020-11-04 Tom Tromey <tromey@adacore.com>
976 * dwarf2/read.c (read_array_type): Only apply stride to innermost
979 2020-11-04 Tom Tromey <tromey@adacore.com>
981 * gdbtypes.c (update_static_array_size): Handle bit stride.
983 2020-11-04 Tom Tromey <tromey@adacore.com>
985 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
987 2020-11-04 Tom Tromey <tromey@adacore.com>
989 * ada-lang.c (ada_is_any_packed_array_type): New function.
990 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
992 2020-11-04 Tom Tromey <tromey@adacore.com>
994 * dwarf2/read.c (recognize_bound_expression)
995 (quirk_ada_thick_pointer): New functions.
996 (read_array_type): Call quirk_ada_thick_pointer.
997 (set_die_type): Add "skip_data_location" parameter.
998 (quirk_ada_thick_pointer): New function.
999 (process_structure_scope): Call quirk_ada_thick_pointer.
1000 * ada-lang.c (ada_is_unconstrained_packed_array_type)
1001 (decode_packed_array_bitsize): Handle thick pointers without
1003 (ada_is_gnat_encoded_packed_array_type): Rename from
1004 ada_is_packed_array_type.
1005 (ada_is_constrained_packed_array_type): Update.
1006 * ada-valprint.c (ada_val_print_gnat_array): Remove.
1007 (ada_value_print_1): Use ada_get_decoded_value.
1009 2020-11-04 Tom Tromey <tromey@adacore.com>
1011 * ada-lang.c (recursively_update_array_bitsize): New function.
1012 (decode_constrained_packed_array_type): Call it.
1014 2020-11-04 Tom Tromey <tromey@adacore.com>
1016 * ada-lang.c (to_fixed_array_type): Error if
1017 decode_constrained_packed_array_type returns NULL.
1019 2020-11-04 Tom Tromey <tromey@adacore.com>
1021 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
1023 2020-11-02 Tom Tromey <tromey@adacore.com>
1025 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
1026 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
1027 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
1028 * amd64-ravenscar-thread.c: New file.
1029 * amd64-ravenscar-thread.h: New file.
1030 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
1031 * configure.tgt (amd64_tobjs): Add ravenscar objects.
1033 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1035 * main.c (execute_cmdargs): New function.
1036 (captured_main_1): Make use of execute_cmdargs.
1038 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1040 * NEWS: Mention changes to config file search path.
1043 2020-11-02 Tom Tromey <tromey@adacore.com>
1045 * python/python.c: Consolidate two HAVE_PYTHON blocks.
1046 (python_GdbModuleDef): Move earlier. Now static.
1047 (do_start_initialization): Consolidate some IS_PY3K blocks.
1049 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
1051 * aarch64-linux-tdep.c: Fix indentation.
1052 * aarch64-ravenscar-thread.c: Fix indentation.
1053 * aarch64-tdep.c: Fix indentation.
1054 * aarch64-tdep.h: Fix indentation.
1055 * ada-lang.c: Fix indentation.
1056 * ada-lang.h: Fix indentation.
1057 * ada-tasks.c: Fix indentation.
1058 * ada-typeprint.c: Fix indentation.
1059 * ada-valprint.c: Fix indentation.
1060 * ada-varobj.c: Fix indentation.
1061 * addrmap.c: Fix indentation.
1062 * addrmap.h: Fix indentation.
1063 * agent.c: Fix indentation.
1064 * aix-thread.c: Fix indentation.
1065 * alpha-bsd-nat.c: Fix indentation.
1066 * alpha-linux-tdep.c: Fix indentation.
1067 * alpha-mdebug-tdep.c: Fix indentation.
1068 * alpha-nbsd-tdep.c: Fix indentation.
1069 * alpha-obsd-tdep.c: Fix indentation.
1070 * alpha-tdep.c: Fix indentation.
1071 * amd64-bsd-nat.c: Fix indentation.
1072 * amd64-darwin-tdep.c: Fix indentation.
1073 * amd64-linux-nat.c: Fix indentation.
1074 * amd64-linux-tdep.c: Fix indentation.
1075 * amd64-nat.c: Fix indentation.
1076 * amd64-obsd-tdep.c: Fix indentation.
1077 * amd64-tdep.c: Fix indentation.
1078 * amd64-windows-tdep.c: Fix indentation.
1079 * annotate.c: Fix indentation.
1080 * arc-tdep.c: Fix indentation.
1081 * arch-utils.c: Fix indentation.
1082 * arch/arm-get-next-pcs.c: Fix indentation.
1083 * arch/arm.c: Fix indentation.
1084 * arm-linux-nat.c: Fix indentation.
1085 * arm-linux-tdep.c: Fix indentation.
1086 * arm-nbsd-tdep.c: Fix indentation.
1087 * arm-pikeos-tdep.c: Fix indentation.
1088 * arm-tdep.c: Fix indentation.
1089 * arm-tdep.h: Fix indentation.
1090 * arm-wince-tdep.c: Fix indentation.
1091 * auto-load.c: Fix indentation.
1092 * auxv.c: Fix indentation.
1093 * avr-tdep.c: Fix indentation.
1094 * ax-gdb.c: Fix indentation.
1095 * ax-general.c: Fix indentation.
1096 * bfin-linux-tdep.c: Fix indentation.
1097 * block.c: Fix indentation.
1098 * block.h: Fix indentation.
1099 * blockframe.c: Fix indentation.
1100 * bpf-tdep.c: Fix indentation.
1101 * break-catch-sig.c: Fix indentation.
1102 * break-catch-syscall.c: Fix indentation.
1103 * break-catch-throw.c: Fix indentation.
1104 * breakpoint.c: Fix indentation.
1105 * breakpoint.h: Fix indentation.
1106 * bsd-uthread.c: Fix indentation.
1107 * btrace.c: Fix indentation.
1108 * build-id.c: Fix indentation.
1109 * buildsym-legacy.h: Fix indentation.
1110 * buildsym.c: Fix indentation.
1111 * c-typeprint.c: Fix indentation.
1112 * c-valprint.c: Fix indentation.
1113 * c-varobj.c: Fix indentation.
1114 * charset.c: Fix indentation.
1115 * cli/cli-cmds.c: Fix indentation.
1116 * cli/cli-decode.c: Fix indentation.
1117 * cli/cli-decode.h: Fix indentation.
1118 * cli/cli-script.c: Fix indentation.
1119 * cli/cli-setshow.c: Fix indentation.
1120 * coff-pe-read.c: Fix indentation.
1121 * coffread.c: Fix indentation.
1122 * compile/compile-cplus-types.c: Fix indentation.
1123 * compile/compile-object-load.c: Fix indentation.
1124 * compile/compile-object-run.c: Fix indentation.
1125 * completer.c: Fix indentation.
1126 * corefile.c: Fix indentation.
1127 * corelow.c: Fix indentation.
1128 * cp-abi.h: Fix indentation.
1129 * cp-namespace.c: Fix indentation.
1130 * cp-support.c: Fix indentation.
1131 * cp-valprint.c: Fix indentation.
1132 * cris-linux-tdep.c: Fix indentation.
1133 * cris-tdep.c: Fix indentation.
1134 * darwin-nat-info.c: Fix indentation.
1135 * darwin-nat.c: Fix indentation.
1136 * darwin-nat.h: Fix indentation.
1137 * dbxread.c: Fix indentation.
1138 * dcache.c: Fix indentation.
1139 * disasm.c: Fix indentation.
1140 * dtrace-probe.c: Fix indentation.
1141 * dwarf2/abbrev.c: Fix indentation.
1142 * dwarf2/attribute.c: Fix indentation.
1143 * dwarf2/expr.c: Fix indentation.
1144 * dwarf2/frame.c: Fix indentation.
1145 * dwarf2/index-cache.c: Fix indentation.
1146 * dwarf2/index-write.c: Fix indentation.
1147 * dwarf2/line-header.c: Fix indentation.
1148 * dwarf2/loc.c: Fix indentation.
1149 * dwarf2/macro.c: Fix indentation.
1150 * dwarf2/read.c: Fix indentation.
1151 * dwarf2/read.h: Fix indentation.
1152 * elfread.c: Fix indentation.
1153 * eval.c: Fix indentation.
1154 * event-top.c: Fix indentation.
1155 * exec.c: Fix indentation.
1156 * exec.h: Fix indentation.
1157 * expprint.c: Fix indentation.
1158 * f-lang.c: Fix indentation.
1159 * f-typeprint.c: Fix indentation.
1160 * f-valprint.c: Fix indentation.
1161 * fbsd-nat.c: Fix indentation.
1162 * fbsd-tdep.c: Fix indentation.
1163 * findvar.c: Fix indentation.
1164 * fork-child.c: Fix indentation.
1165 * frame-unwind.c: Fix indentation.
1166 * frame-unwind.h: Fix indentation.
1167 * frame.c: Fix indentation.
1168 * frv-linux-tdep.c: Fix indentation.
1169 * frv-tdep.c: Fix indentation.
1170 * frv-tdep.h: Fix indentation.
1171 * ft32-tdep.c: Fix indentation.
1172 * gcore.c: Fix indentation.
1173 * gdb_bfd.c: Fix indentation.
1174 * gdbarch.sh: Fix indentation.
1175 * gdbarch.c: Re-generate
1176 * gdbarch.h: Re-generate.
1177 * gdbcore.h: Fix indentation.
1178 * gdbthread.h: Fix indentation.
1179 * gdbtypes.c: Fix indentation.
1180 * gdbtypes.h: Fix indentation.
1181 * glibc-tdep.c: Fix indentation.
1182 * gnu-nat.c: Fix indentation.
1183 * gnu-nat.h: Fix indentation.
1184 * gnu-v2-abi.c: Fix indentation.
1185 * gnu-v3-abi.c: Fix indentation.
1186 * go32-nat.c: Fix indentation.
1187 * guile/guile-internal.h: Fix indentation.
1188 * guile/scm-cmd.c: Fix indentation.
1189 * guile/scm-frame.c: Fix indentation.
1190 * guile/scm-iterator.c: Fix indentation.
1191 * guile/scm-math.c: Fix indentation.
1192 * guile/scm-ports.c: Fix indentation.
1193 * guile/scm-pretty-print.c: Fix indentation.
1194 * guile/scm-value.c: Fix indentation.
1195 * h8300-tdep.c: Fix indentation.
1196 * hppa-linux-nat.c: Fix indentation.
1197 * hppa-linux-tdep.c: Fix indentation.
1198 * hppa-nbsd-nat.c: Fix indentation.
1199 * hppa-nbsd-tdep.c: Fix indentation.
1200 * hppa-obsd-nat.c: Fix indentation.
1201 * hppa-tdep.c: Fix indentation.
1202 * hppa-tdep.h: Fix indentation.
1203 * i386-bsd-nat.c: Fix indentation.
1204 * i386-darwin-nat.c: Fix indentation.
1205 * i386-darwin-tdep.c: Fix indentation.
1206 * i386-dicos-tdep.c: Fix indentation.
1207 * i386-gnu-nat.c: Fix indentation.
1208 * i386-linux-nat.c: Fix indentation.
1209 * i386-linux-tdep.c: Fix indentation.
1210 * i386-nto-tdep.c: Fix indentation.
1211 * i386-obsd-tdep.c: Fix indentation.
1212 * i386-sol2-nat.c: Fix indentation.
1213 * i386-tdep.c: Fix indentation.
1214 * i386-tdep.h: Fix indentation.
1215 * i386-windows-tdep.c: Fix indentation.
1216 * i387-tdep.c: Fix indentation.
1217 * i387-tdep.h: Fix indentation.
1218 * ia64-libunwind-tdep.c: Fix indentation.
1219 * ia64-libunwind-tdep.h: Fix indentation.
1220 * ia64-linux-nat.c: Fix indentation.
1221 * ia64-linux-tdep.c: Fix indentation.
1222 * ia64-tdep.c: Fix indentation.
1223 * ia64-tdep.h: Fix indentation.
1224 * ia64-vms-tdep.c: Fix indentation.
1225 * infcall.c: Fix indentation.
1226 * infcmd.c: Fix indentation.
1227 * inferior.c: Fix indentation.
1228 * infrun.c: Fix indentation.
1229 * iq2000-tdep.c: Fix indentation.
1230 * language.c: Fix indentation.
1231 * linespec.c: Fix indentation.
1232 * linux-fork.c: Fix indentation.
1233 * linux-nat.c: Fix indentation.
1234 * linux-tdep.c: Fix indentation.
1235 * linux-thread-db.c: Fix indentation.
1236 * lm32-tdep.c: Fix indentation.
1237 * m2-lang.c: Fix indentation.
1238 * m2-typeprint.c: Fix indentation.
1239 * m2-valprint.c: Fix indentation.
1240 * m32c-tdep.c: Fix indentation.
1241 * m32r-linux-tdep.c: Fix indentation.
1242 * m32r-tdep.c: Fix indentation.
1243 * m68hc11-tdep.c: Fix indentation.
1244 * m68k-bsd-nat.c: Fix indentation.
1245 * m68k-linux-nat.c: Fix indentation.
1246 * m68k-linux-tdep.c: Fix indentation.
1247 * m68k-tdep.c: Fix indentation.
1248 * machoread.c: Fix indentation.
1249 * macrocmd.c: Fix indentation.
1250 * macroexp.c: Fix indentation.
1251 * macroscope.c: Fix indentation.
1252 * macrotab.c: Fix indentation.
1253 * macrotab.h: Fix indentation.
1254 * main.c: Fix indentation.
1255 * mdebugread.c: Fix indentation.
1256 * mep-tdep.c: Fix indentation.
1257 * mi/mi-cmd-catch.c: Fix indentation.
1258 * mi/mi-cmd-disas.c: Fix indentation.
1259 * mi/mi-cmd-env.c: Fix indentation.
1260 * mi/mi-cmd-stack.c: Fix indentation.
1261 * mi/mi-cmd-var.c: Fix indentation.
1262 * mi/mi-cmds.c: Fix indentation.
1263 * mi/mi-main.c: Fix indentation.
1264 * mi/mi-parse.c: Fix indentation.
1265 * microblaze-tdep.c: Fix indentation.
1266 * minidebug.c: Fix indentation.
1267 * minsyms.c: Fix indentation.
1268 * mips-linux-nat.c: Fix indentation.
1269 * mips-linux-tdep.c: Fix indentation.
1270 * mips-nbsd-tdep.c: Fix indentation.
1271 * mips-tdep.c: Fix indentation.
1272 * mn10300-linux-tdep.c: Fix indentation.
1273 * mn10300-tdep.c: Fix indentation.
1274 * moxie-tdep.c: Fix indentation.
1275 * msp430-tdep.c: Fix indentation.
1276 * namespace.h: Fix indentation.
1277 * nat/fork-inferior.c: Fix indentation.
1278 * nat/gdb_ptrace.h: Fix indentation.
1279 * nat/linux-namespaces.c: Fix indentation.
1280 * nat/linux-osdata.c: Fix indentation.
1281 * nat/netbsd-nat.c: Fix indentation.
1282 * nat/x86-dregs.c: Fix indentation.
1283 * nbsd-nat.c: Fix indentation.
1284 * nbsd-tdep.c: Fix indentation.
1285 * nios2-linux-tdep.c: Fix indentation.
1286 * nios2-tdep.c: Fix indentation.
1287 * nto-procfs.c: Fix indentation.
1288 * nto-tdep.c: Fix indentation.
1289 * objfiles.c: Fix indentation.
1290 * objfiles.h: Fix indentation.
1291 * opencl-lang.c: Fix indentation.
1292 * or1k-tdep.c: Fix indentation.
1293 * osabi.c: Fix indentation.
1294 * osabi.h: Fix indentation.
1295 * osdata.c: Fix indentation.
1296 * p-lang.c: Fix indentation.
1297 * p-typeprint.c: Fix indentation.
1298 * p-valprint.c: Fix indentation.
1299 * parse.c: Fix indentation.
1300 * ppc-linux-nat.c: Fix indentation.
1301 * ppc-linux-tdep.c: Fix indentation.
1302 * ppc-nbsd-nat.c: Fix indentation.
1303 * ppc-nbsd-tdep.c: Fix indentation.
1304 * ppc-obsd-nat.c: Fix indentation.
1305 * ppc-ravenscar-thread.c: Fix indentation.
1306 * ppc-sysv-tdep.c: Fix indentation.
1307 * ppc64-tdep.c: Fix indentation.
1308 * printcmd.c: Fix indentation.
1309 * proc-api.c: Fix indentation.
1310 * producer.c: Fix indentation.
1311 * producer.h: Fix indentation.
1312 * prologue-value.c: Fix indentation.
1313 * prologue-value.h: Fix indentation.
1314 * psymtab.c: Fix indentation.
1315 * python/py-arch.c: Fix indentation.
1316 * python/py-bpevent.c: Fix indentation.
1317 * python/py-event.c: Fix indentation.
1318 * python/py-event.h: Fix indentation.
1319 * python/py-finishbreakpoint.c: Fix indentation.
1320 * python/py-frame.c: Fix indentation.
1321 * python/py-framefilter.c: Fix indentation.
1322 * python/py-inferior.c: Fix indentation.
1323 * python/py-infthread.c: Fix indentation.
1324 * python/py-objfile.c: Fix indentation.
1325 * python/py-prettyprint.c: Fix indentation.
1326 * python/py-registers.c: Fix indentation.
1327 * python/py-signalevent.c: Fix indentation.
1328 * python/py-stopevent.c: Fix indentation.
1329 * python/py-stopevent.h: Fix indentation.
1330 * python/py-threadevent.c: Fix indentation.
1331 * python/py-tui.c: Fix indentation.
1332 * python/py-unwind.c: Fix indentation.
1333 * python/py-value.c: Fix indentation.
1334 * python/py-xmethods.c: Fix indentation.
1335 * python/python-internal.h: Fix indentation.
1336 * python/python.c: Fix indentation.
1337 * ravenscar-thread.c: Fix indentation.
1338 * record-btrace.c: Fix indentation.
1339 * record-full.c: Fix indentation.
1340 * record.c: Fix indentation.
1341 * reggroups.c: Fix indentation.
1342 * regset.h: Fix indentation.
1343 * remote-fileio.c: Fix indentation.
1344 * remote.c: Fix indentation.
1345 * reverse.c: Fix indentation.
1346 * riscv-linux-tdep.c: Fix indentation.
1347 * riscv-ravenscar-thread.c: Fix indentation.
1348 * riscv-tdep.c: Fix indentation.
1349 * rl78-tdep.c: Fix indentation.
1350 * rs6000-aix-tdep.c: Fix indentation.
1351 * rs6000-lynx178-tdep.c: Fix indentation.
1352 * rs6000-nat.c: Fix indentation.
1353 * rs6000-tdep.c: Fix indentation.
1354 * rust-lang.c: Fix indentation.
1355 * rx-tdep.c: Fix indentation.
1356 * s12z-tdep.c: Fix indentation.
1357 * s390-linux-tdep.c: Fix indentation.
1358 * score-tdep.c: Fix indentation.
1359 * ser-base.c: Fix indentation.
1360 * ser-mingw.c: Fix indentation.
1361 * ser-uds.c: Fix indentation.
1362 * ser-unix.c: Fix indentation.
1363 * serial.c: Fix indentation.
1364 * sh-linux-tdep.c: Fix indentation.
1365 * sh-nbsd-tdep.c: Fix indentation.
1366 * sh-tdep.c: Fix indentation.
1367 * skip.c: Fix indentation.
1368 * sol-thread.c: Fix indentation.
1369 * solib-aix.c: Fix indentation.
1370 * solib-darwin.c: Fix indentation.
1371 * solib-frv.c: Fix indentation.
1372 * solib-svr4.c: Fix indentation.
1373 * solib.c: Fix indentation.
1374 * source.c: Fix indentation.
1375 * sparc-linux-tdep.c: Fix indentation.
1376 * sparc-nbsd-tdep.c: Fix indentation.
1377 * sparc-obsd-tdep.c: Fix indentation.
1378 * sparc-ravenscar-thread.c: Fix indentation.
1379 * sparc-tdep.c: Fix indentation.
1380 * sparc64-linux-tdep.c: Fix indentation.
1381 * sparc64-nbsd-tdep.c: Fix indentation.
1382 * sparc64-obsd-tdep.c: Fix indentation.
1383 * sparc64-tdep.c: Fix indentation.
1384 * stabsread.c: Fix indentation.
1385 * stack.c: Fix indentation.
1386 * stap-probe.c: Fix indentation.
1387 * stubs/ia64vms-stub.c: Fix indentation.
1388 * stubs/m32r-stub.c: Fix indentation.
1389 * stubs/m68k-stub.c: Fix indentation.
1390 * stubs/sh-stub.c: Fix indentation.
1391 * stubs/sparc-stub.c: Fix indentation.
1392 * symfile-mem.c: Fix indentation.
1393 * symfile.c: Fix indentation.
1394 * symfile.h: Fix indentation.
1395 * symmisc.c: Fix indentation.
1396 * symtab.c: Fix indentation.
1397 * symtab.h: Fix indentation.
1398 * target-float.c: Fix indentation.
1399 * target.c: Fix indentation.
1400 * target.h: Fix indentation.
1401 * tic6x-tdep.c: Fix indentation.
1402 * tilegx-linux-tdep.c: Fix indentation.
1403 * tilegx-tdep.c: Fix indentation.
1404 * top.c: Fix indentation.
1405 * tracefile-tfile.c: Fix indentation.
1406 * tracepoint.c: Fix indentation.
1407 * tui/tui-disasm.c: Fix indentation.
1408 * tui/tui-io.c: Fix indentation.
1409 * tui/tui-regs.c: Fix indentation.
1410 * tui/tui-stack.c: Fix indentation.
1411 * tui/tui-win.c: Fix indentation.
1412 * tui/tui-winsource.c: Fix indentation.
1413 * tui/tui.c: Fix indentation.
1414 * typeprint.c: Fix indentation.
1415 * ui-out.h: Fix indentation.
1416 * unittests/copy_bitwise-selftests.c: Fix indentation.
1417 * unittests/memory-map-selftests.c: Fix indentation.
1418 * utils.c: Fix indentation.
1419 * v850-tdep.c: Fix indentation.
1420 * valarith.c: Fix indentation.
1421 * valops.c: Fix indentation.
1422 * valprint.c: Fix indentation.
1423 * valprint.h: Fix indentation.
1424 * value.c: Fix indentation.
1425 * value.h: Fix indentation.
1426 * varobj.c: Fix indentation.
1427 * vax-tdep.c: Fix indentation.
1428 * windows-nat.c: Fix indentation.
1429 * windows-tdep.c: Fix indentation.
1430 * xcoffread.c: Fix indentation.
1431 * xml-syscall.c: Fix indentation.
1432 * xml-tdesc.c: Fix indentation.
1433 * xstormy16-tdep.c: Fix indentation.
1434 * xtensa-config.c: Fix indentation.
1435 * xtensa-linux-nat.c: Fix indentation.
1436 * xtensa-linux-tdep.c: Fix indentation.
1437 * xtensa-tdep.c: Fix indentation.
1439 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1440 Craig Blackmore <craig.blackmore@embecosm.com>
1442 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
1443 as an unsigned value.
1445 2020-11-01 Tom Tromey <tom@tromey.com>
1447 * dbxread.c (dbx_end_psymtab): Update.
1448 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1449 (build_type_psymtabs_reader): Update.
1450 * xcoffread.c (xcoff_end_psymtab): Update.
1451 * ctfread.c (scan_partial_symbols): Update.
1452 * psymtab.c (sort_pst_symbols): Remove.
1453 (partial_symtab::end): Rename from end_psymtab_common. Inline
1455 * psympriv.h (struct partial_symtab) <end>: New method.
1456 (end_psymtab_common): Don't declare.
1458 2020-11-01 Tom Tromey <tom@tromey.com>
1460 * symmisc.c (count_psyms): New function.
1461 (print_objfile_statistics): Use it.
1462 * psymtab.c (append_psymbol_to_list): Remove.
1463 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
1464 * objfiles.h (struct objstats) <n_psyms>: Remove.
1466 2020-11-01 Tom Tromey <tom@tromey.com>
1468 * dbxread.c (dbx_end_psymtab): Update.
1469 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
1470 (build_type_psymtabs_reader): Update.
1471 * xcoffread.c (xcoff_end_psymtab): Update.
1472 * ctfread.c (scan_partial_symbols): Update.
1473 * psympriv.h (end_psymtab_common): Update.
1474 * psymtab.c (end_psymtab_common): Remove objfile parameter.
1475 (sort_pst_symbols): Likewise.
1477 2020-11-01 Tom Tromey <tom@tromey.com>
1479 * dbxread.c (dbx_symfile_read): Update.
1480 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1481 * xcoffread.c (xcoff_initial_scan): Update.
1482 * psympriv.h (init_psymbol_list): Don't declare.
1483 * psymtab.c (init_psymbol_list): Remove.
1485 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1487 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
1488 gnat_encoded_fixed_type_info. Update all callers.
1490 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1492 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
1495 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1497 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
1498 cast_from_fixed. Update all callers.
1499 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
1501 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
1503 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
1505 * ada-typeprint.c: Replace call to ada_scaling_factor by call
1506 to print_gnat_encoded_fixed_point_type.
1507 * ada-valprint.c: Likewise.
1509 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1511 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
1512 (debug_prefixed_printf): Add check of debug_displaced flag.
1513 * linux-nat.c (linux_nat_debug_printf): Add check of
1514 debug_linux_nat flag.
1516 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1518 * infrun.c (infrun_debug_printf_1): Remove.
1519 (displaced_debug_printf_1): Remove.
1520 (stop_all_threads): Use debug_prefixed_printf.
1521 * infrun.h (infrun_debug_printf_1): Remove.
1522 (infrun_debug_printf): Use debug_prefixed_printf.
1523 (displaced_debug_printf_1): Remove.
1524 (displaced_debug_printf): Use debug_prefixed_printf.
1525 * linux-nat.c (linux_nat_debug_printf_1): Remove.
1526 (linux_nat_debug_printf): Use debug_prefixed_printf.
1528 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1530 * configure: Re-generate.
1531 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
1534 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1536 * configure: Re-generate.
1538 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1540 * configure: Re-generate.
1542 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1544 * configure: Re-generate.
1546 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1548 * configure: Re-generate.
1550 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1552 * acinclude.m4: Modernize.
1553 * configure: Re-generate.
1555 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1557 * configure.ac: Modernize.
1558 * configure: Re-generate.
1560 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1562 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
1563 * configure: Re-generate.
1564 * configure.ac: Remove AM_PROG_CC_STDC.
1566 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1568 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
1569 AC_CANONICAL_SYSTEM.
1570 * configure: Re-generate.
1572 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
1574 * infrun.h (displaced_debug_printf): New macro. Replace
1575 displaced debug prints throughout to use it.
1576 (displaced_debug_printf_1): New declaration.
1577 (displaced_step_dump_bytes): Return string, remove ui_file
1578 parameter, update all callers.
1579 * infrun.c (displaced_debug_printf_1): New function.
1580 (displaced_step_dump_bytes): Return string, remove ui_file
1583 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
1585 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
1587 2020-10-30 Tom Tromey <tromey@adacore.com>
1589 * Makefile.in (stamp-init): Depend on config.status.
1591 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1593 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
1595 2020-10-30 Pedro Alves <pedro@palves.net>
1597 * thread.c (lookup_selected_frame): Move ...
1598 * frame.c (lookup_selected_frame): ... here.
1600 2020-10-30 Pedro Alves <pedro@palves.net>
1602 * blockframe.c (block_innermost_frame): Use get_selected_frame.
1604 (scoped_restore_selected_frame::scoped_restore_selected_frame):
1605 Use save_selected_frame. Save language as well.
1606 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
1607 Use restore_selected_frame, and restore language as well.
1608 (selected_frame_id, selected_frame_level): New.
1609 (selected_frame): Update comments.
1610 (save_selected_frame, restore_selected_frame): New.
1611 (get_selected_frame): Use lookup_selected_frame.
1612 (get_selected_frame_if_set): Delete.
1613 (select_frame): Record selected_frame_level and selected_frame_id.
1614 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
1616 (get_selected_frame): Make 'message' parameter optional.
1617 (get_selected_frame_if_set): Delete declaration.
1618 (select_frame): Update comments.
1619 (save_selected_frame, restore_selected_frame)
1620 (lookup_selected_frame): Declare.
1621 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
1622 * infrun.c (struct infcall_control_state) <selected_frame_level>:
1624 (save_infcall_control_state): Use save_selected_frame.
1625 (restore_selected_frame): Delete.
1626 (restore_infcall_control_state): Use restore_selected_frame.
1627 * stack.c (select_frame_command_core, frame_command_core): Use
1629 * thread.c (restore_selected_frame): Rename to ...
1630 (lookup_selected_frame): ... this and make extern. Select the
1631 current frame if the frame level is -1.
1632 (scoped_restore_current_thread::restore): Also restore the
1634 (scoped_restore_current_thread::~scoped_restore_current_thread):
1636 (scoped_restore_current_thread::scoped_restore_current_thread):
1637 Save the language as well. Use save_selected_frame.
1639 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1641 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
1643 * gdbarch.h: Re-generate.
1645 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1647 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
1649 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
1651 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1653 * arch-utils.c (default_displaced_step_hw_singlestep):
1655 * arch-utils.h (default_displaced_step_hw_singlestep):
1657 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
1659 * s390-tdep.c (s390_displaced_step_hw_singlestep):
1661 * gdbarch.c: Re-generate.
1662 * gdbarch.h: Re-generate.
1663 * infrun.c (resume_1): Adjust.
1665 2020-10-29 Tom Tromey <tom@tromey.com>
1667 * progspace.c (program_space::~program_space): Don't call
1670 2020-10-29 Tom Tromey <tom@tromey.com>
1672 * exec.c (exec_target::close): Don't change current program
1675 2020-10-29 Tom Tromey <tom@tromey.com>
1677 * symfile.c (add_symbol_file_command): Update.
1678 * exec.c (program_space::add_target_sections): Rename.
1679 * symfile-mem.c (symbol_file_add_from_memory): Update.
1680 * progspace.h (struct program_space) <add_target_sections>:
1681 Declare new overload.
1682 * exec.h (add_target_sections_of_objfile): Don't declare.
1684 2020-10-29 Tom Tromey <tom@tromey.com>
1686 * solib.c (solib_map_sections): Update.
1687 * exec.c (program_space::add_target_sections): Now a method.
1688 (exec_file_attach): Update.
1689 * exec.h (add_target_sections): Don't declare.
1690 * progspace.h (struct program_space) <add_target_sections>:
1693 2020-10-29 Tom Tromey <tom@tromey.com>
1695 * progspace.h (struct program_space) <remove_target_sections>:
1697 * exec.c (program_space::remove_target_sections): Now a method.
1698 * exec.h (remove_target_sections): Don't declare.
1700 2020-10-29 Tom Tromey <tom@tromey.com>
1702 * inferior.c (delete_inferior): Update.
1703 * progspace.c (program_space::empty): Rename from
1704 program_space_empty_p. Return bool.
1705 * progspace.h (struct program_space) <empty>: New method.
1706 (program_space_empty_p): Don't declare.
1708 2020-10-29 Tom Tromey <tom@tromey.com>
1710 * progspace.c (program_space::~program_space): Don't call
1711 clear_program_space_solib_cache.
1712 (program_space::clear_solib_cache): Rename from
1714 * solib.c (handle_solib_event): Update.
1715 * progspace.h (struct program_space) <clear_solib_cache>: New
1717 (clear_program_space_solib_cache): Don't declare.
1719 2020-10-29 Tom Tromey <tom@tromey.com>
1721 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1722 * target.c (info_target_command): Update.
1723 * symfile.c (syms_from_objfile_1, finish_new_objfile)
1724 (symbol_file_clear, reread_symbols): Update.
1725 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
1726 * stabsread.c (scan_file_globals): Update.
1727 * solib.c (update_solib_list): Update.
1728 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
1729 (svr4_fetch_objfile_link_map, enable_break)
1730 (svr4_relocate_main_executable)
1731 (svr4_iterate_over_objfiles_in_search_order): Update.
1732 * solib-frv.c (lm_base, enable_break)
1733 (frv_relocate_main_executable): Update.
1734 (main_got, frv_fdpic_find_canonical_descriptor): Update.
1735 (frv_fetch_objfile_link_map): Update.
1736 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
1737 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
1738 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
1739 * remote.c (remote_target::get_offsets): Update.
1740 (remote_target::start_remote)
1741 (extended_remote_target::post_attach): Update.
1742 * objfiles.c (entry_point_address_query): Update.
1743 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
1744 * minsyms.c (get_symbol_leading_char): Update.
1745 * frame.c (inside_main_func): Update.
1746 * progspace.h (symfile_objfile): Remove macro.
1748 2020-10-29 Tom Tromey <tom@tromey.com>
1750 * exec.c (exec_file_attach): Update.
1751 * progspace.c (program_space::exec_close): Update.
1752 * progspace.h (struct program_space) <ebfd>: Now a
1754 <set_exec_bfd>: Change argument type.
1757 2020-10-29 Tom Tromey <tom@tromey.com>
1759 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1760 * symfile.c (reread_symbols): Update.
1761 * symfile-mem.c (add_symbol_file_from_memory_command)
1762 (add_vsyscall_page): Update.
1763 * source-cache.c (source_cache::get_plain_source_lines): Update.
1764 * solib-svr4.c (find_program_interpreter, elf_locate_base)
1765 (svr4_current_sos_direct, svr4_exec_displacement)
1766 (svr4_relocate_main_executable): Update.
1767 (svr4_iterate_over_objfiles_in_search_order): Update.
1768 * solib-frv.c (enable_break2, enable_break): Update.
1769 * solib-dsbt.c (lm_base, enable_break): Update.
1770 * solib-darwin.c (find_program_interpreter)
1771 (darwin_solib_create_inferior_hook): Update.
1772 * sol-thread.c (rw_common, ps_pdmodel): Update.
1773 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
1774 * remote.c (compare_sections_command)
1775 (remote_target::trace_set_readonly_regions): Update.
1776 * remote-sim.c (get_sim_inferior_data)
1777 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
1778 (gdbsim_target_open, gdbsim_target::files_info): Update.
1779 * exec.h (exec_bfd): Remove macro.
1780 * progspace.c (initialize_progspace): Update.
1781 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
1783 * nto-procfs.c (nto_procfs_target::post_attach)
1784 (nto_procfs_target::create_inferior): Update.
1785 * maint.c (maintenance_info_sections): Update.
1786 * linux-thread-db.c (thread_db_target::get_thread_local_address):
1788 * infcmd.c (post_create_inferior): Update.
1789 * gcore.c (default_gcore_arch, default_gcore_target): Update.
1790 (objfile_find_memory_regions): Update.
1791 * exec.c (validate_exec_file, exec_file_attach)
1792 (exec_read_partial_read_only, print_section_info): Update.
1793 * corelow.c (core_target_open): Update.
1794 * corefile.c (reopen_exec_file, validate_files): Update.
1795 * arm-tdep.c (gdb_print_insn_arm): Update.
1796 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
1797 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
1800 2020-10-29 Tom Tromey <tom@tromey.com>
1802 * progspace.h (current_target_sections): Remove macro.
1803 * solib-svr4.c (scan_dyntag): Update.
1804 * solib-dsbt.c (scan_dyntag): Update.
1805 * exec.c (exec_target::close): Update.
1806 (add_target_sections, add_target_sections_of_objfile)
1807 (remove_target_sections, exec_target::get_section_table)
1808 (exec_target::files_info, set_section_command)
1809 (exec_set_section_address, exec_target::has_memory)
1810 (exec_target::has_memory): Update.
1812 2020-10-29 Tom Tromey <tom@tromey.com>
1814 * source-cache.c (source_cache::get_plain_source_lines): Use
1815 current_program_space.
1816 * corefile.c (reopen_exec_file): Use current_program_space.
1817 * exec.c (exec_file_attach): Use current_program_space.
1818 * exec.h (exec_bfd_mtime): Remove.
1820 2020-10-29 Tom Tromey <tom@tromey.com>
1822 * gcore.c (default_gcore_mach): Remove.
1823 (create_gcore_bfd): Update.
1825 2020-10-29 Tom Tromey <tom@tromey.com>
1827 * progspace.c (program_space::exec_close): New method, from
1828 exec_close in exec.c.
1829 * exec.c (exec_close): Move to progspace.c.
1830 (exec_target::close, exec_file_attach): Update.
1831 * progspace.h (struct program_space) <exec_close>: Declare
1834 2020-10-29 Tom Tromey <tom@tromey.com>
1836 * progspace.h (struct program_space) <exec_filename>: Rename from
1837 pspace_exec_filename. Now a unique_xmalloc_ptr.
1838 * inferior.c (print_selected_inferior): Update.
1839 (print_inferior): Update.
1840 * mi/mi-main.c (print_one_inferior): Update.
1841 * exec.h (exec_filename): Remove macro.
1842 * corefile.c (get_exec_file): Update.
1843 * exec.c (exec_close): Update.
1844 (exec_file_attach): Update.
1845 * progspace.c (clone_program_space): Update.
1846 (print_program_space): Update.
1848 2020-10-29 Tom Tromey <tom@tromey.com>
1850 * target-section.h (struct target_section): Add constructor.
1851 * exec.c (build_section_table, add_target_sections_of_objfile):
1853 * corelow.c (core_target::build_file_mappings): Update.
1855 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1858 * inferior.c (detach_inferior_command): Restore the current thread.
1859 (kill_inferior_command): Ditto.
1861 2020-10-28 Tom de Vries <tdevries@suse.de>
1864 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
1865 map, check it in the "best match" loop.
1867 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1869 * m32c-tdep.c: Remove unused includes.
1871 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1873 * xtensa-tdep.c: Remove includes.
1875 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1877 * breakpoint.c (struct condition_command_opts): New struct.
1878 (condition_command_option_defs): New static global.
1879 (make_condition_command_options_def_group): New function.
1880 (condition_completer): Update to consider the '-force' flag.
1881 (condition_command): Use gdb::option for the '-force' flag.
1883 2020-10-27 Tom de Vries <tdevries@suse.de>
1885 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
1886 symbols in section check.
1888 2020-10-27 Tom de Vries <tdevries@suse.de>
1890 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
1892 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1894 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
1895 * breakpoint.c: Update the help text of the 'condition' and 'break'
1897 (set_breakpoint_condition): Take a new bool parameter
1898 to control whether condition definition should be forced even when
1899 the condition expression is invalid in all of the current locations.
1900 (condition_command): Update the call to 'set_breakpoint_condition'.
1901 (find_condition_and_thread): Take the "-force-condition" flag into
1903 * linespec.c (linespec_keywords): Add "-force-condition" as an
1905 (FORCE_KEYWORD_INDEX): New #define.
1906 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
1908 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
1909 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
1910 * python/py-breakpoint.c (bppy_set_condition): Ditto.
1911 * NEWS: Mention the changes to the 'break' and 'condition' commands.
1913 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1915 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
1916 * breakpoint.c (set_breakpoint_location_condition): New function.
1917 (set_breakpoint_condition): Disable a breakpoint location if parsing
1918 the condition string gives an error.
1919 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
1920 (build_target_condition_list): Ditto.
1921 (build_target_command_list): Ditto.
1922 (build_bpstat_chain): Ditto.
1923 (print_one_breakpoint_location): Ditto.
1924 (print_one_breakpoint): Ditto.
1925 (breakpoint_1): Ditto.
1926 (bp_location::bp_location): Ditto.
1927 (locations_are_equal): Ditto.
1928 (update_breakpoint_locations): Ditto.
1929 (enable_disable_bp_num_loc): Ditto.
1930 (init_breakpoint_sal): Use set_breakpoint_location_condition.
1931 (find_condition_and_thread_for_sals): New static function.
1932 (create_breakpoint): Call find_condition_and_thread_for_sals.
1933 (location_to_sals): Call find_condition_and_thread_for_sals instead
1934 of find_condition_and_thread.
1936 2020-10-26 Tom de Vries <tdevries@suse.de>
1938 * dwarf2/read.c (process_full_comp_unit): Call
1939 dwarf2_find_base_address.
1941 2020-10-26 Tom Tromey <tromey@adacore.com>
1943 * gdbtypes.c (create_range_type): Revert previous patch. Add
1946 2020-10-26 Pedro Alves <pedro@palves.net>
1948 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
1949 (my_waitpid): Use gdb::handle_eintr.
1951 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
1953 * acinclude.m4: Update ptrace.m4 path.
1954 * ptrace.m4: Moved to gdbsupport.
1956 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1958 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
1959 instead of target_gdbarch.
1961 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1963 * jit.c (jit_reader_load_command): Pass current inferior.
1964 (jit_inferior_init): Change parameter type to inferior, use it.
1965 (jit_inferior_created): Remove.
1966 (jit_inferior_created_hook): Pass inferior parameter down.
1967 (_initialize_jit): Use jit_inferior_created_hook instead of
1968 jit_inferior_created.
1969 * jit.h (jit_inferior_created_hook): Add inferior parameter.
1970 * infrun.c (follow_exec): Pass inferior to
1971 jit_inferior_created_hook.
1973 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
1975 * linux-thread-db.c (check_pid_namespace_match): Add inferior
1976 parameter and use it.
1977 (thread_db_inferior_created): Pass inferior argument.
1979 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
1981 * aix-thread.c (aix_thread_inferior_created): Add inferior
1983 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
1984 * dummy-frame.c (cleanup_dummy_frames): Likewise.
1985 * jit.c (jit_inferior_created): Likewise.
1986 * linux-thread-db.c (thread_db_inferior_created): Likewise.
1987 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
1988 * observable.h (inferior_created): Likewise.
1989 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1990 * symfile-mem.c (add_vsyscall_page): Likewise.
1991 * infcmd.c (post_create_inferior): Pass inferior argument.
1993 2020-10-24 Joel Brobecker <brobecker@adacore.com>
1997 2020-10-23 Joel Brobecker <brobecker@adacore.com>
1999 * ada-typeprint.c (ada_print_type): Remove superfluous second call
2000 to ada_check_typedef.
2002 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2004 * f-exp.y (f_parse): Rename to...
2005 (f_language::parser): ...this.
2006 * f-lang.c (f_get_encoding): Rename to...
2007 (f_language::get_encoding): ...this.
2008 (f_op_print_tab): Rename to...
2009 (f_language::op_print_tab): ...this.
2010 (exp_descriptor_f): Rename to...
2011 (f_language::exp_descriptor_tab): ...this.
2012 (class f_language): Moved to f-lang.h.
2013 (f_language::language_arch_info): New function, moved out of class
2015 (f_language::search_name_hash): Likewise.
2016 (f_language::lookup_symbol_nonlocal): Likewise.
2017 (f_language::get_symbol_name_matcher_inner): Likewise.
2018 * f-lang.h: Add 'valprint.h' include.
2019 (class f_language): Moved here from f-lang.c.
2020 * f-typeprint.c (f_type_print_args): Delete commented out
2022 (f_print_typedef): Rename to...
2023 (f_language::print_typedef): ...this.
2024 (f_print_type): Rename to...
2025 (f_language::print_type): ...this.
2026 (f_type_print_varspec_prefix): Delete declaration and rename to...
2027 (f_language::f_type_print_varspec_prefix): ...this.
2028 (f_type_print_varspec_suffix): Delete declaration and rename to...
2029 (f_language::f_type_print_varspec_suffix): ...this.
2030 (f_type_print_base): Delete declaration and rename to...
2031 (f_language::f_type_print_base): ...this.
2032 * f-valprint.c (f_value_print_inner): Rename to...
2033 (f_language::value_print_inner): ...this.
2034 * parse.c: Delete 'f-lang.h' include.
2036 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2038 * language.h (language_defn::print_type): Add variable names in
2039 declaration, and update header comment.
2041 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2043 * ada-lang.c (ada_language::demangle): Rename to...
2044 (ada_language::demangle_symbol): ...this.
2045 * c-lang.c (cplus_language::demangle): Rename to...
2046 (cplus_language::demangle_symbol): ...this.
2047 * d-lang.c (d_language::demangle): Rename to...
2048 (d_language::demangle_symbol): ...this.
2049 * f-lang.c (f_language::demangle): Rename to...
2050 (f_language::demangle_symbol): ...this.
2051 * go-lang.c (go_language::demangle): Rename to...
2052 (go_language::demangle_symbol): ...this.
2053 * language.c (language_demangle): Update call to demangle_symbol.
2054 (auto_or_unknown_language::demangle): Rename to...
2055 (auto_or_unknown_language::demangle_symbol): ...this.
2056 * language.h (language_defn::demangle): Rename to...
2057 (language_defn::demangle_symbol): ...this.
2058 * objc-lang.c (objc_language::demangle): Rename to...
2059 (objc_language::demangle_symbol): ...this.
2060 * rust-lang.c (rust_language::demangle): Rename to...
2061 (rust_language::demangle_symbol): ...this.
2063 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2065 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
2066 (iterate_over_file_blocks): Replace use of macro with the macros
2069 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2071 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
2072 * valprint.c (maybe_print_array_index): Replace use of macro with
2073 the macros definition.
2075 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2077 * ada-lang.c (ada_language::print_array_index): Call value_print
2079 * language.c (language_defn::print_array_index): Likewise.
2080 * language.h (LA_VALUE_PRINT): Delete.
2081 * valprint.c (value_print): Call value_print on the
2082 current_language directly.
2084 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2086 * language.h (LA_PRINT_TYPEDEF): Delete.
2087 * typeprint.c (typedef_print): Call print_typedef directly on the
2088 current_language object.
2090 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2092 * m2-exp.y (m2_parse): Rename to...
2093 (m2_language::parser): ...this. Update function signature.
2094 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
2095 (m2_op_print): Rename to...
2096 (m2_language::op_print_tab): ...this, and make const.
2097 (exp_descriptor_modula2): Rename to...
2098 (m2_language::exp_descriptor_modula2): ...this.
2099 (class m2_language): Move to m2-lang.h.
2100 (m2_language::language_arch_info): New function, moved out of
2102 (m2_language::printchar): New function, body from m2_printchar.
2103 (m2_language::printstr): New function, moved out of class
2105 (m2_language::emitchar): Likewise.
2106 * m2-lang.h (m2_parse): Delete declaration.
2107 (m2_print_typedef): Delete declaration.
2108 (m2_value_print_inner): Delete declaration.
2109 (class m2_language): Class declaration moved from m2-lang.c,
2110 larger functions are left in m2-lang.c.
2111 * m2-typeprint.c (m2_print_typedef): Rename to...
2112 (m2_language::print_typedef): ...this, and update function
2114 * m2-valprint.c (m2_value_print_inner): Rename to...
2115 (m2_language::value_print_inner): ...this, replace use of
2116 LA_PRINT_STRING with a direct call to printstr member function,
2117 and update recursive call.
2119 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2121 * language.c (default_is_string_type_p): Delete, implementation
2122 moved into auto_or_unknown_language::is_string_type_p.
2123 (unk_op_print_tab): Moved into
2124 auto_or_unknown_language::opcode_print_table.
2125 (unknown_language_arch_info): Delete, implementation moved into
2126 auto_or_unknown_language::language_arch_info.
2127 (class auto_or_unknown_language): New class, member functions
2128 copied from unknown_language class, with some updates.
2129 (class unknown_language): Most member functions moved into
2130 auto_or_unknown_language class. Inherit from
2131 auto_or_unknown_language class.
2132 (class auto_language): Inherit from auto_or_unknown_language.
2133 Delete most member functions.
2135 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2137 * stabsread.c (read_member_functions): Remove gdb_assert.
2139 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2141 * gdbtypes.c (init_complex_type): Check target type name.
2143 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2145 * target-debug.h (target_debug_print_struct_target_ops_p):
2147 (target_debug_print_async_callback_ftype_p): Remove.
2148 (target_debug_print_struct_trace_state_variable_p): Remove.
2149 (target_debug_print_struct_traceframe_info_p): Remove.
2150 (target_debug_print_VEC__btrace_block_s__pp): Remove.
2151 (target_debug_print_enum_btrace_format): Remove.
2152 (target_debug_print_enum_info_proc_what): Remove.
2153 (target_debug_print_thread_info_pp): Remove.
2155 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
2157 * target.h (struct target_ops) <make_corefile_notes>:
2158 Change return type to unique pointer.
2159 * target.c (dummy_make_corefile_notes): Likewise.
2160 * exec.c (struct exec_target) <make_corefile_notes>:
2162 (exec_target::make_corefile_notes): Likewise.
2163 * procfs.c (class procfs_target) <make_corefile_notes>:
2165 (procfs_do_thread_registers): Adjust to unique pointer.
2166 (struct procfs_corefile_thread_data): Add constructor.
2167 <note_data>: Change type to unique pointer.
2168 (procfs_corefile_thread_callback): Adjust to unique pointer.
2169 (procfs_target::make_corefile_notes): Change return type to
2171 * target-delegates.c: Re-generate.
2172 * gcore.c (write_gcore_file_1): Adjust.
2173 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
2176 2020-10-22 Tom de Vries <tdevries@suse.de>
2178 * block.c (find_block_in_blockvector): Make sure the returned block
2181 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2184 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
2186 (load_cu): Pass existing CU.
2187 (process_imported_unit_die): Likewise.
2188 (follow_die_offset): Likewise.
2190 2020-10-22 Luis Machado <luis.machado@linaro.org>
2192 * corelow.c (core_target::xfer_partial): Also check for an empty
2193 m_core_unavailable_mappings vector.
2195 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2197 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
2198 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
2199 * f-exp.y (arglist): Allow for a series of subranges.
2200 (subrange): Add cases for subranges with strides.
2201 * f-lang.c (value_f90_subarray): Catch use of array strides and
2203 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
2205 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2207 * expprint.c (print_subexp_standard): Change enum range_type to
2208 range_flag and rename variables to match.
2209 (dump_subexp_body_standard): Likewise.
2210 * expression.h (enum range_type): Rename to...
2211 (enum range_flag): ...this.
2212 (range_types): Rename to...
2213 (range_flags): ...this.
2214 * f-lang.c (value_f90_subarray): Change enum range_type to
2215 range_flag and rename variables to match.
2216 * parse.c (operator_length_standard): Likewise.
2217 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
2218 range_type to range_flag.
2219 * rust-lang.c (rust_evaluate_funcall): Likewise.
2220 (rust_range): Likewise.
2221 (rust_compute_range): Likewise.
2222 (rust_subscript): Likewise.
2224 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2226 * expprint.c (print_subexp_standard): Update to reflect changes to
2228 (dump_subexp_body_standard): Likewise.
2229 * expression.h (enum range_type): Convert to a bit field enum, and
2230 make the enum unsigned.
2231 * f-exp.y (subrange): Update to reflect changes to enum
2233 * f-lang.c (value_f90_subarray): Likewise.
2234 * parse.c (operator_length_standard): Likewise.
2235 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
2236 * rust-lang.c (rust_range): Likewise.
2237 (rust_compute_range): Likewise.
2238 (rust_subscript): Likewise.
2240 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
2242 * infrun.c (displaced_step_in_progress_thread): Fix comment.
2243 (displaced_step_in_progress): Fix comment.
2245 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
2247 * gdbarch.sh (make_corefile_notes): Return unique pointer.
2248 * gdbarch.c: Re-generate.
2249 * gdbarch.h: Re-generate.
2250 * gcore.c (write_gcore_file_1): Adjust.
2251 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
2253 <note_data>: Change type to unique pointer.
2254 <abort_iteration>: Change type to bool.
2255 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
2256 (fbsd_collect_thread_registers): Return void, adjust.
2257 (struct fbsd_corefile_thread_data): Add construtor.
2258 <note_data>: Change type to unique pointer.
2259 (fbsd_corefile_thread): Adjust.
2260 (fbsd_make_corefile_notes): Return unique pointer, adjust.
2261 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
2262 to unique pointer, adjust.
2263 (struct linux_collect_regset_section_cb_data): Add constructor.
2264 <note_data>: Change type to unique pointer.
2265 <abort_iteration>: Change type to bool.
2266 (linux_collect_thread_registers): Return void, adjust.
2267 (struct linux_corefile_thread_data): Add constructor.
2268 <note_data>: Change type to unique pointer.
2269 (linux_corefile_thread): Adjust.
2270 (linux_make_corefile_notes): Return unique pointer, adjust.
2272 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2274 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
2275 * gdbarch.c: Re-generate.
2276 * gdbarch.h: Re-generate.
2277 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
2279 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2281 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
2282 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
2283 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
2284 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
2286 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2288 * gdbarch.sh: Make generated predicates return bool.
2289 * gdbarch.c: Re-generate.
2290 * gdbarch.h: Re-generate.
2292 2020-10-20 Tom Tromey <tom@tromey.com>
2294 * varobj-iter.h (struct varobj_item): Remove typedef.
2296 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2298 * infrun.c (currently_stepping): Change int to bool
2299 (maybe_software_singlestep): Likewise.
2300 (show_stop_on_solib_events): Likewise.
2301 (stepping_past_nonsteppable_watchpoint): Likewise.
2302 (displaced_step_in_progress_any_inferior): Likewise.
2303 (displaced_step_in_progress_thread): Likewise.
2304 (keep_going_stepped_thread): Likewise.
2305 (thread_still_needs_step_over): Likewise.
2306 (start_step_over): Likewise.
2307 (do_target_resume): Likewise.
2308 (resume_1): Likewise.
2309 (clear_proceed_status): Likewise.
2310 (thread_still_needs_step_over_bp): Likewise.
2311 (proceed): Likewise.
2312 (switch_back_to_stepped_thread): Likewise.
2313 (adjust_pc_after_break): Likewise.
2314 (stepped_in_from): Likewise.
2315 (handle_stop_requested): Likewise.
2316 (handle_syscall_event): Likewise.
2317 (handle_no_resumed): Likewise.
2318 (handle_inferior_event): Likewise.
2319 (finish_step_over): Likewise.
2320 (handle_signal_stop): Likewise.
2321 (process_event_stop_test): Likewise.
2323 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2325 * infrun.c (get_displaced_stepping_state): Fix comment.
2327 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
2329 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
2331 2020-10-19 Tom Tromey <tromey@adacore.com>
2334 * tui/tui-winsource.h (struct tui_source_window_base)
2335 <refresh_window>: Rename from refresh_pad.
2336 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2337 Rename from refresh_pad.
2338 (tui_source_window_base::show_source_content)
2339 (tui_source_window_base::do_scroll_horizontal): Update.
2341 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2343 * thread.c (_initialize_thread): Fine-tune the help text of
2346 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2348 * frame.c: Remove the unused 'uinteger_option_def' type alias.
2350 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
2352 * breakpoint.c (handle_jit_event): Add an argument, change how
2353 `jit_event_handler` is called.
2355 2020-10-17 Tom Tromey <tom@tromey.com>
2357 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
2358 (scan_xcoff_symtab): Update.
2359 * psymtab.h (class psymtab_storage) <global_psymbols,
2360 static_psymbols, current_global_psymbols,
2361 current_static_psymbols>: Remove.
2362 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
2363 (match_partial_symbol, lookup_partial_symbol): Update.
2364 (print_partial_symbols): Change parameters.
2365 (dump_psymtab, recursively_search_psymtabs)
2366 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
2367 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
2369 (end_psymtab_common): Simplify.
2370 (append_psymbol_to_list): Change parameters.
2371 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
2372 (init_psymbol_list): Simplify.
2373 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2374 * psympriv.h (struct partial_symtab) <empty>: New method.
2375 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
2377 <global_psymbols, static_psymbols>: New members.
2378 <add_psymbol>: New methods.
2379 (add_psymbol_to_list): Don't declare.
2380 (psymbol_placement): Move earlier.
2381 * mdebugread.c (parse_partial_symbols): Update.
2382 (handle_psymbol_enumerators): Change parameters.
2383 (mdebug_expand_psymtab): Update.
2384 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2385 (add_partial_symbol): Update.
2386 * dwarf2/index-write.c (write_psymbols): Change parameters.
2387 (write_one_signatured_type): Update.
2388 (recursively_count_psymbols): Update.
2389 (recursively_write_psymbols): Update.
2390 (class debug_names) <recursively_write_psymbols>: Update.
2391 <write_psymbols>: Change parameters.
2392 <write_one_signatured_type>: Update.
2393 * dbxread.c (read_dbx_symtab): Update.
2394 (dbx_end_psymtab): Use partial_symtab::empty.
2395 * ctfread.c (struct ctf_context) <pst>: New member.
2396 (create_partial_symtab): Set it.
2397 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
2398 (scan_partial_symbols): Use the psymtab's context. Update.
2400 2020-10-17 Tom Tromey <tom@tromey.com>
2402 * valprint.c (generic_value_print): Remove comment.
2403 * m2-valprint.c (m2_value_print_inner): Remove comment.
2404 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
2407 2020-10-17 Tom de Vries <tdevries@suse.de>
2410 * source.c (select_source_symtab): Handling sal.symtab == NULL for
2413 2020-10-14 Tom de Vries <tdevries@suse.de>
2416 * solib.c (solib_contains_address_p): Handle
2417 'solib->sections == nullptr'.
2419 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2422 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
2423 target can't do async.
2424 * target.c (target_wait): Assert that we don't pass
2425 TARGET_WNOHANG to a target that can't async.
2427 2020-10-13 Kamil Rytarowski <n54@gmx.com>
2429 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
2430 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
2431 * alpha-bsd-nat.c: Adjust include.
2432 * alpha-bsd-tdep.h: Adjust comment.
2433 * alpha-nbsd-tdep.c: Rename to ...
2434 * alpha-netbsd-tdep.c: ... this, adjust include.
2435 * amd64-nbsd-nat.c: Rename to ...
2436 * amd64-netbsd-nat.c: ... this, adjust include.
2437 * amd64-nbsd-tdep.c: Rename to ...
2438 * amd64-netbsd-tdep.c: ... this, adjust include.
2439 * amd64-tdep.h: Adjust include.
2440 * arm-nbsd-nat.c: Rename to ...
2441 * arm-netbsd-nat.c: ... this, adjust include.
2442 * arm-nbsd-tdep.c: Rename to ...
2443 * arm-netbsd-tdep.c: ... this, adjust include.
2444 * arm-nbsd-tdep.h: Rename to ...
2445 * arm-netbsd-tdep.h: ... this, adjust include.
2446 * configure.nat: Adjust file lists.
2447 * configure.tgt: Likewise.
2448 * hppa-nbsd-nat.c: Rename to ...
2449 * hppa-netbsd-nat.c: ... this, adjust include.
2450 * hppa-nbsd-tdep.c: Rename to ...
2451 * hppa-netbsd-tdep.c: ... this, adjust include.
2452 * i386-nbsd-nat.c: Rename to ...
2453 * i386-netbsd-nat.c: ... this, adjust include.
2454 * i386-nbsd-tdep.c: Rename to ...
2455 * i386-netbsd-tdep.c: ... this, adjust include.
2456 * m68k-bsd-nat.c: Adjust include.
2457 * mips-nbsd-nat.c: Rename to ...
2458 * mips-netbsd-nat.c: ... this, adjust include.
2459 * mips-nbsd-tdep.c: Rename to ...
2460 * mips-netbsd-tdep.c: ... this, adjust include.
2461 * mips-nbsd-tdep.h: Rename to ...
2462 * mips-netbsd-tdep.h: ... this.
2463 * nbsd-nat.c: Rename to ...
2464 * netbsd-nat.c: ... this, adjust include.
2465 * nbsd-nat.h: Rename to ...
2466 * netbsd-nat.h: ... this, adjust include.
2467 * nbsd-tdep.c: Rename to ...
2468 * netbsd-tdep.c: ... this, adjust include.
2469 * nbsd-tdep.h: Rename to ...
2470 * netbsd-tdep.h: ... this.
2471 * ppc-nbsd-nat.c: Rename to ...
2472 * ppc-netbsd-nat.c: ... this, adjust include.
2473 * ppc-nbsd-tdep.c: Rename to ...
2474 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
2475 * ppc-nbsd-tdep.h: Rename to ...
2476 * ppc-netbsd-tdep.h: ... this.
2477 * sh-nbsd-nat.c: Rename to ...
2478 * sh-netbsd-nat.c: ... this, adjust include.
2479 * sh-nbsd-tdep.c: Rename to ...
2480 * sh-netbsd-tdep.c: ... this, adjust include.
2481 * sparc-nbsd-nat.c: Rename to ...
2482 * sparc-netbsd-nat.c: ... this.
2483 * sparc-nbsd-tdep.c: Rename to ...
2484 * sparc-netbsd-tdep.c: ... this, adjust include.
2485 * sparc64-nbsd-nat.c: Rename to ...
2486 * sparc64-netbsd-nat.c: ... this.
2487 * sparc64-nbsd-tdep.c: Rename to ...
2488 * sparc64-netbsd-tdep.c: ... this, adjust include.
2489 * sparc64-tdep.h: Adjust comment.
2490 * vax-bsd-nat.c: Adjust include.
2491 * vax-nbsd-tdep.c: Rename to ...
2492 * vax-netbsd-tdep.c: ... this, adjust include.
2494 2020-10-12 Tom Tromey <tom@tromey.com>
2496 * target.h (struct target_ops) <get_section_table>: Update.
2497 (target_get_section_table): Update.
2498 * target.c (target_get_section_table, target_section_by_addr)
2499 (memory_xfer_partial_1): Update.
2500 * target-section.h (target_section_table): Now an alias.
2501 * target-delegates.c: Rebuild.
2502 * target-debug.h (target_debug_print_target_section_table_p):
2503 Rename from target_debug_print_struct_target_section_table_p.
2504 * symfile.c (build_section_addr_info_from_section_table): Update.
2505 * solib.c (solib_map_sections, solib_contains_address_p): Update.
2506 * solib-svr4.c (scan_dyntag): Update.
2507 * solib-dsbt.c (scan_dyntag): Update.
2508 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2510 * record-full.c (record_full_core_target::xfer_partial): Update.
2511 * progspace.h (struct program_space) <target_sections>: Update.
2512 * exec.h (print_section_info): Update.
2513 * exec.c (exec_target::close, build_section_table)
2514 (add_target_sections, add_target_sections_of_objfile)
2515 (remove_target_sections, exec_on_vfork)
2516 (section_table_available_memory)
2517 (section_table_xfer_memory_partial)
2518 (exec_target::get_section_table, exec_target::xfer_partial)
2519 (print_section_info, set_section_command)
2520 (exec_set_section_address, exec_target::has_memory): Update.
2521 * corelow.c (core_target::build_file_mappings)
2522 (core_target::xfer_partial, core_target::info_proc_mappings)
2523 (core_target::info_proc_mappings): Update.
2524 * bfd-target.c (class target_bfd): Update
2526 2020-10-12 Tom Tromey <tom@tromey.com>
2528 * progspace.c (program_space::~program_space): Don't call
2529 clear_section_table.
2530 * exec.h (clear_section_table): Don't declare.
2531 * exec.c (exec_target::close): Update.
2532 (clear_section_table): Remove.
2534 2020-10-12 Tom Tromey <tom@tromey.com>
2536 * exec.c (add_target_sections_of_objfile): Simplify.
2538 2020-10-12 Tom Tromey <tom@tromey.com>
2540 * solib.c (solib_map_sections): Update.
2541 * record-full.c (record_full_core_open_1): Update.
2542 * exec.h (build_section_table): Return a target_section_table.
2543 * exec.c (exec_file_attach): Update.
2544 (build_section_table): Return a target_section_table.
2545 * corelow.c (core_target::core_target): Update.
2546 * bfd-target.c (target_bfd::target_bfd): Update.
2548 2020-10-12 Tom Tromey <tom@tromey.com>
2550 * target.c (target_section_by_addr, memory_xfer_partial_1):
2552 * target-section.h (struct target_section_table): Use
2554 * symfile.h (build_section_addr_info_from_section_table): Take a
2555 target_section_table.
2556 * symfile.c (build_section_addr_info_from_section_table): Take a
2557 target_section_table.
2558 * solist.h (struct so_list) <sections>: Change type.
2559 <sections_end>: Remove.
2560 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
2561 (solib_contains_address_p): Update.
2562 * solib-svr4.c (scan_dyntag): Update.
2563 * solib-dsbt.c (scan_dyntag): Update.
2564 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2566 * record-full.c (record_full_core_start, record_full_core_end):
2568 (record_full_core_sections): New global.
2569 (record_full_core_open_1, record_full_core_target::xfer_partial):
2571 * exec.h (build_section_table, section_table_xfer_memory_partial)
2572 (add_target_sections): Take a target_section_table.
2573 * exec.c (exec_file_attach, clear_section_table): Update.
2574 (resize_section_table): Remove.
2575 (build_section_table, add_target_sections): Take a
2576 target_section_table.
2577 (add_target_sections_of_objfile, remove_target_sections)
2578 (exec_on_vfork): Update.
2579 (section_table_available_memory): Take a target_section_table.
2580 (section_table_read_available_memory): Update.
2581 (section_table_xfer_memory_partial): Take a target_section_table.
2582 (print_section_info, set_section_command)
2583 (exec_set_section_address, exec_target::has_memory): Update.
2584 * corelow.c (class core_target) <m_core_section_table,
2585 m_core_file_mappings>: Remove braces.
2586 <~core_target>: Remove.
2587 (core_target::core_target): Update.
2588 (core_target::~core_target): Remove.
2589 (core_target::build_file_mappings)
2590 (core_target::xfer_memory_via_mappings)
2591 (core_target::xfer_partial, core_target::info_proc_mappings):
2593 * bfd-target.c (target_bfd::xfer_partial): Update.
2594 (target_bfd::target_bfd): Update.
2595 (target_bfd::~target_bfd): Remove.
2597 2020-10-12 Tom Tromey <tom@tromey.com>
2599 * target.h (struct target_section, struct target_section_table):
2600 Move to target-section.h.
2601 * target-section.h: New file.
2603 2020-10-12 Pedro Alves <pedro@palves.net>
2606 * valops.c (struct struct_field_searcher): New.
2607 (update_search_result): Rename to ...
2608 (struct_field_searcher::update_result): ... this. Simplify
2609 prototype. Record all found fields.
2610 (do_search_struct_field): Rename to ...
2611 (struct_field_searcher::search): ... this. Simplify prototype.
2612 Maintain stack of visited baseclass path. Call update_result for
2613 fields too. Keep searching fields in baseclasses instead of
2614 stopping at the first found field.
2615 (search_struct_field): Use struct_field_searcher. When looking
2616 for fields, report ambiguous access attempts.
2618 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
2620 * frame.c (inside_main_func): Check full symbols as well as
2623 2020-10-09 Joel Brobecker <brobecker@adacore.com>
2625 * ada-lang.c (advance_wild_match): Rewrite the function's
2626 description. Change the type of target0, t0 and t1 to char.
2628 2020-10-09 Tom Tromey <tromey@adacore.com>
2630 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
2632 2020-10-09 Tom Tromey <tromey@adacore.com>
2634 * ada-lang.h (ada_encode): Return std::string.
2635 * ada-lang.c (ada_encode_1): Return std::string.
2636 (ada_encode): Likewise.
2637 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
2639 * ada-exp.y (block_lookup, write_var_or_type): Update.
2641 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
2644 * printcmd.c (print_formatted): Handle void results as
2647 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2649 * arch/aarch32.c (aarch32_create_target_description): Release the
2650 target_desc_up as late as possible.
2651 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2652 * arch/amd64.c (amd64_create_target_description): Likewise.
2653 * arch/arc.c (arc_create_target_description): Return a
2654 target_desc_up, don't release it.
2655 * arch/arc.h (arc_create_target_description): Update declaration.
2656 (arc_lookup_target_description): Move target_desc_up into the
2657 cache, and return a borrowed pointer.
2658 * arch/arm.c (arm_create_target_description): Release the
2659 target_desc_up as late as possible.
2660 * arch/i386.c (i386_create_target_description): Likewise.
2661 * arch/riscv.h (riscv_create_target_description): Update
2662 declaration to match definition.
2663 * arch/tic6x.c (tic6x_create_target_description): Release the
2664 target_desc_up as late as possible.
2666 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2668 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
2669 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
2671 2020-10-09 Jan Vrany <jan.vrany@labware.com>
2673 * source.c (directory_command): Notify observers that "directories"
2674 parameter has changed.
2676 2020-10-08 Tom Tromey <tom@tromey.com>
2678 * cli/cli-cmds.c (print_disassembly): Style function name and
2679 addresses. Add _() wrappers.
2681 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
2683 * NEWS: Mention ARC support in GDBserver.
2685 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
2687 * arch/aarch32.c (aarch32_create_target_description): Release
2688 unique_ptr returned from allocate_target_description.
2689 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2690 * arch/amd64.c (amd64_create_target_description): Likewise.
2691 * arch/arc.c (arc_create_target_description): Likewise.
2692 * arch/arm.c (arm_create_target_description): Likewise.
2693 * arch/i386.c (i386_create_target_description): Likewise.
2694 * arch/riscv.c (riscv_create_target_description): Update return
2695 type. Handle allocate_target_description returning a unique_ptr.
2696 (riscv_lookup_target_description): Update to handle unique_ptr.
2697 * arch/tic6x.c (tic6x_create_target_description): Release
2698 unique_ptr returned from allocate_target_description.
2699 * features/microblaze-with-stack-protect.c: Regenerate.
2700 * features/microblaze.c: Regenerate.
2701 * features/mips-dsp-linux.c: Regenerate.
2702 * features/mips-linux.c: Regenerate.
2703 * features/mips64-dsp-linux.c: Regenerate.
2704 * features/mips64-linux.c: Regenerate.
2705 * features/nds32.c: Regenerate.
2706 * features/nios2.c: Regenerate.
2707 * features/or1k.c: Regenerate.
2708 * features/rs6000/powerpc-32.c: Regenerate.
2709 * features/rs6000/powerpc-32l.c: Regenerate.
2710 * features/rs6000/powerpc-403.c: Regenerate.
2711 * features/rs6000/powerpc-403gc.c: Regenerate.
2712 * features/rs6000/powerpc-405.c: Regenerate.
2713 * features/rs6000/powerpc-505.c: Regenerate.
2714 * features/rs6000/powerpc-601.c: Regenerate.
2715 * features/rs6000/powerpc-602.c: Regenerate.
2716 * features/rs6000/powerpc-603.c: Regenerate.
2717 * features/rs6000/powerpc-604.c: Regenerate.
2718 * features/rs6000/powerpc-64.c: Regenerate.
2719 * features/rs6000/powerpc-64l.c: Regenerate.
2720 * features/rs6000/powerpc-7400.c: Regenerate.
2721 * features/rs6000/powerpc-750.c: Regenerate.
2722 * features/rs6000/powerpc-860.c: Regenerate.
2723 * features/rs6000/powerpc-altivec32.c: Regenerate.
2724 * features/rs6000/powerpc-altivec32l.c: Regenerate.
2725 * features/rs6000/powerpc-altivec64.c: Regenerate.
2726 * features/rs6000/powerpc-altivec64l.c: Regenerate.
2727 * features/rs6000/powerpc-e500.c: Regenerate.
2728 * features/rs6000/powerpc-e500l.c: Regenerate.
2729 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
2730 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
2731 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
2732 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
2733 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
2734 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
2735 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
2736 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
2737 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
2738 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
2739 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
2740 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
2741 * features/rs6000/powerpc-vsx32.c: Regenerate.
2742 * features/rs6000/powerpc-vsx32l.c: Regenerate.
2743 * features/rs6000/powerpc-vsx64.c: Regenerate.
2744 * features/rs6000/powerpc-vsx64l.c: Regenerate.
2745 * features/rs6000/rs6000.c: Regenerate.
2746 * features/rx.c: Regenerate.
2747 * features/s390-gs-linux64.c: Regenerate.
2748 * features/s390-linux32.c: Regenerate.
2749 * features/s390-linux32v1.c: Regenerate.
2750 * features/s390-linux32v2.c: Regenerate.
2751 * features/s390-linux64.c: Regenerate.
2752 * features/s390-linux64v1.c: Regenerate.
2753 * features/s390-linux64v2.c: Regenerate.
2754 * features/s390-te-linux64.c: Regenerate.
2755 * features/s390-tevx-linux64.c: Regenerate.
2756 * features/s390-vx-linux64.c: Regenerate.
2757 * features/s390x-gs-linux64.c: Regenerate.
2758 * features/s390x-linux64.c: Regenerate.
2759 * features/s390x-linux64v1.c: Regenerate.
2760 * features/s390x-linux64v2.c: Regenerate.
2761 * features/s390x-te-linux64.c: Regenerate.
2762 * features/s390x-tevx-linux64.c: Regenerate.
2763 * features/s390x-vx-linux64.c: Regenerate.
2764 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
2765 from allocate_target_description.
2766 * target-descriptions.c (allocate_target_description): Update
2768 (print_c_tdesc::visit_pre): Release unique_ptr returned from
2769 allocate_target_description.
2771 2020-10-07 Tom Tromey <tromey@adacore.com>
2773 * unittests/search-memory-selftests.c: New file.
2774 * Makefile.in (SELFTESTS_SRCS): Add
2775 unittests/search-memory-selftests.c.
2777 2020-10-07 Tom Tromey <tromey@adacore.com>
2780 * findcmd.c (_initialize_mem_search): Mention that the range is
2783 2020-10-07 Tom Tromey <tromey@adacore.com>
2785 * target.h (simple_search_memory): Don't declare.
2786 * target.c (simple_search_memory): Move to gdbsupport.
2787 (default_search_memory): Update.
2788 * remote.c (remote_target::search_memory): Update.
2790 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
2792 * Makefile.in (COMPILE): Add CXXFLAGS.
2793 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
2794 (check-headers): Add CXXFLAGS.
2796 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
2798 * arc-linux-tdep.h: New file.
2799 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
2800 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
2801 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
2802 arc_linux_gregset, arc_linux_v2_regset,
2803 arc_linux_iterate_over_regset_sections,
2804 arc_linux_core_read_description): Implement.
2805 (arc_linux_init_osabi): Set iterate_over_regset_sections.
2806 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
2807 (arc_gdbarch_features_create): Add.
2808 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
2810 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
2812 * arch/arc.h: Rename "arc_gdbarch_features" to
2813 "arc_arch_features".
2814 * arc-tdep.h: Likewise.
2815 * arc-tdep.c: Likewise.
2817 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2819 * infcmd.c (attach_command): Remove the redundant call to
2820 `clear_proceed_status`.
2822 2020-10-07 Kamil Rytarowski <n54@gmx.com>
2824 * nat/netbsd-nat.c (write_memory, read_memory): Update.
2826 2020-10-07 Kamil Rytarowski <n54@gmx.com>
2828 * nat/netbsd-nat.c (write_memory, read_memory): Add.
2829 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
2830 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
2832 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
2834 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
2835 (_initialize_break_catch_sig): Don't allocate array.
2837 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
2839 * symtab.c (find_pc_line): Return unmapped addresses when the
2840 requested address is also unmapped.
2842 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
2844 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
2847 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
2849 * amd64-windows-tdep.c (amd64_windows_return_value): Use
2850 type::is_vector instead of TYPE_VECTOR.
2852 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
2854 * auto-load.c (auto_load_objfile_script_1): Don't use
2855 debugfile_holder as temporary variable when stripping drive
2858 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
2860 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
2861 Add TYPE_CODE_COMPLEX.
2862 (amd64_windows_return_value): Fix types returned via XMM0.
2864 2020-10-05 Alan Hayward <alan.hayward@arm.com>
2866 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
2867 AArch64/ARM maintainers.
2869 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
2871 * NEWS: Mention set/show debug event-loop.
2873 2020-10-02 Tom Tromey <tromey@adacore.com>
2875 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
2878 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
2880 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
2881 * procfs.c (procfs_inferior_created): Remove.
2882 (_initialize_procfs): Don't register procfs_inferior_created.
2884 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2886 * async-event.c (invoke_async_signal_handlers): Add debug
2888 (check_async_event_handlers): Likewise.
2889 * event-top.c (show_debug_event_loop): New function.
2890 (_initialize_event_top): Register "set debug event-loop"
2893 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2895 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
2897 * infrun.c: Include gdbsupport/common-debug.h.
2898 * linux-nat.c: Likewise.
2900 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2902 * async-event.h (create_async_signal_handler): Add name
2904 (create_async_event_handler): Likewise.
2905 * async-event.c (struct async_signal_handler) <name>: New field.
2906 (struct async_event_handler) <name>: New field.
2907 (create_async_signal_handler): Assign name.
2908 (create_async_event_handler): Assign name.
2909 * event-top.c (async_init_signals): Pass name when creating
2911 * infrun.c (_initialize_infrun): Likewise.
2912 * record-btrace.c (record_btrace_push_target): Likewise.
2913 * record-full.c (record_full_open): Likewise.
2914 * remote-notif.c (remote_notif_state_allocate): Likewise.
2915 * remote.c (remote_target::open_1): Likewise.
2916 * tui/tui-win.c (tui_initialize_win): Likewise.
2918 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2920 * async-event.c (initialize_async_signal_handlers): Pass name to
2922 * event-top.c (ui_register_input_event_handler): Likewise.
2923 * linux-nat.c (linux_nat_target::async): Likewise.
2924 * run-on-main-thread.c (_initialize_run_on_main_thread):
2926 * ser-base.c (reschedule): Likewise.
2927 (ser_base_async): Likewise.
2928 * tui/tui-io.c: Likewise.
2929 * top.h (struct ui) <num>: New field.
2930 * top.c (highest_ui_num): New variable.
2931 (ui::ui): Initialize num.
2933 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2935 * observable.h <inferior_created>: Remove parameters. Update all
2937 * inferior.h (post_create_inferior): Remove target parameter.
2940 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
2942 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
2943 and DW_MACRO_undef_strx.
2944 (dwarf_decode_macros): Likewise
2945 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
2946 which is the value of DW_AT_str_offsets_base.
2947 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
2950 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2952 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
2954 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2956 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
2957 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
2959 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2961 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
2963 2020-09-30 Tom de Vries <tdevries@suse.de>
2966 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
2968 2020-09-30 Tom Tromey <tromey@adacore.com>
2970 * dwarf2/read.c (handle_variant): Use constant_value.
2972 2020-09-29 Tom Tromey <tom@tromey.com>
2974 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
2975 (read_file_scope, dwarf2_get_pc_bounds)
2976 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
2977 (read_structure_type, handle_struct_member_die)
2978 (read_enumeration_type, read_array_type, read_set_type)
2979 (read_tag_pointer_type, read_tag_reference_type)
2980 (read_subroutine_type, read_base_type, read_subrange_type)
2981 (read_full_die_1, partial_die_info::read)
2982 (partial_die_info::read, by, new_symbol)
2983 (dwarf2_const_value_data, dwarf2_const_value_attr)
2984 (dump_die_shallow, dwarf2_fetch_constant_bytes)
2985 (prepare_one_comp_unit): Update.
2986 * dwarf2/attribute.h (DW_UNSND): Remove.
2988 2020-09-29 Tom Tromey <tom@tromey.com>
2990 * dwarf2/read.c (read_func_scope, prototyped_function_p)
2991 (read_subroutine_type, partial_die_info::read)
2992 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
2993 (dwarf2_add_member_fn): Update.
2994 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
2995 * dwarf2/attribute.c (attribute::as_boolean): New method.
2997 2020-09-29 Tom Tromey <tom@tromey.com>
2999 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
3000 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
3002 * dwarf2/attribute.c (attribute::as_virtuality): New method.
3004 2020-09-29 Tom Tromey <tom@tromey.com>
3006 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
3007 the attribute's form.
3009 2020-09-29 Tom Tromey <tom@tromey.com>
3011 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
3012 (dwarf2_add_member_fn): Update.
3013 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
3014 * dwarf2/attribute.c (attribute::defaulted): New method, from
3015 is_valid_DW_AT_defaulted.
3017 2020-09-29 Tom Tromey <tom@tromey.com>
3019 * dwarf2/read.c (dw2_get_file_names_reader)
3020 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
3021 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
3022 (dwarf2_symbol_mark_computed): Use as_unsigned.
3023 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
3025 <form_is_section_offset>: Update comment.
3027 2020-09-29 Tom Tromey <tom@tromey.com>
3029 * dwarf2/read.c (dwarf2_access_attribute): Rename from
3030 dwarf2_default_access_attribute. Look up attribute.
3031 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
3034 2020-09-29 Tom Tromey <tom@tromey.com>
3036 * dwarf2/read.c (skip_one_die): Update.
3037 (read_full_die_1): Change how reprocessing is done.
3038 (partial_die_info::read): Update.
3039 (read_attribute_value): Remove need_reprocess parameter.
3040 (read_attribute): Likewise.
3041 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
3044 2020-09-29 Tom Tromey <tom@tromey.com>
3046 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
3047 (dwarf2_const_value_attr, dump_die_shallow)
3048 (dwarf2_fetch_constant_bytes): Update.
3049 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
3051 <set_address>: New method.
3053 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
3054 (attribute::as_string, attribute::as_address): Add assert.
3056 2020-09-29 Tom Tromey <tom@tromey.com>
3058 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
3059 (read_attribute_reprocess, read_attribute_value): Update.
3060 (read_attribute): Clear requires_reprocessing.
3061 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
3062 form_requires_reprocessing>: New methods.
3063 <string_init>: Clear requires_reprocessing.
3064 <set_unsigned_reprocess>: New method.
3065 <name>: Shrink by one bit.
3066 <requires_reprocessing>: New member.
3067 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
3070 2020-09-29 Tom Tromey <tom@tromey.com>
3072 * dwarf2/read.c (read_attribute_value): Update.
3073 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
3074 set_unsigned>: New methods.
3075 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
3077 2020-09-29 Tom Tromey <tom@tromey.com>
3079 * dwarf2/read.c (get_alignment, read_array_order)
3080 (read_attribute_value, dwarf2_const_value_attr)
3081 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
3082 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
3086 2020-09-29 Tom Tromey <tom@tromey.com>
3088 * dwarf2/read.c (read_attribute_value, lookup_die_type)
3089 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
3091 * dwarf2/attribute.h (struct attribute) <as_signature,
3092 set_signature>: New methods.
3093 (DW_SIGNATURE): Remove.
3095 2020-09-29 Tom Tromey <tom@tromey.com>
3097 * dwarf2/read.c (read_call_site_scope)
3098 (handle_data_member_location, dwarf2_add_member_fn)
3099 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3100 (partial_die_info::read, read_attribute_value)
3101 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
3102 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
3103 (dwarf2_symbol_mark_computed): Update.
3104 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
3107 * dwarf2/attribute.c (attribute::form_is_block): Add
3110 2020-09-29 Tom Tromey <tom@tromey.com>
3112 * dwarf2/read.c (read_cutu_die_from_dwo)
3113 (read_attribute_reprocess, read_attribute_value, read_attribute)
3114 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
3115 (dwarf2_fetch_constant_bytes): Update.
3116 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
3117 <set_string_noncanonical, set_string_canonical>: New methods.
3118 <string_is_canonical>: Update comment.
3119 <canonical_string_p>: Add assert.
3120 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
3121 * dwarf2/attribute.c (attribute::form_is_string): New method.
3122 (attribute::string): Use it.
3124 2020-09-29 Tom Tromey <tom@tromey.com>
3126 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
3127 (dump_die_shallow): Use canonical_string_p.
3128 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
3131 2020-09-29 Tom Tromey <tom@tromey.com>
3133 * dwarf2/read.c (partial_die_info::read)
3134 (dwarf2_const_value_attr, anonymous_struct_prefix, )
3135 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
3136 attribute::as_string.
3138 2020-09-29 Tom Tromey <tom@tromey.com>
3140 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
3142 (attribute::string): Don't use DW_STRING.
3143 (attribute::get_ref_die_offset): Don't use DW_UNSND.
3144 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
3146 2020-09-29 Tom Tromey <tom@tromey.com>
3148 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
3149 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
3150 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
3151 * dwarf2/attribute.h (struct attribute): Rename methods.
3152 * dwarf2/attribute.c (attribute::as_address): Rename from
3154 (attribute::as_string): Rename from value_as_string.
3156 2020-09-29 Tom Tromey <tom@tromey.com>
3158 * dwarf2/read.c (partial_die_info::read) <case
3159 DW_AT_linkage_name>: Use value_as_string.
3160 (dwarf2_string_attr): Use value_as_string.
3161 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
3163 * dwarf2/attribute.c (attribute::value_as_string): New method.
3165 2020-09-29 Pedro Alves <pedro@palves.net>
3167 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
3168 defined before using '#pragma GCC diagnostic' instead of checking
3171 2020-09-28 Tom Tromey <tom@tromey.com>
3173 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
3174 (handle_signal_stop): Update.
3175 * procfs.c (procfs_target::insert_watchpoint): Update.
3176 * target.h (target_have_steppable_watchpoint): Now a function.
3178 2020-09-28 Tom Tromey <tom@tromey.com>
3180 * infrun.c (set_schedlock_func): Update.
3181 * target.h (target_can_lock_scheduler): Now a function.
3183 2020-09-28 Tom Tromey <tom@tromey.com>
3185 * inferior.h (class inferior) <has_execution>: Update.
3186 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
3187 * valops.c (find_function_in_inferior)
3188 (value_allocate_space_in_inferior): Update.
3189 * top.c (kill_or_detach): Update.
3190 * target.c (target_preopen, set_target_permissions): Update.
3191 (target_has_execution_current): Remove.
3192 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
3194 * solib.c (update_solib_list, reload_shared_libraries): Update.
3195 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
3196 * solib-dsbt.c (enable_break): Update.
3197 * score-tdep.c (score7_fetch_inst): Update.
3198 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
3200 * remote.c (remote_target::start_remote)
3201 (remote_target::remote_check_symbols, remote_target::open_1)
3202 (remote_target::remote_detach_1, remote_target::verify_memory)
3203 (remote_target::xfer_partial, remote_target::read_description)
3204 (remote_target::get_min_fast_tracepoint_insn_len): Update.
3205 * record-full.c (record_full_open_1): Update.
3206 * record-btrace.c (record_btrace_target_open): Update.
3207 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3208 (value_nsstring): Update.
3209 * linux-thread-db.c (add_thread_db_info)
3210 (thread_db_find_new_threads_silently, check_thread_db_callback)
3211 (try_thread_db_load_1, record_thread): Update.
3212 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
3214 * linux-fork.c (checkpoint_command): Update.
3215 * infrun.c (set_non_stop, set_observer_mode)
3216 (check_multi_target_resumption, for_each_just_stopped_thread)
3217 (maybe_remove_breakpoints, normal_stop)
3218 (class infcall_suspend_state): Update.
3219 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
3220 (info_program_command, attach_command): Update.
3221 * infcall.c (call_function_by_hand_dummy): Update.
3222 * inf-loop.c (inferior_event_handler): Update.
3223 * gcore.c (gcore_command, derive_heap_segment): Update.
3224 * exec.c (exec_file_command): Update.
3225 * eval.c (evaluate_subexp): Update.
3226 * compile/compile.c (compile_to_object): Update.
3227 * cli/cli-dump.c (restore_command): Update.
3228 * breakpoint.c (update_watchpoint)
3229 (update_inserted_breakpoint_locations)
3230 (insert_breakpoint_locations, get_bpstat_thread): Update.
3231 * target.h (target_has_execution): Remove macro.
3232 (target_has_execution_current): Don't declare.
3233 (target_has_execution): Rename from target_has_execution_1. Add
3236 2020-09-28 Tom Tromey <tom@tromey.com>
3238 * mi/mi-main.c (exec_reverse_continue)
3239 (mi_cmd_list_target_features): Update.
3240 * infrun.c (set_exec_direction_func): Update.
3241 * target.c (default_execution_direction): Update.
3242 * reverse.c (exec_reverse_once): Update.
3243 * target.h (target_can_execute_reverse): Now a function.
3245 2020-09-28 Tom Tromey <tom@tromey.com>
3247 * tui/tui-regs.c (tui_get_register)
3248 (tui_data_window::show_registers): Update.
3249 * thread.c (scoped_restore_current_thread::restore)
3250 (scoped_restore_current_thread::scoped_restore_current_thread):
3252 * regcache-dump.c (regcache_print): Update.
3253 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3255 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
3256 * mep-tdep.c (current_me_module, current_options): Update.
3257 * linux-thread-db.c (thread_db_load): Update.
3258 * infcmd.c (registers_info, info_vector_command)
3259 (info_float_command): Update.
3260 * ia64-tdep.c (ia64_frame_prev_register)
3261 (ia64_sigtramp_frame_prev_register): Update.
3262 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
3263 * gcore.c (derive_stack_segment): Update.
3264 * frame.c (get_current_frame, has_stack_frames): Update.
3265 * findvar.c (language_defn::read_var_value): Update.
3266 * arm-tdep.c (arm_pc_is_thumb): Update.
3267 * target.c (target_has_registers): Rename from
3268 target_has_registers_1.
3269 * target.h (target_has_registers): Remove macro.
3270 (target_has_registers): Rename from target_has_registers_1.
3272 2020-09-28 Tom Tromey <tom@tromey.com>
3274 * windows-tdep.c (tlb_make_value): Update.
3275 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3276 * thread.c (scoped_restore_current_thread::restore)
3277 (scoped_restore_current_thread::scoped_restore_current_thread)
3278 (thread_command): Update.
3279 * stack.c (backtrace_command_1, frame_apply_level_command)
3280 (frame_apply_all_command, frame_apply_command): Update.
3281 * infrun.c (siginfo_make_value, restore_infcall_control_state):
3283 * gcore.c (derive_stack_segment): Update.
3284 * frame.c (get_current_frame, has_stack_frames): Update.
3285 * auxv.c (info_auxv_command): Update.
3286 * ada-tasks.c (ada_build_task_list): Update.
3287 * target.c (target_has_stack): Rename from target_has_stack_1.
3288 * target.h (target_has_stack): Remove macro.
3289 (target_has_stack): Rename from target_has_stack_1.
3291 2020-09-28 Tom Tromey <tom@tromey.com>
3293 * target.c (target_has_memory): Rename from target_has_memory_1.
3294 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3295 * thread.c (scoped_restore_current_thread::restore)
3296 (scoped_restore_current_thread::scoped_restore_current_thread):
3298 * frame.c (get_current_frame, has_stack_frames): Update.
3299 * target.h (target_has_memory): Remove macro.
3300 (target_has_memory): Rename from target_has_memory_1.
3302 2020-09-28 Tom Tromey <tom@tromey.com>
3304 * target.c (target_has_all_memory_1): Remove.
3305 * target.h (target_has_all_memory): Remove define.
3306 (target_has_all_memory_1): Don't declare.
3308 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3310 * ser-base.c: Adjust comments formatting.
3312 2020-09-27 Tom Tromey <tom@tromey.com>
3315 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
3317 2020-09-27 Tom Tromey <tom@tromey.com>
3320 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
3322 2020-09-27 Tom Tromey <tom@tromey.com>
3324 * unittests/tui-selftests.c: Update.
3325 * tui/tui-winsource.h (struct tui_source_window_base)
3326 <extra_margin, show_line_number, refresh_pad>: New methods.
3327 <m_max_length, m_pad>: New members.
3328 (tui_copy_source_line): Update.
3329 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
3330 first_col, line_width, ndigits parameters. Add length.
3331 (tui_source_window_base::show_source_line): Write to pad. Line
3333 (tui_source_window_base::refresh_pad): New method.
3334 (tui_source_window_base::show_source_content): Write to pad. Call
3336 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
3338 (tui_source_window_base::update_exec_info): Call
3340 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
3342 <m_digits>: New member.
3343 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
3345 (tui_source_window::show_line_number): New method.
3346 * tui/tui-io.h (tui_puts): Fix comment.
3347 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
3350 2020-09-27 Tom Tromey <tom@tromey.com>
3352 * tui/tui-winsource.c
3353 (tui_source_window_base::set_is_exec_point_at): Don't call
3356 2020-09-27 Tom Tromey <tom@tromey.com>
3358 * python/py-tui.c (class tui_py_window) <refresh_window>: New
3361 <cursor_x, cursor_y>: Remove.
3362 <m_inner_window>: New member.
3363 (tui_py_window::rerender): Create inner window.
3364 (tui_py_window::output): Write to inner window.
3366 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
3369 * cli/cli-script.c (execute_control_commands): don't set
3370 instream to nullptr here as this breaks the from_tty argument
3371 to gdb.execute in Python.
3372 (execute_user_command): set instream to nullptr here instead.
3374 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
3376 * infrun.h (infrun_debug_printf): Fix formatting.
3377 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
3379 2020-09-25 Saagar Jha <saagar@saagarjha.com>
3381 * compile/compile-object-load.h (struct munmap_list): Add
3382 explicitly-defined move constructor.
3384 2020-09-24 Tom Tromey <tromey@adacore.com>
3387 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
3389 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
3390 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
3391 (tui_prev_win): Rewrite.
3393 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
3395 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
3396 in WOW64 processes as SIGINT.
3397 * nat/windows-nat.h: Make wow64_process a shared variable.
3398 * windows-nat.c: Remove static wow64_process variable.
3400 2020-09-23 Tom Tromey <tom@tromey.com>
3403 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
3404 offset and bit size.
3405 * printcmd.c (print_scalar_formatted): Handle zero-length
3407 (print_scalar_formatted): Use bit_size_differs_p.
3408 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
3410 (union type_specific): <int_stuff>: New member.
3411 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
3413 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
3414 TYPE_SPECIFIC_FIELD.
3415 (recursive_dump_type, copy_type_recursive): Update.
3416 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
3417 DW_AT_data_bit_offset.
3419 2020-09-23 Tom Tromey <tom@tromey.com>
3421 * utils.h (class gdb_argv): Add move operators.
3422 <append>: New methods.
3423 * compile/compile.c (build_argc_argv): Remove.
3424 (compile_args_argc): Remove.
3425 (compile_args_argv): Change type.
3426 (set_compile_args): Simplify.
3427 (append_args): Remove.
3428 (filter_args): Remove argcp parameter.
3429 (get_args): Return gdb_argv. Simplify.
3430 (compile_to_object): Update.
3432 2020-09-23 Tom Tromey <tom@tromey.com>
3434 * compile/compile-object-run.c (do_module_cleanup)
3435 <~do_module_cleanup> :Remove.
3436 (do_module_cleanup): Update.
3437 * compile/compile-object-load.h (struct munmap_list): Add move
3438 assignment operator.
3439 <source_file>: Now a std::string.
3440 <munmap_list>: Rename. No longer a pointer.
3441 * compile/compile-object-load.c (struct setup_sections_data): Add
3443 <setup_one_section>: Declare.
3444 <munmap_list>: Move earlier.
3445 <m_bfd>: New member.
3446 <m_last_size, m_last_section_first, m_last_prot,
3447 m_last_max_alignment>: Rename, add initializers where needed.
3448 (setup_sections_data::setup_one_section): Rename from
3449 setup_sections. Update.
3450 (compile_object_load): Update. Don't use bfd_map_over_sections.
3452 2020-09-23 Tom Tromey <tom@tromey.com>
3454 * compile/compile-object-run.c (struct do_module_cleanup): Add
3455 parameters to constructor. Update destructor.
3456 <source_file, scope, scope_data, out_value_type, out_value_addr,
3457 munmap_list_head, objfile_name_string>: Remove.
3458 <module>: New member.
3459 (do_module_cleanup): Update.
3460 (compile_object_run): Update.
3462 2020-09-23 Tom Tromey <tom@tromey.com>
3464 * compile/compile.c (eval_compile_command): Update.
3465 * compile/compile-object-run.h (compile_object_run): Take a
3467 * compile/compile-object-run.c (compile_object_run): Take a
3469 * compile/compile-object-load.h (struct compile_module): Add
3470 constructor, destructor.
3471 (compile_module_up): New typedef.
3472 (compile_object_load): Return compile_object_up.
3473 * compile/compile-object-load.c (compile_object_load): Return
3476 2020-09-23 Tom Tromey <tom@tromey.com>
3478 * compile/compile-object-run.c (struct do_module_cleanup): Add
3479 constructor, destructor.
3480 <objfile_name_string>: Don't use struct hack.
3481 (do_module_cleanup): Use delete.
3482 (compile_object_run): Use new.
3484 2020-09-23 Tom Tromey <tom@tromey.com>
3486 * compile/compile-cplus-types.c
3487 (compile_cplus_convert_struct_or_union): Use std::vector.
3488 (compile_cplus_convert_func): Likewise.
3489 * compile/compile-c-types.c (convert_func): Use std::vector.
3491 2020-09-21 Tom Tromey <tromey@adacore.com>
3493 * sparc-tdep.c (sparc32_skip_prologue): Use
3494 skip_prologue_using_sal.
3496 2020-09-19 Tom Tromey <tom@tromey.com>
3498 * symfile.c (add_section_size_callback): Remove.
3499 (load_one_section): Rename from load_section_callback. Change
3501 (generic_load): Use foreach.
3503 2020-09-19 Tom Tromey <tom@tromey.com>
3505 * exec.c (add_to_section_table): Remove.
3506 (build_section_table): Use foreach.
3508 2020-09-19 Tom Tromey <tom@tromey.com>
3510 * elfread.c (elf_locate_sections): Change parameters.
3511 (elf_symfile_read): Use foreach.
3513 2020-09-19 Tom Tromey <tom@tromey.com>
3515 * cli/cli-dump.c (struct callback_data): Remove.
3516 (restore_one_section): Rename from restore_section_callback.
3518 (restore_binary_file): Change parameters.
3519 (restore_command): Use foreach.
3521 2020-09-19 Tom Tromey <tom@tromey.com>
3523 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
3524 (gcore_copy_callback): Likewise.
3525 (gcore_memory_sections): Use foreach.
3527 2020-09-19 Tom Tromey <tom@tromey.com>
3529 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
3530 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
3532 (generic_elf_osabi_sniffer): Use foreach.
3533 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
3534 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
3536 2020-09-19 Tom Tromey <tom@tromey.com>
3538 * dwarf2/read.c (locate_dwz_sections): Change parameters.
3539 (dwarf2_get_dwz_file): Use foreach.
3540 (dwarf2_locate_dwo_sections): Change parameters.
3541 (open_and_init_dwo_file): Use foreach.
3542 (dwarf2_locate_common_dwp_sections): Change parameters.
3543 (open_and_init_dwp_file): Use foreach.
3545 2020-09-19 Tom Tromey <tom@tromey.com>
3547 * symfile.h: (find_lowest_section): Don't declare.
3548 * symfile.c (find_lowest_section): Now static. Change
3550 (struct place_section_arg): Remove.
3551 (place_section): Change parameters.
3552 (addr_info_make_relative): Use foreach.
3553 (symfile_dummy_outputs): Remove.
3554 (default_symfile_relocate): Use foreach.
3556 2020-09-19 Tom Tromey <tom@tromey.com>
3558 * objfiles.c (add_to_objfile_sections): Rename from
3559 add_to_objfile_sections_full.
3560 (add_to_objfile_sections): Remove.
3561 (build_objfile_section_table): Use foreach.
3563 2020-09-19 Tom Tromey <tom@tromey.com>
3565 * stap-probe.c (get_stap_base_address_1): Remove.
3566 (get_stap_base_address): Use foreach.
3568 2020-09-19 Tom Tromey <tom@tromey.com>
3570 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
3572 (gdb_bfd_close_or_warn): Use foreach.
3574 2020-09-19 Tom Tromey <tom@tromey.com>
3576 * corelow.c (add_to_thread_list): Change parameters.
3577 (core_target_open): Use foreach.
3579 2020-09-19 Tom Tromey <tom@tromey.com>
3581 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
3584 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3586 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
3589 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3591 * eval.c: Remove 'f-lang.h' include.
3592 (value_f90_subarray): Moved to f-lang.c.
3593 (eval_call): Renamed to...
3594 (evaluate_subexp_do_call): ...this, is no longer static, header
3595 comment moved into header file.
3596 (evaluate_funcall): Update call to eval_call.
3597 (skip_undetermined_arglist): Moved to f-lang.c.
3598 (fortran_value_subarray): Likewise.
3599 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3600 moved to evaluate_subexp_f.
3601 (calc_f77_array_dims): Moved to f-lang.c
3602 * expprint.c (print_subexp_funcall): New function.
3603 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3604 moved to print_subexp_f, OP_FUNCALL uses new function.
3605 (dump_subexp_body_funcall): New function.
3606 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
3607 moved to dump_subexp_f, OP_FUNCALL uses new function.
3608 * expression.h (evaluate_subexp_do_call): Declare.
3609 * f-lang.c (value_f90_subarray): Moved from eval.c.
3610 (skip_undetermined_arglist): Likewise.
3611 (calc_f77_array_dims): Likewise.
3612 (fortran_value_subarray): Likewise.
3613 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
3614 (operator_length_f): Likewise.
3615 (print_subexp_f): Likewise.
3616 (dump_subexp_body_f): Likewise.
3617 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
3618 declaration of this operation to here.
3619 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
3620 support moved to operator_length_f.
3621 * parser-defs.h (dump_subexp_body_funcall): Declare.
3622 (print_subexp_funcall): Declare.
3623 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
3624 fortran-operator.def.
3626 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3628 * eval.c (fortran_value_subarray): New function, content is taken
3630 (evaluate_subexp_standard): ...here, in two places. Now arrays
3631 and strings both call the new function.
3632 (calc_f77_array_dims): Add header comment, handle strings.
3634 2020-09-18 Victor Collod <vcollod@nvidia.com>
3637 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
3638 (i386_analyze_prologue): Call i386_skip_endbr.
3640 2020-09-18 Tom Tromey <tromey@adacore.com>
3642 * windows-nat.c (struct windows_nat_target) <wait>: Update.
3643 (windows_nat_target::wait): Update.
3644 * target/wait.h (enum target_wait_flag): New. Use
3645 DEF_ENUM_FLAGS_TYPE.
3646 * target/target.h (target_wait): Change type of options.
3647 * target.h (target_options_to_string, default_target_wait):
3649 (struct target_ops) <wait>: Change type of options.
3650 * target.c (target_wait, default_target_wait, do_option): Change
3652 (target_options_to_string): Likewise.
3653 * target-delegates.c: Rebuild.
3654 * target-debug.h (target_debug_print_target_wait_flags): Rename
3655 from target_debug_print_options.
3656 * sol-thread.c (class sol_thread_target) <wait>: Update.
3657 (sol_thread_target::wait): Update.
3658 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
3659 (rs6000_nat_target::wait): Update.
3660 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
3662 (remote_target::wait_ns, remote_target::wait_as): Change type of
3664 (remote_target::wait): Update.
3665 * remote-sim.c (struct gdbsim_target) <wait>: Update.
3666 (gdbsim_target::wait): Update.
3667 * record-full.c (class record_full_base_target) <wait>: Update.
3668 (record_full_wait_1): Change type of "options".
3669 (record_full_base_target::wait): Update.
3670 * record-btrace.c (class record_btrace_target) <wait>: Update.
3671 (record_btrace_target::wait): Update.
3672 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
3674 (ravenscar_thread_target::wait): Update.
3675 * procfs.c (class procfs_target) <wait>: Update.
3676 (procfs_target::wait): Update.
3677 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
3678 * obsd-nat.c (obsd_nat_target::wait): Update.
3679 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
3680 (nto_procfs_target::wait): Update.
3681 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
3682 * nbsd-nat.c (nbsd_wait): Change type of "options".
3683 (nbsd_nat_target::wait): Update.
3684 * linux-thread-db.c (class thread_db_target) <wait>: Update.
3685 (thread_db_target::wait): Update.
3686 * linux-nat.h (class linux_nat_target) <wait>: Update.
3687 * linux-nat.c (linux_nat_target::wait): Update.
3688 (linux_nat_wait_1): Update.
3689 * infrun.c (do_target_wait_1, do_target_wait): Change type of
3691 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
3692 * inf-ptrace.c (inf_ptrace_target::wait): Update.
3693 * go32-nat.c (struct go32_nat_target) <wait>: Update.
3694 (go32_nat_target::wait): Update.
3695 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
3696 * gnu-nat.c (gnu_nat_target::wait): Update.
3697 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
3698 * fbsd-nat.c (fbsd_nat_target::wait): Update.
3699 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
3700 * darwin-nat.c (darwin_nat_target::wait): Update.
3701 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
3702 (bsd_uthread_target::wait): Update.
3703 * aix-thread.c (class aix_thread_target) <wait>: Update.
3704 (aix_thread_target::wait): Update.
3706 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
3708 * compile/compile-object-run.c (create_copied_type_recursive): New
3710 (compile_object_run): Use new function.
3712 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
3714 * NEWS: Mention x86_64 Cygwin core file support.
3716 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3718 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
3719 (core_process_module_section): Handle NOTE_INFO_MODULE64.
3721 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3723 * windows-tdep.h: Add prototypes.
3724 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
3725 (i386_windows_core_pid_to_str): Move and rename ...
3726 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
3727 (windows_core_pid_to_str): ... and here.
3728 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
3730 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3731 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
3732 (amd64_windows_init_abi_common): ... and register.
3734 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3736 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
3737 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
3739 2020-09-18 Pedro Alves <pedro@palves.net>
3742 * thread.c (thread_find_command): Switch inferior before calling
3745 2020-09-17 Tom Tromey <tromey@adacore.com>
3747 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
3748 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
3749 (tdesc_arch_data_up): New typedef.
3750 (tdesc_use_registers, tdesc_data_alloc): Update.
3751 (tdesc_data_cleanup): Don't declare.
3752 * target-descriptions.c (tdesc_data_alloc): Return a
3754 (tdesc_arch_data_deleter::operator()): Rename from
3755 tdesc_data_cleanup. Change argument type.
3756 (tdesc_use_registers): Change early_data to an rvalue reference.
3757 (tdesc_use_registers): Don't use delete.
3758 * sparc-tdep.c (sparc32_gdbarch_init): Update.
3759 * s390-tdep.c (s390_gdbarch_init): Update.
3760 * rx-tdep.c (rx_gdbarch_init): Update.
3761 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3762 * riscv-tdep.c (riscv_gdbarch_init): Update.
3763 * or1k-tdep.c (or1k_gdbarch_init): Update.
3764 * nios2-tdep.c (nios2_gdbarch_init): Update.
3765 * nds32-tdep.c (nds32_gdbarch_init): Update.
3766 * mips-tdep.c (mips_gdbarch_init): Update.
3767 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
3768 * m68k-tdep.c (m68k_gdbarch_init): Update.
3769 * i386-tdep.c (i386_gdbarch_init): Update.
3770 * arm-tdep.c (arm_gdbarch_init): Update.
3771 * arc-tdep.c (arc_tdesc_init): Update.
3772 (arc_gdbarch_init): Update.
3773 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
3775 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
3777 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
3778 for WOW64 processes.
3780 2020-09-17 Tom Tromey <tom@tromey.com>
3782 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
3784 2020-09-17 Tom Tromey <tom@tromey.com>
3786 * value.c (preserve_values): Update.
3787 * python/py-type.c (save_objfile_types): Update.
3788 * guile/scm-type.c (save_objfile_types): Update.
3789 * gdbtypes.h (create_copied_types_hash): Return htab_up.
3790 * gdbtypes.c (create_copied_types_hash): Return htab_up.
3791 * compile/compile-object-run.c (compile_object_run): Update.
3793 2020-09-17 Tom Tromey <tom@tromey.com>
3795 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
3797 <m_table>: Now htab_up.
3798 * typeprint.c (typedef_hash_table::recursively_update)
3799 (typedef_hash_table::add_template_parameters)
3800 (typedef_hash_table::typedef_hash_table): Update.
3801 (typedef_hash_table::~typedef_hash_table): Remove.
3802 (typedef_hash_table::typedef_hash_table)
3803 (typedef_hash_table::find_global_typedef)
3804 (typedef_hash_table::find_typedef): Update.
3806 2020-09-17 Tom Tromey <tom@tromey.com>
3808 * target-descriptions.c (tdesc_use_registers): Use htab_up.
3810 2020-09-17 Tom Tromey <tom@tromey.com>
3812 * linespec.c (class decode_compound_collector)
3813 <~decode_compound_collector>: Remove.
3814 <m_unique_syms>: Now htab_up.
3815 (decode_compound_collector::operator ()): Update.
3816 (class symtab_collector) <~symtab_collector>: Remove.
3817 <m_symtab_table>: Now htab_up.
3818 (symtab_collector::operator ()): Update.
3820 2020-09-17 Tom Tromey <tom@tromey.com>
3822 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
3823 (filename_seen_cache::clear): Update.
3824 (~filename_seen_cache): Remove.
3825 (filename_seen_cache::seen): Update.
3826 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
3828 <~filename_seen_cache>: Remove.
3831 2020-09-17 Tom Tromey <tom@tromey.com>
3833 * completer.c (completion_tracker::discard_completions)
3834 (completion_tracker::~completion_tracker)
3835 (completion_tracker::maybe_add_completion)
3836 (completion_tracker::remove_completion)
3837 (completion_tracker::recompute_lowest_common_denominator)
3838 (completion_tracker::build_completion_result): Update.
3839 * completer.h (class completion_tracker) <have_completions>:
3841 <m_entries_hash>: Now htab_up.
3843 2020-09-17 Tom Tromey <tom@tromey.com>
3845 * breakpoint.c (ambiguous_names_p): Use htab_up.
3847 2020-09-17 Tom Tromey <tom@tromey.com>
3849 * auto-load.c (struct auto_load_pspace_info)
3850 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
3851 <loaded_script_files, loaded_script_texts>: Change type to
3853 (~auto_load_pspace_info) Remove.
3854 (init_loaded_scripts_info, maybe_add_script_file)
3855 (maybe_add_script_text, auto_load_info_scripts): Update.
3857 2020-09-17 Tom Tromey <tromey@adacore.com>
3859 * c-exp.y (name_obstack): Now static.
3861 2020-09-17 Chungyi Chi <demonic@csie.io>
3863 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
3865 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
3867 * breakpoint.h (init_catchpoint): Change int parameter to bool.
3868 (add_solib_catchpoint): Likewise.
3869 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
3871 (add_solib_catchpoint): Change int parameter/variable to bool.
3872 (catch_load_or_unload): Likewise.
3873 (init_catchpoint): Likewise.
3874 (create_fork_vfork_event_catchpoint): Likewise.
3875 (catch_fork_command_1): Likewise.
3876 (catch_exec_command_1): Likewise.
3878 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
3880 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
3881 Change instance_flags to m_instance_flags.
3883 2020-09-16 Tom Tromey <tromey@adacore.com>
3886 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
3888 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3890 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
3892 (fbsd_nat_target::insert_exec_catchpoint)
3893 (fbsd_nat_target::remove_exec_catchpoint): Always define.
3894 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
3895 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
3897 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3899 * configure.ac: Remove check for kinfo_getvmmap().
3900 * configure, config.in: Regenerate.
3901 * fbsd-nat.c (fbsd_read_mapping): Remove
3902 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
3903 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
3904 kinfo_get_vmmap() are always present.
3906 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3908 * fbsd-nat.c: Always include support for
3909 TARGET_OBJECT_SIGNAL_INFO.
3911 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3913 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
3914 sysctl and remove procfs fallback.
3916 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3918 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
3919 * fbsd-nat.h: Likewise.
3921 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3923 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
3926 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3928 * ada-lang.c (ada_language_data): Delete.
3929 (ada_language): Remove references to ada_language_data.
3930 * c-lang.c (c_language_data): Delete.
3931 (c_language): Remove references to c_language_data.
3932 (cplus_language_data): Delete.
3933 (cplus_language): Remove references to cplus_language_data.
3934 (asm_language_data): Delete.
3935 (asm_language): Remove references to asm_language_data.
3936 (minimal_language_data): Delete.
3937 (minimal_language): Remove references to minimal_language_data.
3938 * d-lang.c (d_language_data): Delete.
3939 (d_language): Remove references to d_language_data.
3940 * f-lang.c (f_language_data): Delete.
3941 (f_language): Remove references to f_language_data.
3942 * go-lang.c (go_language_data): Delete.
3943 (go_language): Remove references to go_language_data.
3944 * language.c (unknown_language_data): Delete.
3945 (unknown_language): Remove references to unknown_language_data.
3946 (auto_language_data): Delete.
3947 (auto_language): Remove references to auto_language_data.
3948 * language.h (language_data): Delete struct.
3949 (language_defn): No longer inherit from language_data.
3950 * m2-lang.c (m2_language_data): Delete.
3951 (m2_language): Remove references to m2_language_data.
3952 * objc-lang.c (objc_language_data): Delete.
3953 (objc_language): Remove references to objc_language_data.
3954 * opencl-lang.c (opencl_language_data): Delete.
3955 (opencl_language): Remove references to opencl_language_data.
3956 * p-lang.c (pascal_language_data): Delete.
3957 (pascal_language): Remove references to pascal_language_data.
3958 * rust-lang.c (rust_language_data): Delete.
3959 (rust_language): Remove references to rust_language_data.
3961 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3963 * ada-lang.c (ada_language_data): Remove la_op_print_tab
3965 (ada_language::opcode_print_table): New member function.
3966 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
3967 (c_language::opcode_print_table): New member function.
3968 (cplus_language_data): Remove la_op_print_tab initializer.
3969 (cplus_language::opcode_print_table): New member function.
3970 (asm_language_data): Remove la_op_print_tab initializer.
3971 (asm_language::opcode_print_table): New member function.
3972 (minimal_language_data): Remove la_op_print_tab initializer.
3973 (minimal_language::opcode_print_table): New member function.
3974 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
3975 (d_language::opcode_print_table): New member function.
3976 * expprint.c (print_subexp_standard): Update call to
3978 (op_string): Likewise.
3979 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
3980 (f_language::opcode_print_table): New member function.
3981 * go-lang.c (go_language_data): Remove la_op_print_tab
3983 (go_language::opcode_print_table): New member function.
3984 * language.c (unknown_language_data): Remove la_op_print_tab
3986 (unknown_language::opcode_print_table): New member function.
3987 (auto_language_data): Remove la_op_print_tab initializer.
3988 (auto_language::opcode_print_table): New member function.
3989 * language.h (language_data): Remove la_op_print_tab field.
3990 (language_defn::opcode_print_table): Declare new member function.
3991 * m2-lang.c (m2_language_data): Remove la_op_print_tab
3993 (m2_language::opcode_print_table): New member function.
3994 * objc-lang.c (objc_language_data): Remove la_op_print_tab
3996 (objc_language::opcode_print_table): New member function.
3997 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
3999 (opencl_language::opcode_print_table): New member function.
4000 * p-lang.c (pascal_language_data): Remove la_op_print_tab
4002 (pascal_language::opcode_print_table): New member function.
4003 * rust-lang.c (rust_language_data): Remove la_op_print_tab
4005 (rust_language::opcode_print_table): New member function.
4007 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4009 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
4010 (ada_language::expression_ops): New member function.
4011 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
4012 (c_language::expression_ops): New member function.
4013 (cplus_language_data): Remove la_exp_desc initializer.
4014 (cplus_language::expression_ops): New member function.
4015 (asm_language_data): Remove la_exp_desc initializer.
4016 (asm_language::expression_ops): New member function.
4017 (minimal_language_data): Remove la_exp_desc initializer.
4018 (minimal_language::expression_ops): New member function.
4019 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
4020 (d_language::expression_ops): New member function.
4021 * eval.c (evaluate_subexp): Update call to expression_ops.
4022 * expprint.c (print_subexp): Likewise.
4023 (op_name): Likewise.
4024 (dump_subexp_body): Likewise.
4025 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
4026 (f_language::expression_ops): New member function.
4027 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
4028 (go_language::expression_ops): New member function.
4029 * language.c (language_defn::expression_ops): New function.
4030 (unknown_language_data): Remove la_exp_desc initializer.
4031 (auto_language_data): Likewise.
4032 * language.h (language_data): Remove la_exp_desc field.
4033 (language_defn::expression_ops): Declare new member function.
4034 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
4035 (m2_language::expression_ops): New member function.
4036 * objc-lang.c (objc_language_data): Remove la_exp_desc
4038 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
4040 (opencl_language::expression_ops): New member function.
4041 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
4042 * parse.c (operator_length): Update call to expression_ops.
4043 (exp_iterate): Likewise.
4044 * rust-lang.c (rust_language_data): Remove la_exp_desc
4046 (ruse_language::expression_ops): New member function.
4048 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4050 * ada-lang.c (ada_language_data): Remove la_varobj_ops
4052 (ada_language::varobj_ops): New member function.
4053 * c-lang.c (c_language_data): Remove la_varobj_ops
4055 (cplus_language_data): Likewise.
4056 (cplus_language::varobj_ops): New member function.
4057 (asm_language_data): Remove la_varobj_ops initializer.
4058 (minimal_language_data): Likewise.
4059 * d-lang.c (d_language_data): Likewise.
4060 * f-lang.c (f_language_data): Likewise.
4061 * go-lang.c (go_language_data): Likewise.
4062 * language.c (language_defn::varobj_ops): New function.
4063 (unknown_language_data): Remove la_varobj_ops
4065 (auto_language_data): Likewise.
4066 * language.h (language_data): Remove la_varobj_ops field.
4067 (language_defn::varobj_ops): Declare new member function.
4068 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
4069 * objc-lang.c (objc_language_data): Likewise.
4070 * opencl-lang.c (opencl_language_data): Likewise.
4071 * p-lang.c (pascal_language_data): Likewise.
4072 * rust-lang.c (rust_language_data): Likewise.
4073 * varobj.c (varobj_create): Update call to varobj_ops.
4074 * varobj.h (default_varobj_ops): Delete define.
4076 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4078 * ada-lang.c (ada_language_data): Remove la_macro_expansion
4080 * c-lang.c (c_language_data): Likewise.
4081 (c_language::macro_expansion): New member function.
4082 (cplus_language_data): Likewise.
4083 (cplus_language::macro_expansion): New member function.
4084 (asm_language_data): Likewise.
4085 (asm_language::macro_expansion): New member function.
4086 (minimal_language_data): Likewise.
4087 (minimal_language::macro_expansion): New member function.
4088 * d-lang.c (d_language_data): Remove la_macro_expansion
4090 * f-lang.c (f_language_data): Likewise.
4091 * go-lang.c (go_language_data): Likewise.
4092 * language.c (unknown_language_data): Likewise.
4093 (auto_language_data): Likewise.
4094 * language.h (language_data): Remove la_macro_expansion field.
4095 (language_defn::macro_expansion): New member function.
4096 * m2-lang.c (m2_language_data): Remove la_macro_expansion
4098 * objc-lang.c (objc_language_data): Likewise.
4099 (objc_language::macro_expansion): New member function.
4100 * opencl-lang.c (opencl_language_data): Likewise.
4101 (opencl_language::macro_expansion): New member function.
4102 * p-lang.c (pascal_language_data): Remove la_macro_expansion
4104 * rust-lang.c (rust_language_data): Likewise.
4105 * symtab.c (default_collect_symbol_completion_matches_break_on):
4106 Update call to macro_expansion.
4108 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4110 * ada-lang.c (ada_language_data): Remove la_array_ordering
4112 * c-lang.c (c_language_data): Likewise.
4113 (cplus_language_data): Likewise.
4114 (asm_language_data): Likewise.
4115 (minimal_language_data): Likewise.
4116 * d-lang.c (d_language_data): Likewise.
4117 * dwarf2/read.c (read_array_order): Update for call to
4119 * f-lang.c (f_language_data): Remove la_array_ordering
4121 (f_language::array_ordering): New member function.
4122 * go-lang.c (go_language_data): Remove la_array_ordering
4124 * language.c (unknown_language_data): Likewise.
4125 (auto_language_data): Likewise.
4126 * language.h (language_data): Delete la_array_ordering field.
4127 (language_defn::array_ordering): New member function.
4128 * m2-lang.c (m2_language_data): Remove la_array_ordering
4130 * objc-lang.c (objc_language_data): Likewise.
4131 * opencl-lang.c (opencl_language_data): Likewise.
4132 * p-lang.c (pascal_language_data): Likewise.
4133 * rust-lang.c (rust_language_data): Likewise.
4135 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4137 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
4139 * c-lang.c (c_language_data): Likewise.
4140 (cplus_language_data): Likewise.
4141 (asm_language_data): Likewise.
4142 (minimal_language_data): Likewise.
4143 * d-lang.c (d_language_data): Likewise.
4144 * f-lang.c (f_language_data): Likewise.
4145 (f_language::case_sensitivity): New member function.
4146 * go-lang.c (go_language_data): Remove la_case_sensitivity
4148 * language.c (enum case_mode): Moved here from language.h.
4149 (case_mode): Make static.
4150 (show_case_command): Update for case_sensitivity being a method.
4151 (set_case_command): Likewise.
4152 (set_range_case): Likewise.
4153 (unknown_language_data): Remove la_case_sensitivity initializer.
4154 (auto_language_data): Likewise.
4155 * language.h (case_mode): Delete, move enum declaration to
4157 (language_data): Delete la_case_sensitivity field.
4158 (language_defn::case_sensitivity): New member function.
4159 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
4161 * objc-lang.c (objc_language_data): Likewise.
4162 * opencl-lang.c (opencl_language_data): Likewise.
4163 * p-lang.c (pascal_language_data): Likewise.
4164 * rust-lang.c (rust_language_data): Likewise.
4166 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4168 * ada-lang.c (ada_language_data): Remove la_range_check
4170 * c-lang.c (c_language_data): Likewise.
4171 (cplus_language_data): Likewise.
4172 (asm_language_data): Likewise.
4173 (minimal_language_data): Likewise.
4174 * d-lang.c (d_language_data): Likewise.
4175 * f-lang.c (f_language_data): Likewise.
4176 (f_language::range_checking_on_by_default): New member function.
4177 * go-lang.c (go_language_data): Remove la_range_check initializer.
4178 * language.c (enum range_mode): Moved here from language.h.
4179 (range_mode): Made static.
4180 (show_range_command): Update to use
4181 range_checking_on_by_default.
4182 (set_range_command): Likewise.
4183 (set_range_case): Likewise.
4184 (unknown_language_data): Remove la_range_check initializer.
4185 (auto_language_data): Likewise.
4186 * language.h (range_mode): Delete. Enum definition moved to
4188 (language_data): Remove la_range_check field.
4189 (language_defn::range_checking_on_by_default): New member
4191 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
4192 (m2_language::range_checking_on_by_default): New member function.
4193 * objc-lang.c (objc_language_data): Remove la_range_check
4195 * opencl-lang.c (opencl_language_data): Likewise.
4196 * p-lang.c (pascal_language_data): Likewise.
4197 (pascal_language::range_checking_on_by_default): New member
4199 * rust-lang.c (rust_language_data): Remove la_range_check
4201 (rust_language::range_checking_on_by_default): New member
4204 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4206 * dwarf2/read.c (dwarf2_physname): Remove special case for
4208 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
4211 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4213 * ada-lang.c (ada_language_data): Remove
4214 la_store_sym_names_in_linkage_form_p initializer.
4215 (ada_language::store_sym_names_in_linkage_form_p): New member
4217 * c-lang.c (c_language_data): Remove
4218 la_store_sym_names_in_linkage_form_p initializer.
4219 (c_language::store_sym_names_in_linkage_form_p): New member
4221 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
4223 (asm_language_data): Likewise.
4224 (asm_language::store_sym_names_in_linkage_form_p): New member
4226 (minimal_language_data): Remove
4227 la_store_sym_names_in_linkage_form_p initializer.
4228 (minimal_language::store_sym_names_in_linkage_form_p): New member
4230 * d-lang.c (d_language_data): Remove
4231 la_store_sym_names_in_linkage_form_p initializer.
4232 * dwarf2/read.c (dwarf2_physname): Update call to
4233 store_sym_names_in_linkage_form_p.
4234 * f-lang.c (f_language_data): Remove
4235 la_store_sym_names_in_linkage_form_p initializer.
4236 * go-lang.c (go_language_data): Remove
4237 la_store_sym_names_in_linkage_form_p initializer.
4238 * language.c (unknown_language_data): Remove
4239 la_store_sym_names_in_linkage_form_p initializer.
4240 (unknown_language::store_sym_names_in_linkage_form_p): New member
4242 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
4244 (auto_language::store_sym_names_in_linkage_form_p): New member
4246 * language.h (language_data): Remove
4247 la_store_sym_names_in_linkage_form_p member variable.
4248 (language_defn::store_sym_names_in_linkage_form_p): New member
4250 * m2-lang.c (m2_language_data): Remove
4251 la_store_sym_names_in_linkage_form_p initializer.
4252 * objc-lang.c (objc_language_data): Likewise.
4253 * opencl-lang.c (opencl_language_data): Likewise.
4254 * p-lang.c (pascal_language_data): Likewise.
4255 * rust-lang.c (rust_language_data): Likewise.
4257 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4259 * ada-lang.c (ada_language_data): Remove string_lower_bound
4261 * c-lang.c (c_language_data): Likewise.
4262 (cplus_language_data): Likewise.
4263 (asm_language_data): Likewise.
4264 (minimal_language_data): Likewise.
4265 * d-lang.c (d_language_data): Likewise.
4266 * f-lang.c (f_language_data): Likewise.
4267 * go-lang.c (go_language_data): Likewise.
4268 * language.c (unknown_language_data): Likewise.
4269 (auto_language_data): Likewise.
4270 * language.h (language_data): Remove string_lower_bound field.
4271 (language_defn::string_lower_bound): New member function.
4272 * m2-lang.c (m2_language_data): Remove string_lower_bound
4274 (m2_language::string_lower_bound): New member function.
4275 * objc-lang.c (objc_language_data): Remove string_lower_bound
4277 * opencl-lang.c (opencl_language_data): Likewise.
4278 * p-lang.c (pascal_language_data): Likewise.
4279 * rust-lang.c (rust_language_data): Likewise.
4280 * valops.c (value_cstring): Update call to string_lower_bound.
4281 (value_string): Likewise.
4282 * value.c (allocate_repeated_value): Likewise.
4284 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4286 * valops.c (value_repeat): Fix incorrect argument name in comment.
4288 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4290 * ada-lang.c (ada_language_data): Remove c_style_arrays
4292 (ada_language::c_style_arrays_p): New member fuction.
4293 * c-lang.c (c_language_data): Remove c_style_arrays
4295 (cplus_language_data): Likewise.
4296 (asm_language_data): Likewise.
4297 (minimal_language_data): Likewise.
4298 * d-lang.c (d_language_data): Likewise.
4299 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
4300 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
4301 (f_language::c_style_arrays_p): New member function.
4302 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
4303 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
4304 * language.c (unknown_language_data): Remove c_style_arrays
4306 (auto_language_data): Likewise.
4307 * language.h (language_data): Remove c_style_arrays field.
4308 (language_defn::c_style_arrays_p): New member function.
4309 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
4310 (m2_language::c_style_arrays_p): New member function.
4311 * objc-lang.c (objc_language_data): Remove c_style_arrays
4313 * opencl-lang.c (opencl_language_data): Likewise.
4314 * p-lang.c (pascal_language_data): Likewise.
4315 * rust-lang.c (rust_language_data): Likewise.
4316 * valarith.c (value_subscript): Update call to c_style_arrays_p,
4317 and update local variable to a bool.
4318 * valops.c (value_cast): Update call to c_style_arrays_p.
4319 (value_array): Likewise.
4320 * value.c (coerce_array): Likewise.
4322 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4324 * ada-lang.c (ada_language_data): Remove la_language initializer.
4325 * c-lang.c (c_language_data): Likewise.
4326 (cplus_language_data): Likewise.
4327 (asm_language_data): Likewise.
4328 (minimal_language_data): Likewise.
4329 * d-lang.c (d_language_data): Likewise.
4330 * f-lang.c (f_language_data): Likewise.
4331 * go-lang.c (go_language_data): Likewise.
4332 * language.c (unknown_language_data): Likewise.
4333 (auto_language_data): Likewise.
4334 * language.h (language_data): Remove la_language field.
4335 (language_defn::language_defn): Initialise la_language field.
4336 (language_defn::la_language): New member variable.
4337 * m2-lang.c (m2_language_data): Remove la_language field.
4338 * objc-lang.c (objc_language_data): Likewise.
4339 * opencl-lang.c (opencl_language_data): Likewise.
4340 * p-lang.c (pascal_language_data): Likewise.
4341 * rust-lang.c (rust_language_data): Likewise.
4343 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4345 * ada-lang.c (ada_extensions): Delete, moved into
4346 ada_language::filename_extensions.
4347 (ada_language_data): Remove la_filename_extensions initializer.
4348 (ada_language::filename_extensions): New member function.
4349 * c-lang.c (c_extensions): Delete, moved into
4350 c_language::filename_extensions.
4351 (c_language_data): Remove la_filename_extensions initializer.
4352 (c_language::filename_extensions): New member function.
4353 (cplus_extensions): Delete, moved into
4354 cplus_language::filename_extensions.
4355 (cplus_language_data): Remove la_filename_extensions initializer.
4356 (cplus_language::filename_extensions): New member function.
4357 (asm_extensions): Delete, moved into
4358 asm_language::filename_extensions.
4359 (asm_language_data): Remove la_filename_extensions initializer.
4360 (asm_language::filename_extensions): New member function.
4361 (minimal_language_data): Remove la_filename_extensions
4363 * d-lang.c (d_extensions): Delete, moved into
4364 d_language::filename_extensions.
4365 (d_language_data): Remove la_filename_extensions initializer.
4366 (d_language::filename_extensions): New member function.
4367 * f-lang.c (f_extensions): Delete, moved into
4368 f_language::filename_extensions.
4369 (f_language_data): Remove la_filename_extensions initializer.
4370 (f_language::filename_extensions): New member function.
4371 * go-lang.c (go_language_data): Remove la_filename_extensions
4373 * language.c (add_set_language_command): Update now that
4374 filename_extensions returns a vector.
4375 (unknown_language_data): Remove la_filename_extensions
4377 (auto_language_data): Likewise.
4378 * language.h (language_data): Remove la_filename_extensions field.
4379 (language_defn::filename_extensions): New member function.
4380 * m2-lang.c (m2_language_data): Remove la_filename_extensions
4382 * objc-lang.c (objc_extensions): Delete, moved into
4383 objc_language::filename_extensions.
4384 (objc_language_data): Remove la_filename_extensions initializer.
4385 (objc_language::filename_extensions): New member function.
4386 * opencl-lang.c (opencl_language_data): Remove
4387 la_filename_extensions initializer.
4388 * p-lang.c (pascal_extensions): Delete, moved into
4389 pascal_language::filename_extensions.
4390 (pascal_language_data): Remove la_filename_extensions initializer.
4391 (pascal_language::filename_extensions): New member function.
4392 * rust-lang.c (rust_extensions): Delete, moved into
4393 rust_language::filename_extensions.
4394 (rust_language_data): Remove la_filename_extensions initializer.
4395 (rust_language::filename_extensions): New member function.
4396 * symfile.c (add_filename_language): Add new assert.
4398 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4400 * ada-lang.c (ada_language_data): Remove la_name and
4401 la_natural_name initializers.
4402 (ada_language::name): New member function.
4403 (ada_language::natural_name): New member function.
4404 * c-lang.c (c_language_data): Remove la_name and
4405 la_natural_name initializers.
4406 (c_language::name): New member function.
4407 (c_language::natural_name): New member function.
4408 (cplus_language_data): Remove la_name and
4409 la_natural_name initializers.
4410 (cplus_language::name): New member function.
4411 (cplus_language::natural_name): New member function.
4412 (asm_language_data): Remove la_name and
4413 la_natural_name initializers.
4414 (asm_language::name): New member function.
4415 (asm_language::natural_name): New member function.
4416 (minimal_language_data): Remove la_name and
4417 la_natural_name initializers.
4418 (minimal_language::name): New member function.
4419 (minimal_language::natural_name): New member function.
4420 * compile/compile.c (compile_to_object): Update call to
4421 lanugage_defn::name.
4422 * d-lang.c (d_language_data): Remove la_name and
4423 la_natural_name initializers.
4424 (d_language::name): New member function.
4425 (d_language::natural_name): New member function.
4426 * expprint.c (print_subexp_standard): Update call to
4427 language_defn::name.
4428 (dump_raw_expression): Likewise
4429 (dump_prefix_expression): Likewise.
4430 * f-lang.c (f_language_data): Remove la_name and
4431 la_natural_name initializers.
4432 (f_language::name): New member function.
4433 (f_language::natural_name): New member function.
4434 * go-lang.c (go_language_data): Remove la_name and
4435 la_natural_name initializers.
4436 (go_language::name): New member function.
4437 (go_language::natural_name): New member function.
4438 * language.c (show_language_command): Update call to
4439 language_defn::name.
4440 (set_language_command): Likewise.
4441 (language_enum): Likewise.
4442 (language_str): Likewise.
4443 (add_set_language_command): Likewise, use
4444 language_defn::natural_name in the doc string.
4445 (unknown_language_data): Remove la_name and
4446 la_natural_name initializers.
4447 (unknown_language::name): New member function.
4448 (unknown_language::natural_name): New member function.
4449 (auto_language_data): Remove la_name and
4450 la_natural_name initializers.
4451 (auto_language::name): New member function.
4452 (auto_language::natural_name): New member function.
4453 (language_lookup_primitive_type_as_symbol): Update call to
4454 language_defn::name.
4455 * language.h (language_data): Remove la_name and la_natural_name
4457 (language_defn::name): New member function.
4458 (language_defn::natural_name): New member function.
4459 * m2-lang.c (m2_language_data): Remove la_name and
4460 la_natural_name initializers.
4461 (m2_language::name): New member function.
4462 (m2_language::natural_name): New member function.
4463 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
4464 language_defn::natural_name.
4465 * objc-lang.c (objc_language_data): Remove la_name and
4466 la_natural_name initializers.
4467 (objc_language::name): New member function.
4468 (objc_language::natural_name): New member function.
4469 * opencl-lang.c (opencl_language_data): Remove la_name and
4470 la_natural_name initializers.
4471 (opencl_language::name): New member function.
4472 (opencl_language::natural_name): New member function.
4473 * p-lang.c (pascal_language_data): Remove la_name and
4474 la_natural_name initializers.
4475 (pascal_language::name): New member function.
4476 (pascal_language::natural_name): New member function.
4477 * rust-lang.c (rust_language_data): Remove la_name and
4478 la_natural_name initializers.
4479 (rust_language::name): New member function.
4480 (rust_language::natural_name): New member function.
4481 * symtab.c (lookup_language_this): Update call to
4482 language_defn::name.
4484 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4486 * ada-lang.c (ada_language_data): Remove la_name_of_this
4488 * ax-gdb.c (gen_expr): Update call to name_of_this.
4489 * c-exp.y (classify_name): Likewise.
4490 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
4491 (cplus_language_data): Likewise.
4492 (cplus_language::name_of_this): New member function.
4493 (asm_language_data): Remove la_name_of_this initializer.
4494 (minimal_language_data): Likewise.
4495 * d-lang.c (d_language_data): Likewise.
4496 (d_language::name_of_this): New member function.
4497 * expprint.c (print_subexp_standard): Update call to name_of_this.
4498 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
4499 * go-lang.c (go_language_data): Likewise.
4500 * language.c (unknown_language_data): Likewise.
4501 (unknown_language::name_of_this): New member function.
4502 (auto_language_data): Remove la_name_of_this initializer.
4503 (auto_language::name_of_this): New member function.
4504 * language.h (language_data): Delete la_name_of_this member
4506 (language_defn::name_of_this): New member function.
4507 * m2-lang.c (m2_language_data): Remove la_name_of_this
4509 * objc-lang.c (objc_language_data): Likewise.
4510 (objc_language::name_of_this): New member function.
4511 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
4513 * p-lang.c (pascal_language_data): Likewise.
4514 (pascal_language::name_of_this): New member function.
4515 * rust-lang.c (rust_language_data): Remove la_name_of_this
4517 * symtab.c (lookup_language_this): Update call to name_of_this.
4518 (lookup_symbol_aux): Likewise.
4519 * valops.c (value_of_this): Likewise.
4521 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4523 * ada-lang.c (ada_language_data): Remove
4524 la_struct_too_deep_ellipsis initializer.
4525 (ada_language::struct_too_deep_ellipsis): New member function.
4526 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
4528 (cplus_language_data): Likewise.
4529 (asm_language_data): Likewise.
4530 (minimal_language_data): Likewise.
4531 * cp-valprint.c (cp_print_value): Update call to
4532 struct_too_deep_ellipsis.
4533 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
4535 * f-lang.c (f_language_data): Likewise.
4536 (f_language::struct_too_deep_ellipsis): New member function.
4537 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
4539 * language.c (unknown_language_data): Likewise.
4540 (auto_language_data): Likewise.
4541 * language.h (language_data): Delete la_struct_too_deep_ellipsis
4543 (language_defn::struct_too_deep_ellipsis): New member function.
4544 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
4546 * objc-lang.c (objc_language_data): Likewise.
4547 * opencl-lang.c (opencl_language_data): Likewise.
4548 * p-lang.c (pascal_language_data): Likewise.
4549 * rust-lang.c (rust_language_data): Likewise.
4550 * valprint.c (val_print_check_max_depth): Update call to
4551 struct_too_deep_ellipsis.
4553 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
4555 * MAINTAINERS (Write After Approval): Add myself.
4557 2020-09-15 Tom Tromey <tom@tromey.com>
4559 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
4562 2020-09-15 Tom Tromey <tom@tromey.com>
4564 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
4565 and TYPE_CODE_METHODPTR cases.
4566 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
4567 (c_value_print_inner): Update.
4568 * valprint.c (generic_value_print_memberptr): New function, from
4569 c_value_print_memberptr.
4570 (generic_value_print): Use it. Call cplus_print_method_ptr.
4572 2020-09-15 Tom Tromey <tromey@adacore.com>
4574 * python/python-internal.h (PyInt_FromLong): Remove define.
4575 * python/py-value.c (convert_value_from_python): Use
4576 gdb_py_object_from_longest.
4577 * python/py-type.c (typy_get_code): Use
4578 gdb_py_object_from_longest.
4579 * python/py-symtab.c (salpy_get_line): Use
4580 gdb_py_object_from_longest.
4581 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
4582 gdb_py_object_from_longest.
4583 * python/py-record.c (recpy_gap_reason_code): Use
4584 gdb_py_object_from_longest.
4585 * python/py-record-btrace.c (recpy_bt_insn_size)
4586 (recpy_bt_func_level, btpy_list_count): Use
4587 gdb_py_object_from_longest.
4588 * python/py-infthread.c (gdbpy_create_ptid_object): Use
4589 gdb_py_object_from_longest. Fix error handling.
4590 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
4591 gdb_py_object_from_longest.
4592 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
4593 gdb_py_object_from_longest.
4594 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
4595 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
4596 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
4598 2020-09-15 Tom Tromey <tromey@adacore.com>
4600 * python/python.c (gdbpy_parameter_value): Use
4601 gdb_py_object_from_ulongest.
4603 2020-09-15 Tom Tromey <tromey@adacore.com>
4605 * python/py-infevents.c (create_register_changed_event_object):
4606 Use gdb_py_object_from_longest.
4607 * python/py-exitedevent.c (create_exited_event_object): Use
4608 gdb_py_object_from_longest.
4610 2020-09-15 Tom Tromey <tromey@adacore.com>
4612 * python/python.c (gdbpy_parameter_value): Use
4613 gdb_py_object_from_longest.
4614 * python/py-type.c (convert_field, typy_range): Use
4615 gdb_py_object_from_longest.
4616 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
4617 gdb_py_object_from_longest.
4618 * python/py-lazy-string.c (stpy_get_length): Use
4619 gdb_py_object_from_longest.
4620 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
4621 gdb_py_object_from_longest.
4622 * python/py-infevents.c (create_memory_changed_event_object): Use
4623 gdb_py_object_from_longest.
4624 * python/py-inferior.c (infpy_get_num): Use
4625 gdb_py_object_from_longest.
4626 (infpy_get_pid): Likewise.
4628 2020-09-15 Tom Tromey <tromey@adacore.com>
4630 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
4632 * python/py-value.c (valpy_long): Use
4633 gdb_py_object_from_ulongest.
4634 * python/py-symtab.c (salpy_get_pc): Use
4635 gdb_py_object_from_ulongest.
4636 (salpy_get_last): Likewise.
4637 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
4638 gdb_py_object_from_ulongest.
4639 * python/py-lazy-string.c (stpy_get_address): Use
4640 gdb_py_object_from_ulongest.
4641 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
4642 * python/py-arch.c (archpy_disassemble): Use
4643 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
4646 2020-09-15 Tom Tromey <tromey@adacore.com>
4648 * python/python-internal.h (gdb_py_long_from_longest): Remove
4650 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
4651 * python/py-type.c (convert_field, typy_get_sizeof): Use
4652 gdb_py_object_from_longest.
4653 * python/py-record-btrace.c (btpy_list_index): Use
4654 gdb_py_object_from_longest.
4656 2020-09-15 Tom Tromey <tromey@adacore.com>
4658 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
4659 * python/py-record.c (recpy_element_number): Use
4660 gdb_py_object_from_longest.
4661 (recpy_gap_number): Likewise.
4663 2020-09-15 Tom Tromey <tromey@adacore.com>
4665 * top.c (ui::ui): Update.
4666 (highest_ui_num): Remove.
4667 * top.h (struct ui) <num>: Remove.
4669 2020-09-15 Tom Tromey <tromey@adacore.com>
4671 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
4672 * ui-style.c (ansi_regex_text): Now array.
4673 * rust-exp.y (number_regex_text): Now array.
4674 * linespec.c (linespec_quote_characters): Now array.
4675 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
4678 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4680 * debuginfod-support.c (debuginfod_client_deleter): New.
4681 (debuginfod_client_up): New.
4682 (debuginfod_init): Return debuginfod_client_up.
4683 (debuginfod_source_query): Adjust.
4684 (debuginfod_debuginfo_query): Adjust.
4686 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4688 * debuginfod-support.c (debuginfod_source_query): Use
4689 make_unique_xstrdup.
4691 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4693 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
4694 with `type::instance_flags`.
4696 2020-09-14 Michael Mullin <masmullin@gmail.com>
4698 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
4699 Remove baton parameter.
4701 2020-09-14 Pedro Alves <pedro@palves.net>
4703 * Makefile.in (SELFTESTS_SRCS): Add
4704 unittests/enum-flags-selftests.c.
4705 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
4706 btrace_function_flags instead of enum btrace_function_flag.
4707 * compile/compile-c-types.c (convert_qualified): Use
4709 * compile/compile-cplus-symbols.c (convert_one_symbol)
4710 (convert_symbol_bmsym):
4711 * compile/compile-cplus-types.c (compile_cplus_convert_method)
4712 (compile_cplus_convert_struct_or_union_methods)
4713 (compile_cplus_instance::convert_qualified_base):
4714 * go-exp.y (parse_string_or_char): Add cast to int.
4715 * unittests/enum-flags-selftests.c: New file.
4716 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
4717 type to btrace_thread_flags from btrace_thread_flag.
4718 (record_btrace_cancel_resume, record_btrace_step_thread): Change
4719 local's type to btrace_thread_flags from btrace_thread_flag. Add
4722 2020-09-14 Pedro Alves <pedro@palves.net>
4724 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
4725 * gdbtypes.c (address_space_name_to_int): Rename to ...
4726 (address_space_name_to_type_instance_flags): ... this.
4727 (address_space_int_to_name): Rename to ...
4728 (address_space_type_instance_flags_to_name): ... this.
4729 * gdbtypes.h (address_space_name_to_int): Rename to ...
4730 (address_space_name_to_type_instance_flags): ... this.
4731 (address_space_int_to_name): Rename to ...
4732 (address_space_type_instance_flags_to_name): ... this.
4733 * type-stack.c (type_stack::insert): Adjust to rename.
4734 * type-stack.h (type_stack::insert): Likewise.
4736 2020-09-14 Pedro Alves <pedro@palves.net>
4737 Andrew Burgess <andrew.burgess@embecosm.com>
4739 * avr-tdep.c (avr_address_class_type_flags): Return
4740 type_instance_flags.
4741 (avr_address_class_type_flags_to_name): Take a
4742 type_instance_flags.
4743 (avr_address_class_name_to_type_flags): Return bool and take a
4744 type_instance_flags.
4745 * d-lang.c (build_d_types): Use type::set_instance_flags.
4746 * ft32-tdep.c (ft32_address_class_type_flags): Return
4747 type_instance_flags.
4748 (ft32_address_class_type_flags_to_name): Take a
4749 type_instance_flags.
4750 (ft32_address_class_name_to_type_flags): Return bool and take a
4751 type_instance_flags.
4752 (ft32_gdbarch_init): Use type::set_instance_flags.
4753 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
4754 * gdbarch.h, gdbarch.c: Regenerate.
4755 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
4756 (address_class_name_to_type_flags): Use type_instance_flags and
4758 * gdbtypes.c (address_space_name_to_int)
4759 (address_space_int_to_name, make_qualified_type): Use
4760 type_instance_flags.
4761 (make_qualified_type): Use type_instance_flags and
4762 type::set_instance_flags.
4763 (make_type_with_address_space, make_cv_type, make_vector_type)
4764 (check_typedef): Use type_instance_flags.
4765 (recursive_dump_type): Cast type_instance_flags to unsigned for
4767 (copy_type_recursive): Use type::set_instance_flags.
4768 (gdbtypes_post_init): Use type::set_instance_flags.
4769 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
4770 <m_instance_flags>: ... this.
4771 <instance_flags, set_instance_flags>: New methods.
4772 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
4773 (SET_TYPE_INSTANCE_FLAGS): New.
4774 (address_space_name_to_int, address_space_int_to_name)
4775 (make_type_with_address_space): Pass flags using
4776 type_instance_flags instead of int.
4777 * stabsread.c (cleanup_undefined_types_noname): Use
4778 type::set_instance_flags.
4779 * s390-tdep.c (s390_address_class_type_flags): Return
4780 type_instance_flags.
4781 (s390_address_class_type_flags_to_name): Take a
4782 type_instance_flags.
4783 (s390_address_class_name_to_type_flags): Return bool and take a
4784 type_instance_flags.
4785 * type-stack.c (type_stack::follow_types): Use
4786 type_instance_flags.
4787 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
4789 2020-09-14 Tom Tromey <tromey@adacore.com>
4791 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
4792 * x86-tdep.c (x86_is_thunk_register_name)
4793 (x86_in_indirect_branch_thunk): Update.
4794 * sparc64-tdep.c (sparc64_fpu_register_names)
4795 (sparc64_cp0_register_names, sparc64_register_names)
4796 (sparc64_pseudo_register_names): Now const.
4797 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
4798 cp0_registers_num>: Now const.
4799 * sparc-tdep.c (sparc_core_register_names)
4800 (sparc32_fpu_register_names, sparc32_cp0_register_names)
4801 (sparc32_pseudo_register_names): Now const.
4802 (validate_tdesc_registers): Update.
4803 * rust-lang.c (rust_extensions): Now const.
4804 * p-lang.c (p_extensions): Now const.
4805 * objc-lang.c (objc_extensions): Now const.
4806 * nto-tdep.c (nto_thread_state_str): Now const.
4807 * moxie-tdep.c (moxie_register_names): Now const.
4808 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
4810 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
4811 (mips_linux_reg_names): Now const.
4812 (mips_gdbarch_init): Update.
4813 * microblaze-tdep.c (microblaze_register_names): Now const.
4814 * m68k-tdep.c (m68k_register_names): Now const.
4815 * m32r-tdep.c (m32r_register_names): Now const.
4816 * ia64-tdep.c (ia64_register_names): Now const.
4817 * i386-tdep.h (struct gdbarch_tdep) <register_names,
4818 ymmh_register_names, ymm16h_regnum, mpx_register_names,
4819 k_register_names, zmmh_register_names, xmm_avx512_register_names,
4820 ymm_avx512_register_names, pkeys_register_names>: Now const.
4821 * i386-tdep.c (i386_register_names, i386_zmm_names)
4822 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
4823 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
4824 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
4825 * f-lang.c (f_extensions): Now const.
4826 * d-lang.c (d_extensions): Now const.
4827 * csky-tdep.c (csky_register_names): Now const.
4828 * charset.c (default_charset_names, charset_enum): Now const.
4829 (_initialize_charset): Update.
4830 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
4832 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
4833 (bsd_uthread_solib_loaded): Update.
4834 (bsd_uthread_state): Now const.
4835 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
4836 (amd64_ymm_avx512_names, amd64_ymmh_names)
4837 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
4838 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
4839 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
4840 (amd64_dword_names): Now const.
4841 * agent.c (can_use_agent_enum): Now const.
4842 * ada-tasks.c (task_states, long_task_states): Now const.
4843 * ada-lang.c (known_runtime_file_name_patterns)
4844 (known_auxiliary_function_name_patterns, attribute_names)
4845 (standard_exc, ada_extensions): Now const.
4847 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4849 * bcache.h (struct bcache) <bcache>: Remove constructor.
4850 <m_hash_function, m_compare_function>: Remove.
4851 <~bcache>: Make virtual.
4852 <compare>: Remove static method, introduce virtual method.
4853 <default_hash>: Remove.
4854 <hash>: New virtual method.
4855 * bcache.c (bcache::expand_hash_table): Update.
4856 (bcache::insert): Update.
4857 (bcache::hash): New.
4858 (bcache::compare): Update comment and parameter names.
4859 * gdbtypes.c (types_deeply_equal): Update.
4860 * psymtab.h (struct psymbol_bcache): New struct.
4861 (class psymtab_storage) <psymtab_storage>: Make default.
4862 <psymbol_cache>: Change type to psymbol_bcache.
4863 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
4864 (psymbol_hash): Change to...
4865 (psymbol_bcache::hash): ... this.
4866 (psymbol_compare): Change to...
4867 (psymbol_bcache::compare): ... this.
4869 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4871 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
4872 checking for initial lwp.
4874 2020-09-14 Tom Tromey <tromey@adacore.com>
4876 * m68k-tdep.c (m68k_extract_return_value): Use
4877 pointer_result_regnum.
4878 (m68k_store_return_value): Likewise.
4879 (m68k_reg_struct_return_p): Handle vectors and arrays.
4880 (m68k_return_value): Handle arrays.
4881 (m68k_svr4_return_value): Fix single-element aggregate handling.
4882 Handle long double. Adjust for embedded ABI.
4883 (m68k_svr4_init_abi): Set pointer_result_regnum.
4884 (m68k_embedded_init_abi): New function.
4885 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
4886 (m68k_osabi_sniffer): New function.
4887 (_initialize_m68k_tdep): Register osabi sniffer.
4888 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
4891 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4893 * xml-support.c (xml_fetch_content_from_file): Replace xfree
4894 with gdb::unique_xmalloc_ptr<char>.
4896 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4898 * xml-support.h (xml_fetch_another): Change type to be a
4900 (xml_process_xincludes): Remove baton parameter.
4901 (xml_fetch_content_from_file): Change baton parameter to
4903 * xml-support.c (struct xinclude_parsing_data)
4904 <xinclude_parsing_data>: Remove baton parameter.
4905 <fetcher_baton>: Remove.
4906 (xinclude_start_include): Adjust.
4907 (xml_process_xincludes): Adjust.
4908 (xml_fetch_content_from_file): Replace baton parameter with
4910 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
4911 (xml_init_syscalls_info): Use a lambda.
4912 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
4913 (file_read_description_xml): Use a lambda.
4914 (fetch_available_features_from_target): Change baton parameter
4916 (target_read_description_xml): Use a lambda.
4917 (target_fetch_description_xml): Use a lambda.
4918 (string_read_description_xml): Update.
4920 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4922 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
4923 uses with type::endianity_is_not_default.
4925 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4927 * gdbtypes.h (struct type) <endianity_is_not_default,
4928 set_endianity_is_not_default>: New methods.
4929 (TYPE_ENDIANITY_NOT_DEFAULT): Use
4930 type::endianity_is_not_default, change all write call sites to
4931 use type::set_endianity_is_not_default.
4933 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4935 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
4936 uses with type::is_fixed_instance.
4938 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4940 * gdbtypes.h (struct type) <is_fixed_instance,
4941 set_is_fixed_instance>: New methods.
4942 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
4943 write call sites to use type::set_is_fixed_instance.
4945 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4947 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
4948 uses with type::is_gnu_ifunc.
4950 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4952 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
4953 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
4954 use type::set_is_gnu_ifunc.
4956 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4958 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
4959 uses with type::stub_is_supported.
4961 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4963 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
4964 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
4965 use type::set_stub_is_supported.
4967 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4969 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
4970 uses with type::is_vector.
4972 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4974 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
4975 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
4976 use type::set_is_vector.
4978 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4980 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
4981 uses with type::has_varargs.
4983 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4985 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
4986 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
4987 use type::set_has_varargs.
4989 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4991 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4992 uses with type::is_prototyped.
4994 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4996 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
4998 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
4999 call sites to use type::set_is_prototyped.
5001 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5003 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
5004 uses with type::target_is_stub.
5006 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5008 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
5010 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
5011 sites to use type::set_target_is_stub.
5013 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5015 * gdbtypes.h (TYPE_STUB): Remove, replace all
5016 uses with type::is_stub.
5018 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5020 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
5021 (TYPE_STUB): Use type::is_stub, change all write call sites to
5022 use type::set_is_stub.
5024 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5026 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
5027 type::has_no_signedness.
5029 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5031 * gdbtypes.h (struct type) <has_no_signedness,
5032 set_has_no_signedness>: New methods.
5033 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
5034 call sites to use type::set_has_no_signedness.
5036 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5038 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
5041 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5043 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
5045 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
5046 sites to use type::set_is_unsigned.
5048 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
5049 Adam Renquinha <arenquinha@cimeq.qc.ca>
5051 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
5052 pointer and stack frame offset when unwinding.
5054 2020-09-13 Pedro Alves <pedro@palves.net>
5056 * NEWS: Document "-break-insert --qualified".
5057 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
5059 2020-09-13 Pedro Alves <pedro@palves.net>
5061 * linespec.c (classify_mtype, compare_msyms): Delete.
5062 (search_minsyms_for_name): Remove classification logic. Instead
5063 filter out trampoline symbols if we also found an external
5064 function of the same name.
5066 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5068 * NEWS: Create a new section for the next release branch.
5069 Rename the section of the current branch, now that it has
5072 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5074 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
5075 * version.in: Bump version to 11.0.50.DATE-git.
5077 2020-09-12 Joel Brobecker <brobecker@adacore.com>
5079 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
5081 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
5082 Felix Willgerodt <Felix.Willgerodt@intel.com>
5084 * gdbarch.sh: Added bfloat16 type.
5085 * gdbarch.c: Regenerated.
5086 * gdbarch.h: Regenerated.
5087 * gdbtypes.c (floatformats_bfloat16): New struct.
5088 (gdbtypes_post_init): Add builtin_bfloat16.
5089 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
5090 (floatformats_bfloat16): New struct.
5091 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
5092 (i386_ymm_type): Add field "v16_bfloat16"
5093 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
5094 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
5095 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
5096 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
5097 * features/i386/64bit-avx512.xml: Add bfloat16 type.
5098 * features/i386/64bit-avx512.c: Regenerated.
5099 * features/i386/64bit-sse.xml: Add bfloat16 type.
5100 * features/i386/64bit-sse.c: Regenerated.
5102 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
5104 * i386-tdep.c (i386_zmm_type): Fix field names.
5105 (i386_ymm_type): Fix field names.
5107 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5109 * breakpoint.c: Fix typo in the help message of the
5110 "set breakpoint condition-evaluation" command.
5112 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5114 * nbsd-nat.c: Include "nat/netbsd-nat.h".
5115 * (nbsd_nat_target::pid_to_exec_file)
5116 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
5117 (nbsd_nat_target::post_startup_inferior)
5118 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
5119 (nbsd_add_threads): Switch local code to common gdb/nat functions.
5120 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
5121 * (nbsd_thread_lister): Remove.
5123 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5125 * fork-inferior.c (startup_inferior): Avoid double free.
5127 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5129 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
5130 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
5132 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5134 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
5135 * netbsd-nat.c: Include <sys/ptrace.h>.
5136 * (netbsd_nat::enable_proc_events): Add.
5138 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5140 * netbsd-nat.h: Include "gdbsupport/function-view.h".
5141 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5142 (netbsd_nat::for_each_thread): Add.
5143 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
5144 "gdbsupport/common-debug.h".
5145 * (netbsd_nat::netbsd_thread_lister)
5146 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5147 (netbsd_nat::for_each_thread): Add.
5149 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5151 * netbsd-nat.h: Include <unistd.h>.
5152 * (netbsd_nat::pid_to_exec_file): Add.
5153 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
5154 * (netbsd_nat::pid_to_exec_file) Add.
5156 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5158 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
5160 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5162 * netbsd-nat.h: New file.
5163 * netbsd-nat.c: Likewise.
5165 2020-09-09 Tom Tromey <tromey@adacore.com>
5167 * ada-lang.c (remove_extra_symbols): Do not increment when
5170 2020-09-08 Tom Tromey <tromey@adacore.com>
5172 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
5174 2020-09-08 Tom Tromey <tromey@adacore.com>
5177 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
5178 (gdb_bfd_init_data): New function.
5179 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
5181 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5183 * infrun.c (fetch_inferior_event): Use
5184 `switch_to_target_no_thread` to switch the target.
5186 2020-09-06 Tom Tromey <tom@tromey.com>
5188 * symfile.h (dwarf2_free_objfile): Don't declare.
5190 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5192 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
5193 to match 16 byte real/complex type generated by Flang compiler.
5195 2020-09-03 Tom de Vries <tdevries@suse.de>
5198 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
5199 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
5201 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
5203 * maint.c (index_digits): New function.
5204 (struct maint_print_section_data): Remove.
5205 (print_bfd_section_info): Remove print_data parameter, add arg
5207 (print_objfile_section_info): Likewise.
5208 (print_bfd_section_info_maybe_relocated): Likewise (plus
5210 (maintenance_info_sections): Adjust calls.
5212 2020-09-02 Tom Tromey <tromey@adacore.com>
5214 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
5216 (ada_varobj_adjust_for_child_access): Special-case null pointers.
5218 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
5220 * bcache.h (struct bcache) <insert>: Change type of `added` to
5222 * bcache.c (bcache::insert): Likewise.
5223 * gdbtypes.c (check_types_worklist): Adjust.
5224 * psymtab.c (add_psymbol_to_bcache): Adjust.
5226 2020-08-31 Kevin Buettner <kevinb@redhat.com>
5228 * corelow.c (unordered_set): Include.
5229 (class core_target): Add field 'm_core_unavailable_mappings'.
5230 (core_target::build_file_mappings): Print only one warning
5231 per inaccessible file. Add unavailable/broken mappings
5232 to m_core_unavailable_mappings.
5233 (core_target::xfer_partial): Call...
5234 (core_target::xfer_memory_via_mappings): New method.
5236 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5238 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
5241 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5243 * dwarf2/read.c (struct field_info): Fix indentation.
5245 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5247 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
5248 ordering in comment.
5249 * frame.c (frame_id_eq): Fix indentation.
5251 2020-08-31 Scott Linder <scott@scottlinder.com>
5252 Simon Marchi <simon.marchi@efficios.com>
5254 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
5255 inline frame ids in outer frame.
5257 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5259 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
5260 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
5261 (outer_frame_id): Use FID_STACK_OUTER instead of
5263 (frame_id_p): Don't check for outer_frame_id.
5265 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5267 * frame-unwind.c (frame_unwind_got_optimized): Don't set
5268 regnum/frame in value. Call allocate_value_lazy.
5269 * frame.c (frame_unwind_register_value): Use
5270 val_print_not_saved.
5272 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5274 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
5276 2020-08-29 Pedro Alves <pedro@palves.net>
5278 * progspace.c (print_program_space): Use all_inferiors. Switch to
5279 the inferior before calling target_pid_to_str.
5281 2020-08-28 Tom Tromey <tom@tromey.com>
5283 * xcoffread.c (xcoff_end_psymtab): Update comment.
5284 * dbxread.c (dbx_end_psymtab): Update comment.
5286 2020-08-28 Tom de Vries <tdevries@suse.de>
5289 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
5291 (create_breakpoint): Same.
5292 (base_breakpoint_decode_location): Same.
5293 (bkpt_create_sals_from_location): Same.
5294 (bkpt_decode_location): Same.
5295 (bkpt_probe_create_sals_from_location): Same.
5296 (bkpt_probe_decode_location): Same.
5297 (tracepoint_create_sals_from_location): Same.
5298 (tracepoint_decode_location): Same.
5299 (tracepoint_probe_decode_location): Same.
5300 (strace_marker_create_sals_from_location): Same.
5301 (strace_marker_decode_location): Same.
5302 (create_sals_from_location_default): Same.
5303 (decode_location_default): Same.
5304 * breakpoint.h (struct breakpoint_ops): Same.
5305 (create_breakpoint): Same.
5306 * linespec.h (decode_line_full): Same.
5307 * linespec.c (decode_line_full): Same. Throw error if
5308 result.size () == 0.
5310 2020-08-27 Pedro Alves <pedro@palves.net>
5313 * breakpoint.c (until_break_fsm) <location_breakpoint,
5314 caller_breakpoint>: Delete fields.
5315 <breakpoints>: New field.
5316 <until_break_fsm>: Adjust to save a breakpoint vector instead of
5317 two individual breakpoints.
5318 (until_break_fsm::should_stop): Loop over breakpoints in the
5320 (until_break_fsm::clean_up): Adjust to clear the breakpoints
5322 (until_break_command): Handle location expanding into multiple
5325 2020-08-27 Pedro Alves <pedro@palves.net>
5328 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
5329 bp_until breakpoints user-specified locations. Update intro
5332 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
5334 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
5335 gdb_bfd_sections): New.
5336 * maint.c (print_bfd_section_info): Change param type to
5337 maint_print_section_data.
5338 (print_objfile_section_info): Likewise.
5339 (print_bfd_section_info_maybe_relocated): Likewise.
5340 (maintenance_info_sections): Use gdb_bfd_sections.
5342 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5344 * MAINTAINERS: Add ARC target and maintainer.
5346 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
5348 * configure.tgt: ARC support for GNU/Linux.
5349 * Makefile.in (ALL_TARGET_OBJS): Likewise.
5350 * arc-linux-tdep.c: New file.
5351 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
5352 * arc-tdep.c (arc_write_pc): Use it.
5354 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5356 * arc-tdep.c (arc_check_for_hardware_loop): New.
5357 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
5359 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5361 * arc-tdep.h: Include "gdbarch.h".
5363 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5366 (arc_gdbarch_features): New class to stir the selection of target XML.
5367 (arc_create_target_description): Use FEATURES to choose XML target.
5368 (arc_lookup_target_description): Use arc_create_target_description
5369 to create _new_ target descriptions or return the already created
5370 ones if the FEATURES is the same.
5371 * arch/arc.c: Implementation of prototypes described above.
5372 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
5373 (arc_gdbarch_features_init): Initialize the FEATURES struct.
5374 * arc-tdep.c (*_feature_name): Make feature names consistent.
5375 (arc_register_feature): A new struct to hold information about
5376 registers of a particular target/feature.
5377 (arc_check_tdesc_feature): Check if XML provides registers in
5378 compliance with ARC_REGISTER_FEATURE structs.
5379 (arc_update_acc_reg_names): Add aliases for r58 and r59.
5380 (determine_*_reg_feature_set): Which feature name to look for.
5381 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
5382 (mach_type_to_arc_isa): Convert from a set of binutils machine types
5383 to expected ISA enums to be used in arc_gdbarch_features structs.
5384 * features/Makefile (FEATURE_XMLFILES): Add new files.
5385 * gdb/features/arc/v1-aux.c: New file.
5386 * gdb/features/arc/v1-aux.xml: Likewise.
5387 * gdb/features/arc/v1-core.c: Likewise.
5388 * gdb/features/arc/v1-core.xml: Likewise.
5389 * gdb/features/arc/v2-aux.c: Likewise.
5390 * gdb/features/arc/v2-aux.xml: Likewise.
5391 * gdb/features/arc/v2-core.c: Likewise.
5392 * gdb/features/arc/v2-core.xml: Likewise.
5393 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
5395 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
5396 Andrew Burgess <andrew.burgess@embecosm.com>
5399 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
5400 an assert. Remove single element array indexing pattern as the
5401 MULTI_SUBSCRIPT support will handle this case too.
5403 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
5405 * value.h (valprint_check_validity): Move declaration from
5407 * valprint.h (valprint_check_validity): ... to here.
5409 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
5411 * debug.h: New file.
5412 * debug.c (debug_prefixed_vprintf): New function.
5413 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
5414 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
5416 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
5418 * infrun.h (infrun_debug_printf_1): New function declaration.
5419 (infrun_debug_printf): New macro.
5420 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
5422 (infrun_debug_printf): New function.
5423 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
5424 (handle_jit_event): Likewise.
5426 2020-08-21 Mark Wielaard <mark@klomp.org>
5428 * ada-lex.l: Extend register warnings diagnostics comment for g++.
5430 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
5432 * frame.c (enum class frame_id_status): New.
5433 (struct frame_info) <this_id::p>: Change type to frame_id_status.
5434 (fprintf_frame): Update.
5435 (compute_frame_id): Set frame id status to "computing" on entry.
5436 Set it back to "not_computed" on failure and to "computed" on
5438 (get_frame_id): Assert the frame id is not being computed.
5439 (create_sentinel_frame): Use frame_id_status::COMPUTED.
5440 (create_new_frame): Likewise.
5441 (frame_cleanup_after_sniffer): Update assert.
5443 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5445 * regcache.c (pid_ptid_regcache_map): New type.
5446 (target_ptid_regcache_map): Remove.
5447 (target_pid_ptid_regcache_map): New type.
5448 (regcaches): Change type to target_pid_ptid_regcache_map.
5449 (get_thread_arch_aspace_regcache): Update.
5450 (regcache_thread_ptid_changed): Update, handle pid-like ptid
5452 (regcaches_size): Update.
5453 (regcache_count): Update.
5454 (registers_changed_ptid_target_pid_test): New.
5455 (_initialize_regcache): Register new test.
5457 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5459 * regcache.c (regcache_count): New.
5460 (struct regcache_test_data): New.
5461 (regcache_test_data_up): New.
5462 (populate_regcaches_for_test): New.
5463 (regcaches_test): Remove.
5464 (get_thread_arch_aspace_regcache_test): New.
5465 (registers_changed_ptid_all_test): New.
5466 (registers_changed_ptid_target_test): New.
5467 (registers_changed_ptid_target_ptid_test): New.
5468 (regcache_thread_ptid_changed): Remove regcache_count lambda.
5469 (_initialize_regcache): Register new tests.
5471 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5473 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
5474 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
5475 gdbarch and aspace parameter. Use current inferior's aspace.
5476 Validate regcache's arch value.
5477 (regcaches_test): Update.
5479 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5481 * regcache.c (regcaches_test): Call registers_changed.
5483 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5485 * infrun.c (process_event_stop_test): Fix typo "breapoint".
5487 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5489 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
5490 to find the end of prologue for flang compiled binaries.
5491 * arm-tdep.c (arm_skip_prologue): Likewise.
5492 * i386-tdep.c (i386_skip_prologue): Likewise.
5493 * producer.c (producer_is_llvm): New function.
5494 (producer_parsing_tests): Added new tests for clang/flang.
5495 * producer.h (producer_is_llvm): New declaration.
5497 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
5499 * linux-nat.c (linux_nat_debug_printf): New function.
5500 (linux_nat_debug_printf_1): New macro. Use throughout the file.
5502 2020-08-18 Aaron Merey <amerey@redhat.com>
5504 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
5505 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
5506 (CLIBS): Add DEBUGINFOD_LIBS.
5508 2020-08-17 Sergei Trofimovich <siarheit@google.com>
5510 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
5513 2020-08-17 Tom Tromey <tromey@adacore.com>
5515 * ada-varobj.c (ada_varobj_decode_var): Handle case where
5516 ada_get_decoded_value returns NULL.
5518 2020-08-17 Tom Tromey <tromey@adacore.com>
5520 * python/py-inferior.c (infpy_search_memory): Use
5521 gdb_py_object_from_ulongest.
5522 * python/py-infevents.c (create_inferior_call_event_object)
5523 (create_memory_changed_event_object): Use
5524 gdb_py_object_from_ulongest.
5525 * python/py-linetable.c (ltpy_entry_get_pc): Use
5526 gdb_py_object_from_ulongest.
5528 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5530 * loc.c (class symbol_needs_eval_context): Fix indentation.
5532 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5534 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
5537 2020-08-17 Tom de Vries <tdevries@suse.de>
5540 * gdbtypes.c (dump_dynamic_prop): New function.
5541 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
5543 2020-08-15 Tom de Vries <tdevries@suse.de>
5546 * stack.c (print_frame_args): Temporarily set the selected
5547 frame to FRAME while printing the frame's arguments.
5549 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5551 PR breakpoints/26385
5552 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
5553 Always clear watchpoint with PTRACE_SET_DEBUGREG.
5555 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5557 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
5558 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
5559 and >= to check return value instead of == -1 and != -1.
5561 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
5563 * utils.h (class gdb_argv) <as_array_view>: New method.
5564 * utils.c (gdb_argv_as_array_view_test): New.
5565 (_initialize_utils): Register selftest.
5566 * maint.c (maintenance_selftest): Use the new method.
5568 2020-08-13 Kamil Rytarowski <n54@gmx.com>
5570 * target.h (supports_dumpcore, dumpcore): New
5571 function declarations.
5572 * target.c (supports_dumpcore, dumpcore): New
5574 * target-delegates.c: Rebuild.
5575 * gcore.c (gcore_command): Use target_supports_dumpcore ()
5576 and target_dumpcore ().
5578 2020-08-13 Aaron Merey <amerey@redhat.com>
5580 * debuginfod-support.c: Replace global variables with user_data.
5582 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
5584 * maint.c (maintenance_selftest): Split args and pass array_view
5587 2020-08-12 Luis Machado <luis.machado@linaro.org>
5589 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
5591 Use %s and pulongest to print the length.
5593 2020-08-12 Pedro Alves <palves@redhat.com>
5595 * NEWS: Move "Multi-target debugging support" item to the
5596 "Changes since GDB 9" section.
5598 2020-08-12 Pedro Alves <palves@redhat.com>
5601 * progspace.c (program_space::remove_objfile): Invalidate the
5604 2020-08-11 Tom de Vries <tdevries@suse.de>
5606 * MAINTAINERS: Mark ms1 as deleted.
5608 2020-08-10 Luis Machado <luis.machado@linaro.org>
5612 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
5614 (aarch64_analyze_prologue_test): Add more unit tests to exercise
5615 movz/str/stur/stp skipping behavior.
5617 2020-08-10 Luis Machado <luis.machado@linaro.org>
5619 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
5620 struct user_sve_header instead of struct sve_context.
5622 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
5624 * read.h (dwarf2_fetch_die_loc_sect_off,
5625 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
5626 `void *` parameter with function_view.
5627 * read.c (dwarf2_fetch_die_loc_sect_off,
5628 dwarf2_fetch_die_loc_cu_off): Likewise.
5629 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
5630 (per_cu_dwarf_call): Adjust.
5631 (get_frame_address_in_block_wrapper): Remove.
5632 (indirect_synthetic_pointer): Adjust.
5633 (get_ax_pc): Remove.
5634 (dwarf2_compile_expr_to_ax): Adjust.
5636 2020-08-08 Tom de Vries <tdevries@suse.de>
5639 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
5641 * regcache.c (get_thread_arch_aspace_regcache): Same.
5643 2020-08-07 Tom Tromey <tromey@adacore.com>
5645 * ravenscar-thread.c
5646 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
5648 (ravenscar_thread_target::wait): Check
5649 runtime_initialized.
5650 (ravenscar_thread_target::prepare_to_store)
5651 (ravenscar_thread_target::stopped_by_sw_breakpoint)
5652 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5653 (ravenscar_thread_target::stopped_by_watchpoint)
5654 (ravenscar_thread_target::stopped_data_address)
5655 (ravenscar_thread_target::core_of_thread): Use
5656 scoped_restore_current_thread and
5657 set_base_thread_from_ravenscar_task.
5659 2020-08-07 Tom Tromey <tromey@adacore.com>
5661 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
5663 2020-08-07 Tom Tromey <tromey@adacore.com>
5665 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
5666 update_inferior_ptid before update_thread_list.
5667 (temporarily_change_regcache_ptid): New class.
5668 (ravenscar_thread_target::fetch_registers)
5669 (ravenscar_thread_target::store_registers)
5670 (ravenscar_thread_target::prepare_to_store): Use base thread when
5671 forwarding operation.
5673 2020-08-07 Tom Tromey <tromey@adacore.com>
5675 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
5678 2020-08-07 Tom Tromey <tromey@adacore.com>
5680 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
5682 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
5684 (ravenscar_thread_target::add_thread): Rename from
5685 ravenscar_add_thread.
5686 (ravenscar_thread_target::update_thread_list): Use a lambda.
5687 (ravenscar_thread_target::xfer_partial): New method.
5689 2020-08-07 Tom Tromey <tromey@adacore.com>
5691 * ada-lang.h (ada_task_list_iterator_ftype): Now a
5693 (iterate_over_live_ada_tasks): Change type of argument.
5694 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
5697 2020-08-07 Tom Tromey <tromey@adacore.com>
5699 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
5701 (ravenscar_thread_target::extra_thread_info): Remove.
5702 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
5703 defer to target beneath for non-Ravenscar threads.
5705 2020-08-07 Tom Tromey <tromey@adacore.com>
5707 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
5708 get_base_thread_from_ravenscar_task>: Now methods.
5709 <m_cpu_map>: New member.
5710 (ravenscar_thread_target::get_thread_base_cpu): Rename from
5711 ravenscar_get_thread_base_cpu. Check m_cpu_map.
5712 (ravenscar_thread_target::task_is_currently_active): Update.
5713 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
5715 (ravenscar_thread_target::add_active_thread): Put initial thread
5718 2020-08-07 Tom Tromey <tromey@adacore.com>
5720 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
5723 2020-08-07 Tom Tromey <tromey@adacore.com>
5725 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
5726 runtime_initialized.
5728 2020-08-07 Tom Tromey <tromey@adacore.com>
5730 * ravenscar-thread.c (ravenscar_thread_target): Don't call
5732 (ravenscar_thread_target::add_active_thread): Now public.
5733 (ravenscar_inferior_created): Call add_active_thread after pushing
5736 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
5738 * regcache.c (ptid_regcache_map): New type.
5739 (target_ptid_regcache_map): New type.
5740 (regcaches): Change type to target_ptid_regcache_map.
5741 (get_thread_arch_aspace_regcache): Update to regcaches' new
5743 (regcache_thread_ptid_changed): Likewise.
5744 (registers_changed_ptid): Likewise.
5745 (regcaches_size): Likewise.
5746 (regcaches_test): Update.
5747 (regcache_thread_ptid_changed): Update.
5748 * regcache.h (regcache_up): New type.
5749 * gdbsupport/ptid.h (hash_ptid): New struct.
5751 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
5753 * observable.h (thread_ptid_changed): Add parameter
5754 `process_stratum_target *`.
5755 * infrun.c (infrun_thread_ptid_changed): Add parameter
5756 `process_stratum_target *` and use it.
5757 (selftests): New namespace.
5758 (infrun_thread_ptid_changed): New function.
5759 (_initialize_infrun): Register selftest.
5760 * regcache.c (regcache_thread_ptid_changed): Add parameter
5761 `process_stratum_target *` and use it.
5762 (regcache_thread_ptid_changed): New function.
5763 (_initialize_regcache): Register selftest.
5764 * thread.c (thread_change_ptid): Pass target to
5765 thread_ptid_changed observable.
5767 2020-08-06 Caroline Tice <cmtice@google.com>
5769 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
5770 (struct dwp_sections): Update field comments. Add loclists and
5772 (struct virtual_v2_dwo_sections): Rename struct to
5773 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
5774 size & offset fields for loclists and rnglists.
5775 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
5776 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
5777 skipping dummy type units.
5778 (create_dwp_hash_table): Update the large comment above the function to
5779 discuss Version 5 DWP files as well, with references. Update all the
5780 version checks in the function to check for version 5 as well. Add new
5781 section at the end to create dwp hash table for version 5.
5782 (create_dwp_v2_section): Rename function to
5783 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
5784 Add V5 to error message text.
5785 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
5786 into calls to create_dwp_v2_or_v5_section.
5787 (create_dwo_unit_in_dwp_v5): New function.
5788 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
5789 check for version2; add else clause to handle version 5.
5790 (open_and_init_dwo_file): Add code to check dwarf version & only call
5791 create_debug_types_hash_table (with sections.types) if version is not 5;
5792 else call create_debug_type_hash_table, with sections.info.
5793 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
5795 (dwarf2_locate_v5_dwp_sections): New function.
5796 (open_and_init_dwp_file): Add else-if clause for version 5 to call
5797 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
5799 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
5801 * regcache.h (class regcache): Remove friend
5802 registers_changed_ptid.
5803 <regcache_thread_ptid_changed>: Remove.
5804 <regcaches>: Remove.
5805 * regcache.c (regcache::regcaches): Rename to...
5806 (regcaches): ... this. Make static.
5807 (get_thread_arch_aspace_regcache): Update.
5808 (regcache::regcache_thread_ptid_changed): Rename to...
5809 (regcache_thread_ptid_changed): ... this. Update.
5810 (class regcache_access): Remove.
5811 (regcaches_test): Update.
5812 (_initialize_regcache): Update.
5813 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
5816 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
5818 * regcache.h (class regcache) <current_regcache>: Rename to...
5819 <regcaches>: ... this. Move doc here.
5820 * regcache.c (regcache::current_regcache) Rename to...
5821 (regcache::regcaches): ... this. Move doc to header.
5822 (get_thread_arch_aspace_regcache): Update.
5823 (regcache::regcache_thread_ptid_changed): Update.
5824 (registers_changed_ptid): Update.
5825 (class regcache_access) <current_regcache_size>: Rename to...
5826 <regcaches_size>: ... this.
5827 (current_regcache_test): Rename to...
5828 (regcaches_test): ... this.
5829 (_initialize_regcache): Update.
5831 2020-08-06 Victor Collod <vcollod@nvidia.com>
5833 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
5835 2020-08-05 Kevin Buettner <kevinb@redhat.com>
5837 * corelow.c (core_target::build_file_mappings): Don't output
5838 null pathname in warning.
5840 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
5842 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
5843 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
5844 gdb.dwarf2/dw2-single-line-discriminators.exp,
5845 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
5847 2020-08-05 Tom Tromey <tromey@adacore.com>
5850 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
5851 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
5852 Fix off-by-one and type size errors in ordinary case.
5854 2020-08-05 Tom de Vries <tdevries@suse.de>
5856 * gdbtypes.c (type_not_allocated, type_not_associated): Use
5857 "prop->const_val () == 0" instead of "prop->const_val () != 0".
5859 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
5861 * frame.h (frame_id_p): Return bool.
5862 (frame_id_artificial_p): Return bool.
5863 (frame_id_eq): Return bool.
5864 (has_stack_frames): Return bool.
5865 (get_selected_frame): Fix typo in comment.
5866 (get_frame_pc_if_available): Return bool.
5867 (get_frame_address_in_block_if_available): Return bool.
5868 (get_frame_func_if_available): Return bool.
5869 (read_frame_register_unsigned): Return bool.
5870 (get_frame_register_bytes): Return bool.
5871 (safe_frame_unwind_memory): Return bool.
5872 (deprecated_frame_register_read): Return bool.
5873 (frame_unwinder_is): Return bool.
5874 * frame.c (struct frame_info) <prev_arch::p>: Change type to
5876 <this_id::p>: Likewise.
5878 (frame_stash_add): Return bool.
5879 (get_frame_id): Use bool.
5880 (frame_id_build_special) Use bool.
5881 (frame_id_build_unavailable_stack): Use bool.
5882 (frame_id_build): Use bool.
5883 (frame_id_p): Return bool, use true/false instead of 1/0.
5884 (frame_id_artificial_p): Likewise.
5885 (frame_id_eq): Likewise.
5886 (frame_id_inner): Likewise.
5887 (get_frame_func_if_available): Likewise.
5888 (read_frame_register_unsigned): Likewise.
5889 (deprecated_frame_register_read): Likewise.
5890 (get_frame_register_bytes): Likewise.
5891 (has_stack_frames): Likewise.
5892 (inside_main_func): Likewise.
5893 (inside_entry_func): Likewise.
5894 (get_frame_pc_if_available): Likewise.
5895 (get_frame_address_in_block_if_available): Likewise.
5896 (frame_unwinder_is): Likewise.
5897 (safe_frame_unwind_memory): Likewise.
5898 (frame_unwind_arch): Likewise.
5900 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
5902 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
5903 type to cached_copy_status.
5904 (fprintf_frame): Adjust.
5905 (get_frame_func_if_available): Adjust.
5906 (frame_cleanup_after_sniffer): Adjust.
5908 2020-08-04 Mark Wielaard <mark@klomp.org>
5910 * MAINTAINERS (Write After Approval): Update email address.
5912 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5914 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
5915 dynamic_prop::const_val.
5917 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5919 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
5922 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5924 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
5926 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
5928 * configure.tgt: Set gdb_sim for bpf-*-* targets.
5930 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
5931 Jose E. Marchesi <jose.marchesi@oracle.com>
5933 * configure.tgt: Add entry for bpf-*-*.
5934 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
5935 (ALLDEPFILES): Add bpf-tdep.c.
5936 * bpf-tdep.c: New file.
5937 * MAINTAINERS: Add bpf target and maintainer.
5938 * NEWS: Mention the support for the new target.
5940 2020-08-04 Tom de Vries <tdevries@suse.de>
5943 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
5946 2020-08-03 John Baldwin <jhb@FreeBSD.org>
5948 * syscalls/freebsd.xml: Regenerate.
5950 2020-08-03 John Baldwin <jhb@FreeBSD.org>
5952 * syscalls/update-freebsd.sh: Fix usage and year range.
5954 2020-08-03 Tom de Vries <tdevries@suse.de>
5957 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
5958 DW_LNE_lo_user/DW_LNE_hi_user range.
5960 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
5963 * ada-lang.c (ada_modulus): Return 0 if property is not of const
5966 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5968 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
5970 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5972 * breakpoint.c (set_breakpoint_condition): Update the condition
5973 expressions after checking that the input condition string parses
5974 successfully and does not contain junk at the end.
5976 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5978 * breakpoint.c (set_breakpoint_condition): Update the
5979 condition string after parsing the new condition successfully.
5981 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5983 * proc-api.c (_STRUCTURED_PROC): Don't define.
5984 * proc-events.c: Likewise.
5985 * proc-flags.c: Likewise.
5986 * proc-why.c: Likewise.
5987 * procfs.c: Likewise.
5989 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
5990 * configure, config.in: Regenerate.
5992 2020-07-30 Tom de Vries <tdevries@suse.de>
5995 * ui-style.h (struct ui_file_style::color): Wrap m_value and
5996 m_red/m_green/m_blue in a union.
5998 2020-07-29 Tom de Vries <tdevries@suse.de>
6001 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
6003 2020-07-28 Tom Tromey <tromey@adacore.com>
6006 * symtab.h (find_pc_partial_function_sym): Declare.
6007 * cli/cli-cmds.c (disassemble_command): Use
6008 find_pc_partial_function_sym. Check asm_demangle.
6009 * blockframe.c (cache_pc_function_sym): New global.
6010 (cache_pc_function_name): Remove.
6011 (clear_pc_function_cache): Update.
6012 (find_pc_partial_function_sym): New function, from
6013 find_pc_partial_function.
6014 (find_pc_partial_function): Rewrite using
6015 find_pc_partial_function_sym.
6017 2020-07-28 Tom Tromey <tromey@adacore.com>
6019 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
6022 2020-07-28 Tom Tromey <tromey@adacore.com>
6024 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
6025 <DW_OP_GNU_variable_value>: Cast to address type.
6027 2020-07-28 Kamil Rytarowski <n54@gmx.com>
6029 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
6030 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
6031 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
6032 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
6033 (nbsd_get_siginfo_type): New.
6034 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
6035 (_initialize_nbsd_tdep): New.
6037 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6040 * configure: Regenerated.
6042 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6045 * configure: Regenerated.
6047 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6049 * python/py-frame.c: Remove 'user-regs.h' include.
6050 (frapy_read_register): Rewrite to make use of
6051 gdbpy_parse_register_id.
6052 * python/py-registers.c (gdbpy_parse_register_id): New function,
6053 moved here from python/py-unwind.c. Updated the return type, and
6054 also accepts register descriptor objects.
6055 * python/py-unwind.c: Remove 'user-regs.h' include.
6056 (pyuw_parse_register_id): Moved to python/py-registers.c.
6057 (unwind_infopy_add_saved_register): Update to use
6058 gdbpy_parse_register_id.
6059 (pending_framepy_read_register): Likewise.
6060 * python/python-internal.h (gdbpy_parse_register_id): Declare.
6062 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6064 * python/py-registers.c: Add 'user-regs.h' include.
6065 (register_descriptor_iter_find): New function.
6066 (register_descriptor_iterator_object_methods): New static global
6068 (register_descriptor_iterator_object_type): Add pointer to methods
6071 2020-07-27 John Baldwin <jhb@FreeBSD.org>
6073 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
6074 for all architectures on FreeBSD 11.3 and later.
6076 2020-07-27 Tom Tromey <tromey@adacore.com>
6078 * gcore.h (load_corefile): Don't declare.
6080 2020-07-27 Tom de Vries <tdevries@suse.de>
6082 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
6083 * config.in: Regenerate.
6084 * configure: Regenerate.
6086 2020-07-26 Eli Zaretskii <eliz@gnu.org>
6088 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
6089 ws2tcpip.h. When checking whether socklen_t type is defined, use
6090 ws2tcpip.h if it is available and sys/socket.h isn't.
6091 * configure: Regenerate.
6092 * config.in: Regenerate.
6094 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
6098 * valops.c (value_ind): Pass address to
6099 readjust_indirect_value_type.
6100 * value.c (readjust_indirect_value_type): Make parameter
6101 non-const, and add extra address parameter. Resolve original type
6103 * value.h (readjust_indirect_value_type): Update function
6104 signature and comment.
6106 2020-07-25 Tom de Vries <tdevries@suse.de>
6109 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
6112 2020-07-24 Aaron Merey <amerey@redhat.com>
6114 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
6115 * configure: Rebuild.
6117 2020-07-23 Kevin Buettner <kevinb@redhat.com>
6120 * corelow.c (_initialize_corelow): Add period to help text
6121 for "maintenance print core-file-backed-mappings".
6123 2020-07-23 Pedro Alves <pedro@palves.net>
6125 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
6126 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
6128 * frame.c (frame_cache_generation, get_frame_cache_generation):
6130 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
6131 (get_prev_frame_if_no_cycle): On exception, don't touch
6132 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
6133 * frame.h (get_frame_cache_generation): Declare.
6135 2020-07-23 Tom de Vries <tdevries@suse.de>
6138 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
6139 New default constructor.
6141 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
6143 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
6144 exclude non-statement entries.
6146 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6148 * NEWS (New commands): Mention new command
6149 "maintenance print core-file-backed-mappings".
6151 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6153 * corelow.c (gdbcmd.h): Include.
6154 (core_target::info_proc_mappings): New method.
6155 (get_current_core_target): New function.
6156 (maintenance_print_core_file_backed_mappings): New function.
6157 (_initialize_corelow): Add core-file-backed-mappings to
6158 "maint print" commands.
6160 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6162 * linux-tdep.c (dump_note_entry_p): New function.
6163 (linux_dump_mapping_p_ftype): New typedef.
6164 (linux_find_memory_regions_full): Add new parameter,
6165 should_dump_mapping_p.
6166 (linux_find_memory_regions): Adjust call to
6167 linux_find_memory_regions_full.
6168 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
6169 call to linux_find_memory_regions_full.
6171 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6173 * corelow.c (solist.h, unordered_map): Include.
6174 (class core_target): Add field m_core_file_mappings and
6175 method build_file_mappings.
6176 (core_target::core_target): Call build_file_mappings.
6177 (core_target::~core_target): Free memory associated with
6178 m_core_file_mappings.
6179 (core_target::build_file_mappings): New method.
6180 (core_target::xfer_partial): Use m_core_file_mappings
6181 for memory transfers.
6182 * linux-tdep.c (linux_read_core_file_mappings): New
6184 (linux_core_info_proc_mappings): Rewrite to use
6185 linux_read_core_file_mappings.
6186 (linux_init_abi): Register linux_read_core_file_mappings.
6188 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6190 * arch-utils.c (default_read_core_file_mappings): New function.
6191 * arch-utils.c (default_read_core_file_mappings): Declare.
6192 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
6193 * gdbarch.h, gdbarch.c: Regenerate.
6195 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6198 * corelow.c (core_target:xfer_partial): Revise
6199 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
6200 case after first checking the stratum beneath the core
6202 (has_all_memory): Return true.
6203 * target.c (raw_memory_xfer_partial): Revise comment
6204 regarding use of has_all_memory.
6206 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6208 * exec.h (section_table_xfer_memory): Revise declaration,
6209 replacing section name parameter with an optional callback
6211 * exec.c (section_table_xfer_memory): Likewise.
6212 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
6213 of section_table_xfer_memory.
6215 2020-07-22 Tom Tromey <tromey@adacore.com>
6217 * mi/mi-cmd-stack.c (list_args_or_locals): Use
6218 lookup_symbol_search_name.
6220 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6222 * python/py-registers.c (gdbpy_register_object_data_init): Remove
6223 redundant local variable.
6224 (gdbpy_get_register_descriptor): Extract descriptor vector as a
6225 reference, not pointer, update code accordingly.
6227 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6228 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6230 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
6231 * jit.c (jit_breakpoint_re_set_internal): Use the
6232 `skip_jit_symbol_lookup` field.
6234 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6235 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6237 * jit.c (jit_read_descriptor): Define the descriptor address once,
6239 (jit_breakpoint_deleted): Move the declaration of the loop variable
6240 `iter` into the loop header.
6241 (jit_breakpoint_re_set_internal): Move the declaration of the local
6242 variable `objf_data` to the first point of definition.
6243 (jit_event_handler): Move the declaration of local variables
6244 `code_entry`, `entry_addr`, and `objf` to their first point of use.
6245 Rename `objf` to `jited`.
6247 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6249 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
6251 * jit.c (get_jiter_objfile_data): Update.
6253 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6254 Simon Marchi <simon.marchi@polymtl.ca>
6256 * jit.c (struct jit_program_space_data): Remove.
6257 (jit_program_space_key): Remove.
6258 (jiter_objfile_data::~jiter_objfile_data): Remove program space
6260 (get_jit_program_space_data): Remove.
6261 (jit_breakpoint_deleted): Iterate on all of the program space's
6263 (jit_inferior_init): Likewise.
6264 (jit_breakpoint_re_set_internal): Likewise. Also change return
6266 (jit_breakpoint_re_set): Pass current_program_space to
6267 jit_breakpoint_re_set_internal.
6269 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6271 * jit.h (struct jiter_objfile_data) <cached_code_address,
6272 jit_breakpoint>: Move to here from ...
6273 * jit.c (jit_program_space_data): ... here.
6274 (jiter_objfile_data::~jiter_objfile_data): Update.
6275 (jit_breakpoint_deleted): Update.
6276 (jit_breakpoint_re_set_internal): Update.
6278 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6280 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
6282 (jit_read_descriptor): Remove NULL check.
6283 (jit_event_handler): Add an assertion.
6285 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6287 * jit.h (struct jit_objfile_data): Split into...
6288 (struct jiter_objfile_data): ... this ...
6289 (struct jited_objfile_data): ... and this.
6290 * objfiles.h (struct objfile) <jit_data>: Remove.
6291 <jiter_data, jited_data>: New fields.
6292 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
6293 (jiter_objfile_data::~jiter_objfile_data): ... this.
6294 (get_jit_objfile_data): Rename to ...
6295 (get_jiter_objfile_data): ... this.
6296 (add_objfile_entry): Update.
6297 (jit_read_descriptor): Use get_jiter_objfile_data.
6298 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
6299 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
6300 (jit_inferior_exit_hook): Use objfile's jited_data field.
6302 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6304 * jit.h: Forward-declare `struct minimal_symbol`.
6305 (struct jit_objfile_data): Migrate to here from jit.c; also add a
6306 constructor, destructor, and an objfile* field.
6307 * jit.c (jit_objfile_data): Remove.
6308 (struct jit_objfile_data): Migrate from here to jit.h.
6309 (jit_objfile_data::~jit_objfile_data): New destructor
6310 implementation with code moved from free_objfile_data.
6311 (free_objfile_data): Delete.
6312 (get_jit_objfile_data): Update to use the jit_data field of objfile.
6313 (jit_find_objf_with_entry_addr): Ditto.
6314 (jit_inferior_exit_hook): Ditto.
6315 (_initialize_jit): Remove the call to
6316 register_objfile_data_with_cleanup.
6317 * objfiles.h (struct objfile) <jit_data>: New field.
6319 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6321 * jit.h: Forward-declare `struct objfile`.
6322 (jit_event_handler): Add a second parameter, the JITer objfile.
6323 * jit.c (jit_read_descriptor): Change the signature to take the
6324 JITer objfile as an argument instead of the jit_program_space_data.
6325 (jit_inferior_init): Update the call to jit_read_descriptor.
6326 (jit_event_handler): Use the new JITer objfile argument when calling
6327 jit_read_descriptor.
6328 * breakpoint.c (handle_jit_event): Update the call to
6329 jit_event_handler to pass the JITer objfile.
6331 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6333 * gdbarch.c: Regenerate.
6334 * gdbarch.h: Regenerate.
6335 * gdbarch.sh (handle_segmentation_fault): Remove method.
6336 * infrun.c (handle_segmentation_fault): Remove.
6337 (print_signal_received_reason): Remove call to
6338 handle_segmentation_fault.
6340 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6342 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6343 Rename to sparc64_linux_report_signal_info and add siggnal
6345 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
6346 instead of sparc64_linux_handle_segmentation_fault.
6348 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6350 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
6351 i386_linux_report_signal_info instead of
6352 i386_linux_handle_segmentation_fault.
6353 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
6354 to i386_linux_report_signal_info and add siggnal argument.
6355 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
6356 of i386_linux_handle_segmentation_fault.
6357 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
6358 to i386_linux_report_signal_info and add siggnal argument.
6360 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6362 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
6365 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6367 * gdbarch.c: Regenerate.
6368 * gdbarch.h: Regenerate.
6369 * gdbarch.sh (report_signal_info): New method.
6370 * infrun.c (print_signal_received_reason): Invoke gdbarch
6371 report_signal_info hook if present.
6373 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6375 * python/py-registers.c : Add 'unordered_map' include.
6376 (gdbpy_new_reggroup): Renamed to...
6377 (gdbpy_get_reggroup): ...this. Update to only create register
6378 group descriptors when needed.
6379 (gdbpy_reggroup_iter_next): Update.
6381 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6383 * python/py-registers.c (gdbpy_register_object_data): New static
6385 (gdbpy_register_object_data_init): New function.
6386 (gdbpy_new_register_descriptor): Renamed to...
6387 (gdbpy_get_register_descriptor): ...this, and update to reuse
6388 existing register descriptors where possible.
6389 (gdbpy_register_descriptor_iter_next): Update.
6390 (gdbpy_initialize_registers): Register new gdbarch data.
6392 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
6394 * linux-nat.c (stopped_pids): Make static.
6396 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
6399 * gdbtypes.c (ada_discrete_type_low_bound,
6400 ada_discrete_type_high_bound): Handle undefined bounds.
6402 2020-07-21 Kamil Rytarowski <n54@gmx.com>
6404 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
6406 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
6409 2020-07-20 John Baldwin <jhb@FreeBSD.org>
6411 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
6412 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
6413 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
6414 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
6415 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
6418 2020-07-20 Ludovic Courtès <ludo@gnu.org>
6420 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
6421 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
6422 which are deprecated in Guile 3.0.
6423 * configure.ac (try_guile_versions): Add "guile-3.0".
6424 * configure (try_guile_versions): Regenerate.
6425 * NEWS: Update entry.
6427 2020-07-20 Ludovic Courtès <ludo@gnu.org>
6428 Doug Evans <dje@google.com>
6431 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
6432 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
6433 USING_GUILE_BEFORE_2_2.
6434 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
6435 Change type to 'scm_t_port_type *'.
6436 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
6437 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
6438 parameter and honor it. Update callers.
6439 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
6440 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
6442 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
6443 USING_GUILE_BEFORE_2_2.
6444 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
6445 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
6446 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
6447 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
6448 and 'SCM_PORT_TYPE'.
6449 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
6450 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
6451 (gdbscm_memory_port_read, gdbscm_memory_port_write)
6452 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
6453 [!USING_GUILE_BEFORE_2_2]: New functions.
6454 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
6455 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
6456 'gdbscm_memory_port_read'.
6457 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
6458 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
6459 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
6461 (ioscm_init_memory_port): Remove.
6462 (ioscm_init_memory_port_stream): New function
6463 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
6465 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6466 Return scm_from_uint (0).
6467 (gdbscm_set_memory_port_read_buffer_size_x)
6468 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6469 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6470 Return scm_from_uint (0).
6471 (gdbscm_set_memory_port_write_buffer_size_x)
6472 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6473 * configure.ac (try_guile_versions): Add "guile-2.2".
6474 * configure: Regenerate.
6477 2020-07-18 Tom Tromey <tom@tromey.com>
6479 * linux-nat.c (linux_multi_process): Remove.
6480 (linux_nat_target::supports_multi_process): Return true.
6482 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6484 * arch/riscv.c (riscv_tdesc_cache): Change map type.
6485 (riscv_lookup_target_description): Return pointer out of
6487 * target-descriptions.c (allocate_target_description): Add
6489 (target_desc_deleter::operator()): Likewise.
6490 * target-descriptions.h (struct target_desc_deleter): Moved to
6492 (target_desc_up): Likewise.
6494 2020-07-17 Tom Tromey <tromey@adacore.com>
6496 * linux-nat.c (linux_nat_target::supports_non_stop)
6497 (linux_nat_target::always_non_stop_p): Use "true".
6498 (linux_nat_target::supports_disable_randomization): Use "true" and
6501 2020-07-16 Caroline Tice <cmtice@google.com>
6503 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
6504 (RNGLIST_HEADER_SIZE64): New constant definition.
6505 (struct dwop_section_names): Add rnglists_dwo.
6506 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
6507 (struct loclist_header): Rename to 'loclists_rnglists_header'.
6508 (struct dwo_sections): Add rnglists field.
6509 (read_attribut_reprocess): Add tag parameter.
6510 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
6511 (cu_debug_rnglists_section): New function (decl & definition).
6512 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
6513 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
6514 die whose range is being checked; get rnglist section from
6515 cu_debug_rnglists_section, to get from either objfile or dwo file as
6516 appropriate. Add cases for DW_RLE_base_addressx,
6517 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
6518 the base address to DW_RLE_offset_pairs (not to all ranges), moving
6519 test inside if-condition and updating complaint message.
6520 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
6521 dwarf2_rnglists_process.
6522 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
6523 dwarf2_ranges_process.
6524 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
6525 need_ranges_base and update comment appropriately. Also pass die tag
6526 to dwarf2_ranges_read.
6527 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
6528 need_ranges_base and update comment appropriately. Also pass die tag
6529 to dwarf2_ranges_process.
6530 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
6531 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
6532 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
6533 need_ranges_base and update comment appropriately. Also pass die tag
6534 to read_attribute_reprocess and dwarf2_ranges_read.
6535 (read_loclist_header): Rename function to read_loclists_rnglists_header,
6536 and update function comment appropriately.
6537 (read_loclist_index): Call read_loclists_rnglists_header instead of
6538 read_loclist_header.
6539 (read_rnglist_index): New function.
6540 (read_attribute_reprocess): Add tag parameter. Add code for
6541 DW_FORM_rnglistx, passing tag to read_rnglist_index.
6542 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
6544 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
6546 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
6549 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
6551 * arch-utils.c (show_architecture): Update formatting of messages.
6553 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6555 * gdbtypes.h (struct type) <bounds>: Handle array and string
6557 * ada-lang.c (assign_aggregate): Use type::bounds on
6559 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
6560 * c-varobj.c (c_number_of_children): Likewise.
6561 (c_describe_child): Likewise.
6562 * eval.c (evaluate_subexp_for_sizeof): Likewise.
6563 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
6564 (f_type_print_base): Likewise.
6565 * f-valprint.c (f77_array_offset_tbl): Likewise.
6566 (f77_get_upperbound): Likewise.
6567 (f77_print_array_1): Likewise.
6568 * guile/scm-type.c (gdbscm_type_range): Likewise.
6569 * m2-typeprint.c (m2_array): Likewise.
6570 (m2_is_long_set_of_type): Likewise.
6571 * m2-valprint.c (get_long_set_bounds): Likewise.
6572 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
6573 * python/py-type.c (typy_range): Likewise.
6574 * rust-lang.c (rust_internal_print_type): Likewise.
6575 * type-stack.c (type_stack::follow_types): Likewise.
6576 * valarith.c (value_subscripted_rvalue): Likewise.
6577 * valops.c (value_cast): Likewise.
6579 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6581 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
6582 callers to use the equivalent accessor methods.
6584 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6586 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
6587 (struct type) <bit_stride>: New method.
6588 (TYPE_BIT_STRIDE): Remove.
6589 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
6591 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6593 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
6594 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
6595 callers to use the equivalent accessor methods instead.
6597 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6599 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
6600 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
6601 callers to use the equivalent accessor methods instead.
6603 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6605 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
6606 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
6607 to use dynamic_prop::kind.
6609 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6611 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
6612 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
6613 to get the bound property's kind and check against
6616 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6618 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
6619 all callers to use type::range_bounds followed by
6620 dynamic_prop::{low,high}.
6622 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6624 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
6625 const_val, set_const_val, baton, set_locexpr, set_loclist,
6626 set_addr_offset, variant_parts, set_variant_parts,
6627 original_type, set_original_type>: New methods.
6628 <kind>: Rename to...
6629 <m_kind>: ... this. Update all users to use the new methods
6631 <data>: Rename to...
6632 <m_data>: ... this. Update all users to use the new methods
6635 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6637 * gdbtypes.c (get_discrete_bounds): Return failure if
6638 the range type's bounds are not both defined and constant
6640 (get_array_bounds): Update comment. Remove undefined bound check.
6642 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6644 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
6645 the type::bounds method directly.
6647 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6649 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
6650 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
6651 are used to set the range type's bounds to use set_bounds.
6653 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6655 * exec.c (_initialize_exec): Update exec-file-mismatch help.
6657 2020-07-10 Pedro Alves <pedro@palves.net>
6659 * gdbthread.h (inferior_ref): Define.
6660 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
6661 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
6663 (scoped_restore_current_thread::restore):
6664 Adjust to gdb::ref_ptr.
6665 (scoped_restore_current_thread::~scoped_restore_current_thread):
6666 Remove manual decref handling.
6667 (scoped_restore_current_thread::scoped_restore_current_thread):
6669 inferior_ref::new_reference/thread_info_ref::new_reference.
6670 Incref the thread before calling get_frame_id instead of after.
6671 Let TARGET_CLOSE_ERROR propagate.
6673 2020-07-10 Pedro Alves <pedro@palves.net>
6675 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
6676 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
6677 NOT_AVAILABLE_ERROR.
6678 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
6679 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
6681 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6682 Pedro Alves <pedro@palves.net>
6685 * infrun.c (threads_are_resumed_pending_p): Delete.
6686 (do_target_wait): Remove threads_are_executing and
6687 threads_are_resumed_pending_p checks from the inferior_matches
6688 lambda. Update comments.
6690 2020-07-10 Pedro Alves <pedro@palves.net>
6693 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
6696 2020-07-10 Pedro Alves <pedro@palves.net>
6699 * infrun.c (handle_no_resumed): Handle multiple targets.
6701 2020-07-10 Pedro Alves <pedro@palves.net>
6704 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
6707 2020-07-10 Pedro Alves <pedro@palves.net>
6710 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
6711 threads, not all threads.
6713 2020-07-10 Pedro Alves <pedro@palves.net>
6716 * remote.c (remote_target::open_1): Pass remote target pointer as
6717 data to create_async_event_handler.
6718 (remote_async_inferior_event_handler): Mark async event handler
6719 before returning if the remote target still has either pending
6720 events or unacknowledged notifications.
6722 2020-07-10 John Baldwin <jhb@FreeBSD.org>
6724 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
6726 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
6729 2020-07-09 John Baldwin <jhb@FreeBSD.org>
6731 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
6734 2020-07-09 John Baldwin <jhb@FreeBSD.org>
6736 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
6737 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
6738 AT_FREEBSD_PS_STRINGS.
6740 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
6742 * auto-load.c (auto_load_objfile_script_1): Convert drive part
6743 of debugfile path on Windows.
6745 2020-07-08 John Baldwin <jhb@FreeBSD.org>
6747 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
6750 2020-07-08 Tom Tromey <tromey@adacore.com>
6752 * ada-lang.c (ada_exception_message_1): Use read_memory.
6754 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6757 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
6758 special handling for inline frames.
6759 * findvar.c (value_of_register_lazy): Skip inline frames when
6760 creating lazy register values.
6761 * frame.c (frame_id_computed_p): Delete definition.
6762 * frame.h (frame_id_computed_p): Delete declaration.
6764 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6766 * NEWS: Mention additions to Python API.
6767 * python/py-arch.c (archpy_register_groups): New function.
6768 (arch_object_methods): Add 'register_groups' method.
6769 * python/py-registers.c (reggroup_iterator_object): New struct.
6770 (reggroup_object): New struct.
6771 (gdbpy_new_reggroup): New function.
6772 (gdbpy_reggroup_to_string): New function.
6773 (gdbpy_reggroup_name): New function.
6774 (gdbpy_reggroup_iter): New function.
6775 (gdbpy_reggroup_iter_next): New function.
6776 (gdbpy_new_reggroup_iterator): New function
6777 (gdbpy_initialize_registers): Register new types.
6778 (reggroup_iterator_object_type): Define new Python type.
6779 (gdbpy_reggroup_getset): New static global.
6780 (reggroup_object_type): Define new Python type.
6781 * python/python-internal.h
6783 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6785 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
6786 * python/py-arch.c (archpy_registers): New function.
6787 (arch_object_methods): Add 'registers' method.
6788 * python/py-registers.c: New file.
6789 * python/python-internal.h
6790 (gdbpy_new_register_descriptor_iterator): Declare.
6791 (gdbpy_initialize_registers): Declare.
6792 * python/python.c (do_start_initialization): Call
6793 gdbpy_initialize_registers.
6794 * NEWS: Mention additions to the Python API.
6796 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6798 * NEWS: Mention new Python API method.
6799 * python/py-unwind.c (pending_framepy_architecture): New function.
6800 (pending_frame_object_methods): Add architecture method.
6802 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6804 * gdbarch.c: Regenerate.
6805 * gdbarch.h: Regenerate.
6806 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
6807 (gdbarch_data): Use internal_error for the case where
6808 deprecated_set_gdbarch_data was originally needed.
6809 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
6810 and use passed in obstack.
6811 (libunwind_frame_set_descr): Should no longer get back NULL from
6813 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
6815 * user-regs.c (user_regs_init): Update parameters, and use passed
6817 (user_reg_add): Should no longer get back NULL from gdbarch_data.
6818 (_initialize_user_regs): Register as a pre-init gdbarch data type.
6820 2020-07-06 Tom de Vries <tdevries@suse.de>
6822 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
6823 End-Of-Sequence in lte_is_less_than.
6824 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
6825 "gdb: Don't reorder line table entries too much when sorting".
6827 2020-07-06 Tom de Vries <tdevries@suse.de>
6830 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
6832 2020-07-05 Tom de Vries <tdevries@suse.de>
6835 * inferior.h (struct infcall_suspend_state_deleter): If available, use
6836 std::uncaught_exceptions instead of deprecated
6837 std::uncaught_exception.
6839 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6841 * macroexp.h (macro_stringify): Return
6842 gdb::unique_xmalloc_ptr<char>.
6843 * macroexp.c (macro_stringify): Likewise.
6844 * macrotab.c (fixup_definition): Update.
6846 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6848 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
6849 (lex_one_token): Update.
6850 * macroexp.c (struct macro_buffer) <release>: Return
6851 gdb::unique_xmalloc_ptr<char>.
6852 (macro_stringify): Update.
6853 (macro_expand): Update.
6854 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
6855 * macroexp.h (macro_expand_next): Likewise.
6857 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
6859 * macroexp.h (macro_lookup_ftype): Remove.
6860 (macro_expand, macro_expand_once, macro_expand_next): Remove
6861 lookup function parameters, add scope parameter.
6862 * macroexp.c (scan, substitute_args, expand, maybe_expand,
6863 macro_expand, macro_expand_once, macro_expand_next): Likewise.
6864 * macroscope.h (standard_macro_lookup): Change parameter type
6866 * macroscope.c (standard_macro_lookup): Likewise.
6867 * c-exp.y (lex_one_token): Update.
6868 * macrocmd.c (macro_expand_command): Likewise.
6869 (macro_expand_once_command): Likewise.
6871 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6873 * inf-loop.c (inferior_event_handler): Remove client_data param.
6874 * inf-loop.h (inferior_event_handler): Likewise.
6875 * infcmd.c (step_1): Adjust.
6876 * infrun.c (proceed): Adjust.
6877 (fetch_inferior_event): Remove client_data param.
6878 (infrun_async_inferior_event_handler): Adjust.
6879 * infrun.h (fetch_inferior_event): Remove `void *` param.
6880 * linux-nat.c (handle_target_event): Adjust.
6881 * record-btrace.c (record_btrace_handle_async_inferior_event):
6883 * record-full.c (record_full_async_inferior_event_handler):
6885 * remote.c (remote_async_inferior_event_handler): Adjust.
6887 2020-07-01 Tom Tromey <tom@tromey.com>
6889 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
6890 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
6892 2020-07-01 Tom Tromey <tom@tromey.com>
6894 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
6896 (tui_win_info::make_window): Merge with
6897 tui_gen_win_info::make_window.
6898 (tui_win_info::make_visible): Move from tui_gen_win_info.
6899 * tui/tui-win.c (tui_win_info::max_width): Move from
6901 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
6903 <window_factory>: Likewise.
6904 * tui/tui-layout.c (tui_win_info::resize): Move from
6906 (make_standard_window): Change return type.
6907 (get_locator_window, tui_get_window_by_name): Likewise.
6908 (tui_layout_window::apply): Remove a cast.
6909 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
6910 (struct tui_win_info): Merge with tui_gen_win_info.
6911 (struct tui_gen_win_info): Remove.
6913 2020-07-01 Tom Tromey <tom@tromey.com>
6915 * tui/tui-stack.h (struct tui_locator_window): Derive from
6917 <do_scroll_horizontal, do_scroll_vertical>: New methods.
6918 <can_box>: New method.
6920 2020-07-01 Tom Tromey <tom@tromey.com>
6922 * tui/tui-stack.h (struct tui_locator_window): Remove body.
6924 2020-07-01 Tom Tromey <tom@tromey.com>
6926 * tui/tui-regs.c (tui_data_window::display_registers_from)
6927 (tui_data_window::display_registers_from)
6928 (tui_data_window::first_data_item_displayed)
6929 (tui_data_window::delete_data_content_windows): Update.
6930 (tui_data_window::refresh_window, tui_data_window::no_refresh):
6932 (tui_data_window::check_register_values): Update.
6933 (tui_data_item_window::rerender): Add parameters. Update.
6934 (tui_data_item_window::refresh_window): Remove.
6935 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
6937 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
6939 <refresh_window, max_height, min_height>: Remove.
6940 <rerender>: Add parameters.
6941 <x, y, visible>: New members.
6942 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
6943 <m_item_width>: New member.
6945 2020-07-01 Tom Tromey <tom@tromey.com>
6947 * tui/tui-regs.c (tui_data_window::show_register_group)
6948 (tui_data_window::check_register_values): Update.
6949 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
6952 2020-07-01 Tom Tromey <tom@tromey.com>
6954 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
6957 2020-07-01 Tom Tromey <tom@tromey.com>
6959 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
6960 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
6962 2020-07-01 Tom Tromey <tom@tromey.com>
6964 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
6965 * tui/tui-winsource.h (enum tui_line_or_address_kind)
6966 (struct tui_line_or_address): Move from tui-data.h.
6967 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
6968 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
6969 (tui_cmd_window, tui_source_window_base, tui_source_window)
6970 (tui_disasm_window): Don't declare.
6971 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
6973 (SINGLE_KEY): Move to tui-stack.c.
6975 2020-07-01 Tom Tromey <tom@tromey.com>
6977 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
6979 * tui/tui-regs.c (class tab_expansion_file): New.
6980 (tab_expansion_file::write): New method.
6981 (tui_register_format): Change return type. Use
6983 (tui_get_register, tui_data_window::display_registers_from)
6984 (tui_data_item_window::rerender): Update.
6985 * tui/tui-io.h (tui_expand_tabs): Don't declare.
6986 * tui/tui-io.c (tui_expand_tabs): Remove.
6988 2020-07-01 Tom Tromey <tom@tromey.com>
6990 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
6992 2020-07-01 Fangrui Song <maskray@google.com>
6994 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
6996 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6998 * dwarf2/read.c (set_die_type): Removed conditions to restrict
6999 forms for DW_AT_associated and DW_AT_allocated attributes,
7000 which is already checked in function attr_to_dynamic_prop.
7002 2020-06-30 Tom Tromey <tromey@adacore.com>
7004 * dwarf2/read.c (quirk_rust_enum): Correctly call
7005 alloc_rust_variant for default-less enum.
7007 2020-06-30 Tom Tromey <tromey@adacore.com>
7010 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
7013 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
7015 * gdbarch.sh (displaced_step_copy_insn): Update doc.
7016 * gdbarch.h: Re-generate.
7018 2020-06-28 Tom Tromey <tom@tromey.com>
7020 * command.h (cmd_types): Remove.
7021 (cmd_type): Don't declare.
7022 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
7024 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
7025 * cli/cli-decode.c (cmd_type): Remove.
7027 2020-06-27 Pedro Alves <palves@redhat.com>
7029 * fork-child.c (prefork_hook): Adjust.
7030 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
7032 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
7033 * inferior.c (inferior::set_tty, inferior::tty): New methods.
7034 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
7035 Remove declarations.
7036 (struct inferior) <set_tty, tty>: New methods.
7037 (struct inferior) <terminal>: Rename to ...
7038 (struct inferior) <m_terminal>: ... this and make private.
7039 * main.c (captured_main_1): Adjust.
7040 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
7041 (mi_cmd_inferior_tty_show): Adjust.
7042 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
7043 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
7045 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
7047 * configure.ac: Add --enable-libctf: handle --disable-static
7049 * acinclude.m4: sinclude ../config/enable.m4.
7050 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
7051 (LIBCTF): Substitute in.
7052 (CTF_DEPS): New, likewise.
7053 (CLIBS): libctf needs symbols from libbfd: move earlier.
7054 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
7056 * ctfread.c: Surround in ENABLE_LIBCTF.
7057 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
7058 * configure: Regenerate.
7059 * config.in: Likewise.
7061 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7063 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
7065 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7067 * inferior.h (struct inferior) <terminal>: Change type to
7068 gdb::unique_xmalloc_ptr<char>.
7069 * inferior.c (inferior::~inferior): Don't free inf->terminal.
7070 * infcmd.c (set_inferior_io_terminal): Don't free terminal
7071 field, adjust to unique pointer.
7072 (get_inferior_io_terminal): Adjust to unique pointer.
7074 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7076 * riscv-tdep.c (riscv_print_registers_info): Loop over all
7077 registers, not just the known core set of registers.
7079 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7081 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
7082 fflags, frm, and fcsr registers.
7083 (riscv_register_reggroup_p): Remove unknown CSRs from save and
7085 (riscv_tdesc_unknown_reg): New function.
7086 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
7087 tdesc_use_registers.
7088 * riscv-tdep.h (struct gdbarch_tdep): Add
7089 unknown_csrs_first_regnum, unknown_csrs_count,
7090 duplicate_fflags_regnum, duplicate_frm_regnum, and
7091 duplicate_fcsr_regnum fields.
7093 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7095 * target-descriptions.c (tdesc_use_registers): Add new parameter a
7096 callback, use the callback (when not null) to help number unknown
7098 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
7099 (tdesc_use_registers): Add extra parameter to declaration.
7101 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7103 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
7105 (class riscv_pending_register_alias): Likewise.
7106 (riscv_register_feature::register_info): Change 'required_p' field
7107 to 'required', and change its type. Add 'check' member function.
7108 (riscv_register_feature::register_info::check): Define new member
7110 (riscv_xreg_feature): Change initialisation of 'required' field.
7111 (riscv_freg_feature): Likewise.
7112 (riscv_virtual_feature): Likewise.
7113 (riscv_csr_feature): Likewise.
7114 (riscv_check_tdesc_feature): Take extra parameter, the csr
7115 tdesc_feature, rewrite the function to use the new
7116 riscv_register_feature::register_info::check function.
7117 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
7119 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7121 * features/Makefile: Remove all references to the deleted files
7123 * features/riscv/32bit-csr.c: Deleted.
7124 * features/riscv/32bit-csr.xml: Deleted.
7125 * features/riscv/64bit-csr.c: Deleted.
7126 * features/riscv/64bit-csr.xml: Deleted.
7127 * features/riscv/rebuild-csr-xml.sh: Deleted.
7129 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7131 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
7132 whitespace error for declaration of names member variable.
7133 (struct riscv_register_feature): Add new prefer_first_name member
7134 variable, and fix whitespace error in declaration of registers.
7135 (riscv_xreg_feature): Initialize prefer_first_name field.
7136 (riscv_freg_feature): Likewise.
7137 (riscv_virtual_feature): Likewise.
7138 (riscv_csr_feature): Likewise.
7139 (riscv_register_name): Expand on comments. Remove register name
7140 modifications for CSR and virtual registers.
7142 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7144 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
7147 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7149 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
7151 (class riscv_pending_register_alias): New class.
7152 (riscv_check_tdesc_feature): Take vector of pending aliases and
7153 populate it as appropriate.
7154 (riscv_setup_register_aliases): Delete.
7155 (riscv_gdbarch_init): Create vector of pending aliases and pass it
7156 to riscv_check_tdesc_feature in all cases. Use the vector to
7157 create the register aliases.
7159 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7161 * sol2-tdep.c (sol2_static_transform_name): Remove.
7162 (sol2_init_abi): Don't register it.
7163 * gdbarch.sh (static_transform_name): Remove.
7164 * gdbarch.c, gdbarch.h: Regenerate.
7166 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
7167 gdbarch_static_transform_name.
7168 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
7169 * stabsread.c (define_symbol) <'X'>: Remove.
7170 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
7173 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
7174 <'S'>: Remove call to gdbarch_static_transform_name.
7176 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7178 * procfs.c (procfs_pre_trace): New function.
7179 (procfs_target::create_inferior): Pass it to fork_inferior.
7181 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7183 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
7184 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
7185 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
7186 sol2-tdep.o, sparc-sol2-tdep.o.
7187 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
7188 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
7189 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
7190 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
7192 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7194 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
7195 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
7197 Remove calls to set_gdbarch_skip_solib_resolver,
7198 set_gdbarch_core_pid_to_str.
7199 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
7200 (i386_sol2_static_transform_name): Remove.
7201 (i386_sol2_init_abi): Call sol2_init_abi.
7202 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7203 set_gdbarch_static_transform_name,
7204 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7205 Use sol2_sigtramp_p.
7206 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
7207 (sol2_sigtramp_p): New function.
7208 (sol2_static_transform_name): New function.
7209 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
7210 (sol2_init_abi): New function.
7211 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
7212 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
7213 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
7214 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
7215 (sparc_sol2_static_transform_name): Remove.
7216 (sparc32_sol2_init_abi): Call sol2_init_abi.
7217 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7218 set_gdbarch_static_transform_name,
7219 set_gdbarch_skip_solib_resolver,
7220 set_gdbarch_core_pid_to_str.
7221 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
7222 (sparc_sol2_static_transform_name): Remove
7223 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
7224 call sol2_sigtramp_p.
7225 (sparc64_sol2_init_abi): Call sol2_init_abi.
7226 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7227 set_gdbarch_static_transform_name,
7228 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7230 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7232 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
7233 * exec.c (validate_exec_file): If from_tty, set both
7234 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
7235 * symfile.c (symbol_file_add_with_addrs): if always_confirm
7236 and from_tty, unconditionally ask a confirmation.
7238 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7240 * target-descriptions.c (tdesc_architecture_name): Protect against
7241 NULL pointer dereference.
7242 (maint_print_xml_tdesc_cmd): New function.
7243 (_initialize_target_descriptions): Register new 'maint print
7244 xml-tdesc' command and give it the filename completer.
7245 * NEWS: Mention new 'maint print xml-tdesc' command.
7247 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7249 * target-descriptions.c (class tdesc_compatible_info): New class.
7250 (struct target_desc): Change type of compatible vector.
7251 (tdesc_compatible_p): Update for change in type of
7252 target_desc::compatible.
7253 (tdesc_compatible_info_list): New function.
7254 (tdesc_compatible_info_arch_name): New function.
7255 (tdesc_add_compatible): Update for change in type of
7256 target_desc::compatible.
7257 (print_c_tdesc::visit_pre): Likewise.
7259 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7261 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
7262 whitespace to underscore.
7263 (maint_print_c_tdesc_cmd): Use fake filename for target
7264 descriptions that came from the target.
7265 (_initialize_target_descriptions): Add filename command completion
7266 for 'maint print c-tdesc'.
7268 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
7270 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
7273 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
7275 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
7277 (dwarf2_find_location_expression): Likewise.
7278 (call_site_parameter_matches): Likewise.
7279 (dwarf2_compile_expr_to_ax): Likewise.
7280 (disassemble_dwarf_expression): Likewise.
7281 (loclist_describe_location): Likewise.
7283 2020-06-23 Pedro Alves <palves@redhat.com>
7285 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
7286 progspace-and-thread.h. Include scoped-mock-context.h instead.
7287 (register_to_value_test): Use scoped_mock_context.
7288 * regcache.c: Include "scoped-mock-context.h".
7289 (cooked_read_test): Don't error out if a target is already pushed.
7290 Use scoped_mock_context. Adjust.
7291 * scoped-mock-context.h: New file.
7293 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7295 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
7297 (ada_language::is_string_type_p): New member function.
7298 * c-lang.c (c_language_data): Delete la_is_string_type_p
7300 (cplus_language_data): Likewise.
7301 (asm_language_data): Likewise.
7302 (minimal_language_data): Likewise.
7303 * d-lang.c (d_language_data): Likewise.
7304 * f-lang.c (f_is_string_type_p): Delete function, implementation
7305 moved to f_language::is_string_type_p.
7306 (f_language_data): Delete la_is_string_type_p initializer.
7307 (f_language::is_string_type_p): New member function,
7308 implementation from f_is_string_type_p.
7309 * go-lang.c (go_is_string_type_p): Delete function, implementation
7310 moved to go_language::is_string_type_p.
7311 (go_language_data): Delete la_is_string_type_p initializer.
7312 (go_language::is_string_type_p): New member function,
7313 implementation from go_is_string_type_p.
7314 * language.c (language_defn::is_string_type_p): Define new member
7316 (default_is_string_type_p): Make static, add comment copied from
7318 (unknown_language_data): Delete la_is_string_type_p initializer.
7319 (unknown_language::is_string_type_p): New member function.
7320 (auto_language_data): Delete la_is_string_type_p initializer.
7321 (auto_language::is_string_type_p): New member function.
7322 * language.h (language_data): Delete la_is_string_type_p field.
7323 (language_defn::is_string_type_p): Declare new function.
7324 (default_is_string_type_p): Delete desclaration, move comment to
7326 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
7327 moved to m2_language::is_string_type_p.
7328 (m2_language_data): Delete la_is_string_type_p initializer.
7329 (m2_language::is_string_type_p): New member function,
7330 implementation from m2_is_string_type_p.
7331 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
7333 * opencl-lang.c (opencl_language_data): Likewise.
7334 * p-lang.c (pascal_is_string_type_p): Delete function,
7335 implementation moved to pascal_language::is_string_type_p.
7336 (pascal_language_data): Delete la_is_string_type_p initializer.
7337 (pascal_language::is_string_type_p): New member function,
7338 implementation from pascal_is_string_type_p.
7339 * rust-lang.c (rust_is_string_type_p): Delete function,
7340 implementation moved to rust_language::is_string_type_p.
7341 (rust_language_data): Delete la_is_string_type_p initializer.
7342 (rust_language::is_string_type_p): New member function,
7343 implementation from rust_is_string_type_p.
7344 * valprint.c (val_print_scalar_or_string_type_p): Update call to
7347 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7349 * ada-lang.c (ada_language_data): Delete la_print_typedef
7351 (ada_language::print_typedef): New member function.
7352 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
7353 (cplus_language_data): Likewise.
7354 (asm_language_data): Likewise.
7355 (minimal_language_data): Likewise.
7356 * d-lang.c (d_language_data): Likewise.
7357 * f-lang.c (f_language_data): Likewise.
7358 (f_language::print_typedef): New member function.
7359 * go-lang.c (go_language_data): Delete la_print_typedef
7361 * language.c (language_defn::print_typedef): Define member
7363 (unknown_language_data): Delete la_print_typedef initializer.
7364 (unknown_language::print_typedef): New member function.
7365 (auto_language_data): Delete la_print_typedef initializer.
7366 (auto_language::print_typedef): New member function.
7367 * language.h (language_data): Delete la_print_typedef field.
7368 (language_defn::print_typedef): Declare new member function.
7369 (LA_PRINT_TYPEDEF): Update call to print_typedef.
7370 (default_print_typedef): Delete declaration.
7371 * m2-lang.c (m2_language_data): Delete la_print_typedef
7373 (m2_language::print_typedef): New member function.
7374 * objc-lang.c (objc_language_data): Delete la_print_typedef
7376 * opencl-lang.c (opencl_language_data): Likewise.
7377 * p-lang.c (pascal_language_data): Likewise.
7378 (pascal_language::print_typedef): New member function.
7379 * rust-lang.c (rust_print_typedef): Delete function,
7380 implementation moved to rust_language::print_typedef.
7381 (rust_language): Delete la_print_typedef initializer.
7382 (rust_language::print_typedef): New member function,
7383 implementation from rust_print_typedef.
7384 * typeprint.c (default_print_typedef): Delete.
7386 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7388 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
7389 (ada_language::printstr): New member function.
7390 * c-lang.c (c_language_data): Delete la_printstr initializer.
7391 (cplus_language_data): Likewise.
7392 (asm_language_data): Likewise.
7393 (minimal_language_data): Likewise.
7394 * d-lang.c (d_language_data): Likewise.
7395 * f-lang.c (f_printstr): Rename to f_language::printstr.
7396 (f_language_data): Delete la_printstr initializer.
7397 (f_language::printstr): New member function, implementation from
7399 * go-lang.c (go_language_data): Delete la_printstr initializer.
7400 * language.c (language_defn::printstr): Define new member
7402 (unk_lang_printstr): Delete.
7403 (unknown_language_data): Delete la_printstr initializer.
7404 (unknown_language::printstr): New member function.
7405 (auto_language_data): Delete la_printstr initializer.
7406 (auto_language::printstr): New member function.
7407 * language.h (language_data): Delete la_printstr field.
7408 (language_defn::printstr): Declare new member function.
7409 (LA_PRINT_STRING): Update call to printstr.
7410 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
7411 (m2_language_data): Delete la_printstr initializer.
7412 (m2_language::printstr): New member function, implementation from
7414 * objc-lang.c (objc_language_data): Delete la_printstr
7416 * opencl-lang.c (opencl_language_data): Likewise.
7417 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
7418 (pascal_language_data): Delete la_printstr initializer.
7419 (pascal_language::printstr): New member function, implementation
7420 from pascal_printstr.
7421 * p-lang.h (pascal_printstr): Delete declaration.
7422 * rust-lang.c (rust_printstr): Update header comment.
7423 (rust_language_data): Delete la_printstr initializer.
7424 (rust_language::printstr): New member function.
7426 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7428 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
7429 (ada_language::printchar): New member function.
7430 * c-lang.c (c_language_data): Delete la_printchar initializer.
7431 (cplus_language_data): Likewise.
7432 (asm_language_data): Likewise.
7433 (minimal_language_data): Likewise.
7434 * d-lang.c (d_language_data): Likewise.
7435 * f-lang.c (f_printchar): Rename to f_language::printchar.
7436 (f_language_data): Delete la_printchar initializer.
7437 (f_language::printchar): New member function, implementation from
7439 * go-lang.c (go_language_data): Delete la_printchar initializer.
7440 * language.c (unk_lang_printchar): Delete.
7441 (language_defn::printchar): Define new member function.
7442 (unknown_language_data): Delete la_printchar initializer.
7443 (unknown_language::printchar): New member function.
7444 (auto_language_data): Delete la_printchar initializer.
7445 (auto_language::printchar): New member function.
7446 * language.h (language_data): Delete la_printchar field.
7447 (language_defn::printchar): Declare new member function.
7448 (LA_PRINT_CHAR): Update call to printchar.
7449 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
7450 (m2_language::printchar): New member function.
7451 * objc-lang.c (objc_language_data): Delete la_printchar
7453 * opencl-lang.c (opencl_language_data): Likewise.
7454 * p-lang.c (pascal_language_data): Delete la_printchar
7456 (pascal_language::printchar): New member function.
7457 * rust-lang.c (rust_printchar): Rename to
7458 rust_language::printchar.
7459 (rust_language_data): Delete la_printchar initializer.
7460 (rust_language::printchar): New member function, implementation
7461 from rust_printchar.
7463 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7465 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
7466 (ada_language_data): Delete la_emitchar initializer.
7467 (ada_language::emitchar): New member function, implementation from
7469 * c-lang.c (c_language_data): Delete la_emitchar initializer.
7470 (cplus_language_data): Likewise.
7471 (asm_language_data): Likewise.
7472 (minimal_language_data): Likewise.
7473 * d-lang.c (d_language_data): Likewise.
7474 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
7475 (f_language_data): Delete la_emitchar initializer.
7476 (f_language::emitchar): New member function, implementation from
7478 * go-lang.c (go_language_data): Delete la_emitchar initializer.
7479 * language.c (unk_lang_emit_char): Delete.
7480 (language_defn::emitchar): New member function definition.
7481 (unknown_language_data): Delete la_emitchar initializer.
7482 (unknown_language::emitchar): New member function.
7483 (auto_language_data): Delete la_emitchar initializer.
7484 (auto_language::emitchar): New member function.
7485 * language.h (language_data): Delete la_emitchar field.
7486 (language_defn::emitchar): New member field declaration.
7487 (LA_EMIT_CHAR): Update call to emitchar.
7488 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
7489 (m2_language_data): Delete la_emitchar initializer.
7490 (m2_language::emitchar): New member function, implementation from
7492 * objc-lang.c (objc_language_data): Delete la_emitchar
7494 * opencl-lang.c (opencl_language_data): Likewise.
7495 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
7496 (pascal_language_data): Delete la_emitchar initializer.
7497 (pascal_language::emitchar): New member function, implementation
7498 from pascal_emit_char.
7499 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
7500 (rust_language_data): Delete la_emitchar initializer.
7501 (rust_language::emitchar): New member function, implementation
7504 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7506 * ada-lang.c (resolve): Rename to ada_language::post_parser.
7507 (ada_language_data): Delete la_post_parser initializer.
7508 (ada_language::post_parser): New member function.
7509 * c-lang.c (c_language_data): Delete la_post_parser initializer.
7510 (cplus_language_data): Likewise.
7511 (asm_language_data): Likewise.
7512 (minimal_language_data): Likewise.
7513 * d-lang.c (d_language_data): Likewise.
7514 * f-lang.c (f_language_data): Likewise.
7515 * go-lang.c (go_language_data): Likewise.
7516 * language.c (unknown_language_data): Likewise.
7517 (auto_language_data): Likewise.
7518 * language.h (language_data): Delete la_post_parser field.
7519 (language_defn::post_parser): New member function.
7520 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
7521 * objc-lang.c (objc_language_data): Likewise.
7522 * opencl-lang.c (opencl_language_data): Likewise.
7523 * p-lang.c (pascal_language_data): Likewise.
7524 * parse.c (parse_exp_in_context): Update call to post_parser.
7525 (null_post_parser): Delete definition.
7526 * parser-defs.h (null_post_parser): Delete declaration.
7527 * rust-lang.c (rust_language_data): Delete la_post_parser
7530 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7532 * ada-lang.c (parse): Rename to ada_language::parser.
7533 (ada_language_data): Delete la_parser initializer.
7534 (ada_language::parser): New member function, implementation from
7536 * c-lang.c (c_language_data): Delete la_parser initializer.
7537 (cplus_language_data): Likewise.
7538 (asm_language_data): Likewise.
7539 (minimal_language_data): Likewise.
7540 * d-lang.c (d_language_data): Likewise.
7541 (d_language::parser): New member function.
7542 * f-lang.c (f_language_data): Delete la_parser initializer.
7543 (f_language::parser): New member function.
7544 * go-lang.c (go_language_data): Delete la_parser initializer.
7545 (go_language::parser): New member function.
7546 * language.c (unk_lang_parser): Delete.
7547 (language_defn::parser): Define new member function.
7548 (unknown_language_data): Delete la_parser initializer.
7549 (unknown_language::parser): New member function.
7550 (auto_language_data): Delete la_parser initializer.
7551 (auto_language::parser): New member function.
7552 * language.h (language_data): Delete la_parser field.
7553 (language_defn::parser): Declare new member function.
7554 * m2-lang.c (m2_language_data): Delete la_parser initializer.
7555 (m2_language::parser): New member function.
7556 * objc-lang.c (objc_language_data): Delete la_parser initializer.
7557 * opencl-lang.c (opencl_language_data): Likewise.
7558 * p-lang.c (pascal_language_data): Likewise.
7559 (pascal_language::parser): New member function.
7560 * parse.c (parse_exp_in_context): Update call to parser.
7561 * rust-lang.c (rust_language_data): Delete la_parser initializer.
7562 (rust_language::parser): New member function.
7564 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7566 * top.c (print_gdb_configuration): Print --with-python-libdir
7567 configuration value.
7569 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7571 * NEWS: Mention change to the alias command.
7573 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7575 * cli/cli-cmds.c (lookup_cmd_for_default_args)
7576 (alias_command_completer)
7577 (make_alias_options_def_group): New functions.
7578 (alias_opts, alias_option_defs): New struct and array.
7579 (alias_usage_error): Update usage.
7580 (alias_command): Handles optional DEFAULT-ARGS... arguments.
7581 Use option framework.
7582 (_initialize_cli_cmds): Update alias command help.
7583 Update aliases command help.
7585 Add NULL for new default_args lookup_cmd argument.
7586 (valid_command_p): Rename to validate_aliased_command.
7587 Add NULL for new default_args lookup_cmd argument. Verify that the
7588 aliased_command has no default args.
7589 * cli/cli-decode.c (help_cmd): Show aliases definitions.
7590 (lookup_cmd_1, lookup_cmd): New argument default_args.
7592 Add NULL for new default_args lookup_cmd argument.
7593 (print_help_for_command): Show default args under the layout
7594 alias some_alias = some_aliased_cmd some_alias_default_arg.
7595 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
7596 xfree default_args in destructor.
7597 * cli/cli-script.c (process_next_line, do_define_command):
7598 Add NULL for new default_args lookup_cmd argument.
7599 * command.h: Declare new default_args argument in lookup_cmd
7601 * completer.c (complete_line_internal_1):
7602 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7603 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
7604 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
7606 * infcmd.c (_initialize_infcmd): Likewise.
7607 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
7608 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
7609 * python/py-param.c (add_setshow_generic): Likewise.
7610 * remote.c (_initialize_remote): Likewise.
7611 * top.c (execute_command): Prepend default_args if command has some.
7613 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7614 * tracepoint.c (validate_actionline, encode_actions_1):
7615 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7617 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7619 * jit.c (jit_read_descriptor): Use bool as the return type.
7620 (jit_breakpoint_re_set_internal): Use bool as the return type.
7621 Invert the return value logic; return true if the jit breakpoint
7622 has been successfully initialized.
7623 (jit_inferior_init): Update the call to
7624 jit_breakpoint_re_set_internal.
7626 2020-06-22 Pedro Alves <palves@redhat.com>
7629 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
7630 Use the current inferior instead. Don't return
7631 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
7633 * sol-thread.c (sol_thread_target::wait): Don't reference
7635 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
7636 (sol_update_thread_list_callback): Use the current inferior's pid
7637 instead of inferior_ptid.
7639 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7641 * procfs.c: Cleanup many comments.
7643 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
7644 (AFTER_WATCHFLAG): Replace by value.
7646 (MAIN_PROC_NAME_FORMAT): Inline ...
7647 (create_procinfo): ... here.
7649 (procfs_debug_inferior): Remove SYS_exec handling.
7650 (syscall_is_exec): Likewise.
7651 (procfs_set_exec_trap): Likewise.
7653 (syscall_is_lwp_exit): Inline in callers.
7654 (syscall_is_exit): Likewise.
7655 (syscall_is_exec): Likewise.
7656 (syscall_is_lwp_create): Likewise.
7658 (invalidate_cache): Remove #if 0 code.
7660 (make_signal_thread_runnable): Remove.
7661 (procfs_target::resume): Remove #if 0 code.
7663 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7666 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
7668 (procfs_target::create_inferior): ... here.
7670 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7672 * exec.c (validate_exec_file): Ensure the build-id is up to
7673 date by calling reopen_exec_file (that checks file timestamp
7674 to decide to re-read the file).
7676 2020-06-18 Pedro Alves <palves@redhat.com>
7679 * gdbthread.h (delete_thread, delete_thread_silent)
7680 (find_thread_ptid): Update comments.
7681 * thread.c (current_thread_): New global.
7682 (is_current_thread): Move higher, and reimplement.
7683 (inferior_thread): Reimplement.
7684 (set_thread_exited): Use bool. Add assertions.
7685 (add_thread_silent): Simplify thread-reuse handling by always
7686 calling delete_thread.
7687 (delete_thread): Remove intro comment.
7688 (find_thread_ptid): Skip exited threads.
7689 (switch_to_thread_no_regs): Write to current_thread_.
7690 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
7691 INFERIOR_PTID. Clear current_thread_.
7693 2020-06-18 Pedro Alves <palves@redhat.com>
7695 * aix-thread.c (pd_update): Use switch_to_thread.
7697 2020-06-18 Pedro Alves <palves@redhat.com>
7699 * ravenscar-thread.c (ravenscar_thread_target): Update.
7700 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
7701 (ravenscar_thread_target::add_active_thread): ... this. Don't
7702 set m_base_ptid here. Update to avoid referencing inferior_ptid.
7703 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
7705 2020-06-18 Pedro Alves <palves@redhat.com>
7707 * nat/windows-nat.c (current_windows_thread): Remove.
7708 * nat/windows-nat.h (current_windows_thread): Remove.
7709 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
7711 (display_selectors): Adjust to fetch the current
7712 windows_thread_info based on inferior_ptid.
7713 (fake_create_process): No longer write to current_windows_thread.
7714 (windows_nat_target::get_windows_debug_event):
7715 Don't set inferior_ptid or current_windows_thread.
7716 (windows_nat_target::wait): Adjust to not rely on
7717 current_windows_thread.
7718 (do_initial_windows_stuff): Now a method of windows_nat_target.
7719 Switch to the last_ptid thread.
7720 (windows_nat_target::attach): Adjust.
7721 (windows_nat_target::detach): Use switch_to_no_thread instead of
7722 writing to inferior_ptid directly.
7723 (windows_nat_target::create_inferior): Adjust.
7725 2020-06-18 Pedro Alves <palves@redhat.com>
7727 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
7729 2020-06-18 Pedro Alves <palves@redhat.com>
7731 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
7732 after creating it, instead of writing to inferior_ptid. Don't
7733 write to inferior_ptid.
7735 2020-06-18 Pedro Alves <palves@redhat.com>
7737 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
7739 2020-06-18 Pedro Alves <palves@redhat.com>
7741 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
7742 it, instead of writing to inferior_ptid.
7744 2020-06-18 Pedro Alves <palves@redhat.com>
7746 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
7749 2020-06-18 Pedro Alves <palves@redhat.com>
7751 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
7752 instead of writing to inferior_ptid directly.
7754 2020-06-18 Pedro Alves <palves@redhat.com>
7756 * corelow.c (core_target::close): Use switch_to_no_thread instead
7757 of writing to inferior_ptid directly.
7758 (add_to_thread_list, core_target_open): Use switch_to_thread
7759 instead of writing to inferior_ptid directly.
7761 2020-06-18 Pedro Alves <palves@redhat.com>
7763 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
7765 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
7767 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
7768 inferior_ptid directly.
7769 (darwin_nat_target::init_thread_list): Switch to thread, instead
7770 of writing to inferior_ptid.
7771 (darwin_nat_target::attach): Don't write to inferior_ptid.
7772 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
7774 2020-06-18 Pedro Alves <palves@redhat.com>
7776 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
7778 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
7779 Instead use switch_to_thread.
7780 (gnu_nat_target::detach): Use switch_to_no_thread
7781 instead of writing to inferior_ptid directly. Used passed-in
7782 inferior instead of looking up the inferior by pid.
7784 2020-06-18 Pedro Alves <palves@redhat.com>
7786 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
7789 2020-06-18 Pedro Alves <palves@redhat.com>
7791 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
7793 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
7795 (nto_procfs_target::detach): Avoid referencing
7796 inferior_ptid. Use switch_to_no_thread instead of writing to
7797 inferior_ptid directly.
7798 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
7799 instead of writing to inferior_ptid directly.
7800 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
7803 2020-06-18 Pedro Alves <palves@redhat.com>
7805 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
7806 after creating it, instead of writing to inferior_ptid.
7807 (gdbsim_target_open): Use switch_to_no_thread instead of writing
7808 to inferior_ptid directly.
7809 (gdbsim_target::wait): Don't write to inferior_ptid.
7811 2020-06-18 Pedro Alves <palves@redhat.com>
7813 * remote.c (remote_target::remote_notice_new_inferior): Use
7814 switch_to_thread instead of writing to inferior_ptid directly.
7815 (remote_target::add_current_inferior_and_thread): Use
7816 switch_to_no_thread instead of writing to inferior_ptid directly.
7817 (extended_remote_target::attach): Use switch_to_inferior_no_thread
7818 and switch_to_thread instead of using set_current_inferior or
7819 writing to inferior_ptid directly.
7821 2020-06-18 Pedro Alves <palves@redhat.com>
7823 * tracectf.c (ctf_target_open): Switch to added thread instead of
7824 writing to inferior_ptid directly.
7825 (ctf_target::close): Use switch_to_no_thread instead of writing to
7826 inferior_ptid directly.
7828 2020-06-18 Pedro Alves <palves@redhat.com>
7830 * tracefile-tfile.c (tfile_target_open): Don't write to
7831 inferior_ptid directly, instead switch to added thread.
7832 (tfile_target::close): Use switch_to_no_thread instead of writing
7833 to inferior_ptid directly.
7835 2020-06-18 Pedro Alves <palves@redhat.com>
7837 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
7838 (procfs_target::detach): Use switch_to_no_thread
7839 instead of writing to inferior_ptid directly.
7840 (do_attach): Change return type to void. Switch to the added
7842 (procfs_target::create_inferior): Switch to the added thread.
7843 (procfs_do_thread_registers): Don't write to inferior_ptid.
7845 2020-06-18 Pedro Alves <palves@redhat.com>
7847 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
7848 of writing to inferior_ptid.
7849 (scoped_restore_exited_inferior): Delete.
7850 (handle_vfork_child_exec_or_exit): Simplify using
7851 scoped_restore_current_pspace_and_thread. Use switch_to_thread
7852 instead of writing to inferior_ptid.
7853 (THREAD_STOPPED_BY): Delete.
7854 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
7855 (thread_stopped_by_hw_breakpoint): Delete.
7856 (save_waitstatus): Use
7857 scoped_restore_current_thread+switch_to_thread, and call
7858 target_stopped_by_watchpoint instead of
7859 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
7860 instead of thread_stopped_by_sw_breakpoint, and
7861 target_stopped_by_hw_breakpoint instead of
7862 thread_stopped_by_hw_breakpoint.
7863 (handle_inferior_event)
7864 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
7865 inferior_ptid directly, nor
7866 set_current_inferior/set_current_program_space. Use
7867 switch_to_thread / switch_to_inferior_no_thread instead.
7869 2020-06-18 Pedro Alves <palves@redhat.com>
7871 * target.c (generic_mourn_inferior): Use switch_to_no_thread
7872 instead of writing to inferior_ptid.
7874 2020-06-18 Pedro Alves <palves@redhat.com>
7876 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
7878 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
7879 to the added thread.
7880 (inf_ptrace_target::detach_success): Use switch_to_no_thread
7881 instead of writing to inferior_ptid.
7883 2020-06-18 Pedro Alves <palves@redhat.com>
7885 * gdbarch-selftests.c: Include "progspace-and-thread.h".
7886 (register_to_value_test): Mock a program_space too. Heap-allocate
7887 the address space. Don't write to inferior_ptid. Use
7888 switch_to_thread instead.
7890 2020-06-18 Pedro Alves <palves@redhat.com>
7892 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
7894 (find_signalled_thread()): New, factored out from
7895 linux_make_corefile_notes and adjusted to handle exited threads.
7896 (linux_make_corefile_notes): Adjust to use the new
7897 find_signalled_thread.
7899 2020-06-18 Pedro Alves <palves@redhat.com>
7901 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
7902 of saving/restoring inferior_ptid.
7904 2020-06-17 Tom Tromey <tom@tromey.com>
7906 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
7907 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
7909 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
7911 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
7913 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
7916 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7918 * regformats/reg-arm.dat: Remove.
7919 * regformats/reg-bfin.dat: Remove.
7920 * regformats/reg-cris.dat: Remove.
7921 * regformats/reg-crisv32.dat: Remove.
7922 * regformats/reg-m32r.dat: Remove.
7923 * regformats/reg-tilegx.dat: Remove.
7924 * regformats/reg-tilegx32.dat: Remove.
7926 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7928 * features/Makefile (WHICH): Remove arm files.
7929 * regformats/arm/arm-with-iwmmxt.dat: Remove.
7930 * regformats/arm/arm-with-neon.dat: Remove.
7931 * regformats/arm/arm-with-vfpv2.dat: Remove.
7932 * regformats/arm/arm-with-vfpv3.dat: Remove.
7934 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7936 * features/Makefile (XMLTOC): Remove rx.xml.
7938 2020-06-17 Pedro Alves <palves@redhat.com>
7940 * gdbthread.h (thread_control_state) <trap_expected> Update
7943 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7945 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
7946 ada_language::lookup_symbol_nonlocal.
7947 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
7948 (ada_language::lookup_symbol_nonlocal): New member function,
7949 implementation from ada_lookup_symbol_nonlocal.
7950 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
7952 (cplus_language_data): Delete la_lookup_symbol_nonlocal
7954 (cplus_language::lookup_symbol_nonlocal): New member function.
7955 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
7956 (minimal_language_data) Likewise.
7957 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
7958 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
7960 (d_language::lookup_symbol_nonlocal): New member function.
7961 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
7963 (f_language::lookup_symbol_nonlocal): New member function.
7964 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
7966 * language.c (unknown_language_data): Likewise.
7967 (auto_language_data): Likewise.
7968 * language.h (language_data): Delete la_lookup_symbol_nonlocal
7970 (language_defn::lookup_symbol_nonlocal): New member function.
7971 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
7973 * objc-lang.c (objc_language_data): Likewise.
7974 * opencl-lang.c (opencl_language_data): Likewise.
7975 * p-lang.c (pascal_language_data): Likewise.
7976 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
7977 rust_language::lookup_symbol_nonlocal.
7978 (rust_language_data): Delete la_lookup_symbol_nonlocal
7980 (rust_language::lookup_symbol_nonlocal): New member function,
7981 implementation from rust_lookup_symbol_nonlocal.
7982 * symtab.c (lookup_symbol_aux): Update call to
7983 lookup_symbol_nonlocal.
7984 (basic_lookup_symbol_nonlocal): Rename to...
7985 (language_defn::lookup_symbol_nonlocal): ...this, and update
7986 header comment. Remove language_defn parameter, and replace with
7988 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
7990 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7992 * ada-lang.c (ada_language_data): Delete la_value_print_inner
7994 (ada_language::value_print_inner): New member function.
7995 * c-lang.c (c_language_data): Delete la_value_print_inner
7997 (cplus_language_data): Likewise.
7998 (asm_language_data): Likewise.
7999 (minimal_language_data): Likewise.
8000 * d-lang.c (d_language_data): Likewise.
8001 (d_language::value_print_inner): New member function.
8002 * f-lang.c (f_language_data): Delete la_value_print_inner
8004 (f_language::value_print_inner): New member function.
8005 * f-lang.h (f_value_print_innner): Rename to...
8006 (f_value_print_inner): ...this (note spelling of 'inner').
8007 * f-valprint.c (f_value_print_innner): Rename to...
8008 (f_value_print_inner): ...this (note spelling of 'inner').
8009 * go-lang.c (go_language_data): Delete la_value_print_inner
8011 (go_language::value_print_inner): New member function.
8012 * language.c (language_defn::value_print_inner): Define new member
8014 (unk_lang_value_print_inner): Delete.
8015 (unknown_language_data): Delete la_value_print_inner initializer.
8016 (unknown_language::value_print_inner): New member function.
8017 (auto_language_data): Delete la_value_print_inner initializer.
8018 (auto_language::value_print_inner): New member function.
8019 * language.h (language_data): Delete la_value_print_inner field.
8020 (language_defn::value_print_inner): Delcare new member function.
8021 * m2-lang.c (m2_language_data): Delete la_value_print_inner
8023 (m2_language::value_print_inner): New member function.
8024 * objc-lang.c (objc_language_data): Delete la_value_print_inner
8026 * opencl-lang.c (opencl_language_data): Likewise.
8027 * p-lang.c (pascal_language_data): Likewise.
8028 (pascal_language::value_print_inner): New member function.
8029 * rust-lang.c (rust_language_data): Delete la_value_print_inner
8031 (rust_language::value_print_inner): New member function.
8032 * valprint.c (do_val_print): Update call to value_print_inner.
8034 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8036 * ada-lang.c (ada_language_data): Delete la_value_print
8038 (ada_language::value_print): New member function.
8039 * c-lang.c (c_language_data): Delete la_value_print initializer.
8040 (cplus_language_data): Likewise.
8041 (asm_language_data): Likewise.
8042 (minimal_language_data): Likewise.
8043 * d-lang.c (d_language_data): Likewise.
8044 * f-lang.c (f_language_data): Likewise.
8045 * go-lang.c (go_language_data): Likewise.
8046 * language.c (unk_lang_value_print): Delete.
8047 (language_defn::value_print): Define new member function.
8048 (unknown_language_data): Delete la_value_print initializer.
8049 (unknown_language::value_print): New member function.
8050 (auto_language_data): Delete la_value_print initializer.
8051 (auto_language::value_print): New member function.
8052 * language.h (language_data): Delete la_value_print field.
8053 (language_defn::value_print): Declare new member function.
8054 (LA_VALUE_PRINT): Update call to value_print.
8055 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
8056 * objc-lang.c (objc_language_data): Likewise.
8057 * opencl-lang.c (opencl_language_data): Likewise.
8058 * p-lang.c (pascal_language_data): Likewise.
8059 (pascal_language::value_print): New member function.
8060 * rust-lang.c (rust_language_data): Delete la_value_print
8063 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8065 * ada-lang.c (ada_watch_location_expression): Rename to
8066 ada_language::watch_location_expression.
8067 (ada_language_data): Delete la_watch_location_expression
8069 (ada_language::watch_location_expression): New member function,
8070 implementation from ada_watch_location_expression.
8071 * breakpoint.c (watch_command_1): Update call to
8072 watch_location_expression.
8073 * c-lang.c (c_watch_location_expression): Rename to
8074 language_defn::watch_location_expression.
8075 (c_language_data): Delete la_watch_location_expression
8077 (cplus_language_data): Likewise.
8078 (asm_language_data): Likewise.
8079 (minimal_language_data): Likewise.
8080 * c-lang.h (c_watch_location_expression): Delete declaration.
8081 * d-lang.c (d_language_data): Delete la_watch_location_expression
8083 * f-lang.c (f_language_data): Likewise.
8084 * go-lang.c (go_language_data): Likewise.
8085 * language.c (language_defn::watch_location_expression): Member
8086 function implementation from c_watch_location_expression.
8087 (unknown_language_data): Delete la_watch_location_expression
8089 (auto_language_data): Likewise.
8090 * language.h (language_data): Delete la_watch_location_expression
8092 (language_defn::watch_location_expression): Declare new member
8094 * m2-lang.c (m2_language_data): Delete
8095 la_watch_location_expression initializer.
8096 * objc-lang.c (objc_language_data): Likewise.
8097 * opencl-lang.c (opencl_language_data): Likewise.
8098 * p-lang.c (pascal_language_data): Likewise.
8099 * rust-lang.c (rust_watch_location_expression): Rename to
8100 rust_language::watch_location_expression.
8101 (rust_language_data): Delete la_watch_location_expression
8103 (rust_language::watch_location_expression): New member function,
8104 implementation from rust_watch_location_expression.
8106 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8108 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
8109 ada_language::collect_symbol_completion_matches.
8110 (ada_language_data): Delete la_collect_symbol_completion_matches
8112 (ada_language::collect_symbol_completion_matches): New member
8113 function, implementation from
8114 ada_collect_symbol_completion_matches.
8115 * c-lang.c (c_language_data): Delete
8116 la_collect_symbol_completion_matches initializer.
8117 (cplus_language_data): Likewise.
8118 (asm_language_data): Likewise.
8119 (minimal_language_data): Likewise.
8120 * d-lang.c (d_language_data): Likewise.
8121 * f-lang.c (f_collect_symbol_completion_matches): Rename to
8122 f_language::collect_symbol_completion_matches.
8123 (f_language_data): Delete la_collect_symbol_completion_matches
8125 (f_language::collect_symbol_completion_matches) New member
8126 function, implementation from f_collect_symbol_completion_matches.
8127 * go-lang.c (go_language_data): Delete
8128 la_collect_symbol_completion_matches initializer.
8129 * language.c (unknown_language_data): Likewise.
8130 (auto_language_data): Likewise.
8131 * language.h (language_data): Delete
8132 la_collect_symbol_completion_matches field.
8133 (language_defn::collect_symbol_completion_matches): New member
8135 * m2-lang.c (m2_language_data): Delete
8136 la_collect_symbol_completion_matches initializer.
8137 * objc-lang.c (objc_language_data): Likewise.
8138 * opencl-lang.c (opencl_language_data): Likewise.
8139 * p-lang.c (pascal_language_data): Likewise.
8140 * rust-lang.c (rust_language_data): Likewise.
8141 * symtab.c (default_collect_symbol_completion_matches): Delete.
8142 (collect_symbol_completion_matches): Update call to
8143 collect_symbol_completion_matches.
8144 (collect_symbol_completion_matches_type): Likewise.
8145 * symtab.h (default_collect_symbol_completion_matches): Delete
8148 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8150 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
8151 (ada_language_data): Delete la_word_break_characters initializer.
8152 (ada_language::word_break_characters): New member function.
8153 * c-lang.c (c_language_data): Delete la_word_break_characters
8155 (cplus_language_data): Likewise.
8156 (asm_language_data): Likewise.
8157 (minimal_language_data): Likewise.
8158 * completer.c: Update global comment.
8159 (advance_to_expression_complete_word_point): Update call to
8160 word_break_characters.
8161 (complete_files_symbols): Likewise.
8162 (complete_line_internal_1): Likewise.
8163 (default_completer_handle_brkchars): Likewise.
8164 (skip_quoted_chars): Likewise.
8165 * d-lang.c (d_language_data): Delete la_word_break_characters
8167 * f-lang.c (f_word_break_characters): Delete.
8168 (f_language_data): Delete la_word_break_characters initializer.
8169 (f_language::word_break_characters): New member function.
8170 * go-lang.c (go_language_data): Delete la_word_break_characters
8172 * language.c (unknown_language_data): Likewise.
8173 (auto_language_data): Likewise.
8174 * language.h (default_word_break_characters): Move declaration to
8175 earlier in the file.
8176 (language_data): Delete la_word_break_characters field.
8177 (language_defn::word_break_characters): New member function.
8178 * m2-lang.c (m2_language_data): Delete la_word_break_characters
8180 * objc-lang.c (objc_language_data): Likewise.
8181 * opencl-lang.c (opencl_language_data): Likewise.
8182 * p-lang.c (pascal_language_data): Likewise.
8183 * rust-lang.c (rust_language_data): Likewise.
8185 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8187 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
8188 (ada_language_data): Delete la_get_symbol_name_matcher
8190 (language_defn::get_symbol_name_matcher_inner): New member
8192 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
8194 (cplus_language_data): Likewise.
8195 (cplus_language::get_symbol_name_matcher_inner): New member
8197 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
8198 (minimal_language_data): Likewise.
8199 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
8200 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
8202 * dictionary.c (iter_match_first_hashed): Update call to
8203 get_symbol_name_matcher.
8204 (iter_match_next_hashed): Likewise.
8205 (iter_match_next_linear): Likewise.
8206 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
8207 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
8209 (f_language::get_symbol_name_matcher_inner): New member function.
8210 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
8212 * language.c (default_symbol_name_matcher): Update header comment,
8214 (language_defn::get_symbol_name_matcher): New definition.
8215 (language_defn::get_symbol_name_matcher_inner): Likewise.
8216 (get_symbol_name_matcher): Delete.
8217 (unknown_language_data): Delete la_get_symbol_name_matcher
8219 (auto_language_data): Likewise.
8220 * language.h (language_data): Delete la_get_symbol_name_matcher
8222 (language_defn::get_symbol_name_matcher): New member function.
8223 (language_defn::get_symbol_name_matcher_inner): Likewise.
8224 (default_symbol_name_matcher): Delete declaration.
8225 * linespec.c (find_methods): Update call to
8226 get_symbol_name_matcher.
8227 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
8229 * minsyms.c (lookup_minimal_symbol): Update call to
8230 get_symbol_name_matcher.
8231 (iterate_over_minimal_symbols): Likewise.
8232 * objc-lang.c (objc_language_data): Delete
8233 la_get_symbol_name_matcher initializer.
8234 * opencl-lang.c (opencl_language_data): Likewise.
8235 * p-lang.c (pascal_language_data): Likewise.
8236 * psymtab.c (psymbol_name_matches): Update call to
8237 get_symbol_name_matcher.
8238 * rust-lang.c (rust_language_data): Delete
8239 la_get_symbol_name_matcher initializer.
8240 * symtab.c (symbol_matches_search_name): Update call to
8241 get_symbol_name_matcher.
8242 (compare_symbol_name): Likewise.
8244 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8246 * ada-lang.c (ada_language_data): Delete la_compute_program
8248 * c-lang.c (c_language_data): Likewise.
8249 (c_language::compute_program): New member function.
8250 (cplus_language_data): Delete la_compute_program initializer.
8251 (cplus_language::compute_program): New member function.
8252 (asm_language_data): Delete la_compute_program initializer.
8253 (minimal_language_data): Likewise.
8254 * c-lang.h (c_compute_program): Update comment.
8255 (cplus_compute_program): Likewise.
8256 * compile/compile-c-support.c (c_compute_program): Likewise.
8257 (cplus_compute_program): Likewise.
8258 * compile/compile.c (compile_to_object): Update call to
8260 * d-lang.c (d_language_data): Delete la_compute_program
8262 * f-lang.c (f_language_data): Likewise.
8263 * go-lang.c (go_language_data): Likewise.
8264 * language.c (unknown_language_data): Likewise.
8265 (auto_language_data): Likewise.
8266 * language.h (language_data): Delete la_compute_program field.
8267 (language_defn::compute_program): New member function.
8268 * m2-lang.c (m2_language_data): Delete la_compute_program
8270 * objc-lang.c (objc_language_data): Likewise.
8271 * opencl-lang.c (opencl_language_data): Likewise.
8272 * p-lang.c (pascal_language_data): Likewise.
8273 * rust-lang.c (rust_language_data): Likewise.
8275 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8277 * ada-lang.c (ada_language_data) Delete
8278 la_class_name_from_physname initializer.
8279 * c-lang.c (c_language_data): Likewise.
8280 (cplus_language_data): Likewise.
8281 (cplus_language::class_name_from_physname): New member function.
8282 (asm_language_data): Delete la_class_name_from_physname
8284 (minimal_language_data): Likewise.
8285 * d-lang.c (d_language_data): Likewise.
8286 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
8287 method on language_defn class.
8288 (guess_full_die_structure_name): Likewise.
8289 * f-lang.c (f_language_data): Delete la_class_name_from_physname
8291 * go-lang.c (go_language_data): Likewise.
8292 * language.c (language_class_name_from_physname): Delete.
8293 (unk_lang_class_name): Delete.
8294 (unknown_language_data): Delete la_class_name_from_physname
8296 (auto_language_data): Likewise.
8297 * language.h (language_data): Delete la_class_name_from_physname
8299 (language_defn::class_name_from_physname): New function.
8300 (language_class_name_from_physname): Delete declaration.
8301 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
8303 * objc-lang.c (objc_language_data): Likewise.
8304 * opencl-lang.c (opencl_language_data): Likewise.
8305 * p-lang.c (pascal_language_data): Likewise.
8306 * rust-lang.c (rust_language_data): Likewise.
8308 2020-06-16 Tom Tromey <tom@tromey.com>
8310 * tui/tui-data.h (STATUS_NAME): New macro.
8311 * tui/tui-layout.c (tui_remove_some_windows)
8312 (initialize_known_windows, tui_register_window)
8313 (tui_layout_split::remove_windows, initialize_layouts)
8314 (tui_new_layout_command): Don't use hard-coded window names.
8316 2020-06-16 Tom Tromey <tom@tromey.com>
8319 * tui/tui.c (tui_ensure_readline_initialized): Rename from
8320 tui_initialize_readline. Only run once. Call rl_initialize.
8321 * tui/tui.h (tui_ensure_readline_initialized): Rename from
8322 tui_initialize_readline.
8323 * tui/tui-io.c (tui_setup_io): Call
8324 tui_ensure_readline_initialized.
8325 * tui/tui-interp.c (tui_interp::init): Update.
8327 2020-06-16 Tom Tromey <tom@tromey.com>
8329 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
8330 Also preserve the status window.
8332 2020-06-16 Tom Tromey <tom@tromey.com>
8334 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
8335 where m_window==nullptr.
8337 2020-06-15 Tom Tromey <tromey@adacore.com>
8339 * windows-nat.c (windows_nat::handle_output_debug_string):
8341 (windows_nat::handle_ms_vc_exception): Update.
8342 * target.h (target_read_string): Change API.
8343 * target.c (target_read_string): Change API.
8344 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
8346 * solib-frv.c (frv_current_sos): Update.
8347 * solib-dsbt.c (dsbt_current_sos): Update.
8348 * solib-darwin.c (darwin_current_sos): Update.
8349 * linux-thread-db.c (inferior_has_bug): Update.
8350 * expprint.c (print_subexp_standard): Update.
8351 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
8352 (ada_exception_message_1): Update.
8354 2020-06-15 Tom Tromey <tromey@adacore.com>
8356 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
8358 2020-06-15 Tom Tromey <tromey@adacore.com>
8360 * valprint.c (read_string): Update comment.
8361 * target.c (MIN): Remove.
8362 (target_read_string): Rewrite.
8364 2020-06-15 Tom Tromey <tromey@adacore.com>
8366 * corefile.c (read_memory_string): Remove.
8367 * ada-valprint.c (ada_value_print_ptr): Update.
8368 * ada-lang.h (ada_tag_name): Change return type.
8369 * ada-lang.c (type_from_tag): Update.
8370 (ada_tag_name_from_tsd): Change return type. Use
8372 (ada_tag_name): Likewise.
8373 * gdbcore.h (read_memory_string): Don't declare.
8375 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
8377 * symtab.c (rbreak_command): Ignore Windows drive colon.
8379 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
8381 * NEWS: Mention removed GDBserver host support.
8383 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
8385 * features/riscv/rebuild-csr-xml.sh: Updated.
8387 2020-06-11 Tom Tromey <tom@tromey.com>
8390 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
8392 2020-06-09 Jonny Grant <jg@jguk.org>
8393 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
8395 * main.c (captured_main_1): Don't print new line after help.
8396 (print_gdb_help): add mailing list and IRC channel information
8397 to --help. Add new lines between items in the footer. Remove
8398 quotes around bug url.
8400 2020-06-11 Keith Seitz <keiths@redhat.com>
8403 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
8404 Resolve typedefs for type length calculations.
8406 2020-06-10 Tom de Vries <tdevries@suse.de>
8409 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
8410 (write_psymbols): Enable .gdb_index for ada.
8411 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
8414 2020-06-10 Tom de Vries <tdevries@suse.de>
8416 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
8417 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
8418 namei" instead of "const char *name" argument.
8419 (dw2_map_matching_symbols): Use "offset_type namei" variant of
8420 dw2_symtab_iter_init.
8422 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8424 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
8425 to use type::field and field::type instead.
8427 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8429 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
8430 to use field::type instead.
8432 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8434 * gdbtypes.h (struct field) <type, set_type>: New methods.
8435 Rename `type` field to...
8436 <m_type>: ... this. Change references throughout to use type or
8438 (FIELD_TYPE): Use field::type. Change call sites that modify
8439 the field's type to use field::set_type instead.
8441 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8443 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
8444 to use type::index_type instead.
8446 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8448 * gdbtypes.h (struct type) <index_type, set_index_type>: New
8450 (TYPE_INDEX_TYPE): Use type::index_type.
8451 * gdbtypes.c (create_array_type_with_stride): Likewise.
8453 2020-06-07 Tom Tromey <tom@tromey.com>
8455 * valprint.c (generic_val_print_float): Remove "embedded_offset"
8457 (generic_value_print): Update.
8459 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8461 Revert commit 982a38f60b0.
8462 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
8464 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8466 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
8467 avoid use after free.
8469 2020-06-05 Tom de Vries <tdevries@suse.de>
8473 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
8475 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
8477 (dwarf2_read_debug_names): Likewise.
8478 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
8479 object when re-using a per_bfd object with an index.
8481 2020-06-03 Tom de Vries <tdevries@suse.de>
8484 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
8486 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
8489 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8491 * ada-lang.c (ada_language_data): Delete skip_trampoline
8493 * c-lang.c (c_language_data): Likewise.
8494 (cplus_language_data): Likewise.
8495 (cplus_language::skip_trampoline): New member function.
8496 (asm_language_data): Delete skip_trampoline initializer.
8497 (minimal_language_data): Likewise.
8498 * d-lang.c (d_language_data): Likewise.
8499 * f-lang.c (f_language_data): Likewise.
8500 * go-lang.c (go_language_data): Likewise.
8501 * language.c (unk_lang_trampoline): Delete function.
8502 (skip_language_trampoline): Update.
8503 (unknown_language_data): Delete skip_trampoline initializer.
8504 (auto_language_data): Likewise.
8505 * language.h (language_data): Delete skip_trampoline field.
8506 (language_defn::skip_trampoline): New function.
8507 * m2-lang.c (m2_language_data): Delete skip_trampoline
8509 * objc-lang.c (objc_skip_trampoline): Delete function, move
8510 implementation to objc_language::skip_trampoline.
8511 (objc_language_data): Delete skip_trampoline initializer.
8512 (objc_language::skip_trampoline): New member function with
8513 implementation from objc_skip_trampoline.
8514 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
8516 * p-lang.c (pascal_language_data): Likewise.
8517 * rust-lang.c (rust_language_data): Likewise.
8519 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8521 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
8522 (ada_language::demangle): New member function.
8523 * c-lang.c (c_language_data): Delete la_demangle initializer.
8524 (cplus_language_data): Delete la_demangle initializer.
8525 (cplus_language::demangle): New member function.
8526 (asm_language_data): Delete la_demangle initializer.
8527 (minimal_language_data): Delete la_demangle initializer.
8528 * d-lang.c (d_language_data): Delete la_demangle initializer.
8529 (d_language::demangle): New member function.
8530 * f-lang.c (f_language_data): Delete la_demangle initializer.
8531 (f_language::demangle): New member function.
8532 * go-lang.c (go_language_data): Delete la_demangle initializer.
8533 (go_language::demangle): New member function.
8534 * language.c (language_demangle): Update.
8535 (unk_lang_demangle): Delete.
8536 (unknown_language_data): Delete la_demangle initializer.
8537 (unknown_language::demangle): New member function.
8538 (auto_language_data): Delete la_demangle initializer.
8539 (auto_language::demangle): New member function.
8540 * language.h (language_data): Delete la_demangle field.
8541 (language_defn::demangle): New function.
8542 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
8543 * objc-lang.c (objc_language_data): Delete la_demangle
8545 (objc_language::demangle): New member function.
8546 * opencl-lang.c (opencl_language_data): Delete la_demangle
8548 * p-lang.c (pascal_language_data): Likewise.
8549 * rust-lang.c (rust_language_data): Likewise.
8550 (rust_language::demangle): New member function.
8552 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8554 * ada-lang.c (ada_language_data): Delete la_print_type
8556 (ada_language::print_type): New member function.
8557 * c-lang.c (c_language_data): Delete la_print_type initializer.
8558 (c_language::print_type): New member function.
8559 (cplus_language_data): Delete la_print_type initializer.
8560 (cplus_language::print_type): New member function.
8561 (asm_language_data): Delete la_print_type initializer.
8562 (asm_language::print_type): New member function.
8563 (minimal_language_data): Delete la_print_type initializer.
8564 (minimal_language::print_type): New member function.
8565 * d-lang.c (d_language_data): Delete la_print_type initializer.
8566 (d_language::print_type): New member function.
8567 * f-lang.c (f_language_data): Delete la_print_type initializer.
8568 (f_language::print_type): New member function.
8569 * go-lang.c (go_language_data): Delete la_print_type initializer.
8570 (go_language::print_type): New member function.
8571 * language.c (unk_lang_print_type): Delete.
8572 (unknown_language_data): Delete la_print_type initializer.
8573 (unknown_language::print_type): New member function.
8574 (auto_language_data): Delete la_print_type initializer.
8575 (auto_language::print_type): New member function.
8576 * language.h (language_data): Delete la_print_type field.
8577 (language_defn::print_type): New function.
8578 (LA_PRINT_TYPE): Update.
8579 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
8580 (m2_language::print_type): New member function.
8581 * objc-lang.c (objc_language_data): Delete la_print_type
8583 (objc_language::print_type): New member function.
8584 * opencl-lang.c (opencl_print_type): Delete, implementation moved
8585 to opencl_language::print_type.
8586 (opencl_language_data): Delete la_print_type initializer.
8587 (opencl_language::print_type): New member function, implementation
8588 from opencl_print_type.
8589 * p-lang.c (pascal_language_data): Delete la_print_type
8591 (pascal_language::print_type): New member function.
8592 * rust-lang.c (rust_print_type): Delete, implementation moved to
8593 rust_language::print_type.
8594 (rust_language_data): Delete la_print_type initializer.
8595 (rust_language::print_type): New member function, implementation
8596 from rust_print_type.
8598 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8600 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
8601 implementation moves to...
8602 (ada_language::sniff_from_mangled_name): ...here. Update return
8604 (ada_language_data): Delete la_sniff_from_mangled_name
8606 * c-lang.c (c_language_data): Likewise.
8607 (cplus_language_data): Likewise.
8608 (cplus_language::sniff_from_mangled_name): New member function,
8609 implementation taken from gdb_sniff_from_mangled_name.
8610 (asm_language_data): Delete la_sniff_from_mangled_name
8612 (minimal_language_data): Likewise.
8613 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
8614 implementation moves to cplus_language::sniff_from_mangled_name.
8615 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
8616 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
8618 (d_language::sniff_from_mangled_name): ...here.
8619 (d_language_data): Delete la_sniff_from_mangled_name initializer.
8620 * f-lang.c (f_language_data): Likewise.
8621 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
8623 (go_language::sniff_from_mangled_name): ...here.
8624 (go_language_data): Delete la_sniff_from_mangled_name initializer.
8625 * language.c (language_sniff_from_mangled_name): Delete.
8626 (unknown_language_data): Delete la_sniff_from_mangled_name
8628 (auto_language_data): Likewise.
8629 * language.h (language_data): Delete la_sniff_from_mangled_name
8631 (language_defn::sniff_from_mangled_name): New function.
8632 (language_sniff_from_mangled_name): Delete declaration.
8633 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
8635 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
8636 implementation moves to...
8637 (objc_language::sniff_from_mangled_name): ...here.
8638 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
8639 * opencl-lang.c (opencl_language_data): Likewise.
8640 * p-lang.c (pascal_language_data): Likewise.
8641 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
8642 implementation moves to...
8643 (rust_language::sniff_from_mangled_name): ...here.
8644 (rust_language_data): Delete la_sniff_from_mangled_name
8646 * symtab.c (symbol_find_demangled_name): Call
8647 sniff_from_mangled_name member function.
8649 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8651 * ada-lang.c (ada_language_data): Delete la_search_name_hash
8653 * c-lang.c (c_language_data): Likewise.
8654 (cplus_language_data): Likewise.
8655 (cplus_language::search_name_hash): New member function.
8656 (asm_language_data): Delete la_search_name_hash initializer.
8657 (minimal_language_data): Likewise.
8658 * d-lang.c (d_language_data): Likewise.
8659 * dictionary.c (default_search_name_hash): Rename to...
8660 (language_defn::search_name_hash): ...this.
8661 * f-lang.c (f_language_data): Likewise.
8662 (f_language::search_name_hash): New member function.
8663 * go-lang.c (go_language_data): Delete la_search_name_hash
8665 * language.c (unknown_language_data): Likewise.
8666 (auto_language_data): Likewise.
8667 * language.h (struct language_data): Delete la_search_name_hash
8669 (language_defn::search_name_hash): Declare new member function.
8670 (default_search_name_hash): Delete declaration.
8671 * m2-lang.c (m2_language_data): Delete la_search_name_hash
8673 * objc-lang.c (objc_language_data): Likewise.
8674 * opencl-lang.c (opencl_language_data): Likewise.
8675 * p-lang.c (pascal_language_data): Likewise.
8676 * rust-lang.c (rust_language_data): Likewise.
8677 * symtab.c (search_name_hash): Update call.
8679 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8681 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
8683 * c-lang.c (class compile_instance): Declare.
8684 (c_language_data): Delete la_get_compile_instance initializer.
8685 (c_language::get_compile_instance): New member function.
8686 (cplus_language_data): Delete la_get_compile_instance initializer.
8687 (cplus_language::get_compile_instance): New member function.
8688 (asm_language_data): Delete la_get_compile_instance initializer.
8689 (minimal_language_data): Likewise.
8690 * c-lang.h (c_get_compile_context): Update comment.
8691 (cplus_get_compile_context): Update comment.
8692 * compile/compile.c (compile_to_object): Update calls, don't rely
8693 on function pointer being NULL.
8694 * d-lang.c (d_language_data): Delete la_get_compile_instance
8696 * f-lang.c (f_language_data): Likewise.
8697 * go-lang.c (go_language_data): Likewise.
8698 * language.c (unknown_language_data): Likewise.
8699 (auto_language_data): Likewise.
8700 * language.h (language_data): Delete la_get_compile_instance field.
8701 (language_defn::get_compile_instance): New member function.
8702 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
8704 * objc-lang.c (objc_language_data): Likewise.
8705 * opencl-lang.c (opencl_language_data): Likewise.
8706 * p-lang.c (pascal_language_data): Likewise.
8707 * rust-lang.c (rust_language_data): Likewise.
8709 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8711 * ada-lang.c (ada_add_all_symbols): Update comment.
8712 (ada_iterate_over_symbols): Delete, move implementation to...
8713 (ada_language::iterate_over_symbols): ...here, a new member
8714 function, rewrite to use range based for loop.
8715 (ada_language_data): Delete la_iterate_over_symbols initializer.
8716 * c-lang.c (c_language_data): Likewise.
8717 (cplus_language_data): Likewise.
8718 (asm_language_data): Likewise.
8719 (minimal_language_data): Likewise.
8720 * d-lang.c (d_language_data): Likewise.
8721 * f-lang.c (f_language_data): Likewise.
8722 * go-lang.c (go_language_data): Likewise.
8723 * language.c (unknown_language_data): Likewise.
8724 (auto_language_data): Likewise.
8725 * language.h (language_data): Delete la_iterate_over_symbols field.
8726 (language_defn::iterate_over_symbols): New member function.
8727 (LA_ITERATE_OVER_SYMBOLS): Update.
8728 * linespec.c (iterate_over_all_matching_symtabs): Update.
8729 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
8731 * objc-lang.c (objc_language_data): Likewise.
8732 * opencl-lang.c (opencl_language_data): Likewise.
8733 * p-lang.c (pascal_language_data): Likewise.
8734 * rust-lang.c (rust_language_data): Likewise.
8736 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8738 * ada-lang.c (ada_language_data): Delete
8739 la_lookup_transparent_type initializer.
8740 * c-lang.c (c_language_data): Likewise.
8741 (cplus_language_data): Likewise.
8742 (cplus_language::lookup_transparent_type): New member function.
8743 (asm_language_data): Delete la_lookup_transparent_type
8745 (minimal_language_data): Likewise.
8746 * d-lang.c (d_language_data): Likewise.
8747 * f-lang.c (f_language_data): Likewise.
8748 * go-lang.c (go_language_data): Likewise.
8749 * language.c (unknown_language_data): Likewise.
8750 (auto_language_data): Likewise.
8751 * language.h (struct language_data): Delete
8752 la_lookup_transparent_type field.
8753 (language_defn::lookup_transparent_type): New member function.
8754 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
8756 * objc-lang.c (objc_language_data): Likewise.
8757 * opencl-lang.c (opencl_language_data): Likewise.
8758 * p-lang.c (pascal_language_data): Likewise.
8759 * rust-lang.c (rust_language_data): Likewise.
8760 * symtab.c (symbol_matches_domain): Update call.
8762 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8764 * ada-lang.c (ada_language_arch_info): Delete function, move
8765 implementation to...
8766 (ada_language::language_arch_info): ...here, a new member
8768 (ada_language_data): Delete la_language_arch_info.
8769 * c-lang.c (c_language_data): Likewise.
8770 (c_language::language_arch_info): New member function.
8771 (cplus_language_arch_info): Delete function, move
8772 implementation to...
8773 (cplus_language::language_arch_info): ...here, a new member
8775 (cplus_language_data): Delete la_language_arch_info.
8776 (asm_language_data): Likewise.
8777 (asm_language::language_arch_info): New member function.
8778 (minimal_language_data): Delete la_language_arch_info.
8779 (minimal_language::language_arch_info): New member function.
8780 * d-lang.c (d_language_arch_info): Delete function, move
8781 implementation to...
8782 (d_language::language_arch_info): ...here, a new member
8784 (d_language_data): Delete la_language_arch_info.
8785 * f-lang.c (f_language_arch_info): Delete function, move
8786 implementation to...
8787 (f_language::language_arch_info): ...here, a new member
8789 (f_language_data): Delete la_language_arch_info.
8790 * go-lang.c (go_language_arch_info): Delete function, move
8791 implementation to...
8792 (go_language::language_arch_info): ...here, a new member
8794 (go_language_data): Delete la_language_arch_info.
8795 * language.c (unknown_language_data): Likewise.
8796 (unknown_language::language_arch_info): New member function.
8797 (auto_language_data): Delete la_language_arch_info.
8798 (auto_language::language_arch_info): New member function.
8799 (language_gdbarch_post_init): Update call to
8800 la_language_arch_info.
8801 * language.h (language_data): Delete la_language_arch_info
8803 (language_defn::language_arch_info): New function.
8804 * m2-lang.c (m2_language_arch_info): Delete function, move
8805 implementation to...
8806 (m2_language::language_arch_info): ...here, a new member
8808 (m2_language_data): Delete la_language_arch_info.
8809 * objc-lang.c (objc_language_arch_info): Delete function, move
8810 implementation to...
8811 (objc_language::language_arch_info): ...here, a new member
8813 (objc_language_data): Delete la_language_arch_info.
8814 * opencl-lang.c (opencl_language_arch_info): Delete function, move
8815 implementation to...
8816 (opencl_language::language_arch_info): ...here, a new member
8818 (opencl_language_data): Delete la_language_arch_info.
8819 * p-lang.c (pascal_language_arch_info): Delete function, move
8820 implementation to...
8821 (pascal_language::language_arch_info): ...here, a new member
8823 (pascal_language_data): Delete la_language_arch_info.
8824 * rust-lang.c (rust_language_arch_info): Delete function, move
8825 implementation to...
8826 (rust_language::language_arch_info): ...here, a new member
8828 (rust_language_data): Delete la_language_arch_info.
8830 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8832 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
8834 * c-lang.c (c_language_data): Likewise.
8835 (cplus_language_data): Likewise.
8836 (cplus_language::pass_by_reference_info): New method.
8837 (asm_language_data): Delete la_pass_by_reference initializer.
8838 (minimal_language_data): Likewise.
8839 * cp-abi.c (cp_pass_by_reference): Remove use of
8840 default_pass_by_reference.
8841 * d-lang.c (d_language_data): Likewise.
8842 * f-lang.c (f_language_data): Likewise.
8843 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
8844 default_pass_by_reference.
8845 * go-lang.c (go_language_data): Likewise.
8846 * language.c (language_pass_by_reference): Update.
8847 (default_pass_by_reference): Delete.
8848 (unknown_language_data): Delete la_pass_by_reference
8850 (auto_language_data): Likewise.
8851 * language.h (struct language_data): Delete la_pass_by_reference
8853 (language_defn::pass_by_reference_info): New member function.
8854 (default_pass_by_reference): Delete declaration.
8855 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
8857 * objc-lang.c (objc_language_data): Likewise.
8858 * opencl-lang.c (opencl_language_data): Likewise.
8859 * p-lang.c (pascal_language_data): Likewise.
8860 * rust-lang.c (rust_language_data): Likewise.
8862 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8864 * ada-lang.c (ada_read_var_value): Delete function, move
8865 implementation to...
8866 (ada_language::read_var_value): ...here.
8867 (ada_language_data): Delete la_read_var_value initializer.
8868 * c-lang.c (c_language_data): Likewise.
8869 (cplus_language_data): Likewise.
8870 (minimal_language_data): Likewise.
8871 * d-lang.c (d_language_data): Likewise.
8872 * f-lang.c (f_language_data): Likewise.
8873 * findvar.c (default_read_var_value): Rename to...
8874 (language_defn::read_var_value): ...this.
8875 * findvar.c (read_var_value): Update header comment, and change to
8876 call member function instead of function pointer.
8877 * go-lang.c (go_language_data): Likewise.
8878 * language.c (unknown_language_data): Delete la_read_var_value
8880 (auto_language_data): Likewise.
8881 * language.h (struct language_data): Delete la_read_var_value
8883 (language_defn::read_var_value): New member function.
8884 (default_read_var_value): Delete declaration.
8885 * m2-lang.c (m2_language_data): Delete la_read_var_value
8887 * objc-lang.c (objc_language_data): Likewise.
8888 * opencl-lang.c (opencl_language_data): Likewise.
8889 * p-lang.c (pascal_language_data): Likewise.
8890 * rust-lang.c (rust_language_data): Likewise.
8891 * value.h (default_read_var_value): Delete declaration.
8893 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8895 * ada-lang.c (ada_print_array_index): Delete function, move
8896 implementation to...
8897 (ada_language::print_array_index): ...here.
8898 (ada_language_data): Delete la_print_array_index initializer.
8899 * c-lang.c (c_language_data): Likewise.
8900 (cplus_language_data): Likewise.
8901 (minimal_language_data): Likewise.
8902 * d-lang.c (d_language_data): Likewise.
8903 * f-lang.c (f_language_data): Likewise.
8904 * go-lang.c (go_language_data): Likewise.
8905 * language.c (default_print_array_index): Delete function, move
8906 implementation to...
8907 (language_defn::print_array_index): ...here.
8908 (unknown_language_data): Delete la_print_array_index initializer.
8909 (auto_language_data): Likewise.
8910 * language.h (struct language_data): Delete la_print_array_index
8912 (language_defn::print_array_index): New member function.
8913 (LA_PRINT_ARRAY_INDEX): Update.
8914 (default_print_array_index): Delete declaration.
8915 * m2-lang.c (m2_language_data): Delete la_print_array_index
8917 * objc-lang.c (objc_language_data): Likewise.
8918 * opencl-lang.c (opencl_language_data): Likewise.
8919 * p-lang.c (pascal_language_data): Likewise.
8920 * rust-lang.c (rust_language_data): Likewise.
8922 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8924 * gdb/ada-lang.c (ada_language_defn): Convert to...
8925 (ada_language_data): ...this.
8926 (class ada_language): New class.
8927 (ada_language_defn): New static global.
8928 * gdb/c-lang.c (c_language_defn): Convert to...
8929 (c_language_data): ...this.
8930 (class c_language): New class.
8931 (c_language_defn): New static global.
8932 (cplus_language_defn): Convert to...
8933 (cplus_language_data): ...this.
8934 (class cplus_language): New class.
8935 (cplus_language_defn): New static global.
8936 (asm_language_defn): Convert to...
8937 (asm_language_data): ...this.
8938 (class asm_language): New class.
8939 (asm_language_defn): New static global.
8940 (minimal_language_defn): Convert to...
8941 (minimal_language_data): ...this.
8942 (class minimal_language): New class.
8943 (minimal_language_defn): New static global.
8944 * gdb/d-lang.c (d_language_defn): Convert to...
8945 (d_language_data): ...this.
8946 (class d_language): New class.
8947 (d_language_defn): New static global.
8948 * gdb/f-lang.c (f_language_defn): Convert to...
8949 (f_language_data): ...this.
8950 (class f_language): New class.
8951 (f_language_defn): New static global.
8952 * gdb/go-lang.c (go_language_defn): Convert to...
8953 (go_language_data): ...this.
8954 (class go_language): New class.
8955 (go_language_defn): New static global.
8956 * gdb/language.c (unknown_language_defn): Remove declaration.
8957 (current_language): Initialize to nullptr, real initialization is
8958 moved to _initialize_language.
8959 (languages): Delete global.
8960 (language_defn::languages): Define.
8961 (set_language_command): Use language_defn::languages.
8962 (set_language): Likewise.
8963 (range_error): Likewise.
8964 (language_enum): Likewise.
8965 (language_def): Likewise.
8966 (add_set_language_command): Use language_def::languages for the
8967 language list, and language_def to lookup language pointers.
8968 (skip_language_trampoline): Use language_defn::languages.
8969 (unknown_language_defn): Convert to...
8970 (unknown_language_data): ...this.
8971 (class unknown_language): New class.
8972 (unknown_language_defn): New static global.
8973 (auto_language_defn): Convert to...
8974 (auto_language_data): ...this.
8975 (class auto_language): New class.
8976 (auto_language_defn): New static global.
8977 (language_gdbarch_post_init): Use language_defn::languages.
8978 (_initialize_language): Initialize current_language.
8979 * gdb/language.h (struct language_defn): Rename to...
8980 (struct language_data): ...this.
8981 (struct language_defn): New.
8982 (auto_language_defn): Delete.
8983 (unknown_language_defn): Delete.
8984 (minimal_language_defn): Delete.
8985 (ada_language_defn): Delete.
8986 (asm_language_defn): Delete.
8987 (c_language_defn): Delete.
8988 (cplus_language_defn): Delete.
8989 (d_language_defn): Delete.
8990 (f_language_defn): Delete.
8991 (go_language_defn): Delete.
8992 (m2_language_defn): Delete.
8993 (objc_language_defn): Delete.
8994 (opencl_language_defn): Delete.
8995 (pascal_language_defn): Delete.
8996 (rust_language_defn): Delete.
8997 * gdb/m2-lang.c (m2_language_defn): Convert to...
8998 (m2_language_data): ...this.
8999 (class m2_language): New class.
9000 (m2_language_defn): New static global.
9001 * gdb/objc-lang.c (objc_language_defn): Convert to...
9002 (objc_language_data): ...this.
9003 (class objc_language): New class.
9004 (objc_language_defn): New static global.
9005 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
9006 (opencl_language_data): ...this.
9007 (class opencl_language): New class.
9008 (opencl_language_defn): New static global.
9009 * gdb/p-lang.c (pascal_language_defn): Convert to...
9010 (pascal_language_data): ...this.
9011 (class pascal_language): New class.
9012 (pascal_language_defn): New static global.
9013 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
9014 language pointer, update comment format.
9015 * gdb/rust-lang.c (rust_language_defn): Convert to...
9016 (rust_language_data): ...this.
9017 (class rust_language): New class.
9018 (rust_language_defn): New static global.
9020 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
9022 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
9024 <m_stmt_at_address>: New member variable.
9025 (lnp_state_machine::record_line): Don't record some lines, update
9026 tracking of is_stmt at the same address.
9027 (lnp_state_machine::lnp_state_machine): Initialise new member
9030 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
9032 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
9033 "-include gnu-nat-mig.h".
9034 * gnu-nat-mig.h: New file.
9035 * gnu-nat.c: Include "gnu-nat-mig.h".
9036 (exc_server, msg_reply_server, notify_server,
9037 process_reply_server): Remove declarations.
9039 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9041 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
9042 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
9043 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
9044 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
9045 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
9046 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
9047 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
9048 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
9049 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
9050 to gnu_nat_target class.
9051 * gnu-nat.c: Likewise.
9052 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
9053 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
9054 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
9056 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
9057 instead of `gnu_target'.
9059 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9061 * i386-gnu-tdep.c: Include "gdbcore.h"
9062 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
9063 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
9064 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
9065 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
9066 i386_gnu_sigcontext_addr): New functions
9067 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
9068 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
9071 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9073 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
9074 before fork_inferior call. Avoid calling it if target_is_pushed returns
9077 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9079 * gnu-nat.h (gnu_target): New variable declaration.
9080 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
9082 * gnu-nat.c (gnu_target): New variable.
9083 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
9084 add_thread_silent, and add_thread calls.
9085 (gnu_nat_target::create_inferior): Pass gnu_target to
9086 add_thread_silent, thread_change_ptid call.
9087 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
9090 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9092 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
9093 (gnu_nat_target::find_memory_regions): Remove unused
9094 `old_address' variable.
9096 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9098 * gnu-nat.c: Include "gdbarch.h".
9100 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9102 * reply_mig_hack.awk (Error return): Cast function through
9103 void *, to bypass compiler function call check.
9105 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9107 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
9108 $(srcdir)/reply_mig_hack.awk.
9110 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9112 * gnu-nat.h (gnu_debug_flag): Set type to bool.
9114 2020-05-30 Jonny Grant <jg@jguk.org>
9116 * configure.ac (ACX_BUGURL): change bug URL to https.
9118 2020-05-30 Pedro Alves <palves@redhat.com>
9120 * cp-support.c (replace_typedefs_template): New.
9121 (replace_typedefs_qualified_name): Handle
9122 DEMANGLE_COMPONENT_TEMPLATE.
9124 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
9126 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
9127 dwarf2/index-cache.h, dwarf2/index-write.c,
9128 dwarf2/index-write.h, dwarf2/line-header.c,
9129 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
9130 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
9131 variables and fields from `dwarf2_per_objfile` to just
9132 `per_objfile` throughout.
9134 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
9136 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9137 <push_dwarf_reg_entry_value>: Add comment.
9139 2020-05-28 Kevin Buettner <kevinb@redhat.com>
9140 Keith Seitz <keiths@redhat.com>
9142 * python/python.c (do_start_initialization): Call PyEval_SaveThread
9143 instead of PyEval_ReleaseLock.
9144 (class gdbpy_gil): Move to earlier in file.
9145 (finalize_python): Set gdb_python_initialized.
9146 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
9147 when not initialized.
9149 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
9151 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9152 <push_dwarf_reg_entry_value>: Remove assert. Override
9153 per_objfile with caller_per_objfile.
9155 2020-05-28 Tom de Vries <tdevries@suse.de>
9157 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
9158 PR gold/15646 workaround to symbol kind "type".
9160 2020-05-27 Tom Tromey <tromey@adacore.com>
9162 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
9164 2020-05-27 Tom Tromey <tromey@adacore.com>
9166 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
9167 Use htab_find_with_hash.
9168 <add_abbrev>: Remove "abbrev_number" parameter.
9169 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
9170 "abbrev_number" parameter. Use htab_find_slot_with_hash.
9171 (hash_abbrev): Add comment.
9172 (abbrev_table::lookup_abbrev): Move to header file.
9173 (abbrev_table::read): Update.
9175 2020-05-27 Tom Tromey <tromey@adacore.com>
9177 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
9179 <canonical_name>: New member.
9180 <raw_name>: Rename from "name".
9181 (partial_die_info): Initialize canonical_name.
9182 (scan_partial_symbols): Check raw_name.
9183 (partial_die_parent_scope, partial_die_full_name)
9184 (add_partial_symbol, add_partial_subprogram)
9185 (add_partial_enumeration, load_partial_dies): Use "name" method.
9186 (partial_die_info::name): New method.
9187 (partial_die_info::read, guess_partial_die_structure_name)
9188 (partial_die_info::fixup): Update.
9190 2020-05-27 Tom Tromey <tromey@adacore.com>
9192 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
9193 <get_ref_die_offset>: Inline.
9194 <get_ref_die_offset_complaint>: New method.
9195 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
9196 (attribute::get_ref_die_offset_complaint): Rename from
9197 get_ref_die_offset. Just issue complaint.
9199 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9201 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
9203 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9205 * exec.c (exec_file_attach): Use errno value of first openp failure.
9207 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9209 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
9210 Don't close thread handle.
9212 2020-05-27 Tom Tromey <tom@tromey.com>
9213 Simon Marchi <simon.marchi@efficios.com>
9215 * objfiles.h (struct objfile) <partial_symtabs>: Now a
9217 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
9219 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
9220 dwarf2_per_bfd_objfile_data_key>: New globals.
9221 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
9222 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
9223 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
9225 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
9226 short-circuit when sharing.
9227 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
9228 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
9230 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9232 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
9234 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
9235 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
9237 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9239 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
9240 build_name_components, find_name_components_bounds>:
9241 Add per_objfile parameter.
9242 (struct mapped_index) <symbol_name_at>: Likewise.
9243 (struct mapped_debug_names): Remove constructor.
9244 <dwarf2_per_objfile>: Remove field.
9245 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
9246 (mapped_index_base::find_name_components_bounds,
9247 mapped_index_base::build_name_components,
9248 dw2_expand_symtabs_matching_symbol): Likewise.
9249 (class mock_mapped_index) <symbol_name_at>: Likewise.
9250 (check_match): Likewise.
9251 (check_find_bounds_finds): Likewise.
9252 (test_mapped_index_find_name_component_bounds): Update.
9253 (CHECK_MATCH): Update.
9254 (dw2_expand_symtabs_matching): Update.
9255 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
9256 per_objfile parameter.
9257 <find_vec_in_debug_names>: Likewise.
9258 <m_per_objfile>: New field.
9259 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
9261 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
9262 (dw2_debug_names_iterator::next): Update.
9263 (dw2_debug_names_lookup_symbol): Update.
9264 (dw2_debug_names_expand_symtabs_for_function): Update.
9265 (dw2_debug_names_map_matching_symbols): Update.
9266 (dw2_debug_names_expand_symtabs_matching): Update.
9267 (dwarf2_read_debug_names): Update.
9269 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9271 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
9272 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
9273 move to dwarf2_per_objfile.
9274 <read_in_chain>: Remove.
9275 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
9276 remove_all_cus, age_comp_units>: New methods.
9277 <m_dwarf2_cus>: New member.
9278 (struct dwarf2_per_cu_data) <cu>: Remove.
9279 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
9280 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
9281 moved to methods of dwarf2_per_objfile.
9282 (dwarf2_clear_marks): Remove.
9283 (dwarf2_queue_item::~dwarf2_queue_item): Update.
9284 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
9285 (dwarf2_per_bfd::free_cached_comp_units): Remove.
9286 (dwarf2_per_objfile::remove_all_cus): New.
9287 (class free_cached_comp_units) <~free_cached_comp_units>:
9290 (dw2_do_instantiate_symtab): Adjust.
9291 (fill_in_sig_entry_from_dwo_entry): Adjust.
9292 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9293 (cutu_reader::cutu_reader): Likewise.
9294 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
9295 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
9296 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
9297 and dwarf2_per_objfile::age_comp_units.
9298 (load_partial_comp_unit): Update.
9299 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
9300 (process_queue): Likewise.
9301 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
9303 (dwarf2_read_addr_index): Likewise.
9304 (follow_die_offset): Likewise.
9305 (dwarf2_fetch_die_loc_sect_off): Likewise.
9306 (dwarf2_fetch_constant_bytes): Likewise.
9307 (dwarf2_fetch_die_type_sect_off): Likewise.
9308 (follow_die_sig_1): Likewise.
9309 (load_full_type_unit): Likewise.
9310 (read_signatured_type): Likewise.
9311 (dwarf2_cu::dwarf2_cu): Don't set cu field.
9312 (dwarf2_cu::~dwarf2_cu): Remove.
9313 (dwarf2_per_objfile::get_cu): New.
9314 (dwarf2_per_objfile::set_cu): New.
9315 (age_cached_comp_units): Rename to...
9316 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
9317 to std::unordered_map.
9318 (free_one_cached_comp_unit): Rename to...
9319 (dwarf2_per_objfile::remove_cu): ... this. Adjust
9320 to std::unordered_map.
9321 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
9322 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
9323 a dwarf2_per_objfile in data.
9324 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
9325 (dwarf2_clear_marks): Remove.
9327 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9329 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
9330 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
9331 (init_tu_and_read_dwo_dies): Likewise.
9332 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
9333 (cutu_reader::cutu_reader): Likewise.
9334 (load_partial_comp_unit): Likewise.
9335 (process_psymtab_comp_unit): Update.
9336 (build_type_psymtabs_1): Update.
9337 (process_skeletonless_type_unit): Update.
9338 (load_full_comp_unit): Update.
9339 (find_partial_die): Update.
9340 (dwarf2_read_addr_index): Update.
9341 (read_signatured_type): Update.
9343 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9345 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
9346 m_header_read_in>: New fields.
9347 <get_header>: New method.
9348 * dwarf2/read.c (per_cu_header_read_in): Remove.
9349 (dwarf2_per_cu_data::get_header): New.
9350 (dwarf2_per_cu_data::addr_size): Update.
9351 (dwarf2_per_cu_data::offset_size): Update.
9352 (dwarf2_per_cu_data::ref_addr_size): Update.
9354 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9356 * dwarf2/read.c (load_cu): Return dwarf2_cu.
9357 (dw2_do_instantiate_symtab): Update.
9358 (queue_and_load_all_dwo_tus): Change parameter from
9359 dwarf2_per_cu_data to dwarf2_cu.
9360 (dwarf2_fetch_die_loc_sect_off): Update.
9361 (dwarf2_fetch_constant_bytes): Update.
9362 (dwarf2_fetch_die_type_sect_off): Update.
9364 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9366 * dwarf2/read.c (process_full_comp_unit,
9367 process_full_type_unit): Remove per_cu, per_objfile paramters.
9368 Add dwarf2_cu parameter.
9369 (process_queue): Update.
9371 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9373 * dwarf2/read.c (create_cu_from_index_list): Replace
9374 dwarf2_per_objfile parameter with dwarf2_per_bfd.
9375 (create_cus_from_index_list): Likewise.
9376 (create_cus_from_index): Likewise.
9377 (create_signatured_type_table_from_index): Likewise.
9378 (create_cus_from_debug_names_list): Likewise.
9379 (create_cus_from_debug_names): Likewise.
9380 (dwarf2_read_gdb_index): Update.
9381 (dwarf2_read_debug_names): Update.
9383 2020-05-27 Tom Tromey <tom@tromey.com>
9384 Simon Marchi <simon.marchi@efficios.com>
9386 * dwarf2/read.h (struct dwarf2_per_objfile)
9387 <get_type_for_signatured_type, set_type_for_signatured_type>:
9389 <m_type_map>: New member.
9390 (struct signatured_type) <type>: Remove.
9392 (dwarf2_per_objfile::get_type_for_signatured_type,
9393 dwarf2_per_objfile::set_type_for_signatured_type): New.
9394 (get_signatured_type): Use new methods.
9396 2020-05-27 Tom Tromey <tom@tromey.com>
9397 Simon Marchi <simon.marchi@efficios.com>
9399 * dwarf2/read.h (struct type_unit_group_unshareable): New.
9400 (struct dwarf2_per_objfile) <type_units>: New member.
9401 <get_type_unit_group_unshareable>: New method.
9402 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
9403 num_symtabs, symtabs>: Remove; move to
9404 type_unit_group_unshareable.
9405 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
9406 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
9407 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
9409 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9411 * dwarf2/read.h (struct dwarf2_per_cu_data):
9412 <dwarf2_per_objfile>: Remove.
9413 * dwarf2/read.c (create_cu_from_index_list): Don't assign
9415 (create_signatured_type_table_from_index): Likewise.
9416 (create_signatured_type_table_from_debug_names): Likewise.
9417 (create_debug_type_hash_table): Likewise.
9418 (fill_in_sig_entry_from_dwo_entry): Likewise.
9419 (create_type_unit_group): Likewise.
9420 (read_comp_units_from_section): Likewise.
9421 (create_cus_hash_table): Likewise.
9423 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9425 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
9426 dwarf2_per_cu_data::dwarf2_per_objfile.
9427 (compute_compunit_symtab_includes): Likewise.
9428 (dwarf2_cu::start_symtab): Likewise.
9430 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9432 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
9434 * dwarf2/read.c (get_die_type_at_offset): Likewise.
9435 (read_namespace_alias): Update.
9436 (lookup_die_type): Update.
9437 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
9438 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
9440 (disassemble_dwarf_expression): Update.
9442 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9444 * dwarf2/read.h (struct dwarf2_queue_item): Add
9445 dwarf2_per_objfile parameter, assign new parameter.
9446 <per_objfile>: New field.
9447 * dwarf2/read.c (free_one_cached_comp_unit): Add
9448 dwarf2_per_objfile parameter.
9449 (queue_comp_unit): Likewise.
9450 (dw2_do_instantiate_symtab): Update.
9451 (process_psymtab_comp_unit): Update.
9452 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
9453 (process_imported_unit_die): Update.
9454 (queue_and_load_dwo_tu): Update.
9455 (follow_die_offset): Update.
9456 (follow_die_sig_1): Update.
9458 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9460 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
9461 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
9462 (read_call_site_scope): Assign per_objfile.
9463 (dwarf2_per_cu_data::objfile): Remove.
9464 * gdbtypes.h (struct call_site) <per_objfile>: New member.
9465 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
9466 dwarf2_per_objfile parameter.
9467 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
9468 dwarf2_per_objfile parameter.
9469 (dwarf_expr_reg_to_entry_parameter): Add output
9470 dwarf2_per_objfile parameter.
9471 (locexpr_get_frame_base): Update.
9472 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
9473 <push_dwarf_reg_entry_value>: Update.
9474 <call_site_to_target_addr>: Update.
9475 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
9477 (value_of_dwarf_reg_entry): Update.
9478 (rw_pieced_value): Update.
9479 (indirect_synthetic_pointer): Update.
9480 (dwarf2_evaluate_property): Update.
9481 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
9483 (locexpr_read_variable): Update.
9484 (locexpr_get_symbol_read_needs): Update.
9485 (loclist_read_variable): Update.
9487 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9489 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9490 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9491 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9493 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9494 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9495 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9497 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
9498 sect_variable_value): Add dwarf2_per_objfile parameter.
9499 (class dwarf_evaluate_loc_desc) <dwarf_call,
9500 dwarf_variable_value>: Update.
9501 (fetch_const_value_from_synthetic_pointer): Add
9502 dwarf2_per_objfile parameter.
9503 (fetch_const_value_from_synthetic_pointer): Update.
9504 (coerced_pieced_ref): Update.
9505 (class symbol_needs_eval_context) <dwarf_call,
9506 dwarf_variable_value>: Update.
9507 (dwarf2_compile_expr_to_ax): Update.
9509 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9511 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
9513 (dwarf2_evaluate_loc_desc_full): Update.
9515 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9517 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
9519 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
9520 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
9521 dwarf2_per_objfile parameter.
9522 (decode_debug_loc_dwo_addresses): Likewise.
9523 (dwarf2_find_location_expression): Update.
9524 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
9525 (locexpr_describe_location_piece): Add dwarf2_per_objfile
9527 (disassemble_dwarf_expression): Add dwarf2_per_objfile
9529 (locexpr_describe_location_1): Likewise.
9530 (locexpr_describe_location): Update.
9532 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9534 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
9536 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
9537 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
9538 (dwarf2_compile_property_to_c): Update.
9539 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
9540 use text offset from objfile.
9541 (locexpr_tracepoint_var_ref): Update.
9542 (locexpr_generate_c_location): Update.
9543 (loclist_describe_location): Update.
9544 (loclist_tracepoint_var_ref): Update.
9545 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
9546 dwarf2_per_objfile parameter.
9547 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
9548 use text offset from objfile.
9549 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
9551 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9553 * dwarf2/expr.h (struct dwarf_expr_context)
9554 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
9556 <per_objfile>: New member.
9557 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
9558 dwarf2_per_objfile parameter. Don't set offset, set
9560 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
9561 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
9562 a dwarf2_per_objfile object instead of an offset.
9563 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
9565 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
9566 to dwarf2_expr_executor constructor. Don't set offset.
9567 (dwarf2_fetch_cfa_info): Update.
9568 (struct dwarf2_frame_cache) <text_offset>: Remove.
9569 <per_objfile>: New field.
9570 (dwarf2_frame_cache): Update.
9571 (dwarf2_frame_prev_register): Update.
9572 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9573 <dwarf_evaluate_loc_desc>: Add constructor.
9574 (dwarf2_evaluate_loc_desc_full): Update.
9575 (dwarf2_locexpr_baton_eval): Update.
9576 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
9578 (dwarf2_loc_desc_get_symbol_read_needs): Update.
9580 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9582 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
9583 addr_sized_int_type>: Move to dwarf2_cu.
9584 <int_type>: Move to dwarf2_per_objfile.
9585 (struct dwarf2_per_objfile) <int_type>: Move here.
9586 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
9587 addr_sized_int_type>: Move here.
9588 (read_func_scope): Update.
9589 (read_array_type): Update.
9590 (read_tag_string_type): Update.
9591 (attr_to_dynamic_prop): Update.
9592 (dwarf2_per_cu_data::int_type): Rename to...
9593 (dwarf2_per_objfile::int_type): ... this.
9594 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
9595 (dwarf2_cu::addr_sized_int_type): ... this.
9596 (read_subrange_type): Update.
9597 (dwarf2_per_cu_data::addr_type): Rename to...
9598 (dwarf2_cu::addr_type): ... this.
9599 (set_die_type): Update.
9601 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9603 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
9604 data through per_cu->cu.
9606 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9608 * dwarf2/read.c (lookup_dwo_comp_unit): Change
9609 dwarf2_per_cu_data parameter fo dwarf2_cu.
9610 (lookup_dwo_type_unit): Likewise.
9611 (read_cutu_die_from_dwo): Likewise.
9612 (lookup_dwo_unit): Likewise.
9613 (open_and_init_dwo_file): Likewise.
9614 (lookup_dwo_cutu): Likewise.
9615 (lookup_dwo_comp_unit): Likewise.
9616 (lookup_dwo_type_unit): Likewise.
9617 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9618 (cutu_reader::cutu_reader): Update.
9620 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9622 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
9624 (process_full_type_unit): Likewise.
9625 (process_queue): Update.
9627 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9629 * dwarf2/read.c (recursively_compute_inclusions): Add
9630 dwarf2_per_objfile parameter.
9631 (compute_compunit_symtab_includes): Likewise.
9632 (process_cu_includes): Update.
9634 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9636 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
9638 (create_type_unit_group): Update.
9639 (process_psymtab_comp_unit_reader): Update.
9640 (build_type_psymtabs_reader): Update.
9642 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9644 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
9645 object through m_this_cu->cu.
9647 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9649 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
9651 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
9653 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9655 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
9656 per_objfile parameter.
9657 (load_full_type_unit): Add per_objfile parameter.
9658 (read_signatured_type): Likewise.
9659 (load_full_comp_unit): Likewise.
9660 (load_cu): Likewise.
9661 (dw2_do_instantiate_symtab): Likewise.
9662 (dw2_get_file_names): Likewise.
9663 (dw2_map_symtabs_matching_filename): Update.
9664 (dw_expand_symtabs_matching_file_matcher): Update.
9665 (dw2_map_symbol_filenames): Update.
9666 (process_psymtab_comp_unit): Add per_objfile parameter.
9667 (build_type_psymtabs_1): Update.
9668 (process_skeletonless_type_unit): Update.
9669 (dwarf2_build_psymtabs_hard): Update.
9670 (load_partial_comp_unit): Add per_objfile parameter.
9671 (scan_partial_symbols): Update.
9672 (load_full_comp_unit): Add per_objfile parameter.
9673 (process_imported_unit_die): Update.
9674 (create_cus_hash_table): Update.
9675 (find_partial_die): Update.
9676 (dwarf2_read_addr_index): Update.
9677 (follow_die_offset): Update.
9678 (dwarf2_fetch_die_loc_sect_off): Update.
9679 (dwarf2_fetch_constant_bytes): Update.
9680 (dwarf2_fetch_die_type_sect_off): Update.
9681 (follow_die_sig_1): Update.
9682 (load_full_type_unit): Add per_objfile parameter.
9683 (read_signatured_type): Likewise.
9685 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9687 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
9690 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9692 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
9693 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9694 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
9696 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9697 (create_cus_from_index): Update.
9698 (dwarf2_read_gdb_index): Update.
9699 (create_cus_from_debug_names): Update.
9700 (dwarf2_read_debug_names): Update.
9701 (get_abbrev_section_for_cu): Update.
9702 (create_all_comp_units): Update.
9703 (read_attribute_value): Update.
9704 (get_debug_line_section): Update.
9705 * dwarf2/index-cache.c (index_cache::store): Update.
9706 * dwarf2/index-write.c (save_gdb_index_command): Update.
9707 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
9709 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9711 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
9713 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
9714 dwarf2_per_cu_data::per_bfd.
9715 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
9716 (create_type_unit_group): Likewise.
9717 (queue_comp_unit): Remove reference to
9718 per_cu->dwarf2_per_objfile.
9719 (maybe_queue_comp_unit): Likewise.
9720 (fill_in_sig_entry_from_dwo_entry): Assign new field.
9721 (create_cus_hash_table): Assign new field.
9723 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9725 * dwarf2/read.c: Replace
9726 dwarf2_cu->per_cu->dwarf2_per_objfile references with
9727 dwarf2_cu->per_objfile throughout.
9729 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9731 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
9732 parameter, don't use per_cu->dwarf2_per_objfile.
9733 (dw2_instantiate_symtab): Likewise.
9734 (dw2_find_last_source_symtab): Update.
9735 (dw2_map_expand_apply): Update.
9736 (dw2_lookup_symbol): Update.
9737 (dw2_expand_symtabs_for_function): Update.
9738 (dw2_expand_all_symtabs): Update.
9739 (dw2_expand_symtabs_with_fullname): Update.
9740 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
9741 don't use per_cu->dwarf2_per_objfile.
9742 (dw2_expand_marked_cus): Update.
9743 (dw2_find_pc_sect_compunit_symtab): Update.
9744 (dw2_debug_names_lookup_symbol): Update.
9745 (dw2_debug_names_expand_symtabs_for_function): Update.
9746 (dw2_debug_names_map_matching_symbols): Update.
9747 (dwarf2_psymtab::expand_psymtab): Update.
9749 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9751 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
9752 <per_objfile>: New member.
9753 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
9754 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
9756 (cutu_reader::cutu_reader): Update.
9757 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
9759 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9761 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
9762 struct dwarf2_per_objfile.
9763 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
9765 * dwarf2/read.c (set_die_type): Update.
9766 (get_die_type_at_offset): Update.
9768 2020-05-27 Tom Tromey <tom@tromey.com>
9769 Simon Marchi <simon.marchi@efficios.com>
9771 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
9773 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
9774 get_symtab, set_symtab>: New methods.
9775 <m_symtabs>: New field.
9776 (struct dwarf2_psymtab): Derive from partial_symtab.
9777 <readin_p, get_compunit_symtab>: Declare methods.
9778 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
9779 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
9781 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
9782 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
9783 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9784 (dw2_symtab_iter_next, dw2_print_stats)
9785 (dw2_expand_symtabs_with_fullname)
9786 (dw2_expand_symtabs_matching_one)
9787 (dw_expand_symtabs_matching_file_matcher)
9788 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
9789 (dw2_debug_names_iterator::next)
9790 (dw2_debug_names_map_matching_symbols)
9791 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
9792 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
9793 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
9795 (get_compunit_symtab, process_full_comp_unit)
9796 (process_full_type_unit): Update.
9797 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
9799 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9801 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
9802 then introduce a new dwarf2_per_objfile type.
9803 <read_line_string>: Move to the new dwarf2_per_objfile type.
9804 <objfile>: Likewise.
9805 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
9806 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
9807 dwarf2_per_objfile->per_bfd.
9808 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
9809 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
9810 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
9811 (dwarf2_per_bfd::free_cached_comp_units): ... this.
9812 (dwarf2_has_info): Allocate dwarf2_per_bfd.
9813 (dwarf2_per_objfile::locate_sections): Rename to...
9814 (dwarf2_per_bfd::locate_sections): ... this.
9815 (dwarf2_per_objfile::get_cutu): Rename to...
9816 (dwarf2_per_bfd::get_cutu): ... this.
9817 (dwarf2_per_objfile::get_cu): Rename to...
9818 (dwarf2_per_bfd::get_cu): ... this.
9819 (dwarf2_per_objfile::get_tu): Rename to...
9820 (dwarf2_per_bfd::get_tu): ... this.
9821 (dwarf2_per_objfile::allocate_per_cu): Rename to...
9822 (dwarf2_per_bfd::allocate_per_cu): ... this.
9823 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
9824 (dwarf2_per_bfd::allocate_signatured_type): ... this.
9825 (get_gdb_index_contents_ftype): Change parameter from
9826 dwarf2_per_objfile to dwarf2_per_bfd.
9827 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
9828 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
9830 2020-05-27 Tom Tromey <tom@tromey.com>
9831 Simon Marchi <simon.marchi@efficios.com>
9833 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
9834 (allocate_piece_closure): Set "per_objfile" member.
9835 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
9836 (locexpr_describe_location, loclist_describe_location): Use new
9838 * dwarf2/read.c (read_call_site_scope)
9839 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
9840 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
9841 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
9842 handle_data_member_location): Set per_objfile member.
9843 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
9845 (struct dwarf2_loclist_baton) <per_objfile>: New member.
9847 2020-05-27 Tom Tromey <tom@tromey.com>
9849 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
9850 allocate_signatured_type>: Declare new methods.
9851 <m_num_psymtabs>: New member.
9852 (struct dwarf2_per_cu_data) <index>: New member.
9853 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
9854 (dwarf2_per_objfile::allocate_signatured_type): New methods.
9855 (create_cu_from_index_list): Use allocate_per_cu.
9856 (create_signatured_type_table_from_index)
9857 (create_signatured_type_table_from_debug_names)
9858 (create_debug_type_hash_table, add_type_unit)
9859 (read_comp_units_from_section): Use allocate_signatured_type.
9861 2020-05-27 Tom Tromey <tom@tromey.com>
9863 * psymtab.c (partial_map_expand_apply)
9864 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9865 (psym_lookup_global_symbol_language)
9866 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9867 (psym_print_stats, psym_expand_symtabs_for_function)
9868 (psym_map_symbol_filenames, psym_map_matching_symbols)
9869 (psym_expand_symtabs_matching)
9870 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9871 (maintenance_check_psymtabs): Update.
9872 * psympriv.h (struct partial_symtab) <readin_p,
9873 get_compunit_symtab>: Add objfile parameter.
9874 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
9876 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
9877 get_compunit_symtab>: Likewise.
9878 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
9880 2020-05-27 Tom Tromey <tom@tromey.com>
9882 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
9884 * dwarf2/read.c (delete_file_name_entry): Fix comment.
9885 (create_cu_from_index_list)
9886 (create_signatured_type_table_from_index)
9887 (create_signatured_type_table_from_debug_names)
9888 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
9889 (dwarf2_create_include_psymtab)
9890 (create_debug_type_hash_table, add_type_unit)
9891 (create_type_unit_group, read_comp_units_from_section)
9892 (dwarf2_compute_name, create_cus_hash_table)
9893 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9894 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
9896 (dw2_get_real_path): Likewise. Change argument to
9899 2020-05-27 Luis Machado <luis.machado@linaro.org>
9902 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
9903 for ldrd (immediate).
9905 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9907 * command.h: Add comment giving the name of class_tui.
9908 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
9909 create the fake command for the help for class_tui.
9911 2020-05-26 Tom Tromey <tromey@adacore.com>
9913 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
9914 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
9915 (val_atr): New function.
9916 (value_val_atr): Use it.
9917 * ada-valprint.c (print_optional_low_bound): Change low bound
9919 (val_print_packed_array_elements): Don't call discrete_position.
9920 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
9921 discrete_position for enum types.
9922 * language.c (default_print_array_index): Change type.
9923 * language.h (struct language_defn) <la_print_array_index>: Add
9924 index_type parameter, change type of index_value.
9925 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
9926 (default_print_array_index): Update.
9927 * valprint.c (maybe_print_array_index): Don't call
9928 value_from_longest. Update.
9929 (value_print_array_elements): Don't call discrete_position.
9931 2020-05-26 Tom Tromey <tromey@adacore.com>
9933 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
9934 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
9936 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
9939 * avr-tdep.c (avr_integer_to_address): Return data or code
9940 address accordingly to the second 'type' argument of the
9943 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
9945 * infcmd.c, inferior.h: (construct_inferior_arguments):
9946 Moved function from here to gdbsupport/common-inferior.{h,cc}
9948 2020-05-23 Tom Tromey <tom@tromey.com>
9950 Revert commit eca1f90c:
9951 * NEWS: Remove entry for completion styling.
9952 * completer.c (_rl_completion_prefix_display_length): Move
9954 (gdb_fnprint): Revert.
9955 (gdb_display_match_list_1): Likewise.
9956 * cli/cli-style.c (completion_prefix_style)
9957 (completion_difference_style, completion_suffix_style): Remove.
9958 (_initialize_cli_style): Revert.
9959 * cli/cli-style.h (completion_prefix_style)
9960 (completion_difference_style, completion_suffix_style): Don't
9963 2020-05-24 Pedro Alves <palves@redhat.com>
9965 * symtab.c (completion_list_add_name): Return boolean indication
9966 of whether the symbol matched.
9967 (completion_list_add_symbol): Don't try to remove C++ aliases if
9968 the symbol didn't match in the first place.
9969 * symtab.h (completion_list_add_name): Return bool.
9971 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
9973 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
9976 2020-05-23 Joel Brobecker <brobecker@adacore.com>
9980 2020-05-23 Tom Tromey <tom@tromey.com>
9982 * NEWS: Add entry for completion styling.
9983 * completer.c (_rl_completion_prefix_display_length): Move
9984 declaration earlier.
9985 (gdb_fnprint): Use completion_style.
9986 (gdb_display_match_list_1): Likewise.
9987 * cli/cli-style.c (completion_prefix_style)
9988 (completion_difference_style, completion_suffix_style): New
9990 (_initialize_cli_style): Register new globals.
9991 * cli/cli-style.h (completion_prefix_style)
9992 (completion_difference_style, completion_suffix_style): Declare.
9994 2020-05-23 Pedro Alves <palves@redhat.com>
9996 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
9997 (parse_escape): Use ISDIGIT instead of isdigit.
9998 (puts_debug): Use gdb_isprint instead of isprint.
9999 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
10000 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
10001 ISSPACE instead of isspace.
10002 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
10003 instead of isspace.
10004 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
10005 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
10006 instead of isxdigit and ISDIGIT instead of isdigit.
10008 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10010 * gdbtypes.h (struct type) <field>: New method.
10011 (TYPE_FIELDS): Remove, replace all uses with either type::fields
10014 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10016 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
10017 (TYPE_FIELDS): Use type::fields. Change all call sites that
10018 modify the propery to use type::set_fields instead.
10020 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10022 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
10023 type::num_fields instead.
10025 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10027 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
10029 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
10030 that modify the number of fields to use type::set_num_fields
10033 2020-05-22 Tom Tromey <tromey@adacore.com>
10035 * compile/compile-object-load.h (munmap_list_free): Don't
10038 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
10040 * annotate.c (annotate_source_line): Update return type, add call
10041 to update current symtab and line.
10042 * annotate.h (annotate_source_line): Update return type, and
10043 extend header comment.
10044 * source.c (info_line_command): Check annotation_level before
10045 calling annotate_source_line.
10046 * stack.c (print_frame_info): If calling annotate_source_line
10047 returns true, then don't print any other source line information.
10049 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10051 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
10053 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10055 * coffread.c (patch_type): Remove NULL check before xfree.
10056 * corefile.c (set_gnutarget): Likewise.
10057 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
10058 * exec.c (build_section_table): Likewise.
10059 * remote.c (remote_target::pass_signals): Likewise.
10060 * utils.c (n_spaces): Likewise.
10061 * cli/cli-script.c (document_command): Likewise.
10062 * i386-windows-tdep.c (core_process_module_section): Likewise.
10063 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
10065 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
10067 * symfile.c (reread_symbols): Clear objfile's section_offsets
10068 vector and section indices, re-compute them by calling
10071 2020-05-20 Tom Tromey <tromey@adacore.com>
10073 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
10074 (desc_one_bound, desc_index_type): Compute field name.
10076 2020-05-20 Tom de Vries <tdevries@suse.de>
10079 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
10081 2020-05-20 Alan Modra <amodra@gmail.com>
10084 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
10086 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
10087 passed to bfd_set_filename.
10088 * symfile-mem.c (add_vsyscall_page): Likewise for string
10089 passed to symbol_file_add_from_memory.
10090 (symbol_file_add_from_memory): Make name param a const char* and
10093 2020-05-20 Alan Modra <amodra@gmail.com>
10095 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
10096 rather than accessing bfd->filename directly.
10097 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
10098 and use bfd_section_name.
10099 * dwarf2/frame.c (decode_frame_entry): Likewise.
10100 * exec.c (exec_set_section_address): Likewise.
10101 * solib-aix.c (solib_aix_bfd_open): Likewise.
10102 * stap-probe.c (get_stap_base_address): Likewise.
10103 * symfile.c (reread_symbols): Likewise.
10105 2020-05-19 Tom Tromey <tromey@adacore.com>
10107 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
10109 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10111 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
10113 2020-05-19 Pedro Alves <palves@redhat.com>
10115 * NEWS (set exec-file-mismatch): Adjust entry.
10116 * exec.c: Include "build-id.h".
10117 (validate_exec_file): Try to match build IDs instead of filenames.
10118 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
10119 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
10120 and pass down 'warn_if_slow'.
10121 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
10122 gdb_bfd_open_closure to pass it down.
10123 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
10125 2020-05-19 Pedro Alves <palves@redhat.com>
10127 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
10128 * target.c (target_fileio_open_1): Rename to target_fileio_open
10129 and make extern. Use bool.
10130 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
10131 (target_fileio_read_alloc_1): Adjust.
10132 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
10133 (target_fileio_open_warn_if_slow): Delete declaration.
10135 2020-05-19 Pedro Alves <palves@redhat.com>
10137 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
10138 Adjust all callers.
10140 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
10142 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
10143 whether disp is negative.
10145 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10147 * symfile.h (struct symfile_segment_data)
10148 <~symfile_segment_data>: Remove.
10149 <segment_info>: Change to std::vector.
10150 * symfile.c (default_symfile_segments): Update.
10151 * elfread.c (elf_symfile_segments): Update.
10153 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10155 * symfile.h (struct symfile_segment_data) <struct segment>: New.
10157 <segment_bases, segment_sizes>: Remove.
10158 * symfile.c (default_symfile_segments): Update.
10159 * elfread.c (elf_symfile_segments): Update.
10160 * remote.c (remote_target::get_offsets): Update.
10161 * solib-target.c (solib_target_relocate_section_addresses):
10164 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10166 * symfile.h (struct symfile_segment_data): Initialize fields.
10167 <~symfile_segment_data>: Add.
10168 (symfile_segment_data_up): New.
10169 (struct sym_fns) <sym_segments>: Return a
10170 symfile_segment_data_up.
10171 (default_symfile_segments): Return a symfile_segment_data_up.
10172 (free_symfile_segment_data): Remove.
10173 (get_symfile_segment_data): Return a symfile_segment_data_up.
10174 * symfile.c (default_symfile_segments): Likewise.
10175 (get_symfile_segment_data): Likewise.
10176 (free_symfile_segment_data): Remove.
10177 (symfile_find_segment_sections): Update.
10178 * elfread.c (elf_symfile_segments): Return a
10179 symfile_segment_data_up.
10180 * remote.c (remote_target::get_offsets): Update.
10181 * solib-target.c (solib_target_relocate_section_addresses):
10183 * symfile-debug.c (debug_sym_segments): Return a
10184 symfile_segment_data_up.
10186 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10189 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
10190 Hardcode register numbers.
10193 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
10194 procfs_find_LDT_entry): Remove.
10195 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
10196 procfs_find_LDT_entry): Remove.
10197 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
10200 2020-05-17 Pedro Alves <palves@redhat.com>
10201 Andrew Burgess <andrew.burgess@embecosm.com>
10202 Keno Fischer <keno@juliacomputing.com>
10205 * breakpoint.c (build_target_condition_list): Update comments.
10206 (build_target_command_list): Update comments and skip matching
10208 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
10209 a separate function. Simplify "set breakpoint auto-hw off"
10211 (insert_breakpoints): Update comment.
10212 (tracepoint_locations_match): New parameter. For breakpoints,
10213 compare location types too, if the caller wants to.
10214 (handle_automatic_hardware_breakpoints): New functions.
10215 (bp_location_is_less_than): Also sort by location type and
10216 hardware breakpoint length.
10217 (update_global_location_list): Handle "set breakpoint auto-hw on"
10219 (update_breakpoint_locations): Ask breakpoint_locations_match to
10220 ignore location types.
10222 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10224 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
10225 type::name instead.
10227 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10229 * gdbtypes.h (struct type) <name, set_name>: New methods.
10230 (TYPE_CODE): Use type::name. Change all call sites used to set
10231 the name to use type::set_name instead.
10233 2020-05-16 Tom Tromey <tom@tromey.com>
10235 * top.c (quit_force): Update.
10236 * infrun.c (handle_no_resumed): Update.
10237 * top.h (all_uis): New function.
10240 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10242 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
10244 2020-05-16 Pedro Alves <palves@redhat.com>
10247 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
10249 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
10251 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
10253 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
10254 (sparc64_adi_info): Likewise.
10256 2020-05-15 Tom Tromey <tom@tromey.com>
10258 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
10260 (lookup_objfile_from_block): Remove.
10261 (lookup_symbol_in_block, lookup_symbol_in_static_block)
10262 (lookup_global_symbol): Use block_objfile.
10263 * symtab.h (lookup_objfile_from_block): Don't declare.
10264 * printcmd.c (clear_dangling_display_expressions): Use
10266 * parse.c (operator_check_standard): Use block_objfile.
10268 2020-05-15 Tom Tromey <tom@tromey.com>
10270 * language.c (language_alloc_type_symbol): Set
10272 * symtab.c (initialize_objfile_symbol): Remove.
10273 (allocate_symbol): Remove.
10274 (allocate_template_symbol): Remove.
10275 * dwarf2/read.c (fixup_go_packaging): Use "new".
10276 (new_symbol): Use "new".
10277 (read_variable): Don't call initialize_objfile_symbol. Use
10279 (read_func_scope): Use "new".
10280 * xcoffread.c (process_xcoff_symbol): Don't call
10281 initialize_objfile_symbol.
10282 (SYMBOL_DUP): Remove.
10283 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
10285 * symtab.h (allocate_symbol, initialize_objfile_symbol)
10286 (allocate_template_symbol): Don't declare.
10287 (struct symbol): Add copy constructor. Change defaults.
10288 * jit.c (finalize_symtab): Use "new".
10289 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
10291 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10292 (common_block_end): Use "new".
10293 * mdebugread.c (parse_symbol): Use "new".
10294 (new_symbol): Likewise.
10296 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10298 * NEWS: Mention changes to help and apropos.
10300 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10302 * command.h (enum command_class): Improve comments, document
10303 that class_alias is for user-defined aliases, give the class
10304 name for each class, remove unused class_xdb.
10305 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
10306 * breakpoint.c (_initialize_breakpoint): Replace class_alias
10307 by a precise class.
10308 * infcmd.c (_initialize_infcmd): Likewise.
10309 * reverse.c (_initialize_reverse): Likewise.
10310 * stack.c (_initialize_stack): Likewise.
10311 * symfile.c (_initialize_symfile): Likewise.
10312 * tracepoint.c (_initialize_tracepoint): Likewise.
10314 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10316 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
10317 when their aliased command is traversed.
10318 (help_cmd): Add fput_command_names_styled call to
10319 output command name and aliases when command has an alias.
10321 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10323 * cli/cli-decode.h (help_cmd_list): Remove declaration.
10324 * cli/cli-decode.c (help_cmd_list): Declare as static,
10325 remove prefix argument, use bool for recurse arg, rework to show the aliases of
10326 a command together with the command.
10327 (fput_command_name_styled, fput_command_names_styled): New functions.
10328 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
10329 fput_command_name_styled.
10330 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
10331 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
10333 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10335 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
10336 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
10337 * command.h (cmd_show_list): Likewise.
10338 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
10339 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
10341 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10343 * unittests/command-def-selftests.c (traverse_command_structure):
10344 Verify all commands of a list have the same prefix command and
10345 that only the top cmdlist commands have a null prefix.
10347 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10349 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
10350 as prefix, not one of its aliases.
10351 (set_cmd_prefix): Remove.
10352 (do_add_cmd): Centralize the setting of the prefix of a command, when
10353 command is defined after its full chain of prefix commands.
10354 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
10355 (add_setshow_cmd_full): Likewise.
10356 (update_prefix_field_of_prefixed_commands): New function.
10357 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
10358 update_prefix_field_of_prefixed_commands.
10359 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
10360 addresses of remote_set_cmdlist and remote_show_cmdlist given
10361 as argument, not the address of an argument.
10362 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
10363 * gdb/remote.c (_initialize_remote): Likewise.
10365 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10367 * cli/cli-cmds.c (alias_command): Check for an existing alias
10368 using lookup_cmd_composition, as valid_command_p is too strict
10369 and forbids aliases that are the prefix of an existing alias
10371 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
10372 command is properly recognised as a valid command.
10374 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10376 * unittests/help-doc-selftests.c: Rename to
10377 unittests/command-def-selftests.c
10378 * unittests/command-def-selftests.c (help_doc_tests): Update some
10380 (command_structure_tests, traverse_command_structure): New namespace
10382 (command_structure_invariants_tests): New function.
10383 (_initialize_command_def_selftests) Renamed from
10384 _initialize_help_doc_selftests, register command_structure_invariants
10387 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10389 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
10390 an alias of 'show'.
10392 2020-05-15 Joel Brobecker <brobecker@adacore.com>
10394 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
10395 ada_is_fixed_point_type. Update all callers.
10396 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
10398 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
10399 Update all callers.
10400 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
10401 print_fixed_point_type. Update all callers.
10402 * ada-valprint.c (ada_value_print_num): Replace call to
10403 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
10405 2020-05-14 Kevin Buettner <kevinb@redhat.com>
10407 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
10409 (cpu_supports_bts): Add CV_AMD case.
10411 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
10412 Simon Marchi <simon.marchi@efficios.com>
10414 * infrun.c (stop_all_threads): Collect multiple wait events at
10417 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
10419 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
10420 type::code instead.
10422 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
10424 * gdbtypes.h (struct type) <code, set_code>: New methods.
10425 (TYPE_CODE): Use type::code. Change all call sites used to set
10426 the code to use type::set_code instead.
10428 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10429 Tom de Vries <tdevries@suse.de>
10430 Pedro Alves <palves@redhat.com>
10433 * infrun.c (stop_all_threads): Do NOT ignore
10434 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
10435 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
10437 (handle_no_resumed): Remove code handling a live inferior with no
10439 * remote.c (has_single_non_exited_thread): New.
10440 (remote_target::update_thread_list): Do not delete a thread if is
10441 the last thread of the process.
10442 * thread.c (thread_select): Call delete_exited_threads instead of
10445 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10447 * infrun.c (stop_all_threads): Enable/disable thread events of all
10448 targets. Move a debug message denoting the end of the function
10449 into the SCOPED_EXIT block.
10451 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10453 * process-stratum-target.h: Include <set>.
10454 (all_non_exited_process_targets, switch_to_target_no_thread): New
10455 function declarations.
10456 * process-stratum-target.c (all_non_exited_process_targets)
10457 (switch_to_target_no_thread): New function implementations.
10459 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10461 * infrun.c (handle_inferior_event): Extract out a piece of code
10463 (mark_non_executing_threads): ...this new function.
10465 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10467 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
10470 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10472 * regcache.c (regcache_read_pc_protected): New function
10473 implementation that returns 0 if the PC cannot read via
10474 'regcache_read_pc'.
10475 * infrun.c (proceed): Call 'regcache_read_pc_protected'
10476 instead of 'regcache_read_pc'.
10477 (keep_going_pass_signal): Ditto.
10479 2020-05-13 Tom Tromey <tromey@adacore.com>
10481 * ada-lang.c (align_value): Remove.
10482 (ada_template_to_fixed_record_type_1): Use align_up.
10484 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10486 * async-event.c: Update the copyright year.
10487 * async-event.h: Update the copyright year.
10489 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
10491 * objfiles.h (is_addr_in_objfile,
10492 shared_objfile_contains_address_p): Return bool.
10493 * objfile.c (is_addr_in_objfile,
10494 shared_objfile_contains_address_p): Return bool.
10496 2020-05-11 Tom Tromey <tromey@adacore.com>
10498 * cli/cli-cmds.c (info_command): Restore.
10499 (_initialize_cli_cmds): Use add_prefix_command for "info".
10500 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
10502 2020-05-11 Tom Tromey <tromey@adacore.com>
10504 * ada-lang.c (ada_value_primitive_field): Now public.
10505 * ada-lang.h (ada_value_primitive_field): Declare.
10506 * ada-valprint.c (print_field_values): Use
10507 ada_value_primitive_field for wrapper fields.
10509 2020-05-11 Tom de Vries <tdevries@suse.de>
10511 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
10514 2020-05-11 Tom de Vries <tdevries@suse.de>
10517 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
10518 with length 0, if not gdb-produced.
10519 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
10521 2020-05-09 Tom de Vries <tdevries@suse.de>
10524 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
10527 2020-05-09 Tom Tromey <tom@tromey.com>
10529 * top.c (server_command): Now bool.
10530 * top.h (server_command): Now bool.
10532 2020-05-08 Tom Tromey <tromey@adacore.com>
10534 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
10535 already being processed.
10537 2020-05-08 Tom Tromey <tom@tromey.com>
10539 * printcmd.c (struct display) <next>: Remove.
10540 <display>: New constructor.
10541 <exp_string>: Now a std::string.
10542 <enabled_p>: Now a bool.
10543 (display_number): Move definition earlier.
10544 (displays): Rename from display_chain. Now a std::vector.
10545 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
10546 (display_command): Update.
10547 (do_one_display, disable_display)
10548 (enable_disable_display_command, do_enable_disable_display):
10550 (free_display): Remove.
10551 (clear_displays): Rewrite.
10552 (delete_display): Update.
10553 (map_display_numbers): Use function_view. Remove "data"
10555 (do_delete_display): Remove.
10556 (undisplay_command): Update.
10557 (do_one_display, do_displays, disable_display)
10558 (info_display_command): Update.
10559 (do_enable_disable_display): Remove.
10560 (enable_disable_display_command)
10561 (clear_dangling_display_expressions): Update.
10563 2020-05-08 Tom Tromey <tom@tromey.com>
10565 * symtab.c (set_symbol_cache_size)
10566 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
10567 (maintenance_print_symbol_cache_statistics): Update.
10568 * symmisc.c (print_symbol_bcache_statistics)
10569 (print_objfile_statistics, maintenance_print_objfiles)
10570 (maintenance_info_symtabs, maintenance_check_symtabs)
10571 (maintenance_expand_symtabs, maintenance_info_line_tables):
10573 * symfile-debug.c (set_debug_symfile): Update.
10574 * source.c (forget_cached_source_info): Update.
10575 * python/python.c (gdbpy_progspaces): Update.
10576 * psymtab.c (maintenance_info_psymtabs): Update.
10577 * probe.c (parse_probes): Update.
10578 * linespec.c (iterate_over_all_matching_symtabs)
10579 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
10580 * guile/scm-progspace.c (gdbscm_progspaces): Update.
10581 * exec.c (exec_target::close): Update.
10582 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
10583 * breakpoint.c (print_one_breakpoint_location)
10584 (create_longjmp_master_breakpoint)
10585 (create_std_terminate_master_breakpoint): Update.
10586 * progspace.c (program_spaces): Now a std::vector.
10587 (maybe_new_address_space): Update.
10588 (add_program_space): Remove.
10589 (program_space::program_space): Update.
10590 (remove_program_space): Update.
10591 (number_of_program_spaces): Remove.
10592 (print_program_space, update_address_spaces): Update.
10593 * progspace.h (program_spaces): Change type.
10594 (ALL_PSPACES): Remove.
10595 (number_of_program_spaces): Don't declare.
10596 (struct program_space) <next>: Remove.
10598 2020-05-08 Tom Tromey <tom@tromey.com>
10600 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
10601 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
10602 (enable_break): Update.
10603 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
10604 (frv_fdpic_find_canonical_descriptor): Update.
10605 (frv_fetch_objfile_link_map): Update.
10606 * progspace.c (program_space::free_all_objfiles): Update.
10607 (program_space::solibs): New method.
10608 * progspace.h (struct program_space) <solibs>: New method.
10609 * solist.h (master_so_list): Don't declare.
10610 (ALL_SO_LIBS): Remove.
10611 * solib.h (so_list_head): Remove.
10612 (update_solib_list): Update comment.
10613 * solib.c (master_so_list): Remove.
10614 (solib_used, update_solib_list, solib_add)
10615 (info_sharedlibrary_command, clear_solib)
10616 (reload_shared_libraries_1, remove_user_added_objfile): Update.
10618 2020-05-08 Tom Tromey <tom@tromey.com>
10620 * extension.c (extension_languages): Now a std::array.
10621 (ALL_EXTENSION_LANGUAGES): Remove.
10622 (get_ext_lang_defn, get_ext_lang_of_file)
10623 (eval_ext_lang_from_control_command): Update.
10624 (finish_ext_lang_initialization)
10625 (auto_load_ext_lang_scripts_for_objfile)
10626 (ext_lang_type_printers::ext_lang_type_printers)
10627 (apply_ext_lang_type_printers)
10628 (ext_lang_type_printers::~ext_lang_type_printers)
10629 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
10630 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
10631 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
10632 (get_matching_xmethod_workers, ext_lang_colorize)
10633 (ext_lang_before_prompt): Update.
10634 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
10636 2020-05-08 Tom Tromey <tom@tromey.com>
10638 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
10640 <swap_string, m_string>: Remove.
10641 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
10643 * stabsread.c (define_symbol, read_type): Update.
10644 * linespec.c (find_linespec_symbols): Update.
10645 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
10646 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
10647 * dbxread.c (read_dbx_symtab): Update.
10648 * cp-support.h (cp_canonicalize_string_full)
10649 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
10650 Return unique_xmalloc_ptr.
10651 * cp-support.c (inspect_type): Update.
10652 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
10653 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
10655 * c-typeprint.c (print_name_maybe_canonical): Update.
10656 * break-catch-throw.c (check_status_exception_catchpoint):
10659 2020-05-08 Tom de Vries <tdevries@suse.de>
10661 * infrun.c (follow_fork): Copy current_line and current_symtab to
10664 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10666 * async-event.c (struct async_signal_handler, struct
10667 async_event_handler): Reformat, remove typedef.
10669 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10671 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
10672 access thistype->main_type->dyn_prop_list directly.
10674 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10676 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
10677 (remove_dyn_prop): Remove. Update all users to use
10678 type::remove_dyn_prop.
10679 * gdbtypes.c (remove_dyn_prop): Rename to...
10680 (type::remove_dyn_prop): ... this.
10682 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
10684 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
10685 (add_dyn_prop): Remove. Update all users to use
10686 type::add_dyn_prop.
10687 * gdbtypes.c (add_dyn_prop): Rename to...
10688 (type::add_dyn_prop): ... this.
10690 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10692 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
10693 (get_dyn_prop): Remove. Update all users to use
10695 * gdbtypes.c (get_dyn_prop): Rename to...
10696 (type::dyn_prop): ... this.
10698 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
10700 * gdbtypes.h (struct main_type) <flag_static>: Remove.
10702 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
10704 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
10705 instruction, skip it if it's there.
10707 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
10709 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
10711 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
10713 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
10714 * gdbtypes.c (recursive_dump_type): Remove use of
10717 2020-05-03 Tom Tromey <tom@tromey.com>
10719 * breakpoint.c (catch_command, tcatch_command): Remove.
10720 (_initialize_breakpoint): Use add_basic_prefix_cmd,
10721 add_show_prefix_cmd.
10722 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
10723 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
10725 (add_internal_problem_command): Use add_basic_prefix_cmd,
10726 add_show_prefix_cmd.
10727 * mips-tdep.c (set_mipsfpu_command): Remove.
10728 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
10729 * dwarf2/index-cache.c (set_index_cache_command): Remove.
10730 (_initialize_index_cache): Use add_basic_prefix_cmd.
10731 * memattr.c (dummy_cmd): Remove.
10732 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
10733 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
10734 (_initialize_tui_win): Use add_basic_prefix_cmd,
10735 add_show_prefix_cmd.
10736 * cli/cli-logging.c (set_logging_command): Remove.
10737 (_initialize_cli_logging): Use add_basic_prefix_cmd,
10738 add_show_prefix_cmd.
10739 (show_logging_command): Remove.
10740 * target.c (target_command): Remove.
10741 (add_target): Use add_basic_prefix_cmd.
10743 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
10745 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
10747 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10749 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
10752 2020-04-30 Kamil Rytarowski <n54@gmx.com>
10754 * nbsd-nat.c (nbsd_enable_proc_events)
10755 (nbsd_nat_target::post_startup_inferior): Add.
10756 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
10757 (nbsd_nat_target::update_thread_list): Rewrite.
10758 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
10759 "PTRACE_LWP_CREATE".
10760 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
10762 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10764 * stack.c (_initialize_stack): Remove duplicated creation
10765 of "frame" command and "f" alias.
10767 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
10770 * gdbtypes.c (check_typedef): Calculate size of array of
10773 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
10776 * i386-tdep.c (i386_push_dummy_call): Call
10777 i386_thiscall_push_dummy_call.
10778 (i386_thiscall_push_dummy_call): New function.
10779 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
10780 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
10781 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
10783 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10785 * gdbarch.sh (do_read): Add shellcheck disable directive for
10788 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10790 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
10791 "referenced but not assigned" warning.
10793 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10795 * gdbarch.sh: Remove code that sets fallbackdefault.
10797 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10799 * gdbarch.sh: Use shell operators && and || instead of
10802 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10804 * gdbarch.sh: Use $(...) instead of `...`.
10806 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10808 * gdbarch.sh: Use double quotes around variables.
10810 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10812 * gdbarch.sh: Use %s with printf, instead of variables in the
10815 2020-04-29 Tom Tromey <tromey@adacore.com>
10818 * dwarf2/read.c (update_enumeration_type_from_children): Compute
10820 (read_enumeration_type): Call
10821 update_enumeration_type_from_children later. Update comments.
10822 (process_enumeration_scope): Don't create type fields.
10824 2020-04-29 Kamil Rytarowski <n54@gmx.com>
10826 * nbsd-tdep.c: Include "xml-syscall.h".
10827 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
10829 2020-04-29 Kamil Rytarowski <n54@gmx.com>
10831 * nbsd-nat.c: Include "sys/wait.h".
10832 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
10833 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
10834 (nbsd_nat_target::remove_exec_catchpoint)
10835 (nbsd_nat_target::set_syscall_catchpoint): Add.
10836 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
10837 (nbsd_nat_target::insert_exec_catchpoint)
10838 (nbsd_nat_target::remove_exec_catchpoint)
10839 (nbsd_nat_target::set_syscall_catchpoint): Add.
10840 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
10841 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
10842 `nbsd_get_syscall_number'.
10844 2020-04-29 Tom Tromey <tom@tromey.com>
10846 * stack.c (print_block_frame_labels): Remove.
10848 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
10851 * ada-valprint.c (val_print_packed_array_elements): Move array
10852 end bracket to new line.
10853 (ada_val_print_string): Remove extra spaces before first array
10855 * c-valprint.c (c_value_print_array): Likewise.
10856 * m2-valprint.c (m2_print_array_contents): Likewise.
10857 (m2_value_print_inner): Likewise.
10858 * p-valprint.c (pascal_value_print_inner): Likewise.
10859 * valprint.c (generic_val_print_array): Likewise.
10860 (value_print_array_elements): Move first array element and array
10861 end bracket to new line.
10863 2020-04-29 Tom de Vries <tdevries@suse.de>
10866 * linespec.c (find_method): Fix ix calculation.
10868 2020-04-28 Kamil Rytarowski <n54@gmx.com>
10870 * syscalls/update-netbsd.sh: New file.
10871 * syscalls/netbsd.xml: Regenerate.
10872 * data-directory/Makefile.in: Register `netbsd.xml' in
10875 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
10877 * syscalls/update-freebsd.sh: Add double quotes.
10879 2020-04-28 Tom Tromey <tom@tromey.com>
10882 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
10883 (cmdpy_init): Allow class_tui.
10885 2020-04-28 Mark Williams <mark@myosotissp.com>
10888 * dwarf2read.c: Add missing assingments to list_in_scope when
10889 start_symtab was already called.
10891 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
10894 * dwarf2/read.c (offset_map_type): Use
10895 gdb:hash_enum<sect_offset> as hash function.
10897 2020-04-28 Tom de Vries <tdevries@suse.de>
10899 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
10900 with DW_AT_signature.
10902 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
10904 * configure.ac: Remove check for fs_base/gs_base in
10906 * configure: Re-generate.
10907 * config.in: Re-generate.
10908 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
10909 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
10910 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
10912 2020-04-27 Luis Machado <luis.machado@linaro.org>
10914 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
10915 problematic inline frame unwinding situation.
10916 * frame.c (frame_id_computed_p): New function.
10917 * frame.h (frame_id_computed_p): New prototype.
10919 2020-04-26 Tom Tromey <tom@tromey.com>
10921 * command.h (enum command_class) <class_pseudo>: Remove.
10923 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10925 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
10928 2020-04-25 Kamil Rytarowski <n54@gmx.com>
10930 * inf-ptrace.c (inf_ptrace_target::wait): Remove
10931 `PT_GET_PROCESS_STATE' block.
10933 2020-04-24 Tom Tromey <tom@tromey.com>
10935 * symtab.h (symbol_get_demangled_name): Don't declare.
10936 * symtab.c (symbol_get_demangled_name): Remove.
10937 (general_symbol_info::natural_name)
10938 (general_symbol_info::demangled_name): Update.
10940 2020-04-24 Tom Tromey <tom@tromey.com>
10943 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
10945 2020-04-24 Tom Tromey <tom@tromey.com>
10948 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
10950 (new_symbol): Likewise.
10951 * compile/compile-object-load.c (get_out_value_type): Use
10952 symbol_matches_search_name.
10954 2020-04-24 Tom Tromey <tom@tromey.com>
10956 * dwarf2/read.c (add_partial_symbol): Do not call
10957 compute_and_set_names.
10959 2020-04-24 Tom Tromey <tom@tromey.com>
10961 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
10964 2020-04-24 Tom Tromey <tom@tromey.com>
10966 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
10967 (add_psymbol_to_list): New overload. Make old overload call new
10969 * psympriv.h (add_psymbol_to_list): New overload.
10971 2020-04-24 Tom Tromey <tom@tromey.com>
10973 * dwarf2/read.c (partial_die_info::read) <case
10974 DW_AT_linkage_name>: Use value_as_string.
10975 (dwarf2_string_attr): Use value_as_string.
10976 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
10978 * dwarf2/attribute.c (attribute::value_as_string): New method.
10980 2020-04-24 Tom Tromey <tom@tromey.com>
10982 * symtab.c (general_symbol_info::natural_name)
10983 (general_symbol_info::demangled_name): Check for language_rust.
10985 2020-04-24 Tom Tromey <tom@tromey.com>
10987 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
10988 (dwarf2_physname): ... from here.
10989 (partial_die_info::read): Add Rust "{" hack.
10991 2020-04-24 Tom Tromey <tom@tromey.com>
10993 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
10995 (symbol_set_demangled_name): Don't declare.
10996 * symtab.c (general_symbol_info::set_demangled_name): Rename from
10997 symbol_set_demangled_name.
10998 (general_symbol_info::set_language)
10999 (general_symbol_info::compute_and_set_names): Update.
11000 * minsyms.c (minimal_symbol_reader::install): Update.
11001 * dwarf2/read.c (new_symbol): Update.
11003 2020-04-24 Tom Tromey <tromey@adacore.com>
11006 * python/py-type.c (convert_field): Handle
11007 FIELD_LOC_KIND_DWARF_BLOCK.
11008 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
11009 (typy_get_dynamic): Nw function.
11010 (type_object_getset): Add "dynamic".
11013 2020-04-24 Tom Tromey <tromey@adacore.com>
11015 * ada-typeprint.c (print_choices, print_variant_part)
11016 (print_record_field_types_dynamic): New functions.
11017 (print_record_field_types): Use print_record_field_types_dynamic.
11019 2020-04-24 Tom Tromey <tromey@adacore.com>
11021 * dwarf2/read.c (handle_data_member_location): New overload.
11022 (dwarf2_add_field): Use it.
11023 (decode_locdesc): Add "computed" parameter. Update comment.
11024 * gdbtypes.c (is_dynamic_type_internal): Also look for
11025 FIELD_LOC_KIND_DWARF_BLOCK.
11026 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
11027 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
11028 virtual base classes.
11029 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
11030 FIELD_LOC_KIND_DWARF_BLOCK.
11032 2020-04-24 Tom Tromey <tromey@adacore.com>
11034 * dwarf2/read.c (read_structure_type): Handle dynamic length.
11035 * gdbtypes.c (is_dynamic_type_internal): Check
11036 TYPE_HAS_DYNAMIC_LENGTH.
11037 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
11038 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
11040 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
11043 2020-04-24 Tom Tromey <tromey@adacore.com>
11045 * dwarf2/read.c (struct variant_field): Rewrite.
11046 (struct variant_part_builder): New.
11047 (struct nextfield): Remove "variant" field. Add "offset".
11048 (struct field_info): Add "current_variant_part" and
11050 (alloc_discriminant_info): Remove.
11051 (alloc_rust_variant): New function.
11052 (quirk_rust_enum): Update.
11053 (dwarf2_add_field): Set "offset" member. Don't handle
11054 DW_TAG_variant_part.
11055 (offset_map_type): New typedef.
11056 (convert_variant_range, create_one_variant)
11057 (create_one_variant_part, create_variant_parts)
11058 (add_variant_property): New functions.
11059 (dwarf2_attach_fields_to_type): Call add_variant_property.
11060 (read_structure_type): Don't handle DW_TAG_variant_part.
11061 (handle_variant_part, handle_variant): New functions.
11062 (handle_struct_member_die): Use them.
11063 (process_structure_scope): Don't handle variant parts.
11064 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
11065 (struct discriminant_info): Remove.
11066 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
11067 (struct main_type) <flag_discriminated_union>: Remove.
11068 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
11069 (rust_enum_variant): Return int. Remove "contents". Rewrite.
11070 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
11072 * valops.c (value_union_variant): Remove.
11073 * value.h (value_union_variant): Don't declare.
11075 2020-04-24 Tom Tromey <tromey@adacore.com>
11077 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
11078 (ada_value_primitive_packed_val): Update.
11079 * ada-valprint.c (ada_value_print_1): Update.
11080 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
11081 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
11082 just an address. Use evaluate_for_locexpr_baton.
11083 (dwarf2_evaluate_property): Update.
11084 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
11086 * findvar.c (default_read_var_value): Update.
11087 * gdbtypes.c (compute_variant_fields_inner)
11088 (resolve_dynamic_type_internal): Update.
11089 (resolve_dynamic_type): Change type of valaddr parameter.
11090 * gdbtypes.h (resolve_dynamic_type): Update.
11091 * valarith.c (value_subscripted_rvalue): Update.
11092 * value.c (value_from_contents_and_address): Update.
11094 2020-04-24 Tom Tromey <tromey@adacore.com>
11096 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
11097 "push_initial_value" parameter.
11098 (dwarf2_evaluate_property): Likewise.
11099 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
11101 2020-04-24 Tom Tromey <tromey@adacore.com>
11103 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
11104 (variant::matches, compute_variant_fields_recurse)
11105 (compute_variant_fields_inner, compute_variant_fields): New
11107 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
11108 Use resolved_type after type is made.
11109 (operator==): Add new cases.
11110 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
11111 (struct discriminant_range, struct variant, struct variant_part):
11113 (union dynamic_prop_data) <variant_parts, original_type>: New
11115 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
11116 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
11118 * value.c (unpack_bits_as_long): Now public.
11119 * value.h (unpack_bits_as_long): Declare.
11121 2020-04-24 Tom Tromey <tromey@adacore.com>
11123 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
11124 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
11126 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
11128 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
11130 2020-04-24 Kamil Rytarowski <n54@gmx.com>
11132 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
11133 (remove_fork_catchpoint, post_startup_inferior)
11134 (post_attach): Move...
11135 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
11136 (remove_fork_catchpoint, post_startup_inferior)
11137 (post_attach): ...here.
11138 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
11139 (remove_fork_catchpoint, post_startup_inferior)
11140 (post_attach): Move...
11141 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
11142 (remove_fork_catchpoint, post_startup_inferior)
11143 (post_attach): ...here.
11145 2020-04-24 Tom Tromey <tromey@adacore.com>
11147 * nat/windows-nat.h (struct windows_thread_info)
11148 <pc_adjusted>: New member.
11149 * windows-nat.c (windows_fetch_one_register): Check
11151 (windows_nat_target::get_windows_debug_event)
11152 (windows_nat_target::wait): Set pc_adjusted.
11154 2020-04-24 Tom de Vries <tdevries@suse.de>
11156 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
11157 Run gdb-add-index inside temp dir.
11159 2020-04-23 Tom Tromey <tromey@adacore.com>
11161 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
11164 2020-04-23 Luis Machado <luis.machado@linaro.org>
11166 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11167 get_frame_register instead of gdbarch_unwind_pc.
11169 2020-04-23 Tom de Vries <tdevries@suse.de>
11171 * symtab.c (lookup_global_symbol): Prefer def over decl.
11173 2020-04-23 Tom de Vries <tdevries@suse.de>
11176 * block.c (best_symbol, better_symbol): Promote to external.
11177 * block.h (best_symbol, better_symbol): Declare.
11178 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
11181 2020-04-23 Tom Tromey <tromey@adacore.com>
11184 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
11185 "const char *", not a "const std::string &".
11186 <name_and_matcher::operator==>: Update.
11187 * unittests/lookup_name_info-selftests.c: Change type of
11190 2020-04-23 Tom Tromey <tom@tromey.com>
11192 * inferior.h (iterate_over_inferiors): Don't declare.
11193 * inferior.c (iterate_over_inferiors): Remove.
11194 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
11196 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
11197 use iterate_over_inferiors.
11198 (darwin_resume_inferior_it)
11199 (struct resume_inferior_threads_param)
11200 (darwin_resume_inferior_threads_it): Remove.
11201 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
11203 2020-04-23 Tom de Vries <tdevries@suse.de>
11205 * blockframe.c (find_pc_partial_function): Use
11206 find_pc_sect_compunit_symtab rather than
11207 objfile->sf->qf->find_pc_sect_compunit_symtab.
11209 2020-04-22 Tom de Vries <tdevries@suse.de>
11212 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
11215 2020-04-22 Tom de Vries <tdevries@suse.de>
11218 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
11221 2020-04-22 Tom de Vries <tdevries@suse.de>
11224 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
11225 CU if already created.
11227 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11229 * infrun.c (displaced_step_fixup): Switch to the event_thread
11230 before calling displaced_step_restore, not after.
11232 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11234 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
11235 its inferior is not recorded by us.
11236 (record_btrace_target_open): Replace call to
11237 all_non_exited_threads () with call to current_inferior
11238 ()->non_exited_threads ().
11239 (record_btrace_target::stop_recording): Likewise.
11240 (record_btrace_target::close): Likewise.
11241 (record_btrace_target::wait): Likewise.
11242 (record_btrace_target::record_stop_replaying): Likewise.
11244 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11246 * btrace.c (btrace_enable): Throw an error on double enables and
11247 when enabling recording fails.
11248 (btrace_disable): Throw an error if the thread is not recorded.
11250 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11252 * record-btrace.c (record_btrace_target::fetch_registers): Forward
11253 request if we do not have a thread_info.
11255 2020-04-21 Tom de Vries <tdevries@suse.de>
11259 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
11260 exception in get_frame_id.
11262 2020-04-20 Tom Tromey <tromey@adacore.com>
11264 * python/python.c (struct gdbpy_event): Mark move constructor as
11266 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
11267 constructor as noexcept.
11268 * completer.h (struct completion_result): Mark move constructor as
11270 * completer.c (completion_result::completion_result): Use
11271 initialization style. Don't call reset_match_list.
11273 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
11275 * MAINTAINERS (Write After Approval): Add myself.
11277 2020-04-18 Tom Tromey <tom@tromey.com>
11279 * windows-tdep.c (init_w32_command_list)
11280 (w32_prefix_command_valid): Restore.
11281 (_initialize_windows_tdep): Call init_w32_command_list.
11283 2020-04-18 Tom Tromey <tom@tromey.com>
11285 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
11286 * value.c (value_fn_field): Update.
11287 * valops.c (find_function_in_inferior)
11288 (value_allocate_space_in_inferior): Update.
11289 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11291 * tui/tui-source.c (tui_source_window::set_contents): Update.
11292 * symtab.c (lookup_global_or_static_symbol)
11293 (find_function_start_sal_1, skip_prologue_sal)
11294 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
11295 * symmisc.c (dump_msymbols, dump_symtab_1)
11296 (maintenance_print_one_line_table): Update.
11297 * symfile.c (init_entry_point_info, section_is_mapped)
11298 (list_overlays_command, simple_read_overlay_table)
11299 (simple_overlay_update_1): Update.
11300 * stap-probe.c (handle_stap_probe): Update.
11301 * stabsread.c (dbx_init_float_type, define_symbol)
11302 (read_one_struct_field, read_enum_type, read_range_type): Update.
11303 * source.c (info_line_command): Update.
11304 * python/python.c (gdbpy_source_objfile_script)
11305 (gdbpy_execute_objfile_script): Update.
11306 * python/py-type.c (save_objfile_types): Update.
11307 * python/py-objfile.c (py_free_objfile): Update.
11308 * python/py-inferior.c (python_new_objfile): Update.
11309 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
11310 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
11311 (maintenance_check_psymtabs): Update.
11312 * printcmd.c (info_address_command): Update.
11313 * objfiles.h (struct objfile) <arch>: New method, from
11315 (get_objfile_arch): Don't declare.
11316 * objfiles.c (get_objfile_arch): Remove.
11317 (filter_overlapping_sections): Update.
11318 * minsyms.c (msymbol_is_function): Update.
11319 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
11320 (output_nondebug_symbol): Update.
11321 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
11322 (mdebug_expand_psymtab): Update.
11323 * machoread.c (macho_add_oso_symfile): Update.
11324 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
11326 * linux-fork.c (checkpoint_command): Update.
11327 * linespec.c (convert_linespec_to_sals): Update.
11328 * jit.c (finalize_symtab): Update.
11329 * infrun.c (insert_exception_resume_from_probe): Update.
11330 * ia64-tdep.c (ia64_find_unwind_table): Update.
11331 * hppa-tdep.c (internalize_unwinds): Update.
11332 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
11334 * gcore.c (call_target_sbrk): Update.
11335 * elfread.c (record_minimal_symbol, elf_symtab_read)
11336 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
11337 (elf_gnu_ifunc_resolve_by_got): Update.
11338 * dwarf2/read.c (create_addrmap_from_index)
11339 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11340 (read_debug_names_from_section)
11341 (process_psymtab_comp_unit_reader, add_partial_symbol)
11342 (add_partial_subprogram, process_full_comp_unit)
11343 (read_file_scope, read_func_scope, read_lexical_block_scope)
11344 (read_call_site_scope, dwarf2_ranges_read)
11345 (dwarf2_record_block_ranges, dwarf2_add_field)
11346 (mark_common_block_symbol_computed, read_tag_pointer_type)
11347 (read_tag_string_type, dwarf2_init_float_type)
11348 (dwarf2_init_complex_target_type, read_base_type)
11349 (partial_die_info::read, partial_die_info::read)
11350 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
11351 (dwarf2_fetch_die_loc_sect_off): Update.
11352 * dwarf2/loc.c (dwarf2_find_location_expression)
11353 (class dwarf_evaluate_loc_desc, rw_pieced_value)
11354 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
11355 (dwarf2_loc_desc_get_symbol_read_needs)
11356 (locexpr_describe_location_piece, locexpr_describe_location_1)
11357 (loclist_describe_location): Update.
11358 * dwarf2/index-write.c (write_debug_names): Update.
11359 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
11360 * dtrace-probe.c (dtrace_process_dof): Update.
11361 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
11362 (process_one_symbol): Update.
11363 * ctfread.c (ctf_init_float_type, read_base_type): Update.
11364 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
11365 (coff_read_enum_type): Update.
11366 * cli/cli-cmds.c (edit_command, list_command): Update.
11367 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
11368 * breakpoint.c (create_overlay_event_breakpoint)
11369 (create_longjmp_master_breakpoint)
11370 (create_std_terminate_master_breakpoint)
11371 (create_exception_master_breakpoint, get_sal_arch): Update.
11372 * block.c (block_gdbarch): Update.
11373 * annotate.c (annotate_source_line): Update.
11375 2020-04-17 Tom Tromey <tromey@adacore.com>
11377 * auto-load.c (show_auto_load_cmd): Remove.
11378 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
11379 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
11380 (maintenance_print_arc_command): Remove.
11381 * tui/tui-win.c (tui_command): Remove.
11382 (tui_get_cmd_list): Use add_basic_prefix_cmd.
11383 * tui/tui-layout.c (tui_layout_command): Remove.
11384 (_initialize_tui_layout): Use add_basic_prefix_cmd.
11385 * python/python.c (user_set_python, user_show_python): Remove.
11386 (_initialize_python): Use add_basic_prefix_cmd,
11387 add_show_prefix_cmd.
11388 * guile/guile.c (set_guile_command, show_guile_command): Remove.
11389 (install_gdb_commands): Use add_basic_prefix_cmd,
11390 add_show_prefix_cmd.
11391 (info_guile_command): Remove.
11392 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
11393 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
11394 add_show_prefix_cmd.
11395 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
11396 Remove do_set and do_show parameters.
11397 * cli/cli-style.c (set_style, show_style): Remove.
11398 (_initialize_cli_style): Use add_basic_prefix_cmd,
11399 add_show_prefix_cmd.
11400 (cli_style_option::add_setshow_commands): Remove do_set and
11401 do_show parameters.
11402 (cli_style_option::add_setshow_commands): Use
11403 add_basic_prefix_cmd, add_show_prefix_cmd.
11404 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
11405 (set_style_name): Remove.
11406 * cli/cli-dump.c (dump_command, append_command): Remove.
11407 (srec_dump_command, ihex_dump_command, verilog_dump_command)
11408 (tekhex_dump_command, binary_dump_command)
11409 (binary_append_command): Remove.
11410 (_initialize_cli_dump): Use add_basic_prefix_cmd.
11411 * windows-tdep.c (w32_prefix_command_valid): Remove global.
11412 (init_w32_command_list): Remove; move into ...
11413 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
11414 * valprint.c (set_print, show_print, set_print_raw)
11415 (show_print_raw): Remove.
11416 (_initialize_valprint): Use add_basic_prefix_cmd,
11417 add_show_prefix_cmd.
11418 * typeprint.c (set_print_type, show_print_type): Remove.
11419 (_initialize_typeprint): Use add_basic_prefix_cmd,
11420 add_show_prefix_cmd.
11421 * record.c (set_record_command, show_record_command): Remove.
11422 (_initialize_record): Use add_basic_prefix_cmd,
11423 add_show_prefix_cmd.
11424 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
11425 add_show_prefix_cmd.
11426 (info_command, show_command, set_debug, show_debug): Remove.
11427 * top.h (set_history, show_history): Don't declare.
11428 * top.c (set_history, show_history): Remove.
11429 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
11430 (unset_tdesc_cmd): Remove.
11431 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
11432 add_show_prefix_cmd.
11433 * symtab.c (info_module_command): Remove.
11434 (_initialize_symtab): Use add_basic_prefix_cmd.
11435 * symfile.c (overlay_command): Remove.
11436 (_initialize_symfile): Use add_basic_prefix_cmd.
11437 * sparc64-tdep.c (info_adi_command): Remove.
11438 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
11439 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
11440 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
11441 add_show_prefix_cmd.
11442 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
11443 (_initialize_serial): Use add_basic_prefix_cmd,
11444 add_show_prefix_cmd.
11445 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
11446 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
11447 add_show_prefix_cmd.
11448 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
11449 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
11450 add_show_prefix_cmd.
11451 * riscv-tdep.c (show_riscv_command, set_riscv_command)
11452 (show_debug_riscv_command, set_debug_riscv_command): Remove.
11453 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
11454 add_show_prefix_cmd.
11455 * remote.c (remote_command, set_remote_cmd): Remove.
11456 (_initialize_remote): Use add_basic_prefix_cmd.
11457 * record-full.c (set_record_full_command)
11458 (show_record_full_command): Remove.
11459 (_initialize_record_full): Use add_basic_prefix_cmd,
11460 add_show_prefix_cmd.
11461 * record-btrace.c (cmd_set_record_btrace)
11462 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
11463 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
11464 (cmd_show_record_btrace_pt): Remove.
11465 (_initialize_record_btrace): Use add_basic_prefix_cmd,
11466 add_show_prefix_cmd.
11467 * ravenscar-thread.c (set_ravenscar_command)
11468 (show_ravenscar_command): Remove.
11469 (_initialize_ravenscar): Use add_basic_prefix_cmd,
11470 add_show_prefix_cmd.
11471 * mips-tdep.c (show_mips_command, set_mips_command)
11472 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
11473 add_show_prefix_cmd.
11474 * maint.c (maintenance_command, maintenance_info_command)
11475 (maintenance_check_command, maintenance_print_command)
11476 (maintenance_set_cmd, maintenance_show_cmd): Remove.
11477 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
11478 add_show_prefix_cmd.
11479 (show_per_command_cmd): Remove.
11480 * maint-test-settings.c (maintenance_set_test_settings_cmd):
11482 (maintenance_show_test_settings_cmd): Remove.
11483 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
11484 add_show_prefix_cmd.
11485 * maint-test-options.c (maintenance_test_options_command):
11487 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
11488 * macrocmd.c (macro_command): Remove
11489 (_initialize_macrocmd): Use add_basic_prefix_cmd.
11490 * language.c (set_check, show_check): Remove.
11491 (_initialize_language): Use add_basic_prefix_cmd,
11492 add_show_prefix_cmd.
11493 * infcmd.c (unset_command): Remove.
11494 (_initialize_infcmd): Use add_basic_prefix_cmd.
11495 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
11496 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
11497 add_show_prefix_cmd.
11498 * go32-nat.c (go32_info_dos_command): Remove.
11499 (_initialize_go32_nat): Use add_basic_prefix_cmd.
11500 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
11501 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
11502 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
11503 (_initialize_frame): Use add_basic_prefix_cmd,
11504 add_show_prefix_cmd.
11505 * dcache.c (set_dcache_command, show_dcache_command): Remove.
11506 (_initialize_dcache): Use add_basic_prefix_cmd,
11507 add_show_prefix_cmd.
11508 * cp-support.c (maint_cplus_command): Remove.
11509 (_initialize_cp_support): Use add_basic_prefix_cmd.
11510 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
11511 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
11512 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
11513 add_basic_prefix_cmd, add_show_prefix_cmd.
11514 * breakpoint.c (save_command): Remove.
11515 (_initialize_breakpoint): Use add_basic_prefix_cmd.
11516 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
11517 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
11518 add_show_prefix_cmd.
11519 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
11520 (set_ada_command, show_ada_command): Remove.
11521 (_initialize_ada_language): Use add_basic_prefix_cmd,
11522 add_show_prefix_cmd.
11523 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
11525 2020-04-16 Kamil Rytarowski <n54@gmx.com>
11527 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
11528 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
11530 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11532 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
11535 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11537 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
11538 import table is not at beginning of .idata section.
11540 2020-04-16 Pedro Alves <palves@redhat.com>
11542 * inferior.c (delete_inferior): Use delete operator directly
11543 instead of delete_program_space.
11544 * progspace.c (add_program_space): New, factored out from
11545 program_space::program_space.
11546 (remove_program_space): New, factored out from
11547 delete_program_space.
11548 (program_space::program_space): Remove intro comment. Rewrite.
11549 (program_space::~program_space): Remove intro comment. Call
11550 remove_program_space.
11551 (delete_program_space): Delete.
11552 * progspace.h (program_space::program_space): Make explicit. Move
11553 intro comment here, adjusted.
11554 (program_space::~program_space): Move intro comment here,
11556 (delete_program_space): Remove.
11558 2020-04-16 Tom Tromey <tromey@adacore.com>
11560 * windows-nat.c (windows_nat::handle_access_violation): New
11562 * nat/windows-nat.h (handle_access_violation): Declare.
11563 * nat/windows-nat.c (handle_exception): Move Cygwin code to
11564 windows-nat.c. Call handle_access_violation.
11566 2020-04-16 Tom de Vries <tdevries@suse.de>
11569 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
11570 CUs without psymtab.
11572 2020-04-16 Kevin Buettner <kevinb@redhat.com>
11574 * python/python.c (do_start_initialization): Don't call
11575 PyEval_InitThreads for Python 3.9 and beyond.
11577 2020-04-15 Kamil Rytarowski <n54@gmx.com>
11579 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
11581 (obsd_nat_target::wait): Likewise.
11583 2020-04-15 Tom Tromey <tromey@adacore.com>
11585 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
11586 (DEBUG_EXCEPT): Use debug_printf.
11588 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
11590 * completer.c (class completion_tracker::completion_hash_entry)
11591 <hash_name>: New member function.
11592 (completion_tracker::discard_completions): New callback to hash a
11593 completion_hash_entry, pass this to htab_create_alloc.
11595 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
11597 * windows-nat.c (windows_make_so): Warn rather than stopping with
11598 an error if realpath() fails.
11600 2020-04-14 Kamil Rytarowski <n54@gmx.com>
11602 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
11603 (nbsd_nat_target::info_proc): Add do_status.
11605 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
11606 Tom de Vries <tdevries@suse.de>
11609 * psympriv.h (struct partial_symtab::read_symtab)
11610 (struct partial_symtab::expand_psymtab)
11611 (struct partial_symtab::read_dependencies): Update comments.
11612 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
11613 read_symtab for includer.
11614 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
11615 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
11616 (struct dwarf2_include_psymtab::m_readin): Remove.
11617 (struct dwarf2_include_psymtab::includer): New member function.
11618 (dwarf2_psymtab::expand_psymtab): Assert !readin.
11620 2020-04-14 Tom de Vries <tdevries@suse.de>
11623 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
11624 with NULL symbol_matcher and lookup_name.
11625 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
11627 * dwarf2/read.c (dw2_expand_symtabs_matching)
11628 (dw2_debug_names_expand_symtabs_matching): Same.
11629 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
11630 Make lookup_name a pointer. Update comment.
11631 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
11632 lookup_name being a pointer.
11633 * symfile.c (expand_symtabs_matching): Same.
11634 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
11635 * linespec.c (iterate_over_all_matching_symtabs): Same.
11637 2020-04-13 Tom Tromey <tom@tromey.com>
11639 * run-on-main-thread.c: Update include.
11640 * unittests/main-thread-selftests.c: Update include.
11641 * tui/tui-win.c: Update include.
11642 * tui/tui-io.c: Update include.
11643 * tui/tui-interp.c: Update include.
11644 * tui/tui-hooks.c: Update include.
11645 * top.h: Update include.
11646 * top.c: Update include.
11647 * ser-base.c: Update include.
11648 * remote.c: Update include.
11649 * remote-notif.c: Update include.
11650 * remote-fileio.c: Update include.
11651 * record-full.c: Update include.
11652 * record-btrace.c: Update include.
11653 * python/python.c: Update include.
11654 * posix-hdep.c: Update include.
11655 * mingw-hdep.c: Update include.
11656 * mi/mi-main.c: Update include.
11657 * mi/mi-interp.c: Update include.
11658 * main.c: Update include.
11659 * linux-nat.c: Update include.
11660 * interps.c: Update include.
11661 * infrun.c: Update include.
11662 * inf-loop.c: Update include.
11663 * event-top.c: Update include.
11664 * event-loop.c: Move to ../gdbsupport/.
11665 * event-loop.h: Move to ../gdbsupport/.
11666 * async-event.h: Update include.
11667 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
11669 2020-04-13 Tom Tromey <tom@tromey.com>
11671 * tui/tui-win.c: Include async-event.h.
11672 * remote.c: Include async-event.h.
11673 * remote-notif.c: Include async-event.h.
11674 * record-full.c: Include async-event.h.
11675 * record-btrace.c: Include async-event.h.
11676 * infrun.c: Include async-event.h.
11677 * event-top.c: Include async-event.h.
11678 * event-loop.h: Move some declarations to async-event.h.
11679 * event-loop.c: Don't include ser-event.h or top.h. Move some
11680 code to async-event.c.
11681 * async-event.h: New file.
11682 * async-event.c: New file.
11683 * Makefile.in (COMMON_SFILES): Add async-event.c.
11684 (HFILES_NO_SRCDIR): Add async-event.h.
11686 2020-04-13 Tom Tromey <tom@tromey.com>
11688 * utils.c (flush_streams): New function.
11689 * event-loop.c (gdb_wait_for_event): Call flush_streams.
11691 2020-04-13 Tom Tromey <tom@tromey.com>
11693 * event-loop.c (handle_file_event): Use warning, not
11696 2020-04-13 Tom Tromey <tom@tromey.com>
11698 * event-loop.c: Include <chrono>.
11700 2020-04-13 Tom Tromey <tom@tromey.com>
11702 * gdb_select.h: Move to ../gdbsupport/.
11703 * event-loop.c: Update include path.
11704 * top.c: Update include path.
11705 * ser-base.c: Update include path.
11706 * ui-file.c: Update include path.
11707 * ser-tcp.c: Update include path.
11708 * guile/scm-ports.c: Update include path.
11709 * posix-hdep.c: Update include path.
11710 * ser-unix.c: Update include path.
11711 * gdb_usleep.c: Update include path.
11712 * mingw-hdep.c: Update include path.
11713 * inflow.c: Update include path.
11714 * infrun.c: Update include path.
11715 * event-top.c: Update include path.
11717 2020-04-13 Tom Tromey <tom@tromey.com>
11719 * configure: Rebuild.
11720 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
11722 2020-04-13 Tom Tromey <tom@tromey.com>
11724 * event-loop.h (start_event_loop): Don't declare.
11725 * event-loop.c (start_event_loop): Move...
11726 * main.c (start_event_loop): ...here. Now static.
11728 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
11730 * MAINTAINERS: Update my email address.
11732 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11734 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
11737 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11739 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
11740 (nbsd_nat_target::info_proc): Add do_cmdline.
11742 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11744 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
11745 (nbsd_nat_target::info_proc): Add do_cwd.
11747 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11749 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
11751 2020-04-11 Kamil Rytarowski <n54@gmx.com>
11753 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
11754 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
11755 (nbsd_nat_target::info_proc): New functions.
11756 * nbsd-nat.c (kinfo_get_vmmap): New function.
11757 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
11758 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
11759 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
11760 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
11762 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
11763 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
11764 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
11765 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
11766 (KINFO_VME_FLAG_GROWS_DOWN): New.
11768 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
11770 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
11773 2020-04-10 Tom Tromey <tromey@adacore.com>
11775 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
11777 2020-04-10 Tom Tromey <tromey@adacore.com>
11779 * symtab.c (get_symbol_address, get_msymbol_address): Skip
11780 separate debug files.
11782 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
11784 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11786 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11788 * windows-nat.c (windows_nat_target::get_windows_debug_event):
11789 Check for STATUS_WX86_BREAKPOINT.
11790 (windows_nat_target::wait): Same.
11792 2020-04-10 Tom de Vries <tdevries@suse.de>
11795 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
11797 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11799 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
11800 (Write After Approval): Remove Tom de Vries.
11802 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
11805 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11807 * buildsym.c (record_line): Fix undefined behavior and preserve
11810 2020-04-09 Kamil Rytarowski <n54@gmx.com>
11812 * auxv.h (svr4_auxv_parse): New.
11813 * auxv.c (default_auxv_parse): Split into default_auxv_parse
11814 and generic_auxv_parse.
11815 (svr4_auxv_parse): Add.
11816 * obsd-tdep.c: Include "auxv.h".
11817 (obsd_auxv_parse): Remove.
11818 (obsd_init_abi): Remove comment.
11819 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
11820 from `obsd_auxv_parse' to `svr4_auxv_parse'.
11821 * nbsd-tdep.c: Include "auxv.h".
11822 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
11824 2020-04-08 Tom Tromey <tromey@adacore.com>
11826 * nat/windows-nat.h (last_wait_event): Don't declare.
11827 (wait_for_debug_event): Update comment.
11828 * nat/windows-nat.c (last_wait_event): Now static.
11830 2020-04-08 Tom Tromey <tromey@adacore.com>
11832 * windows-nat.c (wait_for_debug_event): Move to
11834 * nat/windows-nat.h (wait_for_debug_event): Declare.
11835 * nat/windows-nat.c (wait_for_debug_event): Move from
11836 windows-nat.c. No longer static.
11838 2020-04-08 Tom Tromey <tromey@adacore.com>
11840 * windows-nat.c (get_windows_debug_event): Use
11841 fetch_pending_stop.
11842 * nat/windows-nat.h (fetch_pending_stop): Declare.
11843 * nat/windows-nat.c (fetch_pending_stop): New function.
11845 2020-04-08 Tom Tromey <tromey@adacore.com>
11847 * windows-nat.c (windows_continue): Use matching_pending_stop and
11848 continue_last_debug_event.
11849 * nat/windows-nat.h (matching_pending_stop)
11850 (continue_last_debug_event): Declare.
11851 * nat/windows-nat.c (DEBUG_EVENTS): New define.
11852 (matching_pending_stop, continue_last_debug_event): New
11855 2020-04-08 Tom Tromey <tromey@adacore.com>
11857 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
11858 (handle_exception_result): Move to nat/windows-nat.h.
11859 (DEBUG_EXCEPTION_SIMPLE): Remove.
11860 (windows_nat::handle_ms_vc_exception): New function.
11861 (handle_exception): Move to nat/windows-nat.c.
11862 (get_windows_debug_event): Update.
11863 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
11865 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
11866 (handle_exception_result): Move from windows-nat.c.
11867 (handle_exception): Declare.
11868 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
11869 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
11872 2020-04-08 Tom Tromey <tromey@adacore.com>
11874 * windows-nat.c (exception_count, event_count): Remove.
11875 (handle_exception, get_windows_debug_event)
11876 (do_initial_windows_stuff): Update.
11878 2020-04-08 Tom Tromey <tromey@adacore.com>
11880 * windows-nat.c (windows_nat::handle_load_dll)
11881 (windows_nat::handle_unload_dll): Rename. No longer static.
11882 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
11885 2020-04-08 Tom Tromey <tromey@adacore.com>
11887 * complaints.h (stop_whining): Declare at top-level.
11888 (complaint): Don't declare stop_whining.
11890 2020-04-08 Tom Tromey <tromey@adacore.com>
11892 * windows-nat.c (windows_nat::handle_output_debug_string):
11893 Rename. No longer static.
11894 * nat/windows-nat.h (handle_output_debug_string): Declare.
11896 2020-04-08 Tom Tromey <tromey@adacore.com>
11898 * windows-nat.c (current_process_handle, current_process_id)
11899 (main_thread_id, last_sig, current_event, last_wait_event)
11900 (current_windows_thread, desired_stop_thread_id, pending_stops)
11901 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
11902 (display_selectors, fake_create_process)
11903 (get_windows_debug_event): Update.
11904 * nat/windows-nat.h (current_process_handle, current_process_id)
11905 (main_thread_id, last_sig, current_event, last_wait_event)
11906 (current_windows_thread, desired_stop_thread_id, pending_stops)
11907 (struct pending_stop, siginfo_er): Move from windows-nat.c.
11908 * nat/windows-nat.c (current_process_handle, current_process_id)
11909 (main_thread_id, last_sig, current_event, last_wait_event)
11910 (current_windows_thread, desired_stop_thread_id, pending_stops)
11911 (siginfo_er): New globals. Move from windows-nat.c.
11913 2020-04-08 Tom Tromey <tromey@adacore.com>
11915 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
11916 (handle_load_dll): Update.
11917 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
11919 2020-04-08 Tom Tromey <tromey@adacore.com>
11921 * windows-nat.c (enum thread_disposition_type): Move to
11923 (windows_nat::thread_rec): Rename from thread_rec. No longer
11925 (windows_add_thread, windows_nat_target::fetch_registers)
11926 (windows_nat_target::store_registers, handle_exception)
11927 (windows_nat_target::resume, get_windows_debug_event)
11928 (windows_nat_target::get_tib_address)
11929 (windows_nat_target::thread_name)
11930 (windows_nat_target::thread_alive): Update.
11931 * nat/windows-nat.h (enum thread_disposition_type): Move from
11933 (thread_rec): Declare.
11935 2020-04-08 Tom Tromey <tromey@adacore.com>
11937 * windows-nat.c: Add "using namespace".
11938 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
11939 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
11941 2020-04-08 Tom Tromey <tromey@adacore.com>
11943 * nat/windows-nat.h (struct windows_thread_info): Declare
11945 * nat/windows-nat.c (~windows_thread_info): New.
11947 2020-04-08 Tom Tromey <tromey@adacore.com>
11950 * windows-nat.c (current_event): Update comment.
11951 (last_wait_event, desired_stop_thread_id): New globals.
11952 (struct pending_stop): New.
11953 (pending_stops): New global.
11954 (windows_nat_target) <stopped_by_sw_breakpoint>
11955 <supports_stopped_by_sw_breakpoint>: New methods.
11956 (windows_fetch_one_register): Add assertions. Adjust PC.
11957 (windows_continue): Handle pending stops. Suspend other threads
11958 when stepping. Use last_wait_event
11959 (wait_for_debug_event): New function.
11960 (get_windows_debug_event): Use wait_for_debug_event. Handle
11961 pending stops. Queue spurious stops.
11962 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
11963 (windows_nat_target::kill): Use wait_for_debug_event.
11964 * nat/windows-nat.h (struct windows_thread_info)
11965 <stopped_at_software_breakpoint>: New field.
11966 * nat/windows-nat.c (windows_thread_info::resume): Clear
11967 stopped_at_software_breakpoint.
11969 2020-04-08 Tom Tromey <tromey@adacore.com>
11971 * windows-nat.c (enum thread_disposition_type): New.
11972 (thread_rec): Replace "get_context" parameter with "disposition";
11974 (windows_add_thread, windows_nat_target::fetch_registers)
11975 (windows_nat_target::store_registers, handle_exception)
11976 (windows_nat_target::resume, get_windows_debug_event)
11977 (windows_nat_target::get_tib_address)
11978 (windows_nat_target::thread_name)
11979 (windows_nat_target::thread_alive): Update.
11981 2020-04-08 Tom Tromey <tromey@adacore.com>
11983 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
11984 (windows_continue): Use windows_continue::resume.
11985 * nat/windows-nat.h (struct windows_thread_info) <suspend,
11986 resume>: Declare new methods.
11987 * nat/windows-nat.c: New file.
11988 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
11990 2020-04-08 Tom Tromey <tromey@adacore.com>
11992 * windows-nat.c (windows_add_thread, windows_delete_thread)
11993 (windows_nat_target::fetch_registers)
11994 (windows_nat_target::store_registers, fake_create_process)
11995 (windows_nat_target::resume, windows_nat_target::resume)
11996 (get_windows_debug_event, windows_nat_target::wait)
11997 (windows_nat_target::pid_to_str)
11998 (windows_nat_target::get_tib_address)
11999 (windows_nat_target::get_ada_task_ptid)
12000 (windows_nat_target::thread_name)
12001 (windows_nat_target::thread_alive): Use lwp, not tid.
12003 2020-04-08 Tom Tromey <tromey@adacore.com>
12005 * windows-nat.c (handle_exception)
12006 (windows_nat_target::thread_name): Update.
12007 * nat/windows-nat.h (windows_thread_info): Remove destructor.
12008 <name>: Now unique_xmalloc_ptr.
12010 2020-04-08 Tom Tromey <tromey@adacore.com>
12012 * windows-nat.c (thread_rec)
12013 (windows_nat_target::fetch_registers): Update.
12014 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
12016 <debug_registers_changed, reload_context>: Now bool.
12018 2020-04-08 Tom Tromey <tromey@adacore.com>
12020 * windows-nat.c (windows_add_thread): Use new.
12021 (windows_init_thread_list, windows_delete_thread): Use delete.
12022 (get_windows_debug_event): Update.
12023 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
12024 destructor, and initializers.
12026 2020-04-08 Tom Tromey <tromey@adacore.com>
12028 * windows-nat.c (struct windows_thread_info): Remove.
12029 * nat/windows-nat.h: New file.
12031 2020-04-08 Tom Tromey <tromey@adacore.com>
12033 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
12034 (thread_rec, windows_add_thread, windows_delete_thread)
12035 (windows_continue): Update.
12037 2020-04-08 Tom Tromey <tromey@adacore.com>
12039 * windows-nat.c (struct windows_thread_info): Remove typedef.
12040 (thread_head): Remove.
12041 (thread_list): New global.
12042 (thread_rec, windows_add_thread, windows_init_thread_list)
12043 (windows_delete_thread, windows_continue): Update.
12045 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12047 * windows-tdep.h (windows_init_abi): Add comment.
12048 (cygwin_init_abi): New declaration.
12049 * windows-tdep.c: Split signal enumeration in two, one for
12050 Windows and one for Cygwin.
12051 (windows_gdb_signal_to_target): Only deal with signal of the
12053 (cygwin_gdb_signal_to_target): New function.
12054 (windows_init_abi): Rename to windows_init_abi_common, don't set
12055 gdb_signal_to_target gdbarch method. Add new new function with
12057 (cygwin_init_abi): New function.
12058 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
12059 comment. Don't call windows_init_abi.
12060 (amd64_windows_init_abi): Add comment, call windows_init_abi.
12061 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
12062 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
12063 i386_windows_init_abi_common, don't call windows_init_abi. Add
12064 a new function of this name.
12065 (i386_cygwin_init_abi): New function.
12066 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
12069 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12071 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
12073 (dwarf2_read_gdb_index): Update.
12075 2020-04-07 Kamil Rytarowski <n54@gmx.com>
12077 * nbsd-tdep.c: Include "objfiles.h".
12078 (nbsd_skip_solib_resolver): New.
12079 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
12081 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12083 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
12084 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
12085 with DW_LLE_base_addressx are being emitted in DWARFv5.
12086 Add the newly added kind DW_LOC_OFFSET_PAIR also.
12087 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
12090 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12092 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
12093 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
12094 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
12095 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
12096 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
12097 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
12098 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
12101 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12103 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
12104 (read_loclist_index): New function definition.
12105 (lookup_loclist_base): New function definition.
12106 (read_loclist_header): New function definition.
12107 (dwarf2_cu): Add loclist_base and loclist_header field.
12108 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
12109 (read_full_die_1): Read the value of DW_AT_loclists_base.
12110 (read_attribute_reprocess): Handle DW_FORM_loclistx.
12111 (read_attribute_value): Handle DW_FORM_loclistx.
12112 (skip_one_die): Handle DW_FORM_loclistx.
12113 (loclist_header): New structure declaration.
12114 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
12116 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12118 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
12119 constructor. Remove `addr` parameter from other constructor and
12120 add `per_cu` parameter.
12121 * dwarf2/read.c (create_partial_symtab): Update.
12123 2020-04-07 Tom de Vries <tdevries@suse.de>
12126 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
12127 (partial_die_info::fixup): Inherit has_const_value.
12129 2020-04-07 Tom de Vries <tdevries@suse.de>
12131 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
12132 symbols without address.
12134 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12136 * nbsd-nat.h (struct thread_info): Add forward declaration.
12137 (nbsd_nat_target::thread_alive): Add.
12138 (nbsd_nat_target::thread_name): Likewise.
12139 (nbsd_nat_target::update_thread_list): Likewise.
12140 (update_thread_list::post_attach): Likewise.
12141 (post_attach::pid_to_str): Likewise.
12142 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
12143 (nbsd_thread_lister): Add.
12144 (nbsd_nat_target::thread_alive): Likewise.
12145 (nbsd_nat_target::thread_name): Likewise.
12146 (nbsd_add_threads): Likewise.
12147 (update_thread_list::post_attach): Likewise.
12148 (nbsd_nat_target::update_thread_list): Likewise.
12149 (post_attach::pid_to_str): Likewise.
12151 2020-04-06 Tom Tromey <tromey@adacore.com>
12153 * ada-valprint.c (print_variant_part): Extract the variant field.
12154 (print_field_values): Use the field as the outer value when
12157 2020-04-06 Tom Tromey <tromey@adacore.com>
12159 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
12160 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
12161 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
12162 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
12163 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
12165 2020-04-06 Tom Tromey <tromey@adacore.com>
12167 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
12170 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12172 * nbsd-tdep.c: Include "gdbarch.h".
12173 Define enum with NetBSD signal numbers.
12174 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
12175 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
12176 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
12177 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
12178 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
12179 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
12180 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
12181 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12182 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
12183 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
12184 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
12185 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
12187 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
12190 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
12192 2020-04-03 Tom Tromey <tromey@adacore.com>
12194 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
12195 Read constant block.
12197 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12199 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
12200 (gdb_bfd_get_full_section_contents): New declaration.
12201 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
12202 * windows-tdep.c (is_linked_with_cygwin_dll): Use
12203 gdb_bfd_get_full_section_contents.
12205 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12207 * exec.c (build_section_table): Replace internal_error with
12209 (section_table_xfer_memory_partial): Likewise.
12210 * mdebugread.c (parse_partial_symbols): Likewise.
12211 * psymtab.c (lookup_partial_symbol): Likewise.
12212 * utils.c (wrap_here): Likewise.
12214 2020-04-02 Tom Tromey <tromey@adacore.com>
12216 * f-lang.c (build_fortran_types): Use arch_type to initialize
12217 builtin_complex_s32 in the TYPE_CODE_ERROR case.
12219 2020-04-02 Tom Tromey <tromey@adacore.com>
12221 * dwarf2/read.c (partial_die_info::read): Do not create a vector
12224 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
12225 Bernd Edlinger <bernd.edlinger@hotmail.de>
12226 Tom Tromey <tromey@adacore.com>
12228 * buildsym.c (buildsym_compunit::record_line): Remove
12229 deduplication code.
12231 2020-04-02 Tom de Vries <tdevries@suse.de>
12234 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
12236 2020-04-02 Tom de Vries <tdevries@suse.de>
12238 * dwarf2/read.c (dwarf2_gdb_index_functions,
12239 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
12241 * psymtab.c (psym_lookup_global_symbol_language): New function.
12242 (psym_functions): Init psym_lookup_global_symbol_language with
12243 psym_lookup_global_symbol_language.
12244 * symfile-debug.c (debug_sym_quick_functions): Init
12245 lookup_global_symbol_language with NULL.
12246 * symfile.c (set_initial_language): Remove fixme comment.
12247 * symfile.h (struct quick_symbol_functions): Add
12248 lookup_global_symbol_language.
12249 * symtab.c (find_quick_global_symbol_language): New function.
12250 (find_main_name): Use find_quick_global_symbol_language.
12252 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
12254 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
12256 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12258 * buildsym.c (record_line): Fix undefined behavior and preserve
12261 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12263 * buildsym.c (record_line): Fix the resizing condition.
12265 2020-04-01 Tom Tromey <tom@tromey.com>
12267 * value.h (value_literal_complex): Add comment.
12268 * valops.c (value_literal_complex): Refer to value.h.
12270 2020-04-01 Tom Tromey <tom@tromey.com>
12272 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
12273 (scalar_type): New rule, from typebase.
12274 (typebase): Use scalar_type. Recognize complex types.
12275 (field_name): Handle FLOAT_KEYWORD.
12276 (ident_tokens): Add _Complex and __complex__.
12278 2020-04-01 Tom Tromey <tom@tromey.com>
12281 * valarith.c (promotion_type, complex_binop): New functions.
12282 (scalar_binop): Handle complex numbers. Use promotion_type.
12283 (value_pos, value_neg, value_complement): Handle complex numbers.
12285 2020-04-01 Tom Tromey <tom@tromey.com>
12287 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
12288 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
12289 (parse_number): Handle complex numbers.
12291 2020-04-01 Tom Tromey <tom@tromey.com>
12293 * c-valprint.c (c_decorations): Change complex suffix to "i".
12295 2020-04-01 Tom Tromey <tom@tromey.com>
12297 * valprint.c (generic_value_print_complex): Use accessors.
12298 * value.h (value_real_part, value_imaginary_part): Declare.
12299 * valops.c (value_real_part, value_imaginary_part): New
12301 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
12303 2020-04-01 Tom Tromey <tom@tromey.com>
12305 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
12306 (read_range_type): Update.
12307 * mdebugread.c (basic_type): Update.
12308 * go-lang.c (build_go_types): Use init_complex_type.
12309 * gdbtypes.h (struct main_type) <complex_type>: New member.
12310 (init_complex_type): Update.
12311 (arch_complex_type): Don't declare.
12312 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
12313 Make name if none given. Use alloc_type_copy. Look for cached
12315 (arch_complex_type): Remove.
12316 (gdbtypes_post_init): Use init_complex_type.
12317 * f-lang.c (build_fortran_types): Use init_complex_type.
12318 * dwarf2/read.c (read_base_type): Update.
12319 * d-lang.c (build_d_types): Use init_complex_type.
12320 * ctfread.c (read_base_type): Update.
12322 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12324 * infrun.c (stop_all_threads): Update assertion, plus when
12325 stopping threads, take into account that we might be trying
12326 to stop an all-stop target.
12327 (stop_waiting): Call 'stop_all_threads' if there exists a
12330 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12332 * target.h (exists_non_stop_target): New function declaration.
12333 * target.c (exists_non_stop_target): New function.
12335 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
12338 * eval.c (is_integral_or_integral_reference): New function.
12339 (evaluate_subexp_standard): Allow integer references in
12340 pointer arithmetic.
12342 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12344 * remote.c (remote_target::remote_parse_stop_reply): Remove the
12345 check for no ptid in the stop reply when the target is non-stop.
12347 2020-04-01 Tom Tromey <tromey@adacore.com>
12349 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
12350 "name" parameter to rvalue reference. Initialize m_name_holder.
12351 <lookup_name_info>: New overloads.
12352 <name>: Return gdb::string_view.
12353 <c_str>: New method.
12354 <make_ignore_params>: Update.
12355 <search_name_hash>: Update.
12356 <language_lookup_name>: Return const char *.
12357 <m_name>: Change type.
12358 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
12359 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
12360 (lookup_name_info::match_any): Update.
12361 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
12363 * minsyms.c (linkage_name_str): Update.
12364 * language.c (default_symbol_name_matcher): Update.
12365 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
12367 * ada-lang.c (ada_fold_name): Change parameter to string_view.
12368 (ada_lookup_name_info::ada_lookup_name_info): Update.
12369 (literal_symbol_name_matcher): Update.
12371 2020-04-01 Tom Tromey <tromey@adacore.com>
12373 * psymtab.c (psymtab_search_name): Remove function.
12374 (psym_lookup_symbol): Create search name and lookup name here.
12375 (lookup_partial_symbol): Remove "name" parameter; add
12377 (psym_expand_symtabs_for_function): Update.
12379 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
12382 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
12384 2020-03-31 Tom Tromey <tromey@adacore.com>
12386 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
12389 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
12391 * features/riscv/32bit-csr.xml: Regenerated.
12392 * features/riscv/64bit-csr.xml: Regenerated.
12394 2020-03-30 Tom Tromey <tromey@adacore.com>
12396 * ada-valprint.c (print_variant_part): Update.
12397 * ada-lang.h (ada_which_variant_applies): Update.
12398 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
12399 outer_valaddr parameters; replace with "outer" value parameter.
12400 (to_fixed_variant_branch_type): Update.
12402 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12404 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
12405 <list>. Remove inclusion of observable.h.
12406 (PPC_DEBUG_CURRENT_VERSION): Move up define.
12407 (struct arch_lwp_info): New struct.
12408 (class ppc_linux_dreg_interface): New class.
12409 (struct ppc_linux_process_info): New struct.
12410 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
12411 <low_new_clone, low_forget_process, low_prepare_to_resume>
12412 <copy_thread_dreg_state, mark_thread_stale>
12413 <mark_debug_registers_changed, register_hw_breakpoint>
12414 <clear_hw_breakpoint, register_wp, clear_wp>
12415 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
12416 <num_memory_accesses, get_trigger_type>
12417 <create_watchpoint_request, hwdebug_point_cmp>
12418 <init_arch_lwp_info, get_arch_lwp_info>
12419 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
12421 <struct ptid_hash>: New inner struct.
12422 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
12424 (saved_dabr_value, hwdebug_info, max_slots_number)
12425 (struct hw_break_tuple, struct thread_points, ppc_threads)
12426 (have_ptrace_hwdebug_interface)
12427 (hwdebug_find_thread_points_by_tid)
12428 (hwdebug_insert_point, hwdebug_remove_point): Remove.
12429 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
12430 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
12431 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
12432 use m_dreg_interface.
12433 (hwdebug_point_cmp): Change to...
12434 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
12435 reference arguments instead of pointers.
12436 (ppc_linux_nat_target::ranged_break_num_registers): Use
12438 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
12439 m_dreg_interface. Call register_hw_breakpoint.
12440 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
12441 m_dreg_interface. Call clear_hw_breakpoint.
12442 (get_trigger_type): Change to...
12443 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
12445 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
12446 use m_dreg_interface. Call register_hw_breakpoint.
12447 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
12448 use m_dreg_interface. Call clear_hw_breakpoint.
12449 (can_use_watchpoint_cond_accel): Change to...
12450 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
12451 method. Update comment, use m_dreg_interface and
12453 (calculate_dvc): Change to...
12454 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
12456 (num_memory_accesses): Change to...
12457 (ppc_linux_nat_target::num_memory_accesses): ...this method.
12458 (check_condition): Change to...
12459 (ppc_linux_nat_target::check_condition): ...this method.
12460 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
12461 comment, use m_dreg_interface.
12462 (create_watchpoint_request): Change to...
12463 (ppc_linux_nat_target::create_watchpoint_request): ...this
12464 method. Use m_dreg_interface.
12465 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
12466 m_dreg_interface. Call register_hw_breakpoint or register_wp.
12467 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
12468 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
12469 (ppc_linux_nat_target::low_forget_process)
12470 (ppc_linux_nat_target::low_new_fork)
12471 (ppc_linux_nat_target::low_new_clone)
12472 (ppc_linux_nat_target::low_delete_thread)
12473 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
12474 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
12475 only call mark_thread_stale.
12476 (ppc_linux_thread_exit): Remove.
12477 (ppc_linux_nat_target::stopped_data_address): Change to...
12478 (ppc_linux_nat_target::low_stopped_data_address): This. Add
12479 comment, use m_dreg_interface and m_thread_hw_breakpoints.
12480 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
12481 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
12482 comment. Call low_stopped_data_address.
12483 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
12485 (ppc_linux_nat_target::masked_watch_num_registers): Use
12487 (ppc_linux_nat_target::copy_thread_dreg_state)
12488 (ppc_linux_nat_target::mark_thread_stale)
12489 (ppc_linux_nat_target::mark_debug_registers_changed)
12490 (ppc_linux_nat_target::register_hw_breakpoint)
12491 (ppc_linux_nat_target::clear_hw_breakpoint)
12492 (ppc_linux_nat_target::register_wp)
12493 (ppc_linux_nat_target::clear_wp)
12494 (ppc_linux_nat_target::init_arch_lwp_info)
12495 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
12496 (_initialize_ppc_linux_nat): Remove observer callback.
12498 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12500 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
12501 (ppc_linux_nat_target::auxv_parse)
12502 (ppc_linux_nat_target::read_description)
12503 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
12506 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12508 * linux-nat.h (low_new_clone): New method.
12509 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
12511 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12513 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
12514 (dbx_expand_psymtab): ... this.
12515 (start_psymtab): Update.
12516 * mdebugread.c (psymtab_to_symtab_1): Rename to...
12517 (mdebug_expand_psymtab): ... this.
12518 (parse_partial_symbols): Update.
12519 (new_psymtab): Update.
12520 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
12521 (xcoff_expand_psymtab): ... this.
12522 (xcoff_start_psymtab): Update.
12524 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12526 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
12527 <expand_dependencies>: ... this.
12528 * psymtab.c (partial_symtab::read_dependencies): Rename to...
12529 (partial_symtab::expand_dependencies): ... this.
12530 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
12532 (dwarf2_psymtab::expand_psymtab): Update.
12533 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12534 * mdebugread.c (psymtab_to_symtab_1): Update.
12535 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12537 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12539 * psympriv.h (discard_psymtab): Remove.
12540 * dbxread.c (dbx_end_psymtab): Update.
12541 * xcoffread.c (xcoff_end_psymtab): Update.
12543 2020-03-28 Tom Tromey <tom@tromey.com>
12545 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
12548 2020-03-28 Tom Tromey <tom@tromey.com>
12550 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
12552 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
12554 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12556 2020-03-26 John Baldwin <jhb@FreeBSD.org>
12558 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
12560 2020-03-26 Tom Tromey <tom@tromey.com>
12562 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
12563 (mark_common_block_symbol_computed, read_tag_string_type)
12564 (attr_to_dynamic_prop, read_subrange_type): Update.
12565 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
12566 to be methods on struct attribute.
12567 (skip_one_die, process_imported_unit_die, read_namespace_alias)
12568 (read_call_site_scope, partial_die_info::read)
12569 (partial_die_info::read, lookup_die_type, follow_die_ref):
12571 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
12572 from dwarf2_get_ref_die_offset.
12573 (attribute::constant_value): New method, from
12574 dwarf2_get_attr_constant_value.
12575 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
12577 <constant_value>: New method.
12579 2020-03-26 Tom Tromey <tom@tromey.com>
12581 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
12582 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
12583 (dwarf_type_encoding_name): Move to stringify.c.
12584 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
12585 * dwarf2/stringify.c: New file.
12586 * dwarf2/stringify.h: New file.
12588 2020-03-26 Tom Tromey <tom@tromey.com>
12590 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
12593 2020-03-26 Tom Tromey <tom@tromey.com>
12595 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
12597 * dwarf2/read.c (lookup_addr_base): Move to die.h.
12598 (lookup_ranges_base): Likewise.
12599 (read_cutu_die_from_dwo, read_full_die_1): Update.
12601 2020-03-26 Tom Tromey <tom@tromey.com>
12603 * dwarf2/read.c (read_import_statement, read_file_scope)
12604 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
12605 (read_lexical_block_scope, read_call_site_scope)
12606 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
12607 (handle_struct_member_die, process_structure_scope)
12608 (update_enumeration_type_from_children)
12609 (process_enumeration_scope, read_array_type, read_common_block)
12610 (read_namespace, read_module, read_subroutine_type): Update.
12611 (sibling_die): Remove.
12613 2020-03-26 Tom Tromey <tom@tromey.com>
12615 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
12616 (build_type_psymtabs_reader, read_structure_type)
12617 (read_enumeration_type, read_full_die_1): Update.
12618 (dwarf2_attr_no_follow): Move to die.h.
12619 * dwarf2/die.h (struct die_info) <attr>: New method.
12621 2020-03-26 Tom Tromey <tom@tromey.com>
12623 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
12624 <base_address>: Now an optional.
12625 (dwarf2_find_base_address, dwarf2_rnglists_process)
12626 (dwarf2_ranges_process, fill_in_loclist_baton)
12627 (dwarf2_symbol_mark_computed): Update.
12629 2020-03-26 Tom Tromey <tom@tromey.com>
12631 * dwarf2/read.c (struct die_info): Move to die.h.
12632 * dwarf2/die.h: New file.
12634 2020-03-26 Tom Tromey <tom@tromey.com>
12636 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
12638 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12639 Move to line-header.c.
12640 (read_checked_initial_length_and_offset, read_formatted_entries):
12642 (dwarf_decode_line_header): Split into two.
12643 * dwarf2/line-header.c
12644 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12646 (read_checked_initial_length_and_offset, read_formatted_entries):
12648 (dwarf_decode_line_header): New function, split from read.c.
12650 2020-03-26 Tom Tromey <tom@tromey.com>
12652 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
12654 * dwarf2/read.c (read_attribute_value): Update.
12655 (dwarf2_per_objfile::read_line_string): Rename from
12656 read_indirect_line_string.
12657 (read_formatted_entries): Update.
12659 2020-03-26 Tom Tromey <tom@tromey.com>
12661 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
12664 2020-03-26 Tom Tromey <tom@tromey.com>
12666 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
12668 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
12669 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
12672 2020-03-26 Tom Tromey <tom@tromey.com>
12674 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
12675 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
12676 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
12677 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
12679 2020-03-26 Tom Tromey <tom@tromey.com>
12681 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
12682 file_names_size, file_full_name, file_file_name>: Use const.
12683 <file_name_at, file_names>: Add const overload.
12684 * dwarf2/line-header.c (line_header::file_file_name)
12685 (line_header::file_full_name): Update.
12687 2020-03-26 Tom Tromey <tom@tromey.com>
12689 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
12690 (macro_start_file, consume_improper_spaces)
12691 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
12692 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
12693 (dwarf_decode_macros): Move to macro.c.
12694 * dwarf2/macro.c: New file.
12695 * dwarf2/macro.h: New file.
12696 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
12698 2020-03-26 Tom Tromey <tom@tromey.com>
12700 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
12702 * dwarf2/section.c: New method. From
12703 read_indirect_string_at_offset_from.
12704 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
12705 (read_indirect_string_at_offset_from): Move to section.c.
12706 (read_indirect_string_at_offset): Rewrite.
12707 (read_indirect_line_string_at_offset): Remove.
12708 (read_indirect_string, read_indirect_line_string)
12709 (dwarf_decode_macro_bytes): Update.
12711 2020-03-26 Tom Tromey <tom@tromey.com>
12713 * dwarf2/section.h (struct dwarf2_section_info)
12714 <overload_complaint>: Declare.
12715 (dwarf2_section_buffer_overflow_complaint): Don't declare.
12716 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
12717 Rename from dwarf2_section_buffer_overflow_complaint.
12718 * dwarf2/read.c (skip_one_die, partial_die_info::read)
12719 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
12721 2020-03-26 Tom Tromey <tom@tromey.com>
12723 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
12725 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
12727 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
12730 2020-03-26 Tom Tromey <tom@tromey.com>
12732 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
12734 2020-03-26 Tom Tromey <tom@tromey.com>
12736 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
12738 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
12740 (dwarf_decode_macros): Update.
12742 2020-03-26 Tom Tromey <tom@tromey.com>
12744 * dwarf2/read.c (read_attribute_value): Update.
12745 (read_indirect_string_from_dwz): Move to dwz.c; change into
12747 (dwarf_decode_macro_bytes): Update.
12748 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
12749 * dwarf2/dwz.c: New file.
12750 * Makefile.in (COMMON_SFILES): Add dwz.c.
12752 2020-03-26 Tom Tromey <tom@tromey.com>
12754 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
12755 * dwarf2/read.c: Add include.
12756 * dwarf2/index-write.c: Add include.
12757 * dwarf2/index-cache.c: Add include.
12758 * dwarf2/dwz.h: New file.
12760 2020-03-25 Tom Tromey <tom@tromey.com>
12762 * compile/compile-object-load.c (get_out_value_type): Mention
12763 correct symbol name in error message.
12765 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
12767 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12769 2020-03-25 Tom de Vries <tdevries@suse.de>
12771 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
12772 * symmisc.c (dump_symtab_1): Print user and includes fields.
12773 (maintenance_info_symtabs): Same.
12775 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
12778 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
12779 (riscv_regcache_cooked_write): New function.
12780 (riscv_push_dummy_call): Use new function.
12781 (riscv_return_value): Likewise.
12783 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
12785 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
12786 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
12787 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
12788 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
12789 * infrun.c (follow_fork): Likewise.
12790 (follow_fork_inferior): Likewise.
12791 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
12792 * linux-nat.h (class linux_nat_target): Likewise.
12793 * remote.c (class remote_target) <follow_fork>: Likewise.
12794 (remote_target::follow_fork): Likewise.
12795 * target-delegates.c: Re-generate.
12796 * target.c (default_follow_fork): Likewise.
12797 (target_follow_fork): Likewise.
12798 * target.h (struct target_ops) <follow_fork>: Likewise.
12799 (target_follow_fork): Likewise.
12801 2020-03-24 Tom de Vries <tdevries@suse.de>
12803 * psymtab.c (maintenance_info_psymtabs): Print user field.
12805 2020-03-20 Tom Tromey <tromey@adacore.com>
12807 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
12809 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
12812 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
12814 * ptrace.m4: Don't check for ptrace declaration.
12815 * config.in: Re-generate.
12816 * configure: Re-generate.
12817 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
12820 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12822 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
12824 * i386-bsd-nat.c (gdb_ptrace): Likewise.
12825 * sparc-nat.c (gdb_ptrace): Likewise.
12826 * x86-bsd-nat.c (gdb_ptrace): Likewise.
12828 2020-03-20 Tom Tromey <tromey@adacore.com>
12830 * c-exp.y (lex_one_token): Fix assert.
12832 2020-03-20 Tom Tromey <tromey@adacore.com>
12834 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
12835 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
12838 2020-03-20 Tom Tromey <tromey@adacore.com>
12840 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
12842 2020-03-20 Tom Tromey <tromey@adacore.com>
12844 * ada-valprint.c (print_variant_part): Remove parameters; switch
12845 to value-based API.
12846 (print_field_values): Likewise.
12847 (ada_val_print_struct_union): Likewise.
12848 (ada_value_print_1): Update.
12850 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12852 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
12853 nbsd_nat_target instead of inf_ptrace_target.
12854 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12857 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12859 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
12860 it to the ptrace call.
12861 * (store_registers): Likewise.
12863 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12865 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
12866 it to the ptrace call.
12867 * (store_registers): Likewise.
12869 2020-03-19 Luis Machado <luis.machado@linaro.org>
12871 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
12872 valid, fetch vg value from ptrace.
12874 2020-03-19 Kamil Rytarowski <n54@gmx.com>
12875 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
12876 * inf-ptrace.c: Likewise.
12877 * (gdb_ptrace): Add.
12878 * (inf_ptrace_target::resume): Update.
12879 * (inf_ptrace_target::xfer_partial): Likewise.
12880 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
12881 * (inf_ptrace_peek_poke): Update.
12883 2020-03-19 Kamil Rytarowski <n54@gmx.com>
12885 * x86-bsd-nat.c (gdb_ptrace): New.
12886 * (x86bsd_dr_set): Add new argument `ptid'.
12887 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
12888 x86bsd_dr_set_addr): Update.
12890 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12892 * remote.c (remote_target::process_stop_reply): Handle events for
12893 all threads differently.
12895 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12897 * completer.c (completion_tracker::remove_completion): Define new
12899 * completer.h (completion_tracker::remove_completion): Declare new
12901 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
12902 when adding a C++ function symbol.
12904 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12906 * completer.c (completion_tracker::completion_hash_entry): Define
12908 (advance_to_filename_complete_word_point): Call
12909 recompute_lowest_common_denominator.
12910 (completion_tracker::completion_tracker): Call discard_completions
12911 to setup the hash table.
12912 (completion_tracker::discard_completions): Allow for being called
12913 from the constructor, pass new equal function, and element deleter
12914 when constructing the hash table. Initialise new class member
12916 (completion_tracker::maybe_add_completion): Remove use of
12917 m_entries_vec, and store more information into m_entries_hash.
12918 (completion_tracker::recompute_lcd_visitor): New function, most
12919 content taken from...
12920 (completion_tracker::recompute_lowest_common_denominator):
12921 ...here, this now just visits each item in the hash calling the
12923 (completion_tracker::build_completion_result): Remove use of
12924 m_entries_vec, call recompute_lowest_common_denominator.
12925 * completer.h (completion_tracker::have_completions): Remove use
12927 (completion_tracker::completion_hash_entry): Declare new class.
12928 (completion_tracker::recompute_lowest_common_denominator): Change
12929 function signature.
12930 (completion_tracker::recompute_lcd_visitor): Declare new function.
12931 (completion_tracker::m_entries_vec): Delete.
12932 (completion_tracker::m_entries_hash): Initialize to NULL.
12933 (completion_tracker::m_lowest_common_denominator_valid): New
12935 (completion_tracker::m_lowest_common_denominator_max_length): New
12938 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12940 * regformats/regdef.h: Put reg in gdb namespace.
12942 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12944 * i386-bsd-nat.c (gdb_ptrace): New.
12945 * (i386bsd_fetch_inferior_registers,
12946 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12947 * (i386bsd_fetch_inferior_registers,
12948 i386bsd_store_inferior_registers) Use gdb_ptrace.
12950 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12952 * amd64-bsd-nat.c (gdb_ptrace): New.
12953 * (amd64bsd_fetch_inferior_registers,
12954 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12955 * (amd64bsd_fetch_inferior_registers,
12956 amd64bsd_store_inferior_registers) Use gdb_ptrace.
12958 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12960 * user-regs.c (user_reg::read): Rename to...
12961 (user_reg::xread): ...this.
12962 * (append_user_reg): Rename argument `read' to `xread'.
12963 * (user_reg_add_builtin): Likewise.
12964 * (user_reg_add): Likewise.
12965 * (value_of_user_reg): Likewise.
12967 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12969 * sparc-nat.c (gdb_ptrace): New.
12970 * sparc-nat.c (sparc_fetch_inferior_registers)
12971 (sparc_store_inferior_registers) Remove obsolete comment.
12972 * sparc-nat.c (sparc_fetch_inferior_registers)
12973 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
12974 * sparc-nat.c (sparc_fetch_inferior_registers)
12975 (sparc_store_inferior_registers) Use gdb_ptrace.
12977 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12979 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
12980 it to the ptrace call.
12981 * sh-nbsd-nat.c (store_registers): Likewise.
12983 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12985 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
12986 nbsd_nat_target instead of inf_ptrace_target.
12987 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12990 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12992 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
12994 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12996 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
12998 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
13000 2020-03-17 Tom de Vries <tdevries@suse.de>
13003 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
13005 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
13007 (process_imported_unit_die): Skip import of c++ CUs.
13009 2020-03-16 Tom Tromey <tom@tromey.com>
13011 * p-valprint.c (pascal_object_print_value): Initialize
13014 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
13015 Shahab Vahedi <shahab@synopsys.com>
13017 * Makefile.in: Add arch/arc.o
13018 * configure.tgt: Likewise.
13019 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
13020 (_initialize_arc_tdep): Don't initialize old target descriptions.
13021 (arc_read_description): New function to cache target descriptions.
13022 * arc-tdep.h (arc_read_description): Add proto type.
13023 * arch/arc.c: New file.
13024 * arch/arc.h: Likewise.
13025 * features/Makefile: Replace old target descriptions with new.
13026 * features/arc-arcompact.c: Remove.
13027 * features/arc-arcompact.xml: Likewise.
13028 * features/arc-v2.c: Likewise
13029 * features/arc-v2.xml: Likewise
13030 * features/arc/aux-arcompact.xml: New file.
13031 * features/arc/aux-v2.xml: Likewise.
13032 * features/arc/core-arcompact.xml: Likewise.
13033 * features/arc/core-v2.xml: Likewise.
13034 * features/arc/aux-arcompact.c: Generate.
13035 * features/arc/aux-v2.c: Likewise.
13036 * features/arc/core-arcompact.c: Likewise.
13037 * features/arc/core-v2.c: Likewise.
13038 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
13040 2020-03-16 Tom Tromey <tromey@adacore.com>
13043 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
13044 putting value into bcache.
13046 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13049 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
13051 (amd64_windows_init_abi_common): ... this. Don't set size of
13053 (amd64_windows_init_abi): New function.
13054 (amd64_cygwin_init_abi): New function.
13055 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
13057 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
13060 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13062 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
13063 * windows-tdep.c (CYGWIN_DLL_NAME): New.
13064 (pe_import_directory_entry): New struct type.
13065 (is_linked_with_cygwin_dll): New function.
13066 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
13067 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
13068 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
13070 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13072 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
13073 i386_cygwin_core_osabi_sniffer.
13075 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13077 * i386-cygwin-tdep.c: Rename to...
13078 * i386-windows-tdep.c: ... this.
13079 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
13080 i386-windows-tdep.c.
13081 * configure.tgt: Likewise.
13083 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13085 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
13086 * osabi.c (gdb_osabi_names): Add "Windows".
13087 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
13088 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
13089 (i386_cygwin_core_osabi_sniffer): New function, extracted from
13090 i386_cygwin_osabi_sniffer.
13091 (_initialize_i386_cygwin_tdep): Register OS ABI
13092 GDB_OSABI_WINDOWS for i386.
13093 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
13094 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
13095 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
13097 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
13098 when the target matches '*-*-mingw*'.
13100 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13102 * defs.h (enum gdb_osabi): Move to...
13103 * osabi.h (enum gdb_osabi): ... here.
13104 * gdbarch.sh: Include osabi.h in gdbarch.h.
13105 * gdbarch.h: Re-generate.
13107 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13109 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
13111 (_initialize_amd64_windows_tdep): Register osabi sniffer.
13113 2020-03-14 Tom Tromey <tom@tromey.com>
13115 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
13117 (c_type_print_modifier): Likewise. Add "language" parameter.
13118 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
13119 (c_type_print_base_1): Update.
13120 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
13122 * type-stack.c (type_stack::insert): Handle tp_atomic and
13124 (type_stack::follow_type_instance_flags): Likewise.
13125 (type_stack::follow_types): Likewise. Merge type-following code.
13126 * c-exp.y (RESTRICT, ATOMIC): New tokens.
13127 (space_identifier, cv_with_space_id)
13128 (const_or_volatile_or_space_identifier_noopt)
13129 (const_or_volatile_or_space_identifier): Remove.
13130 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
13132 (ptr_operator, typebase): Update.
13133 (enum token_flag) <FLAG_C>: New constant.
13134 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
13136 (lex_one_token): Handle FLAG_C.
13138 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13140 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
13141 it to the ptrace call.
13142 * m68k-bsd-nat.c (store_registers): Likewise.
13144 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13146 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
13148 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
13149 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
13150 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
13152 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13154 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
13155 nbsd_nat_target instead of inf_ptrace_target.
13156 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13159 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13161 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
13164 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13166 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
13167 it to the ptrace call.
13168 * alpha-bsd-nat.c (store_registers): Likewise.
13170 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13172 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
13174 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
13175 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
13176 fill_fpregset): Likewise.
13178 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13180 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
13181 nbsd_nat_target instead of inf_ptrace_target.
13182 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13185 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13187 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
13190 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13192 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
13193 it to the ptrace call.
13194 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
13195 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
13196 * arm-nbsd-nat.c (store_register): Likewise.
13197 * arm-nbsd-nat.c (store_regs): Likewise.
13198 * arm-nbsd-nat.c (store_fp_register): Likewise.
13199 * arm-nbsd-nat.c (store_fp_regs): Likewise.
13201 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13203 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
13204 nbsd_nat_target instead of inf_ptrace_target.
13205 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13208 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13210 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
13211 it to the ptrace call.
13212 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
13214 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13216 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
13217 it to the ptrace call.
13218 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
13220 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13222 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
13224 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
13226 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13228 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
13229 instead of inf_ptrace_target.
13230 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13233 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13235 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13238 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13240 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13243 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13245 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
13248 2020-03-13 Tom Tromey <tom@tromey.com>
13250 * value.h (val_print): Don't declare.
13251 * valprint.h (val_print_array_elements)
13252 (val_print_scalar_formatted, generic_val_print): Don't declare.
13253 * valprint.c (generic_val_print_array): Take a struct value.
13254 (generic_val_print_ptr, generic_val_print_memberptr)
13255 (generic_val_print_bool, generic_val_print_int)
13256 (generic_val_print_char, generic_val_print_complex)
13257 (generic_val_print): Remove.
13258 (generic_value_print): Update.
13259 (do_val_print): Remove unused parameters. Don't call
13261 (val_print): Remove.
13262 (common_val_print): Update. Don't call value_check_printable.
13263 (val_print_scalar_formatted, val_print_array_elements): Remove.
13264 * rust-lang.c (rust_val_print): Remove.
13265 (rust_language_defn): Update.
13266 * p-valprint.c (pascal_val_print): Remove.
13267 (pascal_value_print_inner): Update.
13268 (pascal_object_print_val_fields, pascal_object_print_val):
13270 (pascal_object_print_static_field): Update.
13271 * p-lang.h (pascal_val_print): Don't declare.
13272 * p-lang.c (pascal_language_defn): Update.
13273 * opencl-lang.c (opencl_language_defn): Update.
13274 * objc-lang.c (objc_language_defn): Update.
13275 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
13276 * m2-lang.h (m2_val_print): Don't declare.
13277 * m2-lang.c (m2_language_defn): Update.
13278 * language.h (struct language_defn) <la_val_print>: Remove.
13279 * language.c (unk_lang_value_print_inner): Rename. Change
13281 (unknown_language_defn, auto_language_defn): Update.
13282 * go-valprint.c (go_val_print): Remove.
13283 * go-lang.h (go_val_print): Don't declare.
13284 * go-lang.c (go_language_defn): Update.
13285 * f-valprint.c (f_val_print): Remove.
13286 * f-lang.h (f_value_print): Don't declare.
13287 * f-lang.c (f_language_defn): Update.
13288 * d-valprint.c (d_val_print): Remove.
13289 * d-lang.h (d_value_print): Don't declare.
13290 * d-lang.c (d_language_defn): Update.
13291 * cp-valprint.c (cp_print_value_fields)
13292 (cp_print_value_fields_rtti, cp_print_value): Remove.
13293 (cp_print_static_field): Update.
13294 * c-valprint.c (c_val_print_array, c_val_print_ptr)
13295 (c_val_print_struct, c_val_print_union, c_val_print_int)
13296 (c_val_print_memberptr, c_val_print): Remove.
13297 * c-lang.h (c_val_print_array, cp_print_value_fields)
13298 (cp_print_value_fields_rtti): Don't declare.
13299 * c-lang.c (c_language_defn, cplus_language_defn)
13300 (asm_language_defn, minimal_language_defn): Update.
13301 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
13302 (ada_val_print_enum): Take a struct value.
13303 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
13304 (ada_val_print): Remove.
13305 (ada_value_print_1): Update.
13306 (printable_val_type): Remove.
13307 * ada-lang.h (ada_val_print): Don't declare.
13308 * ada-lang.c (ada_language_defn): Update.
13310 2020-03-13 Tom Tromey <tom@tromey.com>
13312 * valprint.c (do_val_print): Update.
13313 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
13315 (value_to_value_object_no_release): Declare.
13316 * python/py-value.c (value_to_value_object_no_release): New
13318 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
13320 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
13322 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
13324 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
13326 (gdbscm_apply_val_pretty_printer): Take a struct value.
13327 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
13329 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
13331 * extension-priv.h (struct extension_language_ops)
13332 <apply_val_pretty_printer>: Take a struct value.
13333 * cp-valprint.c (cp_print_value): Create a struct value.
13334 (cp_print_value): Update.
13336 2020-03-13 Tom Tromey <tom@tromey.com>
13338 * ada-valprint.c (print_field_values): Call common_val_print.
13340 2020-03-13 Tom Tromey <tom@tromey.com>
13342 * ada-valprint.c (val_print_packed_array_elements): Remove
13343 bitoffset and val parameters. Call common_val_print.
13344 (ada_val_print_string): Remove offset, address, and original_value
13346 (ada_val_print_array): Update.
13347 (ada_value_print_array): New function.
13348 (ada_value_print_1): Call it.
13350 2020-03-13 Tom Tromey <tom@tromey.com>
13352 * ada-valprint.c (ada_value_print): Use common_val_print.
13354 2020-03-13 Tom Tromey <tom@tromey.com>
13356 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
13358 2020-03-13 Tom Tromey <tom@tromey.com>
13360 * ada-valprint.c (ada_value_print_num): New function.
13361 (ada_value_print_1): Use it.
13363 2020-03-13 Tom Tromey <tom@tromey.com>
13365 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
13367 2020-03-13 Tom Tromey <tom@tromey.com>
13369 * ada-valprint.c (ada_value_print_ptr): New function.
13370 (ada_value_print_1): Use it.
13372 2020-03-13 Tom Tromey <tom@tromey.com>
13374 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
13375 call common_val_print.
13376 (ada_val_print_1): Update.
13377 (ada_value_print_1): New function.
13378 (ada_value_print_inner): Rewrite.
13380 2020-03-13 Tom Tromey <tom@tromey.com>
13382 * cp-valprint.c (cp_print_value_fields): Update.
13383 (cp_print_value): New function.
13385 2020-03-13 Tom Tromey <tom@tromey.com>
13387 * m2-valprint.c (m2_value_print_inner): Use
13388 cp_print_value_fields.
13389 * cp-valprint.c (cp_print_value_fields): New function.
13390 * c-valprint.c (c_value_print_struct): New function.
13391 (c_value_print_inner): Use c_value_print_struct.
13392 * c-lang.h (cp_print_value_fields): Declare.
13394 2020-03-13 Tom Tromey <tom@tromey.com>
13396 * c-valprint.c (c_value_print_array): New function.
13397 (c_value_print_inner): Use it.
13399 2020-03-13 Tom Tromey <tom@tromey.com>
13401 * c-valprint.c (c_value_print_memberptr): New function.
13402 (c_value_print_inner): Use it.
13404 2020-03-13 Tom Tromey <tom@tromey.com>
13406 * c-valprint.c (c_value_print_int): New function.
13407 (c_value_print_inner): Use it.
13409 2020-03-13 Tom Tromey <tom@tromey.com>
13411 * c-valprint.c (c_value_print_ptr): New function.
13412 (c_value_print_inner): Use it.
13414 2020-03-13 Tom Tromey <tom@tromey.com>
13416 * c-valprint.c (c_value_print_inner): Rewrite.
13418 2020-03-13 Tom Tromey <tom@tromey.com>
13420 * valprint.c (generic_value_print_complex): New function.
13421 (generic_value_print): Use it.
13423 2020-03-13 Tom Tromey <tom@tromey.com>
13425 * valprint.c (generic_val_print_float): Don't call
13426 val_print_scalar_formatted.
13427 (generic_val_print, generic_value_print): Update.
13429 2020-03-13 Tom Tromey <tom@tromey.com>
13431 * valprint.c (generic_value_print_char): New function
13432 (generic_value_print): Use it.
13434 2020-03-13 Tom Tromey <tom@tromey.com>
13436 * valprint.c (generic_value_print_int): New function.
13437 (generic_value_print): Use it.
13439 2020-03-13 Tom Tromey <tom@tromey.com>
13441 * valprint.c (generic_value_print_bool): New function.
13442 (generic_value_print): Use it.
13444 2020-03-13 Tom Tromey <tom@tromey.com>
13446 * valprint.c (generic_val_print_func): Simplify.
13447 (generic_val_print, generic_value_print): Update.
13449 2020-03-13 Tom Tromey <tom@tromey.com>
13451 * valprint.c (generic_val_print_flags): Remove.
13452 (generic_val_print, generic_value_print): Update.
13453 (val_print_type_code_flags): Add original_value parameter.
13455 2020-03-13 Tom Tromey <tom@tromey.com>
13457 * valprint.c (generic_val_print): Update.
13458 (generic_value_print): Update.
13459 * valprint.c (generic_val_print_enum): Don't call
13460 val_print_scalar_formatted.
13462 2020-03-13 Tom Tromey <tom@tromey.com>
13464 * valprint.c (generic_value_print): Call generic_value_print_ptr.
13465 * valprint.c (generic_value_print_ptr): New function.
13467 2020-03-13 Tom Tromey <tom@tromey.com>
13469 * valprint.c (generic_value_print): Rewrite.
13471 2020-03-13 Tom Tromey <tom@tromey.com>
13473 * p-valprint.c (pascal_object_print_value_fields)
13474 (pascal_object_print_value): New functions.
13476 2020-03-13 Tom Tromey <tom@tromey.com>
13478 * p-valprint.c (pascal_value_print_inner): Rewrite.
13480 2020-03-13 Tom Tromey <tom@tromey.com>
13482 * f-valprint.c (f_value_print_innner): Rewrite.
13484 2020-03-13 Tom Tromey <tom@tromey.com>
13486 * m2-valprint.c (m2_print_unbounded_array): New overload.
13487 (m2_print_unbounded_array): Update.
13488 (m2_print_array_contents): Take a struct value.
13489 (m2_value_print_inner): Rewrite.
13491 2020-03-13 Tom Tromey <tom@tromey.com>
13493 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
13494 (d_value_print_inner): New function.
13495 * d-lang.h (d_value_print_inner): Declare.
13496 * d-lang.c (d_language_defn): Use d_value_print_inner.
13498 2020-03-13 Tom Tromey <tom@tromey.com>
13500 * go-valprint.c (go_value_print_inner): New function.
13501 * go-lang.h (go_value_print_inner): Declare.
13502 * go-lang.c (go_language_defn): Use go_value_print_inner.
13504 2020-03-13 Tom Tromey <tom@tromey.com>
13506 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
13508 (rust_val_print): Rewrite.
13509 (rust_value_print_inner): New function, from rust_val_print.
13510 (rust_language_defn): Use rust_value_print_inner.
13512 2020-03-13 Tom Tromey <tom@tromey.com>
13514 * ada-valprint.c (ada_value_print_inner): New function.
13515 * ada-lang.h (ada_value_print_inner): Declare.
13516 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
13518 2020-03-13 Tom Tromey <tom@tromey.com>
13520 * f-valprint.c (f_value_print_innner): New function.
13521 * f-lang.h (f_value_print_innner): Declare.
13522 * f-lang.c (f_language_defn): Use f_value_print_innner.
13524 2020-03-13 Tom Tromey <tom@tromey.com>
13526 * p-valprint.c (pascal_value_print_inner): New function.
13527 * p-lang.h (pascal_value_print_inner): Declare.
13528 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
13530 2020-03-13 Tom Tromey <tom@tromey.com>
13532 * m2-valprint.c (m2_value_print_inner): New function.
13533 * m2-lang.h (m2_value_print_inner): Declare.
13534 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
13536 2020-03-13 Tom Tromey <tom@tromey.com>
13538 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
13539 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
13540 * c-valprint.c (c_value_print_inner): New function.
13541 * c-lang.h (c_value_print_inner): Declare.
13542 * c-lang.c (c_language_defn, cplus_language_defn)
13543 (asm_language_defn, minimal_language_defn): Use
13544 c_value_print_inner.
13546 2020-03-13 Tom Tromey <tom@tromey.com>
13548 * p-valprint.c (pascal_object_print_value_fields): Now static.
13549 * p-lang.h (pascal_object_print_value_fields): Don't declare.
13551 2020-03-13 Tom Tromey <tom@tromey.com>
13553 * c-valprint.c (c_val_print_array): Simplify.
13555 2020-03-13 Tom Tromey <tom@tromey.com>
13557 * valprint.c (value_print_array_elements): New function.
13558 * valprint.h (value_print_array_elements): Declare.
13560 2020-03-13 Tom Tromey <tom@tromey.com>
13562 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
13563 * mips-tdep.c (mips_print_register): Use
13564 value_print_scalar_formatted.
13566 2020-03-13 Tom Tromey <tom@tromey.com>
13568 * valprint.h (value_print_scalar_formatted): Declare.
13569 * valprint.c (value_print_scalar_formatted): New function.
13571 2020-03-13 Tom Tromey <tom@tromey.com>
13573 * valprint.h (generic_value_print): Declare.
13574 * valprint.c (generic_value_print): New function.
13576 2020-03-13 Tom Tromey <tom@tromey.com>
13578 * valprint.c (do_val_print): Call la_value_print_inner, if
13580 * rust-lang.c (rust_language_defn): Update.
13581 * p-lang.c (pascal_language_defn): Update.
13582 * opencl-lang.c (opencl_language_defn): Update.
13583 * objc-lang.c (objc_language_defn): Update.
13584 * m2-lang.c (m2_language_defn): Update.
13585 * language.h (struct language_defn) <la_value_print_inner>: New
13587 * language.c (unknown_language_defn, auto_language_defn): Update.
13588 * go-lang.c (go_language_defn): Update.
13589 * f-lang.c (f_language_defn): Update.
13590 * d-lang.c (d_language_defn): Update.
13591 * c-lang.c (c_language_defn, cplus_language_defn)
13592 (asm_language_defn, minimal_language_defn): Update.
13593 * ada-lang.c (ada_language_defn): Update.
13595 2020-03-13 Tom Tromey <tom@tromey.com>
13597 * c-valprint.c (c_value_print): Use common_val_print.
13599 2020-03-13 Tom Tromey <tom@tromey.com>
13601 * cp-valprint.c (cp_print_static_field): Use common_val_print.
13603 2020-03-13 Tom Tromey <tom@tromey.com>
13605 * f-valprint.c (f77_print_array_1, f_val_print): Use
13608 2020-03-13 Tom Tromey <tom@tromey.com>
13610 * riscv-tdep.c (riscv_print_one_register_info): Use
13613 2020-03-13 Tom Tromey <tom@tromey.com>
13615 * mi/mi-main.c (output_register): Use common_val_print.
13617 2020-03-13 Tom Tromey <tom@tromey.com>
13619 * infcmd.c (default_print_one_register_info): Use
13622 2020-03-13 Tom Tromey <tom@tromey.com>
13624 * valprint.h (common_val_print_checked): Declare.
13625 * valprint.c (common_val_print_checked): New function.
13626 * stack.c (print_frame_arg): Use common_val_print_checked.
13628 2020-03-13 Tom Tromey <tom@tromey.com>
13630 * valprint.c (do_val_print): New function, from val_print.
13631 (val_print): Use do_val_print.
13632 (common_val_print): Use do_val_print.
13634 2020-03-13 Tom Tromey <tom@tromey.com>
13636 * valprint.c (value_print): Use scoped_value_mark.
13638 2020-03-13 Tom de Vries <tdevries@suse.de>
13641 * psymtab.c (partial_symtab::partial_symtab): Don't set
13642 globals_offset and statics_offset. Push element onto
13643 current_global_psymbols and current_static_psymbols stacks.
13644 (concat): New function.
13645 (end_psymtab_common): Set globals_offset and statics_offset. Pop
13646 element from current_global_psymbols and current_static_psymbols
13647 stacks. Concat popped elements to global_psymbols and
13649 (add_psymbol_to_list): Use current_global_psymbols and
13650 current_static_psymbols stacks.
13651 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
13652 current_static_psymbols fields.
13654 2020-03-12 Christian Biesinger <cbiesinger@google.com>
13656 * corelow.c (sniff_core_bfd): Remove.
13657 (class core_target) <m_core_vec>: Remove.
13658 (core_target::core_target): Update.
13659 (core_file_fns): Remove.
13660 (deprecated_add_core_fns): Remove.
13661 (default_core_sniffer): Remove.
13662 (sniff_core_bfd): Remove.
13663 (default_check_format): Remove.
13664 (gdb_check_format): Remove.
13665 (core_target_open): Update.
13666 (core_target::get_core_register_section): Update.
13667 (get_core_registers_cb): Update.
13668 (core_target::fetch_registers): Update.
13669 * gdbcore.h (struct core_fns): Remove.
13670 (deprecated_add_core_fns): Remove.
13671 (default_core_sniffer): Remove.
13672 (default_check_format): Remove.
13674 2020-03-12 Tom Tromey <tom@tromey.com>
13676 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
13678 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
13680 2020-03-12 Tom Tromey <tom@tromey.com>
13682 * remote.c (remote_target::download_tracepoint)
13683 (remote_target::enable_tracepoint)
13684 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
13685 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
13688 2020-03-12 Tom Tromey <tom@tromey.com>
13690 * symfile-mem.c: Update CORE_ADDR size assert.
13692 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13694 * selftest.m4: Move to gdbsupport/.
13695 * acinclude.m4: Update path to selftest.m4.
13697 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13699 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
13700 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
13701 gdbarch-selfselftests.c and selftest-arch.c.
13702 (SUBDIR_UNITTESTS_OBS): Rename to...
13703 (SELFTESTS_OBS): ... this.
13704 (COMMON_SFILES): Remove disasm-selftests.c and
13705 gdbarch-selftests.c.
13706 * configure.ac: Don't add selftest-arch.{c,o} to
13708 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
13709 preprocessor conditions.
13711 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13713 * configure.ac: Don't source bfd/development.sh.
13714 * selftest.m4: Modify comment.
13715 * configure: Re-generate.
13717 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13719 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
13720 not "true" or "false".
13721 * configure: Re-generate.
13723 2020-03-12 Christian Biesinger <cbiesinger@google.com>
13725 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
13726 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
13727 renamed to arm_nbsd_supply_gregset.
13728 (fetch_register): Update to call arm_nbsd_supply_gregset.
13729 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
13730 (arm_netbsd_nat_target::fetch_registers): Update.
13731 (fetch_elfcore_registers): Removed.
13732 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
13733 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
13734 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
13735 not require NetBSD system headers.
13736 (arm_nbsd_regset): New struct.
13737 (arm_nbsd_iterate_over_regset_sections): New function.
13738 (arm_netbsd_init_abi_common): Updated to call
13739 set_gdbarch_iterate_over_regset_sections.
13740 * arm-nbsd-tdep.h: New file.
13742 2020-03-11 Kevin Buettner <kevinb@redhat.com>
13744 * symtab.c (find_pc_sect_line): Add check which prevents infinite
13747 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
13749 * configure: Re-generate.
13751 2020-03-11 Tom Tromey <tromey@adacore.com>
13753 * ada-typeprint.c (print_choices): Fix comment.
13755 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
13757 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
13758 previous item in the list, when the list has no items.
13760 2020-03-11 Tom de Vries <tdevries@suse.de>
13762 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
13763 PROP_LOCLIST handling code.
13765 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
13767 * buildsym-legacy.c (record_line): Pass extra parameter to
13769 * buildsym.c (buildsym_compunit::record_line): Take an extra
13770 parameter, reduce duplication in the line table, and record the
13771 is_stmt flag in the line table.
13772 * buildsym.h (buildsym_compunit::record_line): Add extra
13774 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
13775 non-statement lines.
13776 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
13777 this to the symtab builder.
13778 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
13779 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
13780 through to dwarf_record_line_1.
13781 * infrun.c (process_event_stop_test): When stepping, don't stop at
13782 a non-statement instruction, and only refresh the step info when
13783 we land in the middle of a line's range. Also add an extra
13785 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
13787 * record-btrace.c (btrace_find_line_range): Only record lines
13788 marked as is-statement.
13789 * stack.c (frame_show_address): Show the frame address if we are
13790 in a non-statement sal.
13791 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
13792 (maintenance_print_one_line_table): Print a header for the is_stmt
13793 column, and include is_stmt information in the output.
13794 * symtab.c (find_pc_sect_line): Find lines marked as statements in
13795 preference to non-statements.
13796 (find_pcs_for_symtab_line): Prefer is-statement entries.
13797 (find_line_common): Likewise.
13798 * symtab.h (struct linetable_entry): Add is_stmt field.
13799 (struct symtab_and_line): Likewise.
13800 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
13801 arranging the line table.
13803 2020-03-07 Tom de Vries <tdevries@suse.de>
13805 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
13808 2020-03-07 Tom Tromey <tom@tromey.com>
13810 * valops.c (value_literal_complex): Remove obsolete comment.
13811 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
13814 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13816 * infrun.h: Forward-declare thread_info.
13817 (set_step_info): Add thread_info parameter, add doc.
13818 * infrun.c (set_step_info): Add thread_info parameter, move doc
13820 * infrun.c (process_event_stop_test): Pass thread to
13821 set_step_info call.
13822 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
13824 (prepare_one_step): Add thread_info parameter, pass it to
13825 set_step_frame and prepare_one_step (recursive) call.
13826 (step_1): Pass thread to prepare_one_step call.
13827 (step_command_fsm::should_stop): Pass thread to
13829 (until_next_fsm): Pass thread to set_step_frame call.
13830 (finish_command): Pass thread to set_step_info call.
13832 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
13834 * windows-tdep.c (windows_solib_create_inferior_hook):
13835 Check if inferior is running.
13837 2020-03-06 Tom de Vries <tdevries@suse.de>
13839 * NEWS: Fix "the the".
13842 2020-03-06 Tom de Vries <tdevries@suse.de>
13844 * psymtab.c (psymtab_to_symtab): Don't print "done.".
13846 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13848 * .dir-locals.el: Add a comment referencing the other copies of
13851 2020-03-05 John Baldwin <jhb@FreeBSD.org>
13853 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
13856 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13858 * .gitattributes: New file.
13860 2020-03-04 Tom Tromey <tom@tromey.com>
13862 * symmisc.c (print_symbol_bcache_statistics)
13863 (print_objfile_statistics): Update.
13864 * symfile.c (allocate_symtab): Use intern.
13865 * psymtab.c (partial_symtab::partial_symtab): Use intern.
13866 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13867 macro_cache>: Remove.
13868 <string_cache>: New member.
13869 (struct objfile) <intern>: New methods.
13870 * elfread.c (elf_symtab_read): Use intern.
13871 * dwarf2/read.c (fixup_go_packaging): Intern package name.
13872 (dwarf2_compute_name, dwarf2_physname)
13873 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
13875 (guess_partial_die_structure_name): Update.
13876 (partial_die_info::fixup): Intern name.
13877 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
13879 (dwarf2_name): Intern name. Update.
13880 * buildsym.c (buildsym_compunit::get_macro_table): Use
13883 2020-03-04 Tom Tromey <tom@tromey.com>
13885 * jit.c (bfd_open_from_target_memory): Make "target" const.
13886 * corefile.c (gnutarget): Now const.
13887 * gdbcore.h (gnutarget): Now const.
13889 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
13891 * NEWS: Mention support for WOW64 processes.
13892 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
13893 (amd64_windows_segment_register_p): Remove static.
13894 (_initialize_amd64_windows_nat): Update.
13895 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
13896 * i386-windows-nat.c (context_offset): Update.
13897 (i386_mappings): Rename and remove static.
13898 (i386_windows_segment_register_p): Remove static.
13899 (_initialize_i386_windows_nat): Update.
13900 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
13901 (STATUS_WX86_SINGLE_STEP): New macro.
13902 (EnumProcessModulesEx): New macro.
13903 (Wow64SuspendThread): New macro.
13904 (Wow64GetThreadContext): New macro.
13905 (Wow64SetThreadContext): New macro.
13906 (Wow64GetThreadSelectorEntry): New macro.
13907 (windows_set_context_register_offsets): Add static.
13908 (windows_set_segment_register_p): Likewise.
13909 (windows_add_thread): Adapt for WOW64 processes.
13910 (windows_fetch_one_register): Likewise.
13911 (windows_nat_target::fetch_registers): Likewise.
13912 (windows_store_one_register): Likewise.
13913 (display_selector): Likewise.
13914 (display_selectors): Likewise.
13915 (handle_exception): Likewise.
13916 (windows_continue): Likewise.
13917 (windows_nat_target::resume): Likewise.
13918 (windows_add_all_dlls): Likewise.
13919 (do_initial_windows_stuff): Likewise.
13920 (windows_nat_target::attach): Likewise.
13921 (windows_get_exec_module_filename): Likewise.
13922 (windows_nat_target::create_inferior): Likewise.
13923 (windows_xfer_siginfo): Likewise.
13924 (_initialize_loadable): Initialize Wow64SuspendThread,
13925 Wow64GetThreadContext, Wow64SetThreadContext,
13926 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
13927 * windows-nat.h (windows_set_context_register_offsets):
13928 Remove declaration.
13929 (windows_set_segment_register_p): Likewise.
13930 (i386_windows_segment_register_p): Add declaration.
13931 (amd64_windows_segment_register_p): Likewise.
13933 2020-03-04 Luis Machado <luis.machado@linaro.org>
13935 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
13936 in "info registers" for AArch64/ARM.
13938 The change caused "info registers" to not print GPR's.
13942 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13944 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13945 when reg->group is empty and reggroup is not.
13947 2020-03-03 Tom Tromey <tromey@adacore.com>
13949 * dwarf2/frame.c (struct dwarf2_frame_cache)
13950 <checked_tailcall_bottom, entry_cfa_sp_offset,
13951 entry_cfa_sp_offset_p>: Remove members.
13952 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
13953 (dwarf2_frame_prev_register): Don't call
13954 dwarf2_tailcall_sniffer_first.
13955 (dwarf2_append_unwinders): Don't append tailcall unwinder.
13956 * frame-unwind.c (add_unwinder): New fuction.
13957 (frame_unwind_init): Use it. Add tailcall unwinder.
13959 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
13960 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13962 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
13963 value should be printed as true.
13965 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
13967 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
13968 (windows_init_abi): Set and use windows_so_ops.
13970 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
13972 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
13973 when verifying if dealing with a convenience variable.
13975 2020-03-03 Luis Machado <luis.machado@linaro.org>
13977 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
13979 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13981 * infrun.c (gdbarch_supports_displaced_stepping): New.
13982 (use_displaced_stepping): Break up conditions in smaller pieces.
13983 Use gdbarch_supports_displaced_stepping.
13984 (displaced_step_prepare_throw): Use
13985 gdbarch_supports_displaced_stepping.
13987 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13989 * NEWS: Mention new behaviour of the history filename.
13990 * top.c (write_history_p): Add comment.
13991 (show_write_history_p): Add header comment, give a different
13992 message when history writing is on, but the history filename is
13994 (history_filename): Add comment.
13995 (history_filename_empty): New function.
13996 (show_history_filename): Add header comment, give a different
13997 message when the filename is empty.
13998 (init_history): Compare history_filename against nullptr, and only
13999 read history if the filename is not empty.
14000 (set_history_filename): Add header comment, and only make
14001 non-empty filenames absolute.
14002 (init_main): Make the filename argument to 'set history filename'
14005 2020-03-02 Christian Biesinger <cbiesinger@google.com>
14007 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
14008 (arm_supply_vfpregset): ...this, and update to use VFP registers.
14009 (fetch_fp_register): Update.
14010 (fetch_fp_regs): Update.
14011 (store_fp_register): Update.
14012 (store_fp_regs): Update.
14013 (arm_netbsd_nat_target::read_description): New function.
14014 (fetch_elfcore_registers): Update.
14016 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14018 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
14019 general_thread if the stop reply is missing a thread-id.
14020 (remote_target::process_stop_reply): Use the first non-exited
14021 thread if the target didn't pass a thread-id.
14022 * infrun.c (do_target_wait): Move call to
14023 switch_to_inferior_no_thread to ....
14024 (do_target_wait_1): ... here.
14026 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
14028 * debuginfod-support.c: Include defs.h first.
14030 2020-02-28 Tom de Vries <tdevries@suse.de>
14032 * symfile.c (set_initial_language): Use default language for lookup.
14034 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
14036 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
14037 reader variable, pass `this` to read_cutu_die_from_dwo.
14039 2020-02-27 Aaron Merey <amerey@redhat.com>
14041 * source.c (open_source_file): Check for nullptr when computing
14044 2020-02-27 Tom Tromey <tromey@adacore.com>
14046 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
14048 (dwarf2_add_field): Don't update nfields.
14049 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
14051 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14053 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
14056 2020-02-26 Tom Tromey <tom@tromey.com>
14058 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
14059 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
14060 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
14061 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
14064 2020-02-26 Tom Tromey <tom@tromey.com>
14066 * dwarf2/index-write.c (psym_index_map): Change type.
14067 (add_address_entry_worker, write_one_signatured_type)
14068 (recursively_count_psymbols, recursively_write_psymbols)
14069 (class debug_names, psyms_seen_size, write_gdbindex)
14070 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
14072 2020-02-26 Aaron Merey <amerey@redhat.com>
14074 * Makefile.in: Handle optional debuginfod support.
14076 * README: Add --with-debuginfod summary.
14077 * config.in: Regenerate.
14078 * configure: Regenerate.
14079 * configure.ac: Handle optional debuginfod support.
14080 * debuginfod-support.c: debuginfod helper functions.
14081 * debuginfod-support.h: Ditto.
14082 * doc/gdb.texinfo: Add --with-debuginfod to configure options
14084 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
14085 when a dwz file cannot be found.
14086 * elfread.c (elf_symfile_read): Query debuginfod servers when a
14087 debuginfo file cannot be found.
14088 * source.c (open_source_file): Query debuginfod servers when a
14089 source file cannot be found.
14090 * top.c (print_gdb_configuration): Include
14091 --{with,without}-debuginfod in the output.
14093 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
14095 * thread.c (thr_try_catch_cmd): Print thread name.
14097 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
14099 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
14100 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14101 dwarf2_fetch_die_type_sect_off): Move to...
14102 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
14103 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14104 dwarf2_fetch_die_type_sect_off): ... here.
14105 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
14106 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14107 dwarf2_fetch_die_type_sect_off): Move doc to header file.
14109 2020-02-26 Tom de Vries <tdevries@suse.de>
14112 * symfile.c (set_initial_language): Exit-early if
14113 language_mode == language_mode_manual.
14115 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14117 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
14118 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
14119 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
14121 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
14123 * gdbtypes.c (create_array_type_with_stride): Handle negative
14125 * valarith.c (value_subscripted_rvalue): Likewise.
14127 2020-02-25 Luis Machado <luis.machado@linaro.org>
14129 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
14131 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14133 * loc.h (dwarf2_get_die_type): Move to...
14134 * read.h (dwarf2_get_die_type): ... here.
14135 * read.c (dwarf2_get_die_type): Move doc to header.
14137 2020-02-25 Joel Brobecker <brobecker@adacore.com>
14139 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
14140 'gnulib/Makefile.in' to the list.
14142 2020-02-24 Tom Tromey <tom@tromey.com>
14144 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
14146 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
14149 2020-02-24 Tom Tromey <tom@tromey.com>
14151 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
14153 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
14154 (dw2_do_instantiate_symtab, dw2_get_file_names)
14155 (build_type_psymtab_dependencies, load_full_type_unit): Update.
14157 2020-02-24 Tom Tromey <tom@tromey.com>
14159 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
14160 make_scoped_restore.
14161 (dwarf2_psymtab::read_symtab): Don't clear
14162 reading_partial_symbols.
14164 2020-02-24 Tom de Vries <tdevries@suse.de>
14167 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
14169 2020-02-24 Tom de Vries <tdevries@suse.de>
14171 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
14172 commands layout next/prev/regs.
14174 2020-02-22 Tom Tromey <tom@tromey.com>
14176 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
14177 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
14179 2020-02-22 Tom Tromey <tom@tromey.com>
14181 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
14183 2020-02-22 Tom Tromey <tom@tromey.com>
14185 * tui/tui-win.c (_initialize_tui_win): Add usage text.
14186 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
14187 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
14188 * tui/tui.c (_initialize_tui): Add usage text.
14190 2020-02-22 Tom Tromey <tom@tromey.com>
14192 * tui/tui-win.c (tui_set_focus_command)
14193 (tui_set_win_height_command): Use error_no_arg.
14194 (_initialize_tui_win): Update help text.
14195 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
14197 2020-02-22 Tom Tromey <tom@tromey.com>
14199 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
14200 * tui/tui-disasm.h (struct tui_disasm_window)
14201 <display_start_addr>: Declare.
14202 * tui/tui-source.h (struct tui_source_window)
14203 <display_start_addr>: Declare.
14204 * tui/tui-winsource.h (struct tui_source_window_base)
14205 <show_source_line, display_start_addr>: New methods.
14206 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
14207 Rename and move to protected section.
14208 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
14209 (tui_source_window_base::do_erase_source_content): Update.
14210 (tui_source_window_base::show_source_line): Now a method.
14211 (tui_source_window_base::show_source_content)
14212 (tui_source_window_base::tui_source_window_base)
14213 (tui_source_window_base::rerender)
14214 (tui_source_window_base::refill)
14215 (tui_source_window_base::do_scroll_horizontal)
14216 (tui_source_window_base::set_is_exec_point_at)
14217 (tui_source_window_base::update_breakpoint_info)
14218 (tui_source_window_base::update_exec_info): Update.
14219 * tui/tui-source.c (tui_source_window::set_contents)
14220 (tui_source_window::showing_source_p)
14221 (tui_source_window::do_scroll_vertical)
14222 (tui_source_window::location_matches_p)
14223 (tui_source_window::line_is_displayed): Update.
14224 (tui_source_window::display_start_addr): New method.
14225 * tui/tui-disasm.c (tui_disasm_window::set_contents)
14226 (tui_disasm_window::do_scroll_vertical)
14227 (tui_disasm_window::location_matches_p): Update.
14228 (tui_disasm_window::display_start_addr): New method.
14230 2020-02-22 Tom Tromey <tom@tromey.com>
14232 * NEWS: Add entry for gdb.register_window_type.
14233 * tui/tui-layout.h (window_factory): New typedef.
14234 (tui_register_window): Declare.
14235 * tui/tui-layout.c (saved_tui_windows): New global.
14236 (tui_apply_current_layout): Use it.
14237 (tui_register_window): New function.
14238 * python/python.c (do_start_initialization): Call
14239 gdbpy_initialize_tui.
14240 (python_GdbMethods): Add "register_window_type" function.
14241 * python/python-internal.h (gdbpy_register_tui_window)
14242 (gdbpy_initialize_tui): Declare.
14243 * python/py-tui.c: New file.
14244 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
14246 2020-02-22 Tom Tromey <tom@tromey.com>
14248 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
14250 2020-02-22 Tom Tromey <tom@tromey.com>
14252 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
14253 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
14254 * tui/tui-data.c (tui_set_win_with_focus): Remove.
14255 (tui_set_win_focus_to): Move from tui-win.c.
14257 2020-02-22 Tom Tromey <tom@tromey.com>
14259 * tui/tui-layout.c (make_standard_window, get_locator_window): New
14261 (known_window_types): New global.
14262 (tui_get_window_by_name): Reimplement.
14263 (initialize_known_windows): New function.
14264 (validate_window_name): Rewrite.
14265 (_initialize_tui_layout): Call initialize_known_windows.
14267 2020-02-22 Tom Tromey <tom@tromey.com>
14269 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
14271 * tui/tui-winsource.h (struct tui_source_window_base)
14272 <tui_source_window_base>: Remove parameter.
14273 * tui/tui-winsource.c
14274 (tui_source_window_base::tui_source_window_base): Remove
14276 (tui_source_window_base::refill): Update.
14277 * tui/tui-stack.h (struct tui_locator_window)
14278 <tui_locator_window>: Update.
14279 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
14280 Default the constructor.
14281 * tui/tui-regs.h (struct tui_data_item_window)
14282 <tui_data_item_window>: Default the constructor.
14283 (struct tui_data_window) <tui_data_window>: Likewise.
14284 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
14285 Default the constructor.
14286 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
14287 Default the constructor.
14289 (struct tui_win_info) <tui_win_info>: Default the constructor.
14290 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
14291 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
14292 Default the constructor.
14294 2020-02-22 Tom Tromey <tom@tromey.com>
14296 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
14297 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
14298 * tui/tui-win.c (tui_resize_all): Don't call
14299 tui_delete_invisible_windows.
14300 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
14302 (tui_set_layout): Update.
14303 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
14304 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
14305 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
14307 2020-02-22 Tom Tromey <tom@tromey.com>
14309 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
14312 2020-02-22 Tom Tromey <tom@tromey.com>
14314 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
14316 2020-02-22 Tom Tromey <tom@tromey.com>
14318 * tui/tui-winsource.h (struct tui_source_window_iterator)
14319 <inner_iterator>: New etytypedef.
14320 <tui_source_window_iterator>: Take "end" parameter.
14321 <tui_source_window_iterator>: Take iterator.
14322 <operator*, advance>: Update.
14323 <m_iter>: Change type.
14324 <m_end>: New field.
14325 (struct tui_source_windows) <begin, end>: Update.
14326 * tui/tui-layout.c (tui_windows): New global.
14327 (tui_apply_current_layout): Clear tui_windows.
14328 (tui_layout_window::apply): Update tui_windows.
14329 * tui/tui-data.h (tui_windows): Declare.
14330 (all_tui_windows): Now inline function.
14331 (class tui_window_iterator, struct all_tui_windows): Remove.
14333 2020-02-22 Tom Tromey <tom@tromey.com>
14336 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
14337 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
14339 (class tui_layout_window) <get_sizes>: Likewise.
14340 (class tui_layout_split) <tui_layout_split>: Add "vertical"
14342 <get_sizes>: Add "height" argument.
14343 <m_vertical>: New field.
14344 * tui/tui-layout.c (tui_layout_split::clone): Update.
14345 (tui_layout_split::get_sizes): Add "height" argument.
14346 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
14347 (tui_new_layout_command): Parse "-horizontal".
14348 (_initialize_tui_layout): Update help string.
14349 (tui_layout_split::specification): Add "-horizontal" when needed.
14350 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
14352 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
14355 2020-02-22 Tom Tromey <tom@tromey.com>
14357 * tui/tui-layout.h (enum tui_adjust_result): New.
14358 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
14359 (class tui_layout_window) <adjust_size>: Return
14360 tui_adjust_result. Rewrite.
14361 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
14362 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
14364 2020-02-22 Tom Tromey <tom@tromey.com>
14366 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
14367 parameter and return types.
14368 (class tui_layout_base) <specification>: Add "depth".
14369 (class tui_layout_window) <specification>: Add "depth".
14370 (class tui_layout_split) <specification>: Add "depth".
14371 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
14373 (tui_new_layout_command): Parse sub-layouts.
14374 (_initialize_tui_layout): Update help string.
14375 (tui_layout_window::specification): Add "depth".
14376 (add_layout_command): Update.
14378 2020-02-22 Tom Tromey <tom@tromey.com>
14380 * NEWS: Add "tui new-layout" item.
14381 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
14382 Add new-layout command to help text.
14383 (validate_window_name): New function.
14384 (tui_new_layout_command): New function.
14385 (_initialize_tui_layout): Register "new-layout".
14386 (tui_layout_window::specification): New method.
14387 (tui_layout_window::specification): New method.
14388 * tui/tui-layout.h (class tui_layout_base) <specification>: New
14390 (class tui_layout_window) <specification>: New method.
14391 (class tui_layout_split) <specification>: New method.
14393 2020-02-22 Tom Tromey <tom@tromey.com>
14395 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
14396 * tui/tui-win.c (window_name_completer): Update comment.
14397 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
14399 (class tui_layout_window) <replace_window>: Likewise.
14400 (class tui_layout_split) <replace_window>: Likewise.
14401 (tui_set_layout): Don't declare.
14402 (tui_set_initial_layout): Declare function.
14403 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
14404 (asm_regs_layout): New globals.
14405 (tui_current_layout, show_layout): Remove.
14406 (tui_set_layout, tui_add_win_to_layout): Rewrite.
14407 (find_layout, tui_apply_layout): New function.
14408 (layout_completer): Remove.
14409 (tui_next_layout): Reimplement.
14410 (tui_next_layout_command): New function.
14411 (tui_set_initial_layout, tui_prev_layout_command): New functions.
14412 (tui_regs_layout): Reimplement.
14413 (tui_regs_layout_command): New function.
14414 (extract_display_start_addr): Rewrite.
14415 (next_layout, prev_layout): Remove.
14416 (tui_layout_window::replace_window): New method.
14417 (tui_layout_split::replace_window): New method.
14418 (destroy_layout): New function.
14419 (layout_list): New global.
14420 (add_layout_command): New function.
14421 (initialize_layouts): Update.
14422 (tui_layout_command): New function.
14423 (_initialize_tui_layout): Install "layout" commands.
14424 * tui/tui-data.h (enum tui_layout_type): Remove.
14425 (tui_current_layout): Don't declare.
14427 2020-02-22 Tom Tromey <tom@tromey.com>
14429 * tui/tui-regs.c (tui_reg_layout): Remove.
14430 (tui_reg_command): Use tui_regs_layout.
14431 * tui/tui-layout.h (tui_reg_command): Declare.
14432 * tui/tui-layout.c (tui_reg_command): New function.
14434 2020-02-22 Tom Tromey <tom@tromey.com>
14436 * tui/tui.c (tui_rl_delete_other_windows): Call
14437 tui_remove_some_windows.
14438 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
14440 (class tui_layout_window) <remove_windows>: New method.
14441 (class tui_layout_split) <remove_windows>: Declare.
14442 (tui_remove_some_windows): Declare.
14443 * tui/tui-layout.c (tui_remove_some_windows): New function.
14444 (tui_layout_split::remove_windows): New method.
14446 2020-02-22 Tom Tromey <tom@tromey.com>
14448 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
14449 * tui/tui-layout.h (tui_next_layout): Declare.
14450 * tui/tui-layout.c (tui_next_layout): New function.
14452 2020-02-22 Tom Tromey <tom@tromey.com>
14454 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
14455 correct coordinates.
14457 2020-02-22 Tom Tromey <tom@tromey.com>
14459 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
14460 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
14463 2020-02-22 Tom Tromey <tom@tromey.com>
14465 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
14466 TUI_DISASM_WIN, not tui_win_list.
14468 2020-02-22 Tom Tromey <tom@tromey.com>
14470 * valprint.c (generic_val_print_enum_1)
14471 (val_print_type_code_flags): Style member names.
14472 * rust-lang.c (val_print_struct, rust_print_enum)
14473 (rust_print_struct_def, rust_internal_print_type): Style member
14475 * p-valprint.c (pascal_object_print_value_fields): Style member
14476 names. Only call fprintf_symbol_filtered for static members.
14477 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
14478 * f-valprint.c (f_val_print): Style member names.
14479 * f-typeprint.c (f_type_print_base): Style member names.
14480 * cp-valprint.c (cp_print_value_fields): Style member names. Only
14481 call fprintf_symbol_filtered for static members.
14482 (cp_print_class_member): Style member names.
14483 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
14485 * ada-valprint.c (ada_print_scalar): Style enum names.
14486 (ada_val_print_enum): Likewise.
14487 * ada-typeprint.c (print_enum_type): Style enum names.
14489 2020-02-21 Tom Tromey <tom@tromey.com>
14491 * psympriv.h (struct partial_symtab): Update comment.
14493 2020-02-21 Tom Tromey <tromey@adacore.com>
14495 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
14498 2020-02-21 Tom de Vries <tdevries@suse.de>
14501 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
14502 if dependencies[i]->user != NULL.
14504 2020-02-21 Ali Tamur <tamur@google.com>
14506 * dwarf2/read.c (dwarf2_name): Add null check.
14508 2020-02-20 Tom Tromey <tom@tromey.com>
14510 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
14511 ">=", in binary search.
14512 (dwarf2_find_containing_comp_unit): New overload.
14513 (run_test): New self-test.
14514 (_initialize_dwarf2_read): Register new test.
14516 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
14518 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
14519 * riscv-tdep.h: Likewise.
14520 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
14522 * features/riscv/64bit-csr.xml: Regenerated.
14524 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
14525 Tom Tromey <tom@tromey.com>
14527 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
14528 of 'fputc_unfiltered'.
14529 (putchar_unfiltered): Call 'fputc_unfiltered'.
14530 (fputc_unfiltered): Call 'fputs_unfiltered'.
14532 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
14534 * config.in: Regenerate.
14535 * configure: Regenerate.
14536 * configure.ac: Add --with-python-libdir option.
14537 * main.c: Use WITH_PYTHON_LIBDIR.
14539 2020-02-19 Tom Tromey <tom@tromey.com>
14541 * symtab.c (general_symbol_info::compute_and_set_names): Use
14542 obstack_strndup. Simplify call to symbol_set_demangled_name.
14544 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
14546 * dwarf2/read.c (allocate_signatured_type_table,
14547 allocate_dwo_unit_table, allocate_type_unit_groups_table,
14548 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
14549 Remove objfile parameter, update all callers.
14551 2020-02-19 Doug Evans <dje@google.com>
14554 * rust-lang.c (rust_print_enum): Apply embedded_offset to
14555 rust_enum_variant calculation.
14557 2020-02-19 Tom Tromey <tromey@adacore.com>
14559 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
14561 2020-02-19 Tom Tromey <tromey@adacore.com>
14563 * ada-lang.c (cache_symbol): Use obstack_strdup.
14565 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14567 * configure: Regenerate.
14569 2020-02-19 Tom Tromey <tromey@adacore.com>
14571 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
14574 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
14576 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
14578 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14580 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
14581 if GDBSERVER is not defined.
14582 (riscv_tdesc_cache): Likewise, also store const target_desc.
14583 (STATIC_IN_GDB): Define.
14584 (riscv_create_target_description): Update declaration with
14586 (riscv_lookup_target_description): New function, only define if
14587 GDBSERVER is not defined.
14588 * arch/riscv.h (riscv_create_target_description): Declare only
14589 when GDBSERVER is defined.
14590 (riscv_lookup_target_description): New declaration when GDBSERVER
14592 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
14593 (riscv_linux_read_features): ...this, and return
14594 riscv_gdbarch_features instead of target_desc.
14595 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
14596 (riscv_linux_read_description): Rename to...
14597 (riscv_linux_read_features): ...this.
14598 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14599 Update to use riscv_gdbarch_features and
14600 riscv_lookup_target_description.
14601 * riscv-tdep.c (riscv_find_default_target_description): Use
14602 riscv_lookup_target_description instead of
14603 riscv_create_target_description.
14605 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14607 * valprint.c (generic_val_print_enum_1): When printing a flag
14608 enum with value 0 and there is no enumerator with value 0, print
14609 just "0" instead of "(unknown: 0x0)".
14611 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14613 * valprint.c (generic_val_print_enum_1): Print unknown part of
14616 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14618 * dwarf2/read.c (update_enumeration_type_from_children): Allow
14619 flag enums to contain duplicate enumerators.
14620 * valprint.c (generic_val_print_enum_1): Update comment.
14622 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14624 * dwarf2/read.c: Include "count-one-bits.h".
14625 (update_enumeration_type_from_children): If an enumerator has
14626 multiple bits set, don't treat the enumeration as a "flag enum".
14627 * valprint.c (generic_val_print_enum_1): Assert that enumerators
14628 of flag enums have 0 or 1 bit set.
14630 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
14632 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
14634 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14635 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14636 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14637 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14638 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14640 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14642 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
14644 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14646 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
14647 displaced_step_closure_up.
14648 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14649 (struct displaced_step_closure_up):
14650 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14651 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14652 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
14654 * gdbarch.sh (displaced_step_copy_insn): Likewise.
14655 * gdbarch.c, gdbarch.h: Re-generate.
14656 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
14657 displaced_step_closure_up.
14658 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14659 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14660 * infrun.h (displaced_step_closure_up): New type alias.
14661 (struct displaced_step_inferior_state) <step_closure>: Change
14662 type to displaced_step_closure_up.
14663 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
14664 displaced_step_closure_up.
14665 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14667 2020-02-14 Tom Tromey <tom@tromey.com>
14669 * minidebug.c (gnu_debug_key): New global.
14670 (find_separate_debug_file_in_section): Use it.
14672 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14674 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
14676 * gdbarch.c: Re-generate.
14677 * gdbarch.h: Re-generate.
14678 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
14680 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
14681 type to std::unique_ptr.
14682 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14683 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14684 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14685 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14686 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
14687 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14688 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14689 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14690 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14692 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14694 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
14696 (displaced_step_clear): Rename to...
14697 (displaced_step_reset): ... this. Just call displaced->reset ().
14698 (displaced_step_clear_cleanup): Rename to...
14699 (displaced_step_reset_cleanup): ... this.
14700 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
14701 (displaced_step_fixup): Likewise.
14702 (resume_1): Likewise.
14703 (handle_inferior_event): Restore child's memory before calling
14704 displaced_step_fixup on the parent.
14705 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
14706 to std::unique_ptr.
14707 <step_closure>: Change type to std::unique_ptr.
14709 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14711 * arm-tdep.c: Include count-one-bits.h.
14712 (cleanup_block_store_pc): Use count_one_bits.
14713 (cleanup_block_load_pc): Use count_one_bits.
14714 (arm_copy_block_xfer): Use count_one_bits.
14715 (thumb2_copy_block_xfer): Use count_one_bits.
14716 (thumb_copy_pop_pc_16bit): Use count_one_bits.
14717 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
14718 (thumb_get_next_pcs_raw): Use count_one_bits.
14719 (arm_get_next_pcs_raw): Use count_one_bits_l.
14720 * arch/arm.c (bitcount): Remove.
14721 * arch/arm.h (bitcount): Remove.
14723 2020-02-14 Tom Tromey <tromey@adacore.com>
14725 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
14727 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
14728 * dwarf2/loc.c (call_site_find_chain_1): Return
14729 unique_xmalloc_ptr.
14730 (call_site_find_chain): Likewise.
14732 2020-02-14 Richard Biener <rguenther@suse.de>
14734 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
14735 on expression with division operators.
14737 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14739 * MAINTAINERS (Write After Approval): Adding myself.
14741 2020-02-12 Tom Tromey <tom@tromey.com>
14743 * event-loop.c (event_data, gdb_event, event_handler_func):
14746 2020-02-12 Tom Tromey <tom@tromey.com>
14748 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
14749 (dwarf2_frame_objfile_data): Add comment.
14750 (find_comp_unit, set_comp_unit): New functions.
14751 (dwarf2_frame_find_fde): Use find_comp_unit.
14752 (dwarf2_build_frame_info): Use set_comp_unit.
14754 2020-02-12 Tom Tromey <tom@tromey.com>
14756 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
14757 (comp_unit): Don't initialize objfile.
14758 (execute_cfa_program): Add text_offset parameter.
14759 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
14760 (dwarf2_frame_cache): Update.
14761 (dwarf2_build_frame_info): Don't set "objfile" member.
14763 2020-02-12 Tom Tromey <tom@tromey.com>
14765 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
14766 (decode_frame_entry): Likewise.
14767 (dwarf2_build_frame_info): Update.
14769 2020-02-12 Tom Tromey <tom@tromey.com>
14771 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
14772 (decode_frame_entry_1): Use the comp_unit obstack.
14774 2020-02-12 Tom Tromey <tom@tromey.com>
14776 * dwarf2/frame.c (struct comp_unit): Add initializers and
14778 (dwarf2_frame_objfile_data): Store a comp_unit.
14779 (dwarf2_frame_find_fde): Update.
14780 (dwarf2_build_frame_info): Use "new".
14782 2020-02-12 Tom Tromey <tom@tromey.com>
14784 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
14785 (dwarf2_fde_table): Typedef for std::vector.
14786 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
14787 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
14788 (decode_frame_entry): Update.
14789 (dwarf2_build_frame_info): Use "new".
14791 2020-02-12 Christian Biesinger <cbiesinger@google.com>
14793 * arm-tdep.c (arm_gdbarch_init): Update.
14794 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
14795 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
14796 have_neon, is_m>: Change to bool.
14798 2020-02-12 Christian Biesinger <cbiesinger@google.com>
14800 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
14802 2020-02-12 Tom Tromey <tom@tromey.com>
14804 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
14806 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
14808 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
14809 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
14811 2020-02-11 Tom Tromey <tom@tromey.com>
14813 * psymtab.h: Update comment.
14815 2020-02-11 Tom Tromey <tom@tromey.com>
14817 * gdb_obstack.h (struct auto_obstack): Use
14818 DISABLE_COPY_AND_ASSIGN.
14820 2020-02-11 Tom Tromey <tom@tromey.com>
14822 * dwarf2/frame.h (struct objfile): Don't forward declare.
14824 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14826 * cris-tdep.c (cris_supply_gregset): Change signature to match
14827 what struct regset expects.
14828 (cris_regset): New struct.
14829 (fetch_core_registers): Remove.
14830 (cris_iterate_over_regset_sections): New function.
14831 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
14832 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
14834 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14836 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
14839 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14841 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
14843 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14845 * configure: Re-generate.
14847 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14849 * configure: Re-generate.
14851 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14853 * acinclude: Update warning.m4 path.
14854 * warning.m4: Move to gdbsupport.
14856 2020-02-11 Tom Tromey <tromey@adacore.com>
14858 * remote.c (remote_console_output): Update.
14859 * printcmd.c (printf_command): Update.
14860 * event-loop.c (gdb_wait_for_event): Update.
14861 * linux-nat.c (sigchld_handler): Update.
14862 * remote-sim.c (gdb_os_write_stdout): Update.
14863 (gdb_os_flush_stdout): Update.
14864 (gdb_os_flush_stderr): Update.
14865 (gdb_os_write_stderr): Update.
14866 * exceptions.c (print_exception): Update.
14867 * remote-fileio.c (remote_fileio_func_read): Update.
14868 (remote_fileio_func_write): Update.
14869 * tui/tui.c (tui_enable): Update.
14870 * tui/tui-interp.c (tui_interp::init): Update.
14871 * utils.c (init_page_info): Update.
14872 (putchar_unfiltered, fputc_unfiltered): Update.
14873 (gdb_flush): Update.
14874 (emit_style_escape): Update.
14875 (flush_wrap_buffer, fputs_maybe_filtered): Update.
14876 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
14877 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
14878 (stderr_file::write): Update.
14879 (stderr_file::puts): Update.
14880 * ui-file.h (ui_file_isatty, ui_file_write)
14881 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
14882 (ui_file_puts): Don't declare.
14884 2020-02-10 Tom de Vries <tdevries@suse.de>
14886 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
14887 sentinel to char *.
14889 2020-02-09 Tom de Vries <tdevries@suse.de>
14891 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
14892 filename if it matches "<artificial>".
14894 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
14896 * windows-tdep.c (struct enum_value_name): New struct.
14897 (create_enum): New function.
14898 (windows_get_siginfo_type): Create and use enum types.
14900 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
14902 * NEWS: Mention $_siginfo support for Windows.
14903 * windows-nat.c (handle_exception): Set siginfo_er.
14904 (windows_nat_target::mourn_inferior): Reset siginfo_er.
14905 (windows_xfer_siginfo): New function.
14906 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
14907 * windows-tdep.c (struct windows_gdbarch_data): New struct.
14908 (init_windows_gdbarch_data): New function.
14909 (get_windows_gdbarch_data): New function.
14910 (windows_get_siginfo_type): New function.
14911 (windows_init_abi): Register windows_get_siginfo_type.
14912 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
14914 2020-02-08 Tom Tromey <tom@tromey.com>
14916 * dwarf2/read.c (class cutu_reader) <cutu_reader,
14917 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
14918 <keep>: Declare method.
14919 <m_keep>: Remove member.
14920 <~cutu_reader>: Remove.
14921 (cutu_reader::init_tu_and_read_dwo_dies): Update.
14922 (cutu_reader::cutu_reader): Update.
14923 (cutu_reader::keep): Rename from ~cutu_reader.
14924 (process_psymtab_comp_unit, build_type_psymtabs_1)
14925 (process_skeletonless_type_unit, load_partial_comp_unit)
14926 (load_full_comp_unit, dwarf2_read_addr_index)
14927 (read_signatured_type): Update.
14929 2020-02-08 Tom Tromey <tom@tromey.com>
14931 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
14932 "want_partial_unit" parameter.
14933 (process_psymtab_comp_unit): Change want_partial_unit to bool.
14934 Inline check for DW_TAG_partial_unit.
14935 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
14937 2020-02-08 Tom Tromey <tom@tromey.com>
14939 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
14941 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
14944 2020-02-08 Tom Tromey <tom@tromey.com>
14946 * dwarf2/read.c (read_address): Move to comp-unit.c.
14947 (dwarf2_rnglists_process, dwarf2_ranges_process)
14948 (read_attribute_value, dwarf_decode_lines_1)
14949 (var_decode_location, decode_locdesc): Update.
14950 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
14951 read.c. Remove "cu" parameter.
14952 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
14955 2020-02-08 Tom Tromey <tom@tromey.com>
14957 * dwarf2/read.c (read_attribute_value, read_indirect_string)
14958 (read_indirect_line_string): Update.
14959 * dwarf2/comp-unit.c (read_offset): Remove.
14960 (read_comp_unit_head): Update.
14961 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
14963 (read_offset): Don't declare.
14965 2020-02-08 Tom Tromey <tom@tromey.com>
14967 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
14968 * dwarf2/read.c (struct comp_unit_head): Move to
14969 dwarf2/comp-unit.h.
14970 (enum class rcuh_kind): Move to comp-unit.h.
14971 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
14972 (read_comp_unit_head, error_check_comp_unit_head)
14973 (read_and_check_comp_unit_head): Move to comp-unit.c.
14974 (read_offset, dwarf_unit_type_name): Likewise.
14975 (create_debug_type_hash_table, read_cutu_die_from_dwo)
14976 (cutu_reader::cutu_reader, read_call_site_scope)
14977 (find_partial_die, follow_die_offset): Update.
14978 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
14980 2020-02-08 Tom Tromey <tom@tromey.com>
14982 * dwarf2/read.c (read_offset_1): Move to leb.c.
14983 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
14984 (dwarf_decode_macro_bytes): Update.
14985 * dwarf2/leb.c (read_offset): Rename; move from read.c.
14986 * dwarf2/leb.h (read_offset): Declare.
14988 2020-02-08 Tom Tromey <tom@tromey.com>
14990 * dwarf2/read.c (dwarf2_section_size): Remove.
14991 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
14993 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
14995 2020-02-08 Tom Tromey <tom@tromey.com>
14997 * dwarf2/read.c (read_initial_length): Move to leb.c.
14998 * dwarf2/leb.h (read_initial_length): Declare.
14999 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
15000 handle_nonstd parameter.
15001 * dwarf2/frame.c (read_initial_length): Remove.
15002 (decode_frame_entry_1): Update.
15004 2020-02-08 Tom Tromey <tom@tromey.com>
15006 * dwarf2/loc.c (dwarf2_find_location_expression)
15007 (dwarf_evaluate_loc_desc::get_tls_address)
15008 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
15009 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
15010 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
15011 (dwarf2_compile_property_to_c)
15012 (dwarf2_loc_desc_get_symbol_read_needs)
15013 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
15014 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
15015 (loclist_describe_location, loclist_tracepoint_var_ref)
15016 (loclist_generate_c_location): Update.
15017 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
15018 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
15019 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
15020 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
15021 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
15022 (dwarf2_per_cu_data::addr_size)
15023 (dwarf2_per_cu_data::ref_addr_size)
15024 (dwarf2_per_cu_data::text_offset)
15025 (dwarf2_per_cu_data::addr_type): Now methods.
15026 (per_cu_header_read_in): Make per_cu "const".
15027 (dwarf2_version): Remove.
15028 (dwarf2_per_cu_data::int_type): Now a method.
15029 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
15030 (set_die_type, read_array_type, read_subrange_index_type)
15031 (read_tag_string_type, read_subrange_type): Update.
15032 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
15033 offset_size, ref_addr_size, text_offset, addr_type, version,
15034 objfile, int_type, addr_sized_int_type>: Declare methods.
15036 2020-02-08 Tom Tromey <tom@tromey.com>
15038 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
15041 2020-02-08 Tom Tromey <tom@tromey.com>
15043 * dwarf2/read.h (dwarf_line_debug): Declare.
15044 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
15045 * dwarf2/read.c: Move line_header code to new files.
15046 (dwarf_line_debug): No longer static.
15047 * dwarf2/line-header.c: New file.
15048 * dwarf2/line-header.h: New file.
15050 2020-02-08 Tom Tromey <tom@tromey.com>
15052 * dwarf2/read.c (struct line_header) <file_full_name,
15053 file_file_name>: Return unique_xmalloc_ptr.
15054 (line_header::file_file_name): Update.
15055 (line_header::file_full_name): Update.
15056 (dw2_get_file_names_reader): Update.
15057 (macro_start_file): Update.
15059 2020-02-08 Tom Tromey <tom@tromey.com>
15061 * dwarf2/read.c (struct line_header) <file_full_name,
15062 file_file_name>: Declare methods.
15063 (dw2_get_file_names_reader): Update.
15064 (file_file_name): Now a method.
15065 (file_full_name): Likewise.
15066 (macro_start_file): Update.
15068 2020-02-08 Tom Tromey <tom@tromey.com>
15070 * dwarf2/read.c (dwarf_always_disassemble)
15071 (show_dwarf_always_disassemble): Move to loc.c.
15072 (_initialize_dwarf2_read): Move "always-disassemble" registration
15074 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
15075 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
15077 (show_dwarf_always_disassemble): Move from read.c.
15078 (_initialize_dwarf2loc): Move always-disassemble from read.c.
15080 2020-02-08 Tom Tromey <tom@tromey.com>
15082 * dwarf2/read.c (~dwarf2_per_objfile): Update.
15083 (create_quick_file_names_table): Return htab_up.
15084 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
15086 * dwarf2/read.h (struct dwarf2_per_objfile)
15087 <quick_file_names_table>: Now htab_up.
15089 2020-02-08 Tom Tromey <tom@tromey.com>
15091 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
15093 2020-02-08 Tom Tromey <tom@tromey.com>
15095 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
15097 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
15098 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
15099 (abbrev_table::abbrev_table): No longer inline.
15100 (ABBREV_HASH_SIZE): Remove.
15101 (abbrev_table::m_abbrevs): Now an htab_up.
15103 2020-02-08 Tom Tromey <tom@tromey.com>
15105 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
15106 (cutu_reader): Update.
15107 (build_type_psymtabs_1): Update.
15108 * dwarf2/abbrev.c (abbrev_table::read): Rename.
15109 (abbrev_table::alloc_abbrev): Update.
15110 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
15111 (abbrev_table::read): New static method, renamed from
15112 abbrev_table_read_table.
15113 (abbrev_table::alloc_abbrev)
15114 (abbrev_table::add_abbrev): Now private.
15115 (abbrev_table::abbrev_table): Now private.
15116 (abbrev_table::m_abbrev_obstack): Now private. Rename.
15118 2020-02-08 Tom Tromey <tom@tromey.com>
15120 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
15121 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
15124 2020-02-08 Tom Tromey <tom@tromey.com>
15126 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
15128 (lookup_dwo_unit_in_dwp): Update.
15129 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
15132 2020-02-08 Tom Tromey <tom@tromey.com>
15134 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
15137 2020-02-08 Tom Tromey <tom@tromey.com>
15139 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
15141 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
15142 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
15143 Change type to htab_up.
15145 2020-02-08 Tom Tromey <tom@tromey.com>
15147 * dwarf2/read.c (allocate_type_unit_groups_table): Return
15148 htab_up. Don't allocate on obstack.
15149 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
15150 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
15151 Change type to htab_up.
15153 2020-02-08 Tom Tromey <tom@tromey.com>
15155 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
15156 Change type to htab_up.
15157 * dwarf2/read.c (create_signatured_type_table_from_index)
15158 (create_signatured_type_table_from_debug_names)
15159 (create_all_type_units, add_type_unit)
15160 (lookup_dwo_signatured_type, lookup_signatured_type)
15161 (process_skeletonless_type_unit): Update.
15162 (create_debug_type_hash_table, create_debug_types_hash_table):
15163 Change type of types_htab.
15164 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
15165 htab_up. Don't allocate on obstack.
15166 (create_cus_hash_table): Change type of cus_htab parameter.
15167 (struct dwo_file) <cus, tus>: Now htab_up.
15168 (lookup_dwo_signatured_type, lookup_dwo_cutu)
15169 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
15170 (queue_and_load_all_dwo_tus): Update.
15171 * dwarf2/index-write.c (write_gdbindex): Update.
15172 (write_debug_names): Update.
15174 2020-02-08 Tom Tromey <tom@tromey.com>
15176 * dwarf2/read.h (struct dwarf2_queue_item): Move from
15177 dwarf2/read.c. Remove "next" member. Add constructor ntad
15179 (struct dwarf2_per_objfile) <queue>: New member.
15180 * dwarf2/read.c (struct dwarf2_queue_item): Move to
15182 (dwarf2_queue, dwarf2_queue_tail): Remove.
15183 (class dwarf2_queue_guard): Add parameter to constructor. Use
15184 DISABLE_COPY_AND_ASSIGN.
15185 <m_per_objfile>: New member.
15186 <~dwarf2_queue_guard>: Rewrite.
15187 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
15189 (~dwarf2_queue_item): New.
15191 2020-02-08 Tom Tromey <tom@tromey.com>
15193 * dwarf2/read.c (struct die_info) <has_children>: New member.
15194 (dw2_get_file_names_reader): Remove has_children.
15195 (dw2_get_file_names): Update.
15196 (read_cutu_die_from_dwo): Remove has_children.
15197 (cutu_reader::init_tu_and_read_dwo_dies)
15198 (cutu_reader::cutu_reader): Update.
15199 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
15200 Remove has_children.
15201 (build_type_psymtabs_1, process_skeletonless_type_unit)
15202 (load_partial_comp_unit, load_full_comp_unit): Update.
15203 (create_dwo_cu_reader): Remove has_children.
15204 (create_cus_hash_table, read_die_and_children): Update.
15205 (read_full_die_1,read_full_die): Remove has_children.
15206 (read_signatured_type): Update.
15207 (class cutu_reader) <has_children>: Remove.
15209 2020-02-08 Tom Tromey <tom@tromey.com>
15211 * dwarf2/expr.c: Rename from dwarf2expr.c.
15212 * dwarf2/expr.h: Rename from dwarf2expr.h.
15213 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
15214 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
15215 * dwarf2/frame.c: Rename from dwarf2-frame.c.
15216 * dwarf2/frame.h: Rename from dwarf2-frame.h.
15217 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
15218 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
15219 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
15220 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
15221 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
15222 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
15223 * dwarf2/loc.c: Rename from dwarf2loc.c.
15224 * dwarf2/loc.h: Rename from dwarf2loc.h.
15225 * dwarf2/read.c: Rename from dwarf2read.c.
15226 * dwarf2/read.h: Rename from dwarf2read.h.
15227 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
15228 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
15229 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
15230 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
15231 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
15232 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
15233 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
15234 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
15235 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
15236 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
15237 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
15238 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
15239 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
15241 * Makefile.in (COMMON_SFILES): Update.
15242 (HFILES_NO_SRCDIR): Update.
15244 2020-02-08 Tom Tromey <tom@tromey.com>
15246 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
15247 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
15249 2020-02-08 Tom Tromey <tom@tromey.com>
15251 * dwarf2read.h (struct die_info): Don't declare.
15253 2020-02-08 Tom Tromey <tom@tromey.com>
15255 * dwarf2read.h (die_info_ptr): Remove typedef.
15257 2020-02-08 Tom Tromey <tom@tromey.com>
15259 * dwarf2read.c (read_call_site_scope)
15260 (handle_data_member_location, dwarf2_add_member_fn)
15261 (mark_common_block_symbol_computed, read_common_block)
15262 (attr_to_dynamic_prop, partial_die_info::read)
15263 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
15264 (dwarf2_symbol_mark_computed, set_die_type): Update.
15265 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
15267 (attr_form_is_block): Don't declare.
15268 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
15270 2020-02-08 Tom Tromey <tom@tromey.com>
15272 * dwarf2read.c (dwarf2_find_base_address, )
15273 (read_call_site_scope, rust_containing_type)
15274 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
15275 (handle_data_member_location, dwarf2_add_member_fn)
15276 (get_alignment, read_structure_type, process_structure_scope)
15277 (mark_common_block_symbol_computed, read_common_block)
15278 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
15279 (partial_die_info::read, read_attribute_value, new_symbol)
15280 (lookup_die_type, dwarf2_get_ref_die_offset)
15281 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
15282 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
15283 (dwarf2_symbol_mark_computed): Update.
15284 * dwarf2/attribute.h (struct attribute) <value_as_address,
15285 form_is_section_offset, form_is_constant, form_is_ref>: Declare
15287 (value_as_address, attr_form_is_section_offset)
15288 (attr_form_is_constant, attr_form_is_ref): Don't declare.
15289 * dwarf2/attribute.c (attribute::value_as_address)
15290 (attribute::form_is_section_offset, attribute::form_is_constant)
15291 (attribute::form_is_ref): Now methods.
15293 2020-02-08 Tom Tromey <tom@tromey.com>
15295 * dwarf2read.c (struct attribute, DW_STRING)
15296 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
15297 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
15298 (attr_form_is_block, attr_form_is_section_offset)
15299 (attr_form_is_constant, attr_form_is_ref): Move.
15300 * dwarf2/attribute.h: New file.
15301 * dwarf2/attribute.c: New file, from dwarf2read.c.
15302 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
15304 2020-02-08 Tom Tromey <tom@tromey.com>
15306 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
15307 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
15309 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
15310 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
15311 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
15313 * dwarf2/abbrev.h: New file.
15314 * dwarf2/abbrev.c: New file, from dwarf2read.c.
15315 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
15317 2020-02-08 Tom Tromey <tom@tromey.com>
15319 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
15320 (dwarf2_section_size, dwarf2_get_section_info)
15321 (create_signatured_type_table_from_debug_names)
15322 (create_addrmap_from_aranges, read_debug_names_from_section)
15323 (get_gdb_index_contents_from_section, read_comp_unit_head)
15324 (error_check_comp_unit_head, read_abbrev_offset)
15325 (create_debug_type_hash_table, init_cu_die_reader)
15326 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
15327 (read_comp_units_from_section, create_cus_hash_table)
15328 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
15329 (create_dwp_v2_section, dwarf2_rnglists_process)
15330 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
15331 (abbrev_table_read_table, read_indirect_string_at_offset_from)
15332 (read_indirect_string_from_dwz, read_addr_index_1)
15333 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
15334 (dwarf_decode_macro_bytes, dwarf_decode_macros)
15335 (fill_in_loclist_baton): Update.
15336 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
15337 get_containing_section, get_bfd_owner, get_bfd_section,
15338 get_file_name, get_id, get_flags, empty, read>: Declare methods.
15339 (dwarf2_read_section, get_section_name, get_section_file_name)
15340 (get_containing_section, get_section_bfd_owner)
15341 (get_section_bfd_section, get_section_name, get_section_file_name)
15342 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
15344 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
15345 (dwarf2_section_info::get_bfd_owner)
15346 (dwarf2_section_info::get_bfd_section)
15347 (dwarf2_section_info::get_name)
15348 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
15349 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
15350 (dwarf2_section_info::read): Now methods.
15351 * dwarf-index-write.c (class debug_names): Update.
15353 2020-02-08 Tom Tromey <tom@tromey.com>
15355 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
15356 Move to dwarf2/section.h.
15357 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
15358 (get_section_bfd_section, get_section_name)
15359 (get_section_file_name, get_section_id, get_section_flags)
15360 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
15362 * dwarf2/section.h: New file.
15363 * dwarf2/section.c: New file, from dwarf2read.c.
15364 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
15366 2020-02-08 Tom Tromey <tom@tromey.com>
15368 * dwarf2read.h (read_unsigned_leb128): Don't declare.
15369 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
15370 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
15371 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
15372 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
15373 * dwarf2/leb.h: New file, from dwarf2read.c.
15374 * dwarf2/leb.c: New file, from dwarf2read.c.
15375 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
15377 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
15378 (COMMON_SFILES): Add dwarf2/leb.c.
15380 2020-02-08 Joel Brobecker <brobecker@adacore.com>
15384 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15387 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
15388 * gdb/remote.c (remote_console_output): Update.
15389 * gdb/ui-file.c (fputs_unfiltered): Rename to...
15390 (ui_file_puts): ...this.
15391 * gdb/ui-file.h (ui_file_puts): Add declaration.
15392 * gdb/utils.c (emit_style_escape): Update.
15393 (flush_wrap_buffer): Update.
15394 (fputs_maybe_filtered): Update.
15395 (fputs_unfiltered): Add function.
15397 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15399 * gdb/event-loop.c (gdb_wait_for_event): Update.
15400 * gdb/printcmd.c (printf_command): Update.
15401 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
15402 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
15403 (gdb_os_flush_stderr): Update.
15404 * gdb/remote.c (remote_console_output): Update.
15405 * gdb/ui-file.c (gdb_flush): Rename to...
15406 (ui_file_flush): ...this.
15407 (stderr_file::write): Update.
15408 (stderr_file::puts): Update.
15409 * gdb/ui-file.h (gdb_flush): Rename to...
15410 (ui_file_flush): ...this.
15411 * gdb/utils.c (gdb_flush): Add function.
15412 * gdb/utils.h (gdb_flush): Add declaration.
15414 2020-02-07 Tom Tromey <tromey@adacore.com>
15416 PR breakpoints/24915:
15417 * source.c (find_and_open_source): Do not check basenames_may_differ.
15419 2020-02-07 Tom Tromey <tom@tromey.com>
15421 * README: Update gdbserver documentation.
15422 * gdbserver: Move to top level.
15423 * configure.tgt (build_gdbserver): Remove.
15424 * configure.ac: Remove --enable-gdbserver.
15425 * configure: Rebuild.
15426 * Makefile.in (distclean): Don't mention gdbserver.
15428 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
15430 * source-cache.c (source_cache::ensure): Surround
15431 get_plain_source_lines with a try/catch.
15432 (source_cache::get_line_charpos): Get rid of try/catch
15433 and only check for the return value of "ensure".
15434 * tui/tui-source.c (tui_source_window::set_contents):
15435 Simplify "nlines" calculation.
15437 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
15439 * MAINTAINERS (Write After Approval): Add myself.
15441 2020-02-05 Christian Biesinger <cbiesinger@google.com>
15443 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
15446 2020-02-05 Christian Biesinger <cbiesinger@google.com>
15448 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
15450 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
15452 * nat/riscv-linux-tdesc.h: New file.
15453 * nat/riscv-linux-tdesc.c: New file, taking code from...
15454 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15456 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
15459 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
15461 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
15462 we don't set the fake simulator ptid to the null_ptid.
15464 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
15466 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
15467 * gdbthread.h (class thread_info) <resumed>: Likewise.
15468 * infrun.c (resume_1): Likewise.
15469 (proceed): Likewise.
15470 (infrun_thread_stop_requested): Likewise.
15471 (stop_all_threads): Likewise.
15472 (handle_inferior_event): Likewise.
15473 (restart_threads): Likewise.
15474 (finish_step_over): Likewise.
15475 (keep_going_stepped_thread): Likewise.
15476 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
15477 (linux_handle_extended_wait): Likewise.
15478 * record-btrace.c (get_thread_current_frame_id): Likewise.
15479 * record-full.c (record_full_wait_1): Likewise.
15480 * remote.c (remote_target::process_initial_stop_replies): Likewise.
15481 * target.c (target_resume): Likewise.
15482 * thread.c (set_running_thread): Likewise.
15484 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15486 * f-valprint.c (f77_print_array_1): Changed datatype of index
15487 variable to LONGEST from int to enable it to contain bound
15490 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
15492 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
15493 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
15494 offsets according to FLEN determined.
15495 (riscv_linux_nat_target::read_description): Determine FLEN
15497 (riscv_linux_nat_target::fetch_registers): Size regset buffer
15498 according to FLEN determined.
15499 (riscv_linux_nat_target::store_registers): Likewise.
15501 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
15503 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
15504 when reg->group is empty and reggroup is not.
15506 2020-01-31 Tom Tromey <tromey@adacore.com>
15508 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
15509 Call beneath target's mourn_inferior after unpushing.
15511 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15514 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
15515 have enough lines to fill the screen, still return the lowest
15518 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15520 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
15521 '-', '<', and '>' commands.
15523 2020-01-29 Pedro Alves <palves@redhat.com>
15524 Sergio Durigan Junior <sergiodj@redhat.com>
15526 * infcmd.c (construct_inferior_arguments): Assert that
15527 'argc' is greater than 0.
15529 2020-01-29 Luis Machado <luis.machado@linaro.org>
15531 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
15532 (BRK_INSN_MASK): Define to 0xd4200000.
15533 (aarch64_program_breakpoint_here_p): New function.
15534 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
15535 * arch-utils.c (default_program_breakpoint_here_p): Moved from
15537 * arch-utils.h (default_program_breakpoint_here_p): Moved from
15539 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
15540 call gdbarch_program_breakpoint_here_p.
15541 (program_breakpoint_here): Moved to arch-utils.c, renamed to
15542 default_program_breakpoint_here_p, changed return type to bool and
15544 * breakpoint.h (program_breakpoint_here): Moved prototype to
15545 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
15546 return type to bool.
15547 * gdbarch.c: Regenerate.
15548 * gdbarch.h: Regenerate.
15549 * gdbarch.sh (program_breakpoint_here_p): New method.
15550 * infrun.c (handle_signal_stop): Call
15551 gdbarch_program_breakpoint_here_p.
15553 2020-01-26 Tom Tromey <tom@tromey.com>
15555 * ctfread.c (struct ctf_fp_info): Reindent.
15556 (_initialize_ctfread): Remove.
15558 2020-01-26 Tom Tromey <tom@tromey.com>
15560 * psymtab.c (partial_map_expand_apply)
15561 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
15562 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
15563 (psym_print_stats, psym_expand_symtabs_for_function)
15564 (psym_map_symbol_filenames, psym_map_matching_symbols)
15565 (psym_expand_symtabs_matching)
15566 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
15567 (maintenance_check_psymtabs): Use new methods.
15568 * psympriv.h (struct partial_symtab) <readin_p,
15569 get_compunit_symtab>: New methods.
15570 <readin, compunit_symtab>: Remove members.
15571 (struct standard_psymtab): New.
15572 (struct legacy_psymtab): Derive from standard_psymtab.
15573 * dwarf2read.h (struct dwarf2_psymtab): Derive from
15575 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
15577 2020-01-26 Tom Tromey <tom@tromey.com>
15579 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
15580 read_dependencies. Add assert.
15581 * psymtab.c (partial_symtab::read_dependencies): New method.
15582 * psympriv.h (struct partial_symtab) <read_dependencies>: New
15584 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
15585 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
15587 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
15590 2020-01-26 Tom Tromey <tom@tromey.com>
15592 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
15593 Call expand_psymtab.
15594 (xcoff_read_symtab): Call expand_psymtab.
15595 (xcoff_start_psymtab, xcoff_end_psymtab): Set
15596 legacy_expand_psymtab.
15597 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
15599 (struct legacy_psymtab) <expand_psymtab>: Implement.
15600 <legacy_expand_psymtab>: New member.
15601 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
15602 (parse_partial_symbols): Set legacy_expand_psymtab.
15603 (psymtab_to_symtab_1): Change argument order. Call
15605 (new_psymtab): Set legacy_expand_psymtab.
15606 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
15607 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
15609 (dwarf2_psymtab::expand_psymtab): Rename from
15610 psymtab_to_symtab_1. Call expand_psymtab.
15611 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
15612 (dbx_end_psymtab): Likewise.
15613 (dbx_psymtab_to_symtab_1): Change argument order. Call
15615 (dbx_read_symtab): Call expand_psymtab.
15616 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
15617 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
15618 (ctf_psymtab::read_symtab): Call expand_psymtab.
15620 2020-01-26 Tom Tromey <tom@tromey.com>
15622 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
15623 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
15625 * mdebugread.c (mdebug_read_symtab): Remove prints.
15626 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
15628 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
15630 2020-01-26 Tom Tromey <tom@tromey.com>
15632 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
15633 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
15634 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
15636 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
15637 * psymtab.c (psymtab_to_symtab): Call method.
15638 (dump_psymtab): Update.
15639 * psympriv.h (struct partial_symtab): Add virtual destructor.
15640 <read_symtab>: New method.
15641 (struct legacy_symtab): New.
15642 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
15643 (struct pst_map) <pst>: Now a legacy_psymtab.
15644 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
15645 (new_psymtab): Use legacy_psymtab.
15646 * dwarf2read.h (struct dwarf2_psymtab): New.
15647 (struct dwarf2_per_cu_data) <psymtab>: Use it.
15648 * dwarf2read.c (dwarf2_create_include_psymtab)
15649 (dwarf2_build_include_psymtabs, create_type_unit_group)
15650 (create_partial_symtab, process_psymtab_comp_unit_reader)
15651 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
15652 (set_partial_user): Use dwarf2_psymtab.
15653 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
15654 (psymtab_to_symtab_1, process_full_comp_unit)
15655 (process_full_type_unit, dwarf2_ranges_read)
15656 (dwarf2_get_pc_bounds, psymtab_include_file_name)
15657 (dwarf_decode_lines): Use dwarf2_psymtab.
15658 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
15659 (add_address_entry_worker, write_one_signatured_type)
15660 (recursively_count_psymbols, recursively_write_psymbols)
15661 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
15662 (write_debug_names): Likewise.
15663 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
15664 <pst>: Now a legacy_psymtab.
15665 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
15666 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
15667 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
15668 * ctfread.c (struct ctf_psymtab): New.
15669 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
15671 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
15672 (create_partial_symtab): Return a ctf_psymtab.
15673 (scan_partial_symbols): Update.
15675 2020-01-26 Tom Tromey <tom@tromey.com>
15677 * xcoffread.c (xcoff_start_psymtab): Use new.
15678 * psymtab.c (partial_symtab::partial_symtab): New constructor,
15679 renamed from start_psymtab_common.
15680 * psympriv.h (struct partial_symtab): Add new constructor.
15681 (start_psymtab_common): Don't declare.
15682 * mdebugread.c (parse_partial_symbols): Use new.
15683 * dwarf2read.c (create_partial_symtab): Use new.
15684 * dbxread.c (start_psymtab): Use new.
15685 * ctfread.c (create_partial_symtab): Use new.
15687 2020-01-26 Tom Tromey <tom@tromey.com>
15689 * xcoffread.c (xcoff_end_psymtab): Use new.
15690 * psymtab.c (start_psymtab_common): Use new.
15691 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
15693 * psympriv.h (struct partial_symtab): Add parameters to
15694 constructor. Don't inline.
15695 (allocate_psymtab): Don't declare.
15696 * mdebugread.c (new_psymtab): Use new.
15697 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
15698 * dbxread.c (dbx_end_psymtab): Use new.
15700 2020-01-26 Tom Tromey <tom@tromey.com>
15702 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
15703 allocate_psymtab. Update documentation.
15704 * psymtab.c (psymtab_storage::install_psymtab): Rename from
15705 allocate_psymtab. Do not use new.
15706 (allocate_psymtab): Use new. Update.
15708 2020-01-26 Tom Tromey <tom@tromey.com>
15710 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
15711 * psymtab.c (psym_print_stats): Update.
15712 * psympriv.h (struct partial_symtab) <readin,
15713 psymtabs_addrmap_supported, anonymous>: Now bool.
15714 * mdebugread.c (psymtab_to_symtab_1): Update.
15715 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
15716 (build_type_psymtabs_reader, psymtab_to_symtab_1)
15717 (process_full_comp_unit, process_full_type_unit): Update.
15718 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
15719 * ctfread.c (psymtab_to_symtab): Update.
15721 2020-01-26 Tom Tromey <tom@tromey.com>
15723 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
15724 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
15725 * psymtab.c (psymtab_storage): Delete psymtabs.
15726 (psymtab_storage::allocate_psymtab): Use new.
15727 (psymtab_storage::discard_psymtab): Use delete.
15728 * psympriv.h (struct partial_symtab): Add constructor and
15731 2020-01-26 Tom Tromey <tom@tromey.com>
15733 * machoread.c: Do not include psympriv.h.
15735 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15737 * NEWS: Mention the new option and the set/show commands.
15739 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15741 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
15742 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
15743 (validate_exec_file): New variables, enums, functions.
15744 (exec_file_locate_attach, print_section_info): Style the filenames.
15745 (_initialize_exec): Install show_exec_file_mismatch_command and
15746 set_exec_file_mismatch_command.
15747 * gdbcore.h (validate_exec_file): Declare.
15748 * infcmd.c (attach_command): Call validate_exec_file.
15749 * remote.c ( remote_target::remote_add_inferior): Likewise.
15751 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15753 * frame.c (find_frame_sal): Move call to get_next_frame into more
15755 * inline-frame.c (inilne_state) <inline_state>: Update argument
15757 (inilne_state) <skipped_symbol>: Rename to...
15758 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
15759 (skip_inline_frames): Build vector of skipped symbols and use this
15760 to reate the inline_state.
15761 (inline_skipped_symbol): Add a comment and some assertions, fetch
15762 skipped symbol from the list.
15764 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15766 * buildsym.c (lte_is_less_than): Delete.
15767 (buildsym_compunit::end_symtab_with_blockvector): Create local
15768 lambda function to sort line table entries, and use
15769 std::stable_sort instead of std::sort.
15770 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
15771 markers when looking for a previous line.
15773 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15775 * dwarf2read.c (lnp_state_machine::record_line): Include
15776 end_sequence parameter in debug print out. Record the line if we
15777 are at an end_sequence marker even if it's not the start of a
15779 * symmisc.c (maintenance_print_one_line_table): Print end of
15780 sequence markers with 'END' not '0'.
15782 2020-01-24 Pedro Alves <palves@redhat.com>
15785 * thread.c (scoped_restore_current_thread::restore): Use
15786 switch_to_inferior_no_thread.
15787 * exec.c: Include "progspace-and-thread.h".
15788 (add_target_sections, remove_target_sections):
15789 scoped_restore_current_pspace_and_thread instead of
15790 scoped_restore_current_thread.
15791 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
15792 and aspace to the inferior before calling clone_program_space.
15793 Remove stale comment.
15795 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15797 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
15798 (arm_netbsd_nat_target::fetch_registers): ...this.
15799 (arm_nbsd_nat_target::store_registers): Rename to...
15800 (arm_netbsd_nat_target::store_registers): ...this.
15802 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15804 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
15807 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15809 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
15811 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
15813 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
15814 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
15815 the correct replacement (iterate_over_regset_sections).
15816 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
15819 2020-01-24 Graham Markall <graham.markall@embecosm.com>
15822 * gdb/python/python.c (execute_gdb_command): Call
15823 async_enable_stdin in catch block.
15825 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15827 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
15828 SWITCH_THRU_ALL_UIS.
15830 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15833 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
15834 comment, add extra parameter, and update to store previous symbol
15836 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
15837 add extra parameter.
15838 * tui/tui-disasm.c (tui_disassemble): Update header comment,
15839 remove unneeded parameter, add try/catch around gdb_print_insn,
15840 rewrite to add items to asm_lines vector.
15841 (tui_find_backward_disassembly_start_address): New function.
15842 (tui_find_disassembly_address): Updated throughout.
15843 (tui_disasm_window::set_contents): Update for changes to
15845 (tui_disasm_window::do_scroll_vertical): No need to adjust the
15846 number of lines to scroll.
15848 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
15850 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
15851 (SECT_OFF_DATA): Likewise.
15852 (SECT_OFF_RODATA): Likewise.
15853 (SECT_OFF_TEXT): Likewise.
15854 (SECT_OFF_BSS): Likewise.
15855 (struct objfile) <text_section_offset, data_section_offset>: New
15857 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
15858 objfile::text_section_offset.
15859 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
15860 * coffread.c (coff_symtab_read): Likewise.
15861 (enter_linenos): Likewise.
15862 (process_coff_symbol): Likewise.
15863 * ctfread.c (get_objfile_text_range): Likewise.
15864 * dtrace-probe.c (dtrace_probe::get_relocated_address):
15865 Use objfile::data_section_offset.
15866 * dwarf2-frame.c (execute_cfa_program): Use
15867 objfile::text_section_offset.
15868 (dwarf2_frame_find_fde): Likewise.
15869 * dwarf2read.c (create_addrmap_from_index): Likewise.
15870 (create_addrmap_from_aranges): Likewise.
15871 (dw2_find_pc_sect_compunit_symtab): Likewise.
15872 (process_psymtab_comp_unit_reader): Likewise.
15873 (add_partial_symbol): Likewise.
15874 (add_partial_subprogram): Likewise.
15875 (process_full_comp_unit): Likewise.
15876 (read_file_scope): Likewise.
15877 (read_func_scope): Likewise.
15878 (read_lexical_block_scope): Likewise.
15879 (read_call_site_scope): Likewise.
15880 (dwarf2_rnglists_process): Likewise.
15881 (dwarf2_ranges_process): Likewise.
15882 (dwarf2_ranges_read): Likewise.
15883 (dwarf_decode_lines_1): Likewise.
15884 (new_symbol): Likewise.
15885 (dwarf2_fetch_die_loc_sect_off): Likewise.
15886 (dwarf2_per_cu_text_offset): Likewise.
15887 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
15888 * hppa-tdep.c (read_unwind_info): Likewise.
15889 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
15890 * psympriv.h (struct partial_symtab): Likewise.
15891 * psymtab.c (find_pc_sect_psymtab): Likewise.
15892 * solib-svr4.c (enable_break): Likewise.
15893 * stap-probe.c (relocate_address): Use
15894 objfile::data_section_offset.
15895 * xcoffread.c (enter_line_range): Use
15896 objfile::text_section_offset.
15897 (read_xcoff_symtab): Likewise.
15899 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
15901 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
15902 declaration to narrower scopes.
15904 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
15906 * darwin-nat.h (struct darwin_exception_msg, enum
15907 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
15909 (class darwin_nat_target) <wait_1, check_new_threads,
15910 decode_exception_message, decode_message, stop_inferior,
15911 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
15912 * darwin-nat.c (darwin_check_new_threads): Rename to...
15913 (darwin_nat_target::check_new_threads): ... this.
15914 (darwin_suspend_inferior_it): Remove.
15915 (darwin_decode_exception_message): Rename to...
15916 (darwin_nat_target::decode_exception_message): ... this.
15917 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
15918 (darwin_decode_message): Rename to...
15919 (darwin_nat_target::decode_message): ... this.
15920 (cancel_breakpoint): Rename to...
15921 (darwin_nat_target::cancel_breakpoint): ... this.
15922 (darwin_wait): Rename to...
15923 (darwin_nat_target::wait_1): ... this. Use range-based for loop
15924 instead of iterate_over_inferiors.
15925 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
15926 (darwin_stop_inferior): Rename to...
15927 (darwin_nat_target::stop_inferior): ... this.
15928 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
15929 (darwin_init_thread_list): Rename to...
15930 (darwin_nat_target::init_thread_list): ... this.
15931 (darwin_ptrace_him): Rename to...
15932 (darwin_nat_target::ptrace_him): ... this.
15933 (darwin_nat_target::create_inferior): Pass lambda function to
15935 (darwin_nat_target::detach): Call stop_inferior instead of
15936 darwin_stop_inferior.
15937 * fork-inferior.h (fork_inferior): Change init_trace_fun
15938 parameter to gdb::function_view.
15939 * fork-inferior.c (fork_inferior): Likewise.
15941 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
15943 * i386-cygwin-tdep.c (core_process_module_section): Update.
15944 * windows-nat.c (struct lm_info_windows): Add text_offset.
15945 (windows_xfer_shared_libraries): Update.
15946 * windows-tdep.c (windows_xfer_shared_library):
15947 Add text_offset_cached argument.
15948 * windows-tdep.h (windows_xfer_shared_library): Update.
15950 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15952 * gdbarch.sh: Add declaration for _initialize_gdbarch.
15954 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15956 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
15957 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
15958 replace with range-based for.
15959 (gdbsim_interrupt_inferior): Remove.
15960 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
15961 with a range-based for. Inline code from
15962 gdbsim_interrupt_inferior.
15964 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15966 * infrun.c (proceed): Fix indentation.
15968 2020-01-21 Tom Tromey <tromey@adacore.com>
15970 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
15971 * python/python.c (python_extension_ops): Update.
15972 (gdbpy_colorize): New function.
15973 * python/lib/gdb/__init__.py (colorize): New function.
15974 * extension.h (ext_lang_colorize): Declare.
15975 * extension.c (ext_lang_colorize): New function.
15976 * extension-priv.h (struct extension_language_ops) <colorize>: New
15978 * cli/cli-style.c (_initialize_cli_style): Update help text.
15980 2020-01-21 Luis Machado <luis.machado@linaro.org>
15982 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
15983 <cond>: Change type to bool.
15984 (aarch64_displaced_step_b_cond): Update cond to use bool type.
15985 (aarch64_displaced_step_cb): Likewise.
15986 (aarch64_displaced_step_tb): Likewise.
15988 2020-01-21 Luis Machado <luis.machado@linaro.org>
15990 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
15993 2020-01-21 Luis Machado <luis.machado@linaro.org>
15995 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
15996 <pc_adjust>: Adjust the documentation.
15997 (aarch64_displaced_step_fixup): Check if PC really moved before
16000 2020-01-19 Tom Tromey <tom@tromey.com>
16002 * disasm.c (~gdb_disassembler): New destructor.
16003 (gdb_buffered_insn_length): Call disassemble_free_target.
16004 * disasm.h (class gdb_disassembler): Declare destructor. Use
16005 DISABLE_COPY_AND_ASSIGN.
16007 2020-01-19 Tom Tromey <tom@tromey.com>
16009 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
16010 (die_reader_func_ftype): Remove.
16011 (cutu_reader): New class.
16012 (dw2_get_file_names_reader): Remove "data" parameter.
16013 (dw2_get_file_names): Use cutu_reader.
16014 (create_debug_type_hash_table): Update.
16015 (read_cutu_die_from_dwo): Update comment.
16016 (lookup_dwo_unit): Add dwo_name parameter.
16017 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
16018 die_reader_func_ftype and data parameters.
16019 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
16020 Remove die_reader_func_ftype and data parameters.
16021 (~cutu_reader): New; from init_cutu_and_read_dies.
16022 (cutu_reader::cutu_reader): Rename from
16023 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
16024 and data parameters.
16025 (init_cutu_and_read_dies_simple): Remove.
16026 (struct process_psymtab_comp_unit_data): Remove.
16027 (process_psymtab_comp_unit_reader): Remove data parameter; add
16028 want_partial_unit and pretend_language parameters.
16029 (process_psymtab_comp_unit): Use cutu_reader.
16030 (build_type_psymtabs_reader): Remove data parameter.
16031 (build_type_psymtabs_1): Use cutu_reader.
16032 (process_skeletonless_type_unit): Likewise.
16033 (load_partial_comp_unit_reader): Remove.
16034 (load_partial_comp_unit): Use cutu_reader.
16035 (load_full_comp_unit_reader): Remove.
16036 (load_full_comp_unit): Use cutu_reader.
16037 (struct create_dwo_cu_data): Remove.
16038 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
16039 dwo_unit parameters.
16040 (create_cus_hash_table): Use cutu_reader.
16041 (struct dwarf2_read_addr_index_data): Remove.
16042 (dwarf2_read_addr_index_reader): Remove.
16043 (dwarf2_read_addr_index): Use cutu_reader.
16044 (read_signatured_type_reader): Remove.
16045 (read_signatured_type): Use cutu_reader.
16047 2020-01-19 Tom Tromey <tom@tromey.com>
16049 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
16050 * tui/tui-wingeneral.h (class tui_suppress_output): New.
16051 (tui_wrefresh): Declare.
16052 * tui/tui-wingeneral.c (suppress_output): New global.
16053 (tui_suppress_output, ~tui_suppress_output): New constructor and
16055 (tui_wrefresh): New function.
16056 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
16057 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
16058 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
16060 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
16062 (tui_data_window::no_refresh): New method.
16063 (tui_data_item_window::refresh_window): Call tui_wrefresh.
16064 (tui_reg_command): Use tui_suppress_output
16065 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
16066 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
16068 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
16070 2020-01-19 Tom Tromey <tom@tromey.com>
16072 * tui/tui-winsource.c (tui_update_source_windows_with_line):
16073 Handle case where symtab is null.
16075 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
16077 * linux-fork.c (one_fork_p): Simplify.
16079 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16081 * top.c (struct qt_args): Remove.
16082 (kill_or_detach): Change return type to void, replace `void *`
16083 parameter with a proper one.
16084 (print_inferior_quit_action): Likewise.
16085 (quit_confirm): Use range-based for loop to iterate over inferiors.
16086 (quit_force): Likewise.
16088 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16090 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
16091 `void *` parameter with proper parameters.
16092 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
16093 (print_one_inferior): Change return type to void, replace `void *`
16094 parameter with proper parameters.
16095 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
16097 (get_other_inferior): Remove.
16098 (mi_cmd_remove_inferior): Use range-based loop to iterate over
16101 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16103 * mi/mi-interp.c (report_initial_inferior): Remove.
16104 (mi_interp::init): Use range-based for to iterate over inferiors.
16106 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16108 * python/py-inferior.c (build_inferior_list): Remove.
16109 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
16111 2020-01-16 Christian Biesinger <cbiesinger@google.com>
16113 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
16114 (btrace_stitch_trace): Likewise.
16115 * charset.c (intermediate_encoding): Likewise (vaild).
16116 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
16117 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
16118 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
16120 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
16122 * windows-tdep.c (windows_get_tlb_type):
16123 Add rtl_user_process_parameters type.
16125 2020-01-16 Pedro Alves <palves@redhat.com>
16126 Norbert Lange <nolange79@gmail.com>
16129 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
16130 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
16131 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
16132 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
16133 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
16134 (ps_plog): Redeclare exported functions with default visibility.
16136 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
16138 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
16139 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
16141 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
16143 * infcmd.c (post_create_inferior): Use get_thread_regcache
16144 instead of get_current_regcache.
16146 2020-01-14 Tom Tromey <tom@tromey.com>
16149 * python/python.c (gdbpy_decode_line): Treat empty string the same
16152 2020-01-14 Tom Tromey <tom@tromey.com>
16154 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
16156 2020-01-14 Tom Tromey <tom@tromey.com>
16158 * nat/linux-btrace.c: Don't include <config.h>.
16159 * nat/linux-ptrace.c: Don't include <config.h>.
16160 * nat/x86-linux-dregs.c: Don't include <config.h>.
16162 2020-01-14 Tom Tromey <tom@tromey.com>
16164 * configure: Rebuild.
16165 * configure.ac: Move many checks to ../gdbsupport/common.m4.
16167 2020-01-14 Tom Tromey <tom@tromey.com>
16169 * nat/x86-linux-dregs.c: Include configh.h.
16170 * nat/linux-ptrace.c: Include configh.h.
16171 * nat/linux-btrace.c: Include configh.h.
16172 * defs.h: Include config.h, bfd.h.
16173 * configure.ac: Don't source common.host.
16174 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
16175 * configure: Rebuild.
16176 * acinclude.m4: Update path.
16177 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
16178 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
16179 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
16180 (CLIBS): Add LIBSUPPORT.
16182 (COMMON_SFILES): Remove gdbsupport files.
16183 (HFILES_NO_SRCDIR): Likewise.
16184 (stamp-version): Update path to create-version.sh.
16185 (ALLDEPFILES): Remove gdbsupport files.
16187 2020-01-14 Tom Tromey <tom@tromey.com>
16189 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
16190 USE_WIN32API when needed.
16191 * configure.ac (USE_WIN32API): Don't define.
16192 (WIN32LIBS): Use WIN32APILIBS.
16193 * configure: Rebuild.
16195 2020-01-14 Tom Tromey <tom@tromey.com>
16197 * configure: Rebuild.
16198 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
16200 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16202 * skip.c (skip_function_command): Make skip w/o arguments use the
16203 name of the inlined function if pc is inside any inlined function.
16205 2020-01-14 Luis Machado <luis.machado@linaro.org>
16207 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
16208 * infrun.c (resume_1): Likewise.
16209 (handle_inferior_event): Remove stale comment.
16210 * linux-nat.c (linux_nat_target::resume): Update comments.
16211 (save_stop_reason): Likewise.
16212 (linux_nat_filter_event): Likewise.
16213 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
16215 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16217 * elfread.c (record_minimal_symbol): Set section index to 0 for
16218 non-allocatable sections.
16221 2020-01-13 Ali Tamur <tamur@google.com>
16223 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
16224 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
16225 to gdb::optional. Update comments.
16226 (dwo_file): Update comments.
16227 (read_attribute): Update API to take an additional out parameter,
16228 need_reprocess. This is used to mark attributes that need other
16229 attributes (e.g. str_offsets_base) for correct computation which may not
16230 have been read yet.
16231 (read_attribute_reprocess): New function declaration.
16232 (read_addr_index): Likewise.
16233 (read_dwo_str_index): Likewise.
16234 (read_stub_str_index): Likewise.
16235 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
16236 (lookup_addr_base): New function definition.
16237 (lookup_ranges_base): Likewise.
16238 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
16239 lookup_ranges_base.
16240 (init_cutu_and_read_dies): Update comments.
16241 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
16242 unit. This is used to inherit parent's str_offsets_base and addr_base.
16244 (init_cutu_and_read_dies_simple): Reflect API changes.
16245 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
16246 (create_cus_hash_table): Change API to take parent compile unit.
16247 Reflect API changes.
16248 (open_and_init_dwo_file): Reflect API changes.
16249 (dwarf2_get_pc_bounds): Update comments.
16250 (dwarf2_record_block_ranges): Likewise.
16251 (read_full_die_1): Change implementation to reprocess attributes that
16252 need str_offsets_base and addr_base.
16253 (partial_die_info::read): Likewise.
16254 (read_attribute_reprocess): New function definition.
16255 (read_attribute_value): Change API to take an additional out parameter,
16256 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
16257 when a non-dwo compile unit has index based attributes.
16258 (read_attribute): Reflect API changes.
16259 (read_addr_index_1): Reflect API changes. Update comments.
16260 (dwarf2_read_addr_index_data): Reflect API changes.
16261 (dwarf2_read_addr_index): Likewise.
16262 (read_str_index): Change API and implementation. This becomes a helper
16263 to be used by the new string index related methods. Update error
16264 message and comments.
16265 (read_dwo_str_index): New function definition.
16266 (read_stub_str_index): Likewise.
16267 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
16268 * symfile.h (dwarf2_debug_sections): Likewise.
16269 * xcoffread.c (dwarf2_debug_sections): Likewise.
16271 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16273 * gdbcore.h (struct core_fns) <core_read_registers>: Change
16274 core_reg_sect type to gdb_byte *.
16275 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
16276 * cris-tdep.c (fetch_core_registers): Likewise.
16277 * corelow.c (core_target::get_core_register_section): Change
16278 type of `contents` to gdb::byte_vector.
16280 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16282 * tui/tui-wingeneral.c (box_win): Position the title in the center
16285 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16287 * corelow.c (core_target::get_core_register_section): Use
16288 std::vector instead of alloca.
16290 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16292 * warning.m4: Add -Wmissing-declarations to build_warnings.
16293 * configure: Re-generate.
16295 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16297 * python/python.c (init__gdb_module): Add declaration.
16299 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16301 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
16302 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
16303 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
16304 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
16305 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
16306 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
16307 * ada-exp.y (_initialize_ada_exp): Add declaration.
16308 * ada-lang.c (_initialize_ada_language): Add declaration.
16309 * ada-tasks.c (_initialize_tasks): Add declaration.
16310 * agent.c (_initialize_agent): Add declaration.
16311 * aix-thread.c (_initialize_aix_thread): Add declaration.
16312 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
16313 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
16314 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
16315 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
16316 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
16317 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
16318 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
16319 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
16320 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
16321 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
16322 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
16323 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
16324 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
16325 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
16326 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
16327 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
16328 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
16329 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
16330 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
16331 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
16332 * annotate.c (_initialize_annotate): Add declaration.
16333 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
16334 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
16335 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
16336 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
16337 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
16338 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
16339 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
16340 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
16341 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
16342 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
16343 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
16344 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
16345 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
16346 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
16347 * auto-load.c (_initialize_auto_load): Add declaration.
16348 * auxv.c (_initialize_auxv): Add declaration.
16349 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
16350 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
16351 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
16352 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
16353 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
16354 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
16355 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
16356 * breakpoint.c (_initialize_breakpoint): Add declaration.
16357 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
16358 * btrace.c (_initialize_btrace): Add declaration.
16359 * charset.c (_initialize_charset): Add declaration.
16360 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
16361 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
16362 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
16363 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
16364 * cli/cli-script.c (_initialize_cli_script): Add declaration.
16365 * cli/cli-style.c (_initialize_cli_style): Add declaration.
16366 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
16367 * coffread.c (_initialize_coffread): Add declaration.
16368 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
16369 * compile/compile.c (_initialize_compile): Add declaration.
16370 * complaints.c (_initialize_complaints): Add declaration.
16371 * completer.c (_initialize_completer): Add declaration.
16372 * copying.c (_initialize_copying): Add declaration.
16373 * corefile.c (_initialize_core): Add declaration.
16374 * corelow.c (_initialize_corelow): Add declaration.
16375 * cp-abi.c (_initialize_cp_abi): Add declaration.
16376 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
16377 * cp-support.c (_initialize_cp_support): Add declaration.
16378 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
16379 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
16380 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
16381 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
16382 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
16383 * ctfread.c (_initialize_ctfread): Add declaration.
16384 * d-lang.c (_initialize_d_language): Add declaration.
16385 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
16386 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
16387 * dbxread.c (_initialize_dbxread): Add declaration.
16388 * dcache.c (_initialize_dcache): Add declaration.
16389 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
16390 * disasm.c (_initialize_disasm): Add declaration.
16391 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
16392 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
16393 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
16394 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
16395 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
16396 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
16397 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
16398 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
16399 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
16400 * elfread.c (_initialize_elfread): Add declaration.
16401 * exec.c (_initialize_exec): Add declaration.
16402 * extension.c (_initialize_extension): Add declaration.
16403 * f-lang.c (_initialize_f_language): Add declaration.
16404 * f-valprint.c (_initialize_f_valprint): Add declaration.
16405 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
16406 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
16407 * filesystem.c (_initialize_filesystem): Add declaration.
16408 * findcmd.c (_initialize_mem_search): Add declaration.
16409 * findvar.c (_initialize_findvar): Add declaration.
16410 * fork-child.c (_initialize_fork_child): Add declaration.
16411 * frame-base.c (_initialize_frame_base): Add declaration.
16412 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
16413 * frame.c (_initialize_frame): Add declaration.
16414 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
16415 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
16416 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
16417 * gcore.c (_initialize_gcore): Add declaration.
16418 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
16419 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
16420 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
16421 * gdbarch.c (_initialize_gdbarch): Add declaration.
16422 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
16423 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
16424 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
16425 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
16426 * go-lang.c (_initialize_go_language): Add declaration.
16427 * go32-nat.c (_initialize_go32_nat): Add declaration.
16428 * guile/guile.c (_initialize_guile): Add declaration.
16429 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
16430 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
16431 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
16432 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
16433 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
16434 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
16435 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
16436 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
16437 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
16438 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
16439 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
16440 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
16441 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
16442 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
16443 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
16444 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
16445 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
16446 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
16447 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
16448 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
16449 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
16450 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
16451 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
16452 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
16453 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
16454 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
16455 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
16456 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
16457 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
16458 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
16459 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
16460 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
16461 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
16462 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
16463 * infcall.c (_initialize_infcall): Add declaration.
16464 * infcmd.c (_initialize_infcmd): Add declaration.
16465 * inflow.c (_initialize_inflow): Add declaration.
16466 * infrun.c (_initialize_infrun): Add declaration.
16467 * interps.c (_initialize_interpreter): Add declaration.
16468 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
16469 * jit.c (_initialize_jit): Add declaration.
16470 * language.c (_initialize_language): Add declaration.
16471 * linux-fork.c (_initialize_linux_fork): Add declaration.
16472 * linux-nat.c (_initialize_linux_nat): Add declaration.
16473 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
16474 * linux-thread-db.c (_initialize_thread_db): Add declaration.
16475 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
16476 * m2-lang.c (_initialize_m2_language): Add declaration.
16477 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
16478 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
16479 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
16480 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
16481 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
16482 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
16483 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
16484 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
16485 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
16486 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
16487 * machoread.c (_initialize_machoread): Add declaration.
16488 * macrocmd.c (_initialize_macrocmd): Add declaration.
16489 * macroscope.c (_initialize_macroscope): Add declaration.
16490 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
16491 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
16492 * maint.c (_initialize_maint_cmds): Add declaration.
16493 * mdebugread.c (_initialize_mdebugread): Add declaration.
16494 * memattr.c (_initialize_mem): Add declaration.
16495 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
16496 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
16497 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
16498 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
16499 * mi/mi-main.c (_initialize_mi_main): Add declaration.
16500 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
16501 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
16502 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
16503 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
16504 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
16505 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
16506 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
16507 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
16508 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
16509 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
16510 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
16511 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
16512 * mipsread.c (_initialize_mipsread): Add declaration.
16513 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
16514 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
16515 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
16516 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
16517 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
16518 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
16519 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
16520 * nto-procfs.c (_initialize_procfs): Add declaration.
16521 * objc-lang.c (_initialize_objc_language): Add declaration.
16522 * observable.c (_initialize_observer): Add declaration.
16523 * opencl-lang.c (_initialize_opencl_language): Add declaration.
16524 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
16525 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
16526 * osabi.c (_initialize_gdb_osabi): Add declaration.
16527 * osdata.c (_initialize_osdata): Add declaration.
16528 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
16529 * parse.c (_initialize_parse): Add declaration.
16530 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
16531 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
16532 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
16533 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
16534 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
16535 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
16536 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
16537 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
16538 * printcmd.c (_initialize_printcmd): Add declaration.
16539 * probe.c (_initialize_probe): Add declaration.
16540 * proc-api.c (_initialize_proc_api): Add declaration.
16541 * proc-events.c (_initialize_proc_events): Add declaration.
16542 * proc-service.c (_initialize_proc_service): Add declaration.
16543 * procfs.c (_initialize_procfs): Add declaration.
16544 * producer.c (_initialize_producer): Add declaration.
16545 * psymtab.c (_initialize_psymtab): Add declaration.
16546 * python/python.c (_initialize_python): Add declaration.
16547 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
16548 * record-btrace.c (_initialize_record_btrace): Add declaration.
16549 * record-full.c (_initialize_record_full): Add declaration.
16550 * record.c (_initialize_record): Add declaration.
16551 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
16552 * regcache.c (_initialize_regcache): Add declaration.
16553 * reggroups.c (_initialize_reggroup): Add declaration.
16554 * remote-notif.c (_initialize_notif): Add declaration.
16555 * remote-sim.c (_initialize_remote_sim): Add declaration.
16556 * remote.c (_initialize_remote): Add declaration.
16557 * reverse.c (_initialize_reverse): Add declaration.
16558 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
16559 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
16560 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
16561 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
16562 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
16563 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
16564 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
16565 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
16567 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
16568 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
16569 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
16570 * rust-exp.y (_initialize_rust_exp): Add declaration.
16571 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
16572 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
16573 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
16574 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
16575 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
16576 * score-tdep.c (_initialize_score_tdep): Add declaration.
16577 * ser-go32.c (_initialize_ser_dos): Add declaration.
16578 * ser-mingw.c (_initialize_ser_windows): Add declaration.
16579 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
16580 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
16581 * ser-uds.c (_initialize_ser_socket): Add declaration.
16582 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
16583 * serial.c (_initialize_serial): Add declaration.
16584 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
16585 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
16586 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
16587 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
16588 * skip.c (_initialize_step_skip): Add declaration.
16589 * sol-thread.c (_initialize_sol_thread): Add declaration.
16590 * solib-aix.c (_initialize_solib_aix): Add declaration.
16591 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
16592 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
16593 * solib-frv.c (_initialize_frv_solib): Add declaration.
16594 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
16595 * solib-target.c (_initialize_solib_target): Add declaration.
16596 * solib.c (_initialize_solib): Add declaration.
16597 * source-cache.c (_initialize_source_cache): Add declaration.
16598 * source.c (_initialize_source): Add declaration.
16599 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
16600 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
16601 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
16602 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
16603 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
16604 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
16605 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
16606 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
16607 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
16608 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
16609 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
16610 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
16611 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
16612 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
16613 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
16614 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
16615 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
16616 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
16617 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
16618 * stabsread.c (_initialize_stabsread): Add declaration.
16619 * stack.c (_initialize_stack): Add declaration.
16620 * stap-probe.c (_initialize_stap_probe): Add declaration.
16621 * std-regs.c (_initialize_frame_reg): Add declaration.
16622 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
16623 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
16624 * symfile.c (_initialize_symfile): Add declaration.
16625 * symmisc.c (_initialize_symmisc): Add declaration.
16626 * symtab.c (_initialize_symtab): Add declaration.
16627 * target.c (_initialize_target): Add declaration.
16628 * target-connection.c (_initialize_target_connection): Add
16630 * target-dcache.c (_initialize_target_dcache): Add declaration.
16631 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
16632 * thread.c (_initialize_thread): Add declaration.
16633 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
16634 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
16635 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
16636 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
16637 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
16638 * tracectf.c (_initialize_ctf): Add declaration.
16639 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
16640 * tracefile.c (_initialize_tracefile): Add declaration.
16641 * tracepoint.c (_initialize_tracepoint): Add declaration.
16642 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
16643 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
16644 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
16645 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
16646 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
16647 * tui/tui-win.c (_initialize_tui_win): Add declaration.
16648 * tui/tui.c (_initialize_tui): Add declaration.
16649 * typeprint.c (_initialize_typeprint): Add declaration.
16650 * ui-style.c (_initialize_ui_style): Add declaration.
16651 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
16652 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
16653 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
16654 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
16655 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
16656 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
16657 * unittests/filtered_iterator-selftests.c
16658 (_initialize_filtered_iterator_selftests): Add declaration.
16659 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
16660 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
16661 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
16662 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
16663 * unittests/main-thread-selftests.c
16664 (_initialize_main_thread_selftests): Add declaration.
16665 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
16666 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
16667 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
16668 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
16669 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
16670 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
16671 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
16672 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
16673 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
16674 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
16675 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
16676 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
16677 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
16678 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
16679 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
16681 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
16682 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
16683 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
16684 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
16685 * user-regs.c (_initialize_user_regs): Add declaration.
16686 * utils.c (_initialize_utils): Add declaration.
16687 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
16688 * valops.c (_initialize_valops): Add declaration.
16689 * valprint.c (_initialize_valprint): Add declaration.
16690 * value.c (_initialize_values): Add declaration.
16691 * varobj.c (_initialize_varobj): Add declaration.
16692 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
16693 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
16694 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
16695 * windows-nat.c (_initialize_windows_nat): Add declaration.
16696 (_initialize_check_for_gdb_ini): Add declaration.
16697 (_initialize_loadable): Add declaration.
16698 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
16699 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
16700 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
16701 * xcoffread.c (_initialize_xcoffread): Add declaration.
16702 * xml-support.c (_initialize_xml_support): Add declaration.
16703 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
16704 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
16705 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
16706 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
16708 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16710 * regformats/regdat.sh: Generate declaration for init function.
16712 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16714 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
16716 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
16717 close_one_inferior>: New methods.
16718 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
16719 pass down target to find_inferior_pid.
16720 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
16721 Pass down target to find_inferior_ptid.
16722 (gdbsim_target::create_inferior): Pass down target to
16724 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
16725 target down to find_inferior_ptid and switch_to_thread.
16726 (gdbsim_target::close): Update to call close_one_inferior.
16727 (struct resume_data): Remove.
16728 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
16729 directly, rather than through a void pointer.
16730 (gdbsim_target::resume): Update to call resume_one_inferior.
16732 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
16734 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
16736 2020-01-12 Pedro Alves <palves@redhat.com>
16738 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
16739 directly for the current inferior instead of
16740 discard_all_inferiors.
16741 (discard_all_inferiors): Delete.
16743 2020-01-11 Tom Tromey <tom@tromey.com>
16745 * tui/tui-wingeneral.c (box_win): Check cli_styling.
16746 * tui/tui-winsource.c (tui_source_window_base::refill): Use
16747 deprecated_safe_get_selected_frame.
16749 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16751 * inferior.c (print_inferior): Switch inferior before printing it.
16753 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
16754 Pedro Alves <palves@redhat.com>
16756 * progspace-and-thread.c (switch_to_program_space_and_thread):
16757 Assert there's an inferior for PSPACE. Use
16758 switch_to_inferior_no_thread to switch the inferior too.
16759 * progspace.c (program_space::~program_space): Call
16760 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
16761 (program_space::free_all_objfiles): Don't call clear_symtab_users
16763 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
16765 2020-01-10 Pedro Alves <palves@redhat.com>
16767 * NEWS: Mention multi-target debugging, "info connections", and
16768 "add-inferior -no-connection".
16770 2020-01-10 Pedro Alves <palves@redhat.com>
16772 * infrun.c: Include "target-connection.h".
16773 (check_multi_target_resumption): New.
16774 (proceed): Call it.
16775 * target-connection.c (make_target_connection_string): Make
16777 * target-connection.h (make_target_connection_string): Declare.
16779 2020-01-10 Pedro Alves <palves@redhat.com>
16781 * Makefile.in (COMMON_SFILES): Add target-connection.c.
16782 * inferior.c (uiout_field_connection): New function.
16783 (print_inferior): Add new "connection-id" column.
16784 (add_inferior_command): Show connection number/string of added
16786 * process-stratum-target.h
16787 (process_stratum_target::connection_string): New virtual method.
16788 (process_stratum_target::connection_number): New field.
16789 * remote.c (remote_target::connection_string): New override.
16790 * target-connection.c: New file.
16791 * target-connection.h: New file.
16792 * target.c (decref_target): Remove process_stratum targets from
16793 the connection list.
16794 (target_stack::push): Add process_stratum targets to the
16797 2020-01-10 Pedro Alves <palves@redhat.com>
16800 2016-04-12 Pedro Alves <palves@redhat.com>
16801 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
16802 Remove references to name.
16803 * serial.h (struct serial) <name>: Delete.
16805 2020-01-10 Pedro Alves <palves@redhat.com>
16807 * gdbarch-selftests.c (register_to_value_test): Remove "target
16808 already pushed" check.
16810 2020-01-10 Pedro Alves <palves@redhat.com>
16811 John Baldwin <jhb@FreeBSD.org>
16813 * aarch64-linux-nat.c
16814 (aarch64_linux_nat_target::thread_architecture): Adjust.
16815 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
16816 (task_command_1): Likewise.
16817 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
16818 (aix_thread_target::wait, aix_thread_target::fetch_registers)
16819 (aix_thread_target::store_registers)
16820 (aix_thread_target::thread_alive): Adjust.
16821 * amd64-fbsd-tdep.c: Include "inferior.h".
16822 (amd64fbsd_get_thread_local_address): Pass down target.
16823 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
16824 thread's gdbarch instead of target_gdbarch.
16825 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
16826 get_last_target_status.
16827 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
16828 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
16830 (update_inserted_breakpoint_locations): Skip if inferiors with no
16832 (update_global_location_list): When handling moribund locations,
16833 find representative inferior for location's pspace, and use thread
16834 count of its process_stratum target.
16835 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
16836 * bsd-uthread.c (bsd_uthread_target::wait): Use
16837 as_process_stratum_target and adjust thread_change_ptid and
16839 (bsd_uthread_target::update_thread_list): Use
16840 as_process_stratum_target and adjust find_thread_ptid,
16841 thread_change_ptid and add_thread calls.
16842 * btrace.c (maint_btrace_packet_history_cmd): Adjust
16843 find_thread_ptid call.
16844 * corelow.c (add_to_thread_list): Adjust add_thread call.
16845 (core_target_open): Adjust add_thread_silent and thread_count
16847 (core_target::pid_to_str): Adjust find_inferior_ptid call.
16848 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
16849 * event-top.c (async_disconnect): Pop targets from all inferiors.
16850 * exec.c (add_target_sections): Push exec target on all inferiors
16851 sharing the program space.
16852 (remove_target_sections): Remove the exec target from all
16853 inferiors sharing the program space.
16854 (exec_on_vfork): New.
16855 * exec.h (exec_on_vfork): Declare.
16856 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
16858 (fbsd_nat_target::update_thread_list): Adjust.
16859 (fbsd_nat_target::resume): Adjust.
16860 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
16862 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
16863 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
16864 get_thread_arch_regcache call.
16865 * fork-child.c (gdb_startup_inferior): Pass target down to
16866 startup_inferior and set_executing.
16867 * gdbthread.h (struct process_stratum_target): Forward declare.
16868 (add_thread, add_thread_silent, add_thread_with_info)
16869 (in_thread_list): Add process_stratum_target parameter.
16870 (find_thread_ptid(inferior*, ptid_t)): New overload.
16871 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
16873 (all_threads()): Delete overload.
16874 (all_threads, all_non_exited_threads): Add process_stratum_target
16876 (all_threads_safe): Use brace initialization.
16877 (thread_count): Add process_stratum_target parameter.
16878 (set_resumed, set_running, set_stop_requested, set_executing)
16879 (threads_are_executing, finish_thread_state): Add
16880 process_stratum_target parameter.
16881 (switch_to_thread): Use is_current_thread.
16882 * i386-fbsd-tdep.c: Include "inferior.h".
16883 (i386fbsd_get_thread_local_address): Pass down target.
16884 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
16885 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
16886 have_inferiors check.
16887 * inf-ptrace.c (inf_ptrace_target::create_inferior)
16888 (inf_ptrace_target::attach): Adjust.
16889 * infcall.c (run_inferior_call): Adjust.
16890 * infcmd.c (run_command_1): Pass target to
16891 scoped_finish_thread_state.
16892 (proceed_thread_callback): Skip inferiors with no execution.
16893 (continue_command): Rename 'all_threads' local to avoid hiding
16894 'all_threads' function. Adjust get_last_target_status call.
16895 (prepare_one_step): Adjust set_running call.
16896 (signal_command): Use user_visible_resume_target. Compare thread
16897 pointers instead of inferior_ptid.
16898 (info_program_command): Adjust to pass down target.
16899 (attach_command): Mark target's 'thread_executing' flag.
16900 (stop_current_target_threads_ns): New, factored out from ...
16901 (interrupt_target_1): ... this. Switch inferior before making
16904 (struct all_inferiors_iterator, struct all_inferiors_range)
16905 (struct all_inferiors_safe_range)
16906 (struct all_non_exited_inferiors_range): Filter on
16907 process_stratum_target too. Remove explicit.
16908 * inferior.c (inferior::inferior): Push dummy target on target
16910 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
16911 Add process_stratum_target parameter, and pass it down.
16912 (have_live_inferiors): Adjust.
16913 (switch_to_inferior_and_push_target): New.
16914 (add_inferior_command, clone_inferior_command): Handle
16915 "-no-connection" parameter. Use
16916 switch_to_inferior_and_push_target.
16917 (_initialize_inferior): Mention "-no-connection" option in
16918 the help of "add-inferior" and "clone-inferior" commands.
16919 * inferior.h: Include "process-stratum-target.h".
16920 (interrupt_target_1): Use bool.
16921 (struct inferior) <push_target, unpush_target, target_is_pushed,
16922 find_target_beneath, top_target, process_target, target_at,
16924 (discard_all_inferiors): Delete.
16925 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
16926 (all_inferiors, all_non_exited_inferiors): Add
16927 process_stratum_target parameter.
16928 * infrun.c: Include "gdb_select.h" and <unordered_map>.
16929 (target_last_proc_target): New global.
16930 (follow_fork_inferior): Push target on new inferior. Pass target
16931 to add_thread_silent. Call exec_on_vfork. Handle target's
16933 (follow_fork): Adjust get_last_target_status call. Also consider
16935 (follow_exec): Push target on new inferior.
16936 (struct execution_control_state) <target>: New field.
16937 (user_visible_resume_target): New.
16938 (do_target_resume): Call target_async.
16939 (resume_1): Set target's threads_executing flag. Consider resume
16941 (commit_resume_all_targets): New.
16942 (proceed): Also consider resume target. Skip threads of inferiors
16943 with no execution. Commit resumtion in all targets.
16944 (start_remote): Pass current inferior to wait_for_inferior.
16945 (infrun_thread_stop_requested): Consider target as well. Pass
16946 thread_info pointer to clear_inline_frame_state instead of ptid.
16947 (infrun_thread_thread_exit): Consider target as well.
16948 (random_pending_event_thread): New inferior parameter. Use it.
16949 (do_target_wait): Rename to ...
16950 (do_target_wait_1): ... this. Add inferior parameter, and pass it
16952 (threads_are_resumed_pending_p, do_target_wait): New.
16953 (prepare_for_detach): Adjust calls.
16954 (wait_for_inferior): New inferior parameter. Handle it. Use
16955 do_target_wait_1 instead of do_target_wait.
16956 (fetch_inferior_event): Adjust. Switch to representative
16957 inferior. Pass target down.
16958 (set_last_target_status): Add process_stratum_target parameter.
16959 Save target in global.
16960 (get_last_target_status): Add process_stratum_target parameter and
16962 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
16963 (context_switch): Check inferior_ptid == null_ptid before calling
16965 (get_inferior_stop_soon): Pass down target.
16966 (wait_one): Rename to ...
16967 (poll_one_curr_target): ... this.
16968 (struct wait_one_event): New.
16970 (stop_all_threads): Adjust.
16971 (handle_no_resumed, handle_inferior_event): Adjust to consider the
16973 (switch_back_to_stepped_thread): Also consider target.
16974 (print_stop_event): Update.
16975 (normal_stop): Update. Also consider the resume target.
16976 * infrun.h (wait_for_inferior): Remove declaration.
16977 (user_visible_resume_target): New declaration.
16978 (get_last_target_status, set_last_target_status): New
16979 process_stratum_target parameter.
16980 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16981 process_stratum_target parameter, and use it.
16982 (clear_inline_frame_state (thread_info*)): New.
16983 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16984 process_stratum_target parameter.
16985 (clear_inline_frame_state (thread_info*)): Declare.
16986 * linux-fork.c (delete_checkpoint_command): Pass target down to
16988 (checkpoint_command): Adjust.
16989 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
16990 instead of just tweaking inferior_ptid.
16991 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
16992 (exit_lwp): Pass target down to find_thread_ptid.
16993 (attach_proc_task_lwp_callback): Pass target down to
16994 add_thread/set_running/set_executing.
16995 (linux_nat_target::attach): Pass target down to
16996 thread_change_ptid.
16997 (get_detach_signal): Pass target down to find_thread_ptid.
16998 Consider last target status's target.
16999 (linux_resume_one_lwp_throw, resume_lwp)
17000 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
17001 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
17002 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
17003 (linux_nat_target::async_wait_fd): New.
17004 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
17006 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
17007 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
17008 * linux-thread-db.c (struct thread_db_info::process_target): New
17010 (add_thread_db_info): Save target.
17011 (get_thread_db_info): New process_stratum_target parameter. Also
17013 (delete_thread_db_info): New process_stratum_target parameter.
17015 (thread_from_lwp): Adjust to pass down target.
17016 (thread_db_notice_clone): Pass down target.
17017 (check_thread_db_callback): Pass down target.
17018 (try_thread_db_load_1): Always push the thread_db target.
17019 (try_thread_db_load, record_thread): Pass target down.
17020 (thread_db_target::detach): Pass target down. Always unpush the
17022 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
17023 target down. Always unpush the thread_db target.
17024 (find_new_threads_callback, thread_db_find_new_threads_2)
17025 (thread_db_target::update_thread_list): Pass target down.
17026 (thread_db_target::pid_to_str): Pass current inferior down.
17027 (thread_db_target::get_thread_local_address): Pass target down.
17028 (thread_db_target::resume, maintenance_check_libthread_db): Pass
17030 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
17031 * procfs.c (procfs_target::procfs_init_inferior): Declare.
17032 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
17033 (procfs_init_inferior): Rename to ...
17034 (procfs_target::procfs_init_inferior): ... this and adjust.
17035 (procfs_target::create_inferior, procfs_notice_thread)
17036 (procfs_do_thread_registers): Adjust.
17037 * ppc-fbsd-tdep.c: Include "inferior.h".
17038 (ppcfbsd_get_thread_local_address): Pass down target.
17039 * proc-service.c (ps_xfer_memory): Switch current inferior and
17040 program space as well.
17041 (get_ps_regcache): Pass target down.
17042 * process-stratum-target.c
17043 (process_stratum_target::thread_address_space)
17044 (process_stratum_target::thread_architecture): Pass target down.
17045 * process-stratum-target.h
17046 (process_stratum_target::threads_executing): New field.
17047 (as_process_stratum_target): New.
17048 * ravenscar-thread.c
17049 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
17050 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
17052 * record-btrace.c (record_btrace_target::info_record): Adjust.
17053 (record_btrace_target::record_method)
17054 (record_btrace_target::record_is_replaying)
17055 (record_btrace_target::fetch_registers)
17056 (get_thread_current_frame_id, record_btrace_target::resume)
17057 (record_btrace_target::wait, record_btrace_target::stop): Pass
17059 * record-full.c (record_full_wait_1): Switch to event thread.
17061 * regcache.c (regcache::regcache)
17062 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
17063 process_stratum_target parameter and handle it.
17064 (current_thread_target): New global.
17065 (get_thread_regcache): Add process_stratum_target parameter and
17066 handle it. Switch inferior before calling target method.
17067 (get_thread_regcache): Pass target down.
17068 (get_thread_regcache_for_ptid): Pass target down.
17069 (registers_changed_ptid): Add process_stratum_target parameter and
17071 (registers_changed_thread, registers_changed): Pass target down.
17072 (test_get_thread_arch_aspace_regcache): New.
17073 (current_regcache_test): Define a couple local test_target_ops
17074 instances and use them for testing.
17075 (readwrite_regcache): Pass process_stratum_target parameter.
17076 (cooked_read_test, cooked_write_test): Pass mock_target down.
17077 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
17078 (get_thread_arch_aspace_regcache): Add process_stratum_target
17080 (regcache::target): New method.
17081 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
17082 (regcache::registers_changed_ptid): Add process_stratum_target
17084 (regcache::m_target): New field.
17085 (registers_changed_ptid): Add process_stratum_target parameter.
17086 * remote.c (remote_state::supports_vCont_probed): New field.
17087 (remote_target::async_wait_fd): New method.
17088 (remote_unpush_and_throw): Add remote_target parameter.
17089 (get_current_remote_target): Adjust.
17090 (remote_target::remote_add_inferior): Push target.
17091 (remote_target::remote_add_thread)
17092 (remote_target::remote_notice_new_inferior)
17093 (get_remote_thread_info): Pass target down.
17094 (remote_target::update_thread_list): Skip threads of inferiors
17095 bound to other targets. (remote_target::close): Don't discard
17096 inferiors. (remote_target::add_current_inferior_and_thread)
17097 (remote_target::process_initial_stop_replies)
17098 (remote_target::start_remote)
17099 (remote_target::remote_serial_quit_handler): Pass down target.
17100 (remote_target::remote_unpush_target): New remote_target
17101 parameter. Unpush the target from all inferiors.
17102 (remote_target::remote_unpush_and_throw): New remote_target
17103 parameter. Pass it down.
17104 (remote_target::open_1): Check whether the current inferior has
17105 execution instead of checking whether any inferior is live. Pass
17107 (remote_target::remote_detach_1): Pass down target. Use
17108 remote_unpush_target.
17109 (extended_remote_target::attach): Pass down target.
17110 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
17111 (remote_target::append_resumption): Pass down target.
17112 (remote_target::append_pending_thread_resumptions)
17113 (remote_target::remote_resume_with_hc, remote_target::resume)
17114 (remote_target::commit_resume): Pass down target.
17115 (remote_target::remote_stop_ns): Check supports_vCont_probed.
17116 (remote_target::interrupt_query)
17117 (remote_target::remove_new_fork_children)
17118 (remote_target::check_pending_events_prevent_wildcard_vcont)
17119 (remote_target::remote_parse_stop_reply)
17120 (remote_target::process_stop_reply): Pass down target.
17121 (first_remote_resumed_thread): New remote_target parameter. Pass
17123 (remote_target::wait_as): Pass down target.
17124 (unpush_and_perror): New remote_target parameter. Pass it down.
17125 (remote_target::readchar, remote_target::remote_serial_write)
17126 (remote_target::getpkt_or_notif_sane_1)
17127 (remote_target::kill_new_fork_children, remote_target::kill): Pass
17129 (remote_target::mourn_inferior): Pass down target. Use
17130 remote_unpush_target.
17131 (remote_target::core_of_thread)
17132 (remote_target::remote_btrace_maybe_reopen): Pass down target.
17133 (remote_target::pid_to_exec_file)
17134 (remote_target::thread_handle_to_thread_info): Pass down target.
17135 (remote_target::async_wait_fd): New.
17136 * riscv-fbsd-tdep.c: Include "inferior.h".
17137 (riscv_fbsd_get_thread_local_address): Pass down target.
17138 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
17139 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
17140 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
17142 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
17143 * solib-svr4.c (enable_break): Pass down target.
17144 * spu-multiarch.c (parse_spufs_run): Pass down target.
17145 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
17146 * target-delegates.c: Regenerate.
17147 * target.c (g_target_stack): Delete.
17148 (current_top_target): Return the current inferior's top target.
17149 (target_has_execution_1): Refer to the passed-in inferior's top
17151 (target_supports_terminal_ours): Check whether the initial
17152 inferior was already created.
17153 (decref_target): New.
17154 (target_stack::push): Incref/decref the target.
17155 (push_target, push_target, unpush_target): Adjust.
17156 (target_stack::unpush): Defref target.
17157 (target_is_pushed): Return bool. Adjust to refer to the current
17158 inferior's target stack.
17159 (dispose_inferior): Delete, and inline parts ...
17160 (target_preopen): ... here. Only dispose of the current inferior.
17161 (target_detach): Hold strong target reference while detaching.
17163 (target_thread_name): Add assertion.
17164 (target_resume): Pass down target.
17165 (target_ops::beneath, find_target_at): Adjust to refer to the
17166 current inferior's target stack.
17167 (get_dummy_target): New.
17168 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
17169 has a thread running.
17170 (initialize_targets): Rename to ...
17171 (_initialize_target): ... this.
17172 * target.h: Include "gdbsupport/refcounted-object.h".
17173 (struct target_ops): Inherit refcounted_object.
17174 (target_ops::shortname, target_ops::longname): Make const.
17175 (target_ops::async_wait_fd): New method.
17176 (decref_target): Declare.
17177 (struct target_ops_ref_policy): New.
17178 (target_ops_ref): New typedef.
17179 (get_dummy_target): Declare function.
17180 (target_is_pushed): Return bool.
17181 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
17182 (all_matching_threads_iterator::all_matching_threads_iterator):
17183 Handle filter target.
17184 * thread-iter.h (struct all_matching_threads_iterator, struct
17185 all_matching_threads_range, class all_non_exited_threads_range):
17186 Filter by target too. Remove explicit.
17187 * thread.c (threads_executing): Delete.
17188 (inferior_thread): Pass down current inferior.
17189 (clear_thread_inferior_resources): Pass down thread pointer
17191 (add_thread_silent, add_thread_with_info, add_thread): Add
17192 process_stratum_target parameter. Use it for thread and inferior
17194 (is_current_thread): New.
17195 (thread_info::deletable): Use it.
17196 (find_thread_ptid, thread_count, in_thread_list)
17197 (thread_change_ptid, set_resumed, set_running): New
17198 process_stratum_target parameter. Pass it down.
17199 (set_executing): New process_stratum_target parameter. Pass it
17200 down. Adjust reference to 'threads_executing'.
17201 (threads_are_executing): New process_stratum_target parameter.
17202 Adjust reference to 'threads_executing'.
17203 (set_stop_requested, finish_thread_state): New
17204 process_stratum_target parameter. Pass it down.
17205 (switch_to_thread): Also match inferior.
17206 (switch_to_thread): New process_stratum_target parameter. Pass it
17208 (update_threads_executing): Reimplement.
17209 * top.c (quit_force): Pop targets from all inferior.
17210 (gdb_init): Don't call initialize_targets.
17211 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
17213 (windows_add_thread, windows_delete_thread): Adjust.
17214 (get_windows_debug_event): Rename to ...
17215 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
17216 * tracefile-tfile.c (tfile_target_open): Pass down target.
17217 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
17219 (switch_to_thread): Add process_stratum_target parameter.
17220 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
17222 (mi_on_resume): Pass target down.
17223 * nat/fork-inferior.c (startup_inferior): Add
17224 process_stratum_target parameter. Pass it down.
17225 * nat/fork-inferior.h (startup_inferior): Add
17226 process_stratum_target parameter.
17227 * python/py-threadevent.c (py_get_event_thread): Pass target down.
17229 2020-01-10 Pedro Alves <palves@redhat.com>
17231 * remote.c (remote_target::start_remote): Don't set inferior_ptid
17232 directly. Instead find the first thread in the thread list and
17233 use switch_to_thread.
17235 2020-01-10 Pedro Alves <palves@redhat.com>
17237 * remote.c (remote_target::remote_add_inferior): Don't bind a
17238 process to the current inferior if the current inferior is already
17239 bound to a process.
17241 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17242 Pedro Alves <palves@redhat.com>
17244 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
17245 If no process is specified, return null_ptid instead of
17247 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
17248 TARGET_WAITKIND_SIGNALLED with no pid.
17250 2020-01-10 Pedro Alves <palves@redhat.com>
17252 * remote.c (first_remote_resumed_thread): New.
17253 (remote_target::wait_as): Use it as default event_ptid instead of
17256 2020-01-10 Pedro Alves <palves@redhat.com>
17258 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
17260 2020-01-10 Pedro Alves <palves@redhat.com>
17262 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
17265 2020-01-10 Pedro Alves <palves@redhat.com>
17267 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
17268 ptid to get_last_target_status.
17269 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
17270 ptid to get_last_target_status.
17271 * infcmd.c (continue_command): Don't pass a target_waitstatus to
17272 get_last_target_status.
17273 (info_program_command): Don't pass a target_waitstatus to
17274 get_last_target_status.
17275 * infrun.c (init_wait_for_inferior): Use
17276 nullify_last_target_wait_ptid.
17277 (get_last_target_status): Handle nullptr arguments.
17278 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
17279 (print_stop_event): Don't pass a ptid to get_last_target_status.
17280 (normal_stop): Don't pass a ptid to get_last_target_status.
17281 * infrun.h (get_last_target_status, set_last_target_status): Move
17282 comments here and update.
17283 (nullify_last_target_wait_ptid): Declare.
17284 * linux-fork.c (fork_load_infrun_state): Remove local extern
17285 declaration of nullify_last_target_wait_ptid.
17286 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
17287 to get_last_target_status.
17289 2020-01-10 Pedro Alves <palves@redhat.com>
17291 * gdbthread.h (scoped_restore_current_thread)
17292 <dont_restore, restore, m_dont_restore>: Declare.
17293 * thread.c (thread_alive): Add assertion. Return bool.
17294 (switch_to_thread_if_alive): New.
17295 (prune_threads): Switch inferior/thread.
17296 (print_thread_info_1): Switch thread before calling target methods.
17297 (scoped_restore_current_thread::restore): New, factored out from
17299 (scoped_restore_current_thread::~scoped_restore_current_thread):
17301 (scoped_restore_current_thread::scoped_restore_current_thread):
17303 (thread_apply_all_command, thread_select): Use
17304 switch_to_thread_if_alive.
17305 * infrun.c (proceed, restart_threads, handle_signal_stop)
17306 (switch_back_to_stepped_thread): Switch current thread before
17307 calling target methods.
17309 2020-01-10 Pedro Alves <palves@redhat.com>
17311 * inferior.c (switch_to_inferior_no_thread): New function,
17312 factored out from ...
17313 (inferior_command): ... here.
17314 * inferior.h (switch_to_inferior_no_thread): Declare.
17315 * mi/mi-main.c (run_one_inferior): Use
17316 switch_to_inferior_no_thread.
17318 2020-01-10 Pedro Alves <palves@redhat.com>
17320 * infcmd.c (kill_command): Remove dead code.
17322 2020-01-10 Pedro Alves <palves@redhat.com>
17324 * remote.c (remote_target::mourn_inferior): No longer check
17325 whether the target is running.
17327 2020-01-10 Pedro Alves <palves@redhat.com>
17329 * corelow.c (core_target::has_execution): Change parameter type to
17331 * inferior.c (number_of_live_inferiors): Use
17332 inferior::has_execution instead of target_has_execution_1.
17333 * inferior.h (inferior::has_execution): New.
17334 * linux-thread-db.c (thread_db_target::update_thread_list): Use
17335 inferior::has_execution instead of target_has_execution_1.
17336 * process-stratum-target.c
17337 (process_stratum_target::has_execution): Change parameter type to
17338 inferior pointer. Check the inferior's PID instead of
17340 * process-stratum-target.h
17341 (process_stratum_target::has_execution): Change parameter type to
17343 * record-full.c (record_full_core_target::has_execution): Change
17344 parameter type to inferior pointer.
17345 * target.c (target_has_execution_1): Change parameter type to
17347 (target_has_execution_current): Adjust.
17348 * target.h (target_ops::has_execution): Change parameter type to
17350 (target_has_execution_1): Change parameter type to inferior
17351 pointer. Change return type to bool.
17352 * tracefile.h (tracefile_target::has_execution): Change parameter
17353 type to inferior pointer.
17355 2020-01-10 Pedro Alves <palves@redhat.com>
17357 * exceptions.c (print_flush): Remove current_top_target() check.
17359 2020-01-10 Pedro Alves <palves@redhat.com>
17361 * remote.c (show_remote_exec_file): Show the current inferior's
17362 exec-file instead of the command variable's value.
17364 2020-01-10 Pedro Alves <palves@redhat.com>
17366 * record-full.c (record_full_resume_ptid): New global.
17367 (record_full_target::resume): Set it.
17368 (record_full_wait_1): Use record_full_resume_ptid instead of
17371 2020-01-10 Pedro Alves <palves@redhat.com>
17373 * gdbthread.h (scoped_restore_current_thread)
17374 <dont_restore, restore, m_dont_restore>: Declare.
17375 * thread.c (thread_alive): Add assertion. Return bool.
17376 (switch_to_thread_if_alive): New.
17377 (prune_threads): Switch inferior/thread.
17378 (print_thread_info_1): Switch thread before calling target methods.
17379 (scoped_restore_current_thread::restore): New, factored out from
17381 (scoped_restore_current_thread::~scoped_restore_current_thread):
17383 (scoped_restore_current_thread::scoped_restore_current_thread):
17385 (thread_apply_all_command, thread_select): Use
17386 switch_to_thread_if_alive.
17388 2020-01-10 George Barrett <bob@bob131.so>
17390 * stap-probe.c (stap_modify_semaphore): Don't check for null
17392 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
17393 for null semaphores.
17395 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17397 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
17398 all source windows, and maintain horizontal scroll status while
17401 2020-01-09 Tom Tromey <tom@tromey.com>
17404 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
17405 update_source_window, not print_source_lines.
17407 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17409 * tui/tui.c (tui_enable): Register tui hooks after calling
17412 2020-01-09 Christian Biesinger <cbiesinger@google.com>
17414 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
17416 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
17418 * thread.c (print_thread_info_1): Fix indentation.
17420 2020-01-09 Christian Biesinger <cbiesinger@google.com>
17422 * symtab.c (general_symbol_info::compute_and_set_names): Move the
17423 unique_xmalloc_ptr outside the if to always free the demangled name.
17425 2020-01-08 Tom Tromey <tromey@adacore.com>
17427 * xcoffread.c (enter_line_range, read_xcoff_symtab)
17428 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
17429 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
17430 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
17432 (section_offsets): New typedef.
17433 * symtab.c (fixup_section, get_msymbol_address): Update.
17434 * symmisc.c (dump_msymbols): Update.
17435 * symfile.h (relative_addr_info_to_section_offsets)
17436 (symfile_map_offsets_to_segments): Update.
17437 * symfile.c (build_section_addr_info_from_objfile)
17438 (init_objfile_sect_indices): Update.
17439 (struct place_section_arg): Change type of "offsets".
17440 (place_section): Update.
17441 (relative_addr_info_to_section_offsets): Change type of
17442 "section_offsets". Remove "num_sections" parameter.
17443 (default_symfile_offsets, syms_from_objfile_1)
17444 (set_objfile_default_section_offset): Update.
17445 (reread_symbols): No need to preserve section offsets by hand.
17446 (symfile_map_offsets_to_segments): Change type of "offsets".
17447 * stap-probe.c (relocate_address): Update.
17448 * stabsread.h (process_one_symbol): Update.
17449 * solib-target.c (struct lm_info_target) <offsets>: Change type.
17450 (solib_target_relocate_section_addresses): Update.
17451 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
17453 * solib-frv.c (frv_relocate_main_executable): Update.
17454 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
17455 * solib-aix.c (solib_aix_get_section_offsets): Change return
17457 (solib_aix_solib_create_inferior_hook): Update.
17458 * remote.c (remote_target::get_offsets): Update.
17459 * psymtab.c (find_pc_sect_psymtab): Update.
17460 * psympriv.h (struct partial_symbol) <address, text_low,
17461 text_high>: Update.
17462 * objfiles.h (obj_section_offset): Update.
17463 (struct objfile) <section_offsets>: Change type.
17464 <num_sections>: Remove.
17465 (objfile_relocate): Update.
17466 * objfiles.c (entry_point_address_query): Update
17467 (relocate_one_symbol): Change type of "section_offsets".
17468 (objfile_relocate1, objfile_relocate1): Change type of
17470 (objfile_rebase1): Update.
17471 * mipsread.c (mipscoff_symfile_read): Update.
17472 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
17474 * mdebugread.c (parse_symbol): Change type of "section_offsets".
17475 (parse_external, psymtab_to_symtab_1): Update.
17476 * machoread.c (macho_symfile_offsets): Update.
17477 * ia64-tdep.c (ia64_find_unwind_table): Update.
17478 * hppa-tdep.c (read_unwind_info): Update.
17479 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
17480 * dwarf2read.c (create_addrmap_from_index)
17481 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
17482 (process_psymtab_comp_unit_reader, add_partial_symbol)
17483 (add_partial_subprogram, process_full_comp_unit)
17484 (read_file_scope, read_func_scope, read_lexical_block_scope)
17485 (read_call_site_scope, dwarf2_rnglists_process)
17486 (dwarf2_ranges_process, dwarf2_ranges_read)
17487 (dwarf_decode_lines_1, var_decode_location, new_symbol)
17488 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
17490 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
17492 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
17493 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
17494 (process_one_symbol): Change type of "section_offsets".
17495 * ctfread.c (get_objfile_text_range): Update.
17496 * coffread.c (coff_symtab_read, enter_linenos)
17497 (process_coff_symbol): Update.
17498 * coff-pe-read.c (add_pe_forwarded_sym): Update.
17499 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
17501 2020-01-08 Tom Tromey <tromey@adacore.com>
17503 * dwarf2read.c (parse_macro_definition): Use std::string.
17504 (parse_macro_definition): Likewise.
17506 2020-01-08 Tom Tromey <tromey@adacore.com>
17508 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
17509 (ATTR_ALLOC_CHUNK): Remove.
17511 2020-01-08 Tom Tromey <tromey@adacore.com>
17513 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
17515 2020-01-08 Tom Tromey <tromey@adacore.com>
17517 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
17518 (dwarf2_compute_name, open_dwo_file): Likewise.
17519 (process_enumeration_scope): Use std::vector.
17520 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
17521 (partial_die_info::fixup, dwarf2_start_subfile)
17522 (guess_full_die_structure_name, dwarf2_name): Likewise.
17523 (determine_prefix): Update.
17524 (guess_full_die_structure_name): Make return type const.
17525 (partial_die_full_name): Return unique_xmalloc_ptr.
17526 (DW_FIELD_ALLOC_CHUNK): Remove.
17528 2020-01-07 Tom Tromey <tromey@adacore.com>
17531 * stap-probe.c (class stap_static_probe_ops): Add constructor.
17533 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17535 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
17537 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
17539 * stack.c (print_frame_info): Move disassemble_next_line code
17540 inside source_print block.
17542 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17544 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
17545 gdb/signals.h, as we are now using native signal symbols.
17547 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
17549 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
17550 overflow by an early check of content vs threshold.
17551 * tui/tui-source.c (tui_source_window::line_is_displayed):
17554 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17556 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
17558 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17560 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
17561 export table if no section contains it's RVA.
17563 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17565 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
17567 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
17569 * source.c (print_source_lines_base): Set last_line_listed.
17571 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
17573 * tui/tui-disasm.c: Remove trailing spaces.
17575 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17576 Pedro Alves <palves@redhat.com>
17578 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
17579 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
17580 (windows_gdb_signal_to_target): New function, uses the above
17581 enumeration to convert GDB internal signal codes to equivalent
17583 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
17584 * windows-nat.c: Include "gdb_wait.h".
17585 (get_windows_debug_event): Extract the fatal exception from the
17586 exit status and convert to the equivalent Posix signal number.
17587 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
17588 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
17589 * gdbsupport/gdb_wait.c: New file, implements
17590 windows_status_to_termsig.
17591 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
17592 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
17594 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
17596 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
17599 2020-01-05 Luis Machado <luis.machado@linaro.org>
17601 * aarch64-linux-nat.c
17602 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
17603 and bfd_mach_aarch64.
17605 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17607 * ui-file.c (stdio_file::can_emit_style_escape)
17608 (tee_file::can_emit_style_escape): Ensure style is used also on
17609 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
17611 * main.c (set_gdb_data_directory): Use file style to output the
17612 warning that the given pathname is not a directory.
17613 * top.c (show_history_filename, gdb_safe_append_history)
17614 (show_gdb_datadir): Use file style.
17616 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
17618 * solib-target.c (struct lm_info_target):
17619 Change offsets to be a unique_xmalloc_ptr.
17620 (solib_target_relocate_section_addresses): Update.
17622 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
17624 * windows-nat.c (windows_clear_solib): Free so_list linked list.
17626 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
17628 * MAINTAINERS (Write After Approval): Add myself.
17630 2020-01-02 Luis Machado <luis.machado@linaro.org>
17632 * proc-service.c (get_ps_regcache): Remove reference to obsolete
17633 Cell BE architecture.
17634 * target.h (struct target_ops) <thread_architecture>: Likewise.
17636 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
17638 * Makefile.in: Use INSTALL_PROGRAM_ENV.
17640 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
17642 * MAINTAINERS (Write After Approval): Add myself.
17644 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17646 * gdbarch.sh: Update copyright year range of generated files.
17648 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17650 Update copyright year range in all GDB files.
17652 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17654 * copyright.py: Convert to Python 3.
17656 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17658 * copyright.py: Adapt after move of gnulib directory from gdb
17659 directory to toplevel directory.
17661 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17663 * copyright.py (main): Exit if run from the wrong directory.
17665 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17667 * top.c (print_gdb_version): Change copyright year to 2020.
17669 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17671 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
17673 For older changes see ChangeLog-2019.
17679 version-control: never