1 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
3 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
5 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
6 (section_table_read_available_memory): Make local const.
7 (exec_target::xfer_partial): Make local const.
8 (print_section_info): Make parameter const.
9 * gdb/exec.h (print_section_info): Likewise.
10 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
12 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
14 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
16 * gdb/s390-tdep.c (s390_load): Likewise.
17 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
18 * gdb/solib-svr4.c (scan_dyntag): Likewise.
19 * gdb/target-debug.h (target_debug_print_target_section_table_p):
21 (target_debug_print_const_target_section_table_p): ...this.
22 * gdb/target-delegates.c: Regenerate.
23 * gdb/target.c (target_get_section_table): Make return type const.
24 (target_section_by_addr): Likewise. Also make some locals const.
25 (memory_xfer_partial_1): Make some locals const.
26 * gdb/target.h (struct target_ops) <get_section_table>: Make
28 (target_section_by_addr): Likewise.
29 (target_get_section_table): Likewise.
31 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
33 * NEWS: Mention new 'maint info target-sections' command.
34 * maint.c (maintenance_info_target_sections): New function.
35 (_initialize_maint_cmds): Register new command.
37 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
39 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
40 (riscv_features_from_bfd): ...this. Change parameter type to
41 'bfd*', and update as required.
42 (riscv_find_default_target_description): Update call to
43 riscv_features_from_bfd. Select a default xlen based on
45 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
47 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
49 * eval.c (evaluate_subexp_standard): Call value_ind for points to
50 dynamic types in UNOP_IND.
52 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
55 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
57 (~dwarf2_queue_guard): Clear queue.
58 (queue_comp_unit): Assert that queue is
60 (process_queue): Adjust.
61 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
63 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
66 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
67 to decide whether or not to enqueue it for expansion.
68 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
69 after calling maybe_queue_comp_unit.
71 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
73 * linux-nat.c (linux_nat_filter_event): Return void.
75 2021-02-22 Tom Tromey <tromey@adacore.com>
77 * solib-svr4.c (enable_break): Update.
78 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
80 (target_bfd_reopen): Change parameter type.
81 * bfd-target.h (target_bfd_reopen): Change parameter type.
83 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
85 * thread.c (add_thread_silent): Add assert.
86 (find_thread_ptid): Add assert.
88 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
91 * inf-ptrace.c (struct target_unpusher): Move to target.h.
92 (target_unpush_up): Likewise.
93 * procfs.c (procfs_target::attach): Push target early. Use
94 target_unpush_up to unpush target in case of error.
95 * target.h (struct target_unpusher): Move here.
96 (target_unpush_up): Likewise.
98 2021-02-19 Kevin Buettner <kevinb@redhat.com>
100 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
101 (which in turn includes <gnulib/config.h>) before include
104 2021-02-19 Nelson Chu <nelson.chu@sifive.com>
107 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
108 (decode_j_type_insn): Likewise.
109 (decode_cj_type_insn): Likewise.
110 (decode_b_type_insn): Likewise.
113 2021-02-18 Tom Tromey <tom@tromey.com>
115 * expression.h (struct expression) <evaluate>: Declare method.
116 * eval.c (evaluate_subexp): Simplify.
117 (expression::evaluate): New method.
118 (evaluate_expression, evaluate_type): Use expression::evaluate.
120 2021-02-17 Kevin Buettner <kevinb@redhat.com>
122 * ada-lang.c (ada_fold_name): Check for non-empty string prior
124 (ada_lookup_name_info): Likewise.
126 2021-02-13 Mike Frysinger <vapier@gentoo.org>
128 * aclocal.m4: Regenerate.
130 2021-02-12 Tom de Vries <tdevries@suse.de>
133 * linux-nat.c (lin_thread_get_thread_signals): Remove.
134 (lin_thread_signals): New static var.
135 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
137 * linux-nat.h (lin_thread_get_thread_signals): Remove.
138 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
140 * linux-thread-db.c (check_thread_signals): Use
141 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
143 2021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
145 * f-exp.y (f77_keywords): Add allocated.
146 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
147 (operator_length_f): Likewise.
148 (print_subexp_f): Likewise.
149 (dump_subexp_body_f): Likewise.
150 (operator_check_f): Likewise.
151 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
153 2021-02-11 Tom de Vries <tdevries@suse.de>
156 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
157 Return true for DW_FORM_strx.
159 2021-02-11 Tom Tromey <tromey@adacore.com>
162 * parse.c (write_exp_symbol_reference): Write sym.block.
164 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
166 * NEWS: Mention changes to 'maint info sections'.
167 * maint.c (match_substring): Return a bool, fix whitespace issue.
168 (struct single_bfd_flag_info): New struct.
169 (bfd_flag_info): New static global.
170 (match_bfd_flags): Return a bool, use bfd_flag_info.
171 (print_bfd_flags): Use bfd_flag_info.
172 (maint_print_section_info): Delete trailing whitespace.
173 (struct maint_info_sections_opts): New struct.
174 (maint_info_sections_option_defs): New static global.
175 (maint_info_sections_completer): New function.
176 (maintenance_info_sections): Use option parsing mechanism.
177 (_initialize_maint_cmds): Update command help text for 'maint info
178 sections' and register a command completer.
180 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
182 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
183 functionality merged into...
184 (maint_print_all_sections): ...this new function.
185 (maintenance_info_sections): Make use of maint_print_all_sections,
186 allow all objects to be printed even where there's no executable.
188 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
190 * breakpoint.c (resolve_sal_pc): Make use of
191 bound_minimal_symbol::obj_section.
192 * maint.c (maintenance_translate_address): Likewise.
193 * minsyms.c (minimal_symbol_upper_bound): Likewise.
194 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
196 * printcmd.c (info_address_command): Make use of
197 bound_minimal_symbol::obj_section.
199 2021-02-11 Alan Modra <amodra@gmail.com>
201 * arm-symbian-tdep.c: Delete.
202 * NEWS: Mention arm-symbian removal.
203 * Makefile.in: Remove arm-symbian-tdep entries.
204 * configure.tgt: Remove arm*-*-symbianelf*.
205 * doc/gdb.texinfo: Remove mention of SymbianOS.
206 * osabi.c (gdb_osabi_names): Remove "Symbian".
207 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
208 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
209 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
211 * testsuite/gdb.base/dup-sect.exp: Likewise.
212 * testsuite/gdb.base/long_long.exp: Likewise.
213 * testsuite/gdb.base/solib-weak.exp: Likewise.
214 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
215 * testsuite/gdb.python/py-section-script.exp: Likewise.
216 * testsuite/lib/dwarf.exp: Likewise.
217 * testsuite/lib/gdb.exp: Likewise.
219 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
221 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
222 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
223 (one_or_two_args): New pattern.
224 (f77_keywords): Add lbound and ubound.
225 * f-lang.c (fortran_bounds_all_dims): New function.
226 (fortran_bounds_for_dimension): New function.
227 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
228 (operator_length_f): Likewise.
229 (print_subexp_f): Likewise.
230 (dump_subexp_body_f): Likewise.
231 (operator_check_f): Likewise.
232 * std-operator.def (FORTRAN_LBOUND): Define.
233 (FORTRAN_UBOUND): Define.
235 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
237 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
238 and set_section_index member functions where appropriate.
239 * coffread.c (coff_symtab_read): Likewise.
240 (process_coff_symbol): Likewise.
241 * ctfread.c (set_symbol_address): Likewise.
242 * dwarf2/read.c (add_partial_symbol): Likewise.
243 (var_decode_location): Likewise.
244 * language.c: Likewise.
245 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
246 (compact_minimal_symbols): Likewise.
247 (minimal_symbol_upper_bound): Likewise.
248 * objfiles.c (relocate_one_symbol): Likewise.
249 * psympriv.h (partial_symbol::obj_section): Likewise.
250 (partial_symbol::address): Likewise.
251 * psymtab.c (partial_symtab::add_psymbol): Likewise.
252 * stabsread.c (scan_file_globals): Likewise.
253 * symmisc.c (dump_msymbols): Likewise.
254 * symtab.c (general_symbol_info::obj_section): Likewise.
255 (fixup_section): Likewise.
256 (get_msymbol_address): Likewise.
257 * symtab.h (general_symbol_info::section): Rename to...
258 (general_symbol_info::m_section): ...this.
259 (general_symbol_info::set_section_index): New member function.
260 (general_symbol_info::section_index): Likewise.
261 (SYMBOL_SECTION): Delete.
262 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
263 set_section_index member functions where appropriate.
264 (MSYMBOL_SECTION): Delete.
265 (symbol::symbol): Update to initialize 'm_section'.
266 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
267 (process_xcoff_symbol): Likewise.
269 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
271 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
273 * findvar.c (language_defn::read_var_value): Likewise.
274 * infcmd.c (jump_command): Likewise.
275 * linespec.c (minsym_found): Likewise.
276 * maint.c (maintenance_translate_address): Likewise.
277 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
278 (minimal_symbol_upper_bound): Likewise.
279 * parse.c (find_minsym_type_and_address): Likewise.
280 (operator_check_standard): Likewise.
281 * printcmd.c (info_address_command): Likewise.
282 * symmisc.c (dump_msymbols): Likewise.
283 (print_symbol): Likewise.
284 * symtab.c (general_symbol_info::obj_section): Define new
286 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
287 (find_pc_sect_compunit_symtab): Likewise.
288 (find_function_start_sal): Likewise.
289 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
291 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
293 (SYMBOL_OBJ_SECTION): Delete.
294 (MSYMBOL_OBJ_SECTION): Delete.
296 2021-02-09 Tom Tromey <tom@tromey.com>
298 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
300 2021-02-09 Tom de Vries <tdevries@suse.de>
303 * dwarf2/read.c (read_array_type): Return NULL when not being able to
304 construct an array type. Add assert to ensure that element_type is
307 2021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
309 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
310 (gcore_collect_regset_section_cb): Delete.
311 (gcore_collect_thread_registers): Delete.
312 (gcore_build_thread_register_notes): Delete.
313 (gcore_find_signalled_thread): Delete.
314 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
315 'gdbarch' and 'thread_info' declarations.
316 (gcore_build_thread_register_notes): Delete declaration.
317 (gcore_find_signalled_thread): Likewise.
318 * fbsd-tdep.c: Remove 'gcore.h' include.
319 (struct fbsd_collect_regset_section_cb_data): New struct.
320 (fbsd_collect_regset_section_cb): New function.
321 (fbsd_collect_thread_registers): New function.
322 (struct fbsd_corefile_thread_data): New struct.
323 (fbsd_corefile_thread): New function.
324 (fbsd_make_corefile_notes): Call FreeBSD specific code.
325 * linux-tdep.c: Remove 'gcore.h' include.
326 (struct linux_collect_regset_section_cb_data): New struct.
327 (linux_collect_regset_section_cb): New function.
328 (linux_collect_thread_registers): New function.
329 (linux_corefile_thread): Call Linux specific code.
330 (find_signalled_thread): New function.
331 (linux_make_corefile_notes): Call find_signalled_thread.
333 2021-02-09 Tom Tromey <tromey@adacore.com>
335 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
337 * value.c (value_contents_copy_raw): Now static.
338 * value.h (value_contents_copy_raw): Don't declare.
340 2021-02-09 Tom Tromey <tromey@adacore.com>
342 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
345 2021-02-08 Shahab Vahedi <shahab@synopsys.com>
348 * arc-linux-tdep.c (handle_atomic_sequence): New.
349 (arc_linux_software_single_step): Call handle_atomic_sequence().
351 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
353 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
355 (REQUIRE_WINDOW): Call is_valid member function.
356 (REQUIRE_WINDOW_FOR_SETTER): New define.
357 (gdbpy_tui_is_valid): Call is_valid member function.
358 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
359 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
361 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
362 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
365 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
367 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
368 for the title is not nullptr.
370 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
372 * tui-layout.c (saved_tui_windows): Delete.
373 (tui_apply_current_layout): Don't make use of saved_tui_windows,
374 call new get_windows member function instead.
375 (tui_get_window_by_name): Check in tui_windows.
376 (tui_layout_window::apply): Don't add to tui_windows.
377 * tui-layout.h (tui_layout_base::get_windows): New member function.
378 (tui_layout_window::get_windows): Likewise.
379 (tui_layout_split::get_windows): Likewise.
381 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
383 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
384 of the window objects.
386 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
388 * python/python.c (gdbpy_print_stack): Reformat an error message.
390 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
392 * tui/tui-interp.c (tui_command_line_handler): New function.
393 (tui_interp::resume): Register tui_command_line_handler as the
395 * tui/tui-io.c (tui_inject_newline_into_command_window): New
397 (tui_getc_1): Delete handling of '\n' and '\r'.
398 * tui-io.h (tui_inject_newline_into_command_window): Declare.
400 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
402 * tui/tui-regs.c (tui_data_window::display_registers_from):
403 Mark invisible register sub windows.
404 (tui_data_window::check_register_values): Ignore invisible
405 register sub windows.
407 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
409 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
410 n_spaces with a negative value.
412 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
414 * tui/tui-regs.c (tui_data_window::display_registers_from):
415 Add refresh_window call.
417 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
419 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
421 2021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
423 * symmisc.c (std_in, std_out, std_err): Remove.
424 (_initialize_symmisc): Don't set std_in, std_out and std_err.
426 2021-02-05 Tom de Vries <tdevries@suse.de>
429 * breakpoint.c (create_exception_master_breakpoint): Handle case that
430 glibc object file has debug info.
432 2021-02-05 Tom de Vries <tdevries@suse.de>
435 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
437 2021-02-05 Tom de Vries <tdevries@suse.de>
440 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
443 2021-02-05 Tom Tromey <tom@tromey.com>
445 * compile/compile-c-support.c (get_compile_context)
446 (c_get_compile_context, cplus_get_compile_context): Change return
448 * language.c (language_defn::get_compile_instance): New method.
449 * language.h (language_defn::get_compile_instance): Change return
450 type. No longer inline.
451 * c-lang.c (c_language::get_compile_instance): Change return type.
452 (cplus_language::get_compile_instance): Change return type.
453 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
455 * compile/compile.c (compile_to_object): Update.
457 2021-02-05 Tom Tromey <tom@tromey.com>
459 * parser-defs.h (write_exp_symbol_reference): Declare.
460 * parse.c (write_exp_symbol_reference): New function.
461 * p-exp.y (variable): Use write_exp_symbol_reference.
462 * m2-exp.y (variable): Use write_exp_symbol_reference.
463 * f-exp.y (variable): Use write_exp_symbol_reference.
464 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
465 * c-exp.y (variable): Use write_exp_symbol_reference.
467 2021-02-05 Tom de Vries <tdevries@suse.de>
470 * valarith.c (complex_binop): Throw an error if complex type can't
473 2021-02-05 Tom de Vries <tdevries@suse.de>
476 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
479 2021-02-05 Tom de Vries <tdevries@suse.de>
481 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
483 2021-02-04 Mike Frysinger <vapier@gentoo.org>
485 * configure.tgt (riscv*-*-*): Set gdb_sim.
487 2021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
489 * target.c (target_is_non_stop_p): Return bool.
490 * target.h (target_is_non_stop_p): Return bool.
492 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
494 * record-full.c (record_full_async_inferior_event_handler):
495 Don't clear async event handler.
496 (record_full_base_target::wait): Clear async event handler at
499 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
501 * record-btrace.c (record_btrace_handle_async_inferior_event):
502 Don't clear async event handler.
503 (record_btrace_target::wait): Clear async event handler at
506 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
508 * remote.c (remote_target::wait): Clear async event handler at
509 beginning, mark if needed at the end.
510 (remote_async_inferior_event_handler): Don't set or clear async
513 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
515 * async-event.h (async_event_handler_func): Add documentation.
516 * async-event.c (check_async_event_handlers): Don't clear
517 async_event_handler ready flag.
518 * infrun.c (infrun_async_inferior_event_handler): Clear ready
520 * record-btrace.c (record_btrace_handle_async_inferior_event):
522 * record-full.c (record_full_async_inferior_event_handler):
524 * remote-notif.c (remote_async_get_pending_events_handler):
526 * remote.c (remote_async_inferior_event_handler): Likewise.
528 2021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
530 * infrun.c (handle_inferior_event): Move stop_soon variable to
533 2021-02-03 Pedro Alves <pedro@palves.net>
535 * infcmd.c (detach_command): Hold strong reference to target, and
536 if all-stop on entry, restart threads on exit.
537 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
538 (restart_stepped_thread): ... this new function. Also handle
540 (restart_after_all_stop_detach): New function.
541 * infrun.h (restart_after_all_stop_detach): Declare.
543 2021-02-03 Pedro Alves <pedro@palves.net>
545 * infrun.c (struct step_over_info): Initialize fields.
546 (prepare_for_detach): Handle ongoing in-line step over.
548 2021-02-03 Pedro Alves <pedro@palves.net>
550 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
552 * remote.c (remote_target::remote_detach_1): ... and here ...
553 * target.c (target_detach): ... instead of here.
554 * target.h (target_ops::detach): Add comment.
556 2021-02-03 Pedro Alves <pedro@palves.net>
558 * infrun.c (struct wait_one_event): Move higher up.
559 (prepare_for_detach): Abort in-progress displaced steps instead of
560 letting them complete.
561 (handle_one): If the inferior is detaching, don't add the thread
562 back to the global step-over chain.
563 (restart_threads): Don't restart threads if detaching.
564 (handle_signal_stop): Remove inferior::detaching reference.
566 2021-02-03 Pedro Alves <pedro@palves.net>
568 * infrun.c (prepare_for_detach): Don't release scoped_restore
571 2021-02-03 Pedro Alves <pedro@palves.net>
573 * infrun.c (handle_one): New function, factored out from ...
574 (stop_all_threads): ... here.
576 2021-02-03 Pedro Alves <pedro@palves.net>
578 * remote.c (remote_notif_stop_ack): Don't error out on
579 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
580 (remote_target::discard_pending_stop_replies): Don't delete
581 in-flight notification; instead, clear its contents.
583 2021-02-03 Pedro Alves <pedro@palves.net>
585 * remote.c (extended_remote_target::attach): Set target async in
586 the target-non-stop path too.
588 2021-02-03 Pedro Alves <pedro@palves.net>
591 * infrun.c (handle_signal_stop): Move main context_switch call
592 earlier, before STOP_QUIETLY_NO_SIGSTOP.
594 2021-02-02 Lancelot SIX <lsix@lancelotsix.com>
596 * NEWS (Changed commands): Add entry for the behavior change of
597 the inferior command.
598 * inferior.c (inferior_command): When no argument is given to the
599 inferior command, display info about the currently selected
602 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
604 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
606 (read_attribute_reprocess): Adjust.
608 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
610 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
611 <gnu_ranges_base>: ... this...
612 <rnglists_base>: ... and this.
613 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
614 <gnu_ranges_base>: ... this...
615 <rnglists_base>: ... and this.
616 (read_cutu_die_from_dwo): Adjust
617 (dwarf2_get_pc_bounds): Adjust
618 (dwarf2_record_block_ranges): Adjust.
619 (read_full_die_1): Adjust
620 (partial_die_info::read): Adjust.
621 (read_rnglist_index): Adjust.
623 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
626 * dwarf2/read.c (read_loclists_rnglists_header): Add
627 header_offset parameter and use it.
628 (read_loclist_index): Read header of the current contribution,
629 not the one at the beginning of the section.
630 (read_rnglist_index): Likewise.
632 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
635 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
636 requires_reprocessing flag.
637 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
639 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
640 and DW_FORM_loclistx.
641 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
642 instead of set_address for DW_FORM_loclistx and
645 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
647 * dwarf2/read.c (read_loclist_index): Remove bound check for
649 (read_rnglist_index): Likewise.
651 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
653 * dwarf2/read.c (read_loclist_index): Add bound check for the end
656 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
658 * dwarf2/read.c (read_rnglist_index): Fix bound check.
660 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
662 * dwarf2/read.c (read_loclist_index): Change complaints into
665 2021-02-02 Tom de Vries <tdevries@suse.de>
668 * dwarf2/index-write.c (write_one_signatured_type): Skip if
671 2021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
673 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
674 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
675 here from linux-tdep.c and given a new name. Minor cleanups.
676 (gcore_collect_regset_section_cb): Likewise.
677 (gcore_collect_thread_registers): Likewise.
678 (gcore_build_thread_register_notes): Likewise.
679 (gcore_find_signalled_thread): Likewise.
680 * gcore.h (gcore_build_thread_register_notes): Declare.
681 (gcore_find_signalled_thread): Declare.
682 * fbsd-tdep.c: Add 'gcore.h' include.
683 (struct fbsd_collect_regset_section_cb_data): Delete.
684 (fbsd_collect_regset_section_cb): Delete.
685 (fbsd_collect_thread_registers): Delete.
686 (struct fbsd_corefile_thread_data): Delete.
687 (fbsd_corefile_thread): Delete.
688 (fbsd_make_corefile_notes): Call
689 gcore_build_thread_register_notes instead of the now deleted
691 * linux-tdep.c: Add 'gcore.h' include.
692 (struct linux_collect_regset_section_cb_data): Delete.
693 (linux_collect_regset_section_cb): Delete.
694 (linux_collect_thread_registers): Delete.
695 (linux_corefile_thread): Call
696 gcore_build_thread_register_notes.
697 (find_signalled_thread): Delete.
698 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
700 2021-01-29 Tom de Vries <tdevries@suse.de>
703 * infrun.c (process_event_stop_test): Reset
704 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
707 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
709 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
710 assert. Extend the header comment.
712 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
714 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
715 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
716 * tui/tui-data.h (TUI_STATUS_WIN): Define.
717 (tui_locator_win_info_ptr): Delete declaration.
718 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
719 (tui_disasm_window::set_contents): Fetch state from tui_location
721 (tui_get_begin_asm_address): Likewise.
722 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
724 (get_locator_window): Delete.
725 (initialize_known_windows): Treat locator window just like all the
727 * tui/tui-source.c: Add 'tui/tui-location.h' include.
728 (tui_source_window::set_contents): Fetch state from tui_location
730 (tui_source_window::showing_source_p): Likewise.
731 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
733 (tui_locator_win_info_ptr): Delete.
734 (tui_locator_window::make_status_line): Fetch state from
736 (tui_locator_window::rerender): Remove check of 'handle',
737 reindent function body.
738 (tui_locator_window::set_locator_fullname): Delete.
739 (tui_locator_window::set_locator_info): Delete.
740 (tui_update_locator_fullname): Delete.
741 (tui_show_frame_info): Likewise.
742 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
743 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
744 tui/tui-location.h and renamed to
745 tui_location_tracker::set_location.
746 (tui_locator_window::set_locator_fullname): Moved to
747 tui/tui-location.h and renamed to
748 tui_location_tracker::set_fullname.
749 (tui_locator_window::full_name): Delete.
750 (tui_locator_window::proc_name): Delete.
751 (tui_locator_window::line_no): Delete.
752 (tui_locator_window::addr): Delete.
753 (tui_locator_window::gdbarch): Delete.
754 (tui_update_locator_fullname): Delete declaration.
755 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
757 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
758 (tui_display_main): Call function on tui_location directly.
759 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
760 * tui/tui-location.c: New file.
761 * tui/tui-location.h: New file.
763 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
765 * gdbtypes.h (get_type_arch): Rename to...
766 (struct type) <arch>: ... this, update all users.
768 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
770 * gdbtypes.h (struct type) <arch>: Rename to...
771 <arch_owner>: ... this, update all users.
772 <objfile>: Rename to...
773 <objfile_owner>: ... this, update all users.
775 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
777 * gdbcmd.h (execute_command_to_string): Update comment.
778 * top.c (execute_command_to_string): Update header comment.
780 2021-01-28 Tom de Vries <tdevries@suse.de>
783 * breakpoint.c (create_longjmp_master_breakpoint_probe)
784 (create_longjmp_master_breakpoint_names): New function, factored out
786 (create_longjmp_master_breakpoint): ... here. Only try to install
787 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
788 breakpoint in libc.so failed.
790 2021-01-27 Lancelot SIX <lsix@lancelotsix.com>
793 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
794 unique_ptr is released when the wrapped pointer is kept for later
797 2021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
799 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
800 BLR and BR instructions.
801 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
802 (enum aarch64_masks): New.
804 2021-01-26 Tom Tromey <tromey@adacore.com>
806 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
807 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
808 (windows_init_thread_list, windows_nat::handle_load_dll)
809 (windows_nat::handle_unload_dll, windows_nat_target::resume)
810 (windows_nat_target::resume)
811 (windows_nat_target::get_windows_debug_event)
812 (windows_nat_target::interrupt, windows_xfer_memory)
813 (windows_nat_target::close): Update.
814 * nat/windows-nat.c (DEBUG_EVENTS): Use
815 debug_prefixed_printf_cond.
816 (matching_pending_stop, fetch_pending_stop)
817 (continue_last_debug_event): Update.
819 2020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
821 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
822 elfcore_write_file_note.
824 2021-01-26 Shahab Vahedi <shahab@synopsys.com>
826 * arc-tdep.c (arc_add_reggroups): New function.
827 (arc_gdbarch_init): Call arc_add_reggroups.
829 2021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
831 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
833 2021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
834 Simon Marchi <simon.marchi@polymtl.ca>
835 Tom de Vries <tdevries@suse.de>
837 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
840 2021-01-25 Tom Tromey <tromey@adacore.com>
842 * dwarf2/read.c (get_mpz): New function.
843 (get_dwarf2_rational_constant): Use it.
845 2021-01-25 Tom Tromey <tromey@adacore.com>
847 * ada-lang.c (resolve_subexp): Handle array context.
849 2021-01-23 Tom Tromey <tom@tromey.com>
852 * compile/compile-loc2c.c (note_register): New function.
853 (pushf_register_address, pushf_register): Use it.
855 2021-01-23 Tom Tromey <tom@tromey.com>
857 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
858 Change type of "registers_used".
859 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
860 * dwarf2/loc.c (dwarf2_compile_property_to_c)
861 (locexpr_generate_c_location, loclist_generate_c_location): Change
862 type of "registers_used".
863 * compile/compile.h (compile_dwarf_expr_to_c)
864 (compile_dwarf_bounds_to_c): Update.
865 * compile/compile-loc2c.c (pushf_register_address)
866 (pushf_register, do_compile_dwarf_expr_to_c)
867 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
869 * compile/compile-c.h (generate_c_for_variable_locations):
871 * compile/compile-c-symbols.c (generate_vla_size)
872 (generate_c_for_for_one_variable): Change type of
874 (generate_c_for_variable_locations): Return std::vector.
875 * compile/compile-c-support.c (generate_register_struct): Change
876 type of "registers_used".
879 2021-01-23 Tom Tromey <tom@tromey.com>
881 * compile/compile-internal.h (class compile_instance)
882 <set_arguments>: Change return type.
883 * compile/compile.c (compile_to_object): Remove call to reset.
884 (compile_instance::set_arguments): Change return type.
886 2021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
888 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
889 * gdbtypes.h (struct type) <set_owner>: Add asserts.
891 2021-01-23 Lancelot SIX <lsix@lancelotsix.com>
893 * Makefile.in (SELFTESTS_SRCS): Add
894 unittests/gdb_tilde_expand-selftests.c.
895 * unittests/gdb_tilde_expand-selftests.c: New file.
897 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
900 * NEWS: Mention new command.
901 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
902 (version_style): Define.
903 (cli_style_option::cli_style_option): Add intensity parameter, and
905 (_initialize_cli_style): Register version style set/show commands.
906 * cli/cli-style.h (cli_style_option): Add intensity parameter.
907 (version_style): Declare.
908 * top.c (print_gdb_version): Use version_stype, and styled_string
909 to print the GDB version string.
911 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
913 * utils.c (emit_style_escape): Only emit an escape sequence if the
914 requested style is different than the current applied style.
915 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
916 current applied_style.
917 (fputs_styled): Remove is_default check.
918 (fputs_styled_unfiltered): Likewise.
919 (vfprintf_styled_no_gdbfmt): Likewise.
921 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
923 * remote.h (remote_debug_printf): New.
924 (remote_debug_printf_nofunc): New.
925 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
926 * remote.c: Use above macros throughout file.
928 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
930 * remote.h (remote_debug): Change to bool.
931 * remote.c (remote_debug): Change to bool.
932 (_initialize_remote): Adjust.
934 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
936 * target.h (remote_debug): Move to...
937 * remote.h (remote_debug): ... here.
938 * top.c (remote_debug): Move to...
939 * remote.c (remote_debug): ... here.
940 * remote-sim.c: Include remote.h.
942 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
944 * cli/cli-cmds.c (show_remote_debug): Remove.
945 (show_remote_timeout): Remove.
946 (_initialize_cli_cmds): Don't register commands.
947 * remote.c (show_remote_debug): Move here.
948 (show_remote_timeout): Move here.
949 (_initialize_remote): Register commands.
951 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
953 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
954 type::objfile method instead.
956 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
958 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
959 use the type::is_objfile_owned method.
961 2021-01-22 Simon Marchi <simon.marchi@efficios.com>
963 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
964 (TYPE_OWNER): Remove.
965 (TYPE_OBJFILE): Adjust.
966 (struct main_type) <flag_objfile_owned>: Rename to...
967 <m_flag_objfile_owned>: ... this.
968 <owner>: Rename to...
970 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
972 (TYPE_ALLOC): Adjust.
973 * gdbtypes.c (alloc_type): Adjust.
974 (alloc_type_arch): Adjust.
975 (alloc_type_copy): Adjust.
976 (get_type_arch): Adjust.
977 (smash_type): Adjust.
978 (lookup_array_range_type): Adjust.
979 (recursive_dump_type): Adjust.
980 (copy_type_recursive): Adjust.
981 * compile/compile-c-types.c (convert_func): Adjust.
982 (convert_type_basic): Adjust.
983 * compile/compile-cplus-types.c (compile_cplus_convert_func):
986 (language_arch_info::type_and_symbol::alloc_type_symbol):
989 2021-01-21 Luis Machado <luis.machado@linaro.org>
991 * coffread.c (enter_linenos): Passing string to complaint.
992 * valops.c (value_assign): Make array view.
994 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
996 * auto-load.h (debug_auto_load): Move here.
997 (auto_load_debug_printf): New.
998 * auto-load.c: Use auto_load_debug_printf.
999 (debug_auto_load): Move to header.
1000 * linux-thread-db.c (try_thread_db_load): Use
1001 auto_load_debug_printf.
1002 * main.c (captured_main_1): Likewise.
1004 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
1006 * f-valprint.c (f77_array_offset_tbl): Remove.
1008 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
1010 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
1012 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
1014 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
1017 2021-01-21 Hannes Domani <ssbssa@yahoo.de>
1020 * python/py-breakpoint.c (bppy_get_location): Handle
1021 bp_hardware_breakpoint.
1022 (bppy_init): Likewise.
1023 (gdbpy_breakpoint_created): Likewise.
1025 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
1027 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
1029 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
1031 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
1032 (_initialize_gdb_bfd): Adjust.
1034 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
1037 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
1039 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
1041 * dwarf2/read.c (follow_die_offset): Add logging.
1042 (dwarf2_per_objfile::age_comp_units): Add logging.
1044 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
1046 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
1047 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
1048 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
1049 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
1050 * arm-tdep.c (struct frame_unwind): Make static.
1051 * auto-load.c (auto_load_safe_path_vec): Make static.
1052 * csky-tdep.c (csky_stub_unwind): Make static.
1053 * gdbarch.c (gdbarch_data_registry): Make static.
1054 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
1055 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
1056 * i386-tdep.c (i386_frame_setup_skip_insns,
1057 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
1059 * infrun.c (observer_mode): Make static.
1060 * linux-nat.c (sigchld_action): Make static.
1061 * linux-thread-db.c (thread_db_list): Make static.
1062 * maint-test-options.c (maintenance_test_options_list):
1063 * mep-tdep.c (mep_csr_registers): Make static.
1064 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
1065 (stats): Make static.
1066 * nat/linux-osdata.c (struct osdata_type): Make static.
1067 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
1068 * progspace.c (last_program_space_num): Make static.
1069 * python/py-param.c (struct parm_constant): Remove struct type
1071 (parm_constants): Make static.
1072 * python/py-record-btrace.c (btpy_list_methods): Make static.
1073 * python/py-record.c (recpy_gap_type): Make static.
1074 * record.c (record_goto_cmdlist): Make static.
1075 * regcache.c (regcache_descr_handle): Make static.
1076 * registry.h (DEFINE_REGISTRY): Make definition static.
1077 * symmisc.c (std_in, std_out, std_err): Make static.
1078 * top.c (previous_saved_command_line): Make static.
1079 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
1081 * unittests/command-def-selftests.c (nr_duplicates,
1082 nr_invalid_prefixcmd, lists): Make static.
1083 * unittests/observable-selftests.c (test_notification): Make
1085 * unittests/optional/assignment/1.cc (counter): Make static.
1086 * unittests/optional/assignment/2.cc (counter): Make static.
1087 * unittests/optional/assignment/3.cc (counter): Make static.
1088 * unittests/optional/assignment/4.cc (counter): Make static.
1089 * unittests/optional/assignment/5.cc (counter): Make static.
1090 * unittests/optional/assignment/6.cc (counter): Make static.
1092 2021-01-20 Joel Sherrill <joel@rtems.org>
1095 * remote.c (struct remote_thread_info) <resume_state>: Rename
1097 <get_resume_state>: ... this.
1098 (remote_target::resume): Adjust.
1099 (remote_target::commit_resume): Adjust.
1100 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
1102 2021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
1103 Tom Tromey <tom@tromey.com>
1105 * stap-probe.c (stap_parse_single_operand): Handle '!'
1107 (stap_parse_argument_conditionally): Likewise.
1108 Skip spaces after processing open-parenthesis sub-expression.
1109 (stap_parse_argument_1): Skip spaces after call to
1110 stap_parse_argument_conditionally.
1111 Handle case when right-side expression is a parenthesized
1113 Skip spaces after call to stap_parse_argument_1.
1115 2021-01-19 Lancelot SIX <lsix@lancelotsix.com>
1117 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
1119 2021-01-19 Luis Machado <luis.machado@linaro.org>
1121 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
1122 memory and save data.
1123 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
1124 (trad_frame_set_unknown, trad_frame_set_value_bytes)
1125 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
1126 (trad_frame_value_bytes_p): Remove.
1127 (trad_frame_reset_saved_regs): Adjust documentation.
1128 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
1129 constructor and reset the state of the registers.
1130 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
1131 (trad_frame_value_bytes_p, trad_frame_set_value)
1132 (trad_frame_set_realreg, trad_frame_set_addr)
1133 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
1134 (trad_frame_set_reg_realreg): Update to call member function.
1135 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
1136 (trad_frame_get_prev_register): Likewise.
1138 * aarch64-tdep.c (aarch64_analyze_prologue)
1139 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
1140 (aarch64_prologue_prev_register): Update to use member functions.
1141 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
1142 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
1143 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
1144 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
1145 (arm_make_epilogue_frame_cache): Likewise.
1146 * avr-tdep.c (avr_frame_unwind_cache)
1147 (avr_frame_prev_register): Likewise.
1148 * cris-tdep.c (cris_scan_prologue): Likewise.
1149 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
1150 * frv-tdep.c (frv_analyze_prologue): Likewise.
1151 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
1152 * lm32-tdep.c (lm32_frame_cache): Likewise.
1153 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
1154 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1155 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
1156 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
1157 (reset_saved_regs): Adjust to set realreg.
1158 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
1159 call member functions.
1160 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
1161 * s390-tdep.c (s390_prologue_frame_unwind_cache)
1162 (s390_backchain_frame_unwind_cache): Likewise.
1163 * score-tdep.c (score7_analyze_prologue)
1164 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
1165 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
1166 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
1167 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
1168 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
1169 * tilegx-tdep.c (tilegx_analyze_prologue)
1170 (tilegx_frame_cache): Likewise.
1171 * v850-tdep.c (v850_frame_cache): Likewise.
1172 * vax-tdep.c (vax_frame_cache): Likewise.
1174 2021-01-19 Luis Machado <luis.machado@linaro.org>
1176 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
1178 (put_frame_register_bytes): Likewise.
1179 Adjust documentation.
1180 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
1181 (safe_frame_unwind_memory): Likewise.
1182 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
1183 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
1185 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
1186 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
1187 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
1188 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
1189 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
1190 * dwarf2/loc.c (rw_pieced_value): Likewise.
1191 * hppa-tdep.c (hppa_frame_cache): Likewise.
1192 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
1193 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
1194 * i386-linux-tdep.c (i386_linux_sigtramp_start)
1195 (i386_linux_rt_sigtramp_start): Likewise.
1196 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
1197 * i386-tdep.c (i386_register_to_value): Likewise.
1198 * i387-tdep.c (i387_register_to_value): Likewise.
1199 * ia64-tdep.c (ia64_register_to_value): Likewise.
1200 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
1201 (m32r_linux_rt_sigtramp_start): Likewise.
1202 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
1203 * m68k-tdep.c (m68k_register_to_value): Likewise.
1204 * mips-tdep.c (mips_register_to_value)
1205 (mips_value_to_register): Likewise.
1206 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
1207 (ppcfbsd_sigtramp_frame_cache): Likewise.
1208 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
1209 (ppcobsd_sigtramp_frame_cache): Likewise.
1210 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
1211 (rs6000_register_to_value): Likewise.
1212 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
1213 * tramp-frame.c (tramp_frame_start): Likewise.
1214 * valops.c (value_assign): Likewise.
1216 2021-01-19 Luis Machado <luis.machado@linaro.org>
1218 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
1220 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
1221 instead of buffer and size.
1222 (trad_frame_set_reg_value_bytes): Likewise.
1223 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
1224 (trad_frame_set_value_bytes): Likewise.
1226 2021-01-18 Mike Frysinger <vapier@gentoo.org>
1228 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
1230 2021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
1232 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
1233 (riscv_fbsd_gregset): Use riscv_supply_regset.
1234 (riscv_fbsd_fpregset): Likewise.
1235 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
1236 (riscv_linux_fregset): Likewise.
1237 * riscv-tdep.c (riscv_supply_regset): Define new function.
1238 * riscv-tdep.h (riscv_supply_regset): Declare new function.
1240 2021-01-18 Tom de Vries <tdevries@suse.de>
1243 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
1245 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
1248 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
1250 * remote.c (class remote_target) <remote_hostio_send_command,
1251 remote_hostio_parse_result>: Constify parameter.
1252 (remote_hostio_parse_result): Likewise.
1253 (remote_target::remote_hostio_send_command): Adjust.
1254 (remote_target::remote_hostio_pread_vFile): Adjust.
1255 (remote_target::fileio_readlink): Adjust.
1256 (remote_target::fileio_fstat): Adjust.
1258 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
1260 * remote.c (remote_target::start_remote): Move wait_status to
1263 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
1265 * remote.c (class remote_target):
1266 <add_current_inferior_and_thread>: Constify parameter.
1267 (stop_reply_extract_thread): Likewise.
1268 (remote_target::get_current_thread): Likewise.
1269 (remote_target::add_current_inferior_and_thread): Likewise.
1271 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
1273 * remote.c (class remote_target)
1274 <remote_unpack_thread_info_response,
1275 parse_threadlist_response>: Constify parameter and/or return
1276 value and or local variable.
1277 (stub_unpack_int): Likewise.
1278 (unpack_nibble): Likewise.
1279 (unpack_byte): Likewise.
1280 (unpack_int): Likewise.
1281 (unpack_string): Likewise.
1282 (unpack_threadid): Likewise.
1283 (remote_target::remote_unpack_thread_info_response): Likewise.
1284 (remote_target::parse_threadlist_response): Likewise.
1286 2021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
1288 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
1290 2021-01-14 Lancelot Six <lsix@lancelotsix.com>
1292 * MAINTAINERS (Write After Approval): Add myself.
1294 2021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
1296 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
1297 because is_trivially_default_constructible was first implemented with
1300 2021-01-14 Tom de Vries <tdevries@suse.de>
1302 PR breakpoints/27151
1303 * objfiles.h (in_plt_section): Handle .plt.sec.
1305 2021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
1309 (remote_target::select_thread_for_ambiguous_stop_reply): New
1311 (remote_target::process_stop_reply): Call
1312 select_thread_for_ambiguous_stop_reply.
1314 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
1316 * record-btrace.c (class record_btrace_target): Remove.
1317 (record_btrace_target::commit_resume): Remove.
1318 * record-full.c (class record_full_target): Remove.
1319 (record_full_target::commit_resume): Remove.
1321 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
1323 * remote.c (enum class resume_state): New.
1324 (struct resumed_pending_vcont_info): New.
1325 (struct remote_thread_info) <resume_state, set_not_resumed,
1326 set_resumed_pending_vcont, resumed_pending_vcont_info,
1327 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
1329 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
1330 (remote_target::remote_add_thread): Adjust.
1331 (remote_target::process_initial_stop_replies): Adjust.
1332 (remote_target::resume): Adjust.
1333 (remote_target::commit_resume): Rely on state in
1334 remote_thread_info and not on tp->executing.
1335 (remote_target::process_stop_reply): Adjust.
1337 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
1339 * arc-tdep.h (arc_debug_printf): New.
1340 * arc-tdep.c: Use arc_debug_printf.
1341 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
1342 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
1343 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
1345 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
1347 * arc-tdep.h (arc_debug): Change type to bool.
1348 * arc-tdep.c (arc_debug): Change type to bool.
1349 (arc_analyze_prologue): Adjust.
1350 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
1351 * arc-linux-nat.c (ps_get_thread_area): Adjust.
1353 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
1355 * auto-load.c (auto_load_objfile_script_1): Use bool.
1356 (execute_script_contents): Use bool.
1358 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
1360 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
1362 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
1364 * extension-priv.h (struct extension_language_script_ops)
1365 <auto_load_enabled>: Return bool.
1366 * extension.h (ext_lang_auto_load_enabled): Return bool, move
1368 * extension.c (ext_lang_auto_load_enabled): Return bool, move
1370 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
1372 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
1373 move comment to header.
1374 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
1376 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
1377 move comment to header.
1379 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
1381 * auto-load.h (file_is_auto_load_safe): Change return type to
1382 bool, move comment here.
1383 * auto-load.c (file_is_auto_load_safe): Change return type and
1384 advice_printed to bool. Move comment to header.
1386 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
1388 * jit.c (jit_debug_printf): New, use throughout file.
1390 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
1392 * infrun.c (normal_stop): Fix indentation.
1394 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
1396 * top.h (readnow_symbol_files, readnever_symbol_files): Move
1398 * symfile.h: ... here.
1399 * symfile.c: Update doc.
1401 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
1403 * target.h (baud_rate, serial_parity): Move declarations...
1404 * serial.h: ... here.
1405 * main.c: Include serial.h.
1406 * serial.c (baud_rate, serial_parity): Update doc.
1408 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
1410 * top.c (pre_init_ui_hook): Remove.
1412 2021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
1414 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
1415 (aarch64_vnv_type): Add "bf" type in h field of v registers.
1416 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
1417 * features/aarch64-fpu.xml: Add bfloat16 type.
1419 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
1421 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
1423 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
1425 * f-exp.y (dot_ops): Rename to...
1426 (fortran_operators): ...this. Add a header comment. Add symbol
1428 (yylex): Update to use fortran_operators not dot_ops. Remove
1429 special handling for '**', this is now included in
1432 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
1434 * arch/aarch64-insn.h (aarch64_debug_printf): New.
1435 * arch/aarch64-insn.c: Use aarch64_debug_printf.
1436 * aarch64-tdep.c: Use aarch64_debug_printf.
1438 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
1440 * solib-aix.c (solib_aix_debug_printf): New, use throughout
1443 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
1445 * jit.c (jit_debug): Change type to bool.
1446 (_initialize_jit): Adjust.
1448 2021-01-09 Tom Tromey <tom@tromey.com>
1451 * compile/compile.c (compile_to_object): Avoid crash when
1452 osabi_triplet_regexp returns NULL.
1454 2021-01-09 Tom Tromey <tom@tromey.com>
1456 * tracepoint.h (class collection_list) <append_exp>: Take a
1458 * tracepoint.c (collection_list::append_exp): Take a std::string.
1459 (encode_actions_1): Update.
1461 2021-01-08 Tom Tromey <tromey@adacore.com>
1463 * parse.c (parse_expression): Add void_context_p parameter. Use
1464 parse_exp_in_context.
1465 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
1467 (print_command, call_command): Update.
1468 * expression.h (parse_expression): Add void_context_p parameter.
1470 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
1472 * value.c (set_value_component_location): Adjust the VALUE_LVAL
1473 for internalvar components that have a dynamic location.
1475 2021-01-08 Tom de Vries <tdevries@suse.de>
1478 * breakpoint.c (create_exception_master_breakpoint_probe)
1479 (create_exception_master_breakpoint_hook): Factor out
1481 (create_exception_master_breakpoint): ... here. Only try to install
1482 the master exception breakpoint in objfile.debug using the
1483 _Unwind_DebugHook method, if the install using probes in objfile
1486 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
1488 * f-lang.c (fortran_value_subarray): Call value_from_component.
1490 2021-01-07 Mike Frysinger <vapier@gentoo.org>
1492 * remote-sim.c: Include memory-map.h.
1493 (gdbsim_target): Define memory_map override.
1494 (gdbsim_target::memory_map): Define.
1496 2021-01-07 Tom Tromey <tromey@adacore.com>
1498 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
1500 2021-01-07 Tom Tromey <tromey@adacore.com>
1502 * ada-lang.c (add_component_interval): Start loop using vector's
1505 2021-01-06 Tom Tromey <tromey@adacore.com>
1507 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
1509 * valarith.c (fixed_point_binop): Handle multiplication
1510 and division specially.
1511 * valops.c (value_to_gdb_mpq): New function.
1512 (value_cast_to_fixed_point): Use it.
1514 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
1516 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
1517 Call wnoutrefresh instead of tui_win_info::refresh_window.
1519 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
1521 * tui/tui-source.c (tui_source_window::show_line_number):
1522 Redraw second space after line number.
1524 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
1527 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
1528 Fix source pad size in prefresh.
1529 (tui_source_window_base::show_source_content): Grow source pad
1532 2021-01-04 Mike Frysinger <vapier@gentoo.org>
1534 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
1535 (bfin_frame_align): Use align_down.
1537 2021-01-04 Tom de Vries <tdevries@suse.de>
1539 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
1540 terminators that do not terminate anything.
1542 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
1544 * debug.c (debug_print_depth): New.
1545 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
1546 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
1547 * infrun.c (start_step_over): Use
1548 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
1549 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
1550 INFRUN_SCOPED_DEBUG_START_END.
1551 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
1553 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
1555 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
1557 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
1559 * utils.c (vfprintf_unfiltered): Print timestamp only when
1560 previous debug output ended with a newline.
1562 2021-01-04 Luis Machado <luis.machado@linaro.org>
1564 Update all users of trad_frame_saved_reg to use the new member
1567 Remote all struct keywords from declarations of trad_frame_saved_reg
1568 types, except on forward declarations.
1570 * aarch64-tdep.c: Update.
1571 * alpha-mdebug-tdep.c: Update.
1572 * alpha-tdep.c: Update.
1573 * arc-tdep.c: Update.
1574 * arm-tdep.c: Update.
1575 * avr-tdep.c: Update.
1576 * cris-tdep.c: Update.
1577 * csky-tdep.c: Update.
1578 * frv-tdep.c: Update.
1579 * hppa-linux-tdep.c: Update.
1580 * hppa-tdep.c: Update.
1581 * hppa-tdep.h: Update.
1582 * lm32-tdep.c: Update.
1583 * m32r-linux-tdep.c: Update.
1584 * m32r-tdep.c: Update.
1585 * m68hc11-tdep.c: Update.
1586 * mips-tdep.c: Update.
1587 * moxie-tdep.c: Update.
1588 * riscv-tdep.c: Update.
1589 * rs6000-tdep.c: Update.
1590 * s390-linux-tdep.c: Update.
1591 * s390-tdep.c: Update.
1592 * score-tdep.c: Update.
1593 * sparc-netbsd-tdep.c: Update.
1594 * sparc-sol2-tdep.c: Update.
1595 * sparc64-fbsd-tdep.c: Update.
1596 * sparc64-netbsd-tdep.c: Update.
1597 * sparc64-obsd-tdep.c: Update.
1598 * sparc64-sol2-tdep.c: Update.
1599 * tilegx-tdep.c: Update.
1600 * v850-tdep.c: Update.
1601 * vax-tdep.c: Update.
1603 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
1604 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
1606 * trad-frame.c: Update.
1607 Remove TF_REG_* enum.
1608 (trad_frame_alloc_saved_regs): Add a static assertion to check for
1609 a trivially-constructible struct.
1610 (trad_frame_reset_saved_regs): Adjust to use member function.
1611 (trad_frame_value_p): Likewise.
1612 (trad_frame_addr_p): Likewise.
1613 (trad_frame_realreg_p): Likewise.
1614 (trad_frame_value_bytes_p): Likewise.
1615 (trad_frame_set_value): Likewise.
1616 (trad_frame_set_realreg): Likewise.
1617 (trad_frame_set_addr): Likewise.
1618 (trad_frame_set_unknown): Likewise.
1619 (trad_frame_set_value_bytes): Likewise.
1620 (trad_frame_get_prev_register): Likewise.
1621 * trad-frame.h: Update.
1622 (trad_frame_saved_reg_kind): New enum.
1623 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
1624 <m_kind, m_reg>: New member fields.
1625 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
1626 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
1627 <is_addr, is_unknown, is_value_bytes>: New member functions.
1629 2021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
1631 * target-float.c: Fix typos.
1633 2021-01-02 Hannes Domani <ssbssa@yahoo.de>
1635 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
1637 2021-01-01 Joel Brobecker <brobecker@adacore.com>
1639 * gdbarch.sh: Update copyright year range.
1641 2021-01-01 Joel Brobecker <brobecker@adacore.com>
1643 Update copyright year range in copyright header of all GDB files.
1645 2021-01-01 Joel Brobecker <brobecker@adacore.com>
1647 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
1648 to the list of directories to update.
1650 2021-01-01 Joel Brobecker <brobecker@adacore.com>
1652 * top.c (print_gdb_version): Update copyright year.
1654 2021-01-01 Joel Brobecker <brobecker@adacore.com>
1656 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
1658 For older changes see ChangeLog-2020.
1664 version-control: never