My initial goal was to fix our gdb/testsuite/lib/tuiterm.exp such that it would correctly support (some limited) scrolling of the command window. What I observe is that when sending commands to the tui command window in a test script with: Term::command "p 1" The command window would be left looking like this: (gdb) (gdb) p 1$1 = 1 (gdb) When I would have expected it to look like this: (gdb) p 1 $1 = 1 (gdb) Obviously a bug in our tuiterm.exp library, right??? Wrong! Turns out there's a bug in GDB. If in GDB I enable the tui and then type (slowly) the 'p 1\r' (the \r is pressing the return key at the end of the string), then you do indeed get the "expected" terminal output. However, if instead I copy the 'p 1\r' string and paste it into the tui in one go then I now see the same corrupted output as we do when using tuiterm.exp. It turns out the problem is that GDB fails when handling lots of input arriving quickly with a \r (or \n) on the end. The reason for this bug is as follows: When the tui is active the terminal is in no-echo mode, so characters sent to the terminal are not echoed out again. This means that when the user types \r, this is not echoed to the terminal. The characters read in are passed to readline and \r indicates that the command line is complete and ready to be processed. However, the \r is not included in readlines command buffer, and is NOT printed by readline when is displays its buffer to the screen. So, in GDB we have to manually spot the \r when it is read in and update the display. Printing a newline character to the output and moving the cursor to the next line. This is done in tui_getc_1. Now readline tries to reduce the number of write calls. So if we very quickly (as in paste in one go) the text 'p 1' to readline (this time with no \r on the end), then readline will fetch the fist character and add it to its internal buffer. But before printing the character out readline checks to see if there's more input incoming. As we pasted multiple characters, then yes, readline sees the ' ' and adds this to its buffer, and finally the '1', this too is added to the buffer. Now if at this point we take a break, readline sees there is no more input available, and so prints its buffer out. Now when we press \r the code in tui_getc_1 kicks in, adds a \n to the output and moves the cursor to the next line. But, if instead we paste 'p 1\r' in one go then readline adds 'p 1' to its buffer as before, but now it sees that there is still more input available. Now it fetches the '\r', but this triggers the newline behaviour, we print '\n' and move to the next line - however readline has not printed its buffer yet! So finally we end up on the next line. There's no more input available so readline prints its buffer, then GDB gets passed the buffer, handles it, and prints the result. The solution I think is to put of our special newline insertion code until we know that readline has finished printing its buffer. Handily we know when this is - the next thing readline does is pass us the command line buffer for processing. So all we need to do is hook in to the command line processing, and before we pass the command line to GDB's internals we do all of the magic print a newline and move the cursor to the next line stuff. Luckily, GDB's interpreter mechanism already provides the hooks we need to do this. So all I do here is move the newline printing code from tui_getc_1 into a new function, setup a new input_handler hook for the tui, and call my new newline printing function. After this I can enable the tui and paste in 'p 1\r' and see the correct output. Also the tuiterm.exp library will now see non-corrupted output. gdb/ChangeLog: * tui/tui-interp.c (tui_command_line_handler): New function. (tui_interp::resume): Register tui_command_line_handler as the input_handler. * tui/tui-io.c (tui_inject_newline_into_command_window): New function. (tui_getc_1): Delete handling of '\n' and '\r'. * tui-io.h (tui_inject_newline_into_command_window): Declare. gdb/testsuite/ChangeLog: * gdb.tui/scroll.exp: Tighten expected results. Remove comment about bug in GDB, update expected results, and add more tests.
1278 lines
44 KiB
Plaintext
1278 lines
44 KiB
Plaintext
2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* tui/tui-interp.c (tui_command_line_handler): New function.
|
||
(tui_interp::resume): Register tui_command_line_handler as the
|
||
input_handler.
|
||
* tui/tui-io.c (tui_inject_newline_into_command_window): New
|
||
function.
|
||
(tui_getc_1): Delete handling of '\n' and '\r'.
|
||
* tui-io.h (tui_inject_newline_into_command_window): Declare.
|
||
|
||
2021-02-07 Hannes Domani <ssbssa@yahoo.de>
|
||
|
||
* tui/tui-regs.c (tui_data_window::display_registers_from):
|
||
Mark invisible register sub windows.
|
||
(tui_data_window::check_register_values): Ignore invisible
|
||
register sub windows.
|
||
|
||
2021-02-07 Hannes Domani <ssbssa@yahoo.de>
|
||
|
||
* tui/tui-regs.c (tui_data_item_window::rerender): Don't call
|
||
n_spaces with a negative value.
|
||
|
||
2021-02-07 Hannes Domani <ssbssa@yahoo.de>
|
||
|
||
* tui/tui-regs.c (tui_data_window::display_registers_from):
|
||
Add refresh_window call.
|
||
|
||
2021-02-07 Hannes Domani <ssbssa@yahoo.de>
|
||
|
||
* python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
|
||
|
||
2021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* symmisc.c (std_in, std_out, std_err): Remove.
|
||
(_initialize_symmisc): Don't set std_in, std_out and std_err.
|
||
|
||
2021-02-05 Tom de Vries <tdevries@suse.de>
|
||
|
||
PR breakpoints/27330
|
||
* breakpoint.c (create_exception_master_breakpoint): Handle case that
|
||
glibc object file has debug info.
|
||
|
||
2021-02-05 Tom de Vries <tdevries@suse.de>
|
||
|
||
PR symtab/27333
|
||
* dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
|
||
|
||
2021-02-05 Tom de Vries <tdevries@suse.de>
|
||
|
||
PR breakpoints/27313
|
||
* break-catch-syscall.c (catch_syscall_split_args): Reject negative
|
||
syscall numbers.
|
||
|
||
2021-02-05 Tom Tromey <tom@tromey.com>
|
||
|
||
* compile/compile-c-support.c (get_compile_context)
|
||
(c_get_compile_context, cplus_get_compile_context): Change return
|
||
type.
|
||
* language.c (language_defn::get_compile_instance): New method.
|
||
* language.h (language_defn::get_compile_instance): Change return
|
||
type. No longer inline.
|
||
* c-lang.c (c_language::get_compile_instance): Change return type.
|
||
(cplus_language::get_compile_instance): Change return type.
|
||
* c-lang.h (c_get_compile_context, cplus_get_compile_context):
|
||
Change return type.
|
||
* compile/compile.c (compile_to_object): Update.
|
||
|
||
2021-02-05 Tom Tromey <tom@tromey.com>
|
||
|
||
* parser-defs.h (write_exp_symbol_reference): Declare.
|
||
* parse.c (write_exp_symbol_reference): New function.
|
||
* p-exp.y (variable): Use write_exp_symbol_reference.
|
||
* m2-exp.y (variable): Use write_exp_symbol_reference.
|
||
* f-exp.y (variable): Use write_exp_symbol_reference.
|
||
* d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
|
||
* c-exp.y (variable): Use write_exp_symbol_reference.
|
||
|
||
2021-02-05 Tom de Vries <tdevries@suse.de>
|
||
|
||
PR exp/27265
|
||
* valarith.c (complex_binop): Throw an error if complex type can't
|
||
be created.
|
||
|
||
2021-02-05 Tom de Vries <tdevries@suse.de>
|
||
|
||
PR symtab/27307
|
||
* dwarf2/read.c (create_cus_from_debug_names_list): Add missing
|
||
return.
|
||
|
||
2021-02-05 Tom de Vries <tdevries@suse.de>
|
||
|
||
* dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
|
||
|
||
2021-02-04 Mike Frysinger <vapier@gentoo.org>
|
||
|
||
* configure.tgt (riscv*-*-*): Set gdb_sim.
|
||
|
||
2021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* target.c (target_is_non_stop_p): Return bool.
|
||
* target.h (target_is_non_stop_p): Return bool.
|
||
|
||
2021-02-04 Simon Marchi <simon.marchi@efficios.com>
|
||
|
||
* record-full.c (record_full_async_inferior_event_handler):
|
||
Don't clear async event handler.
|
||
(record_full_base_target::wait): Clear async event handler at
|
||
beginning.
|
||
|
||
2021-02-04 Simon Marchi <simon.marchi@efficios.com>
|
||
|
||
* record-btrace.c (record_btrace_handle_async_inferior_event):
|
||
Don't clear async event handler.
|
||
(record_btrace_target::wait): Clear async event handler at
|
||
beginning.
|
||
|
||
2021-02-04 Simon Marchi <simon.marchi@efficios.com>
|
||
|
||
* remote.c (remote_target::wait): Clear async event handler at
|
||
beginning, mark if needed at the end.
|
||
(remote_async_inferior_event_handler): Don't set or clear async
|
||
event handler.
|
||
|
||
2021-02-04 Simon Marchi <simon.marchi@efficios.com>
|
||
|
||
* async-event.h (async_event_handler_func): Add documentation.
|
||
* async-event.c (check_async_event_handlers): Don't clear
|
||
async_event_handler ready flag.
|
||
* infrun.c (infrun_async_inferior_event_handler): Clear ready
|
||
flag.
|
||
* record-btrace.c (record_btrace_handle_async_inferior_event):
|
||
Likewise.
|
||
* record-full.c (record_full_async_inferior_event_handler):
|
||
Likewise.
|
||
* remote-notif.c (remote_async_get_pending_events_handler):
|
||
Likewise.
|
||
* remote.c (remote_async_inferior_event_handler): Likewise.
|
||
|
||
2021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* infrun.c (handle_inferior_event): Move stop_soon variable to
|
||
inner scope.
|
||
|
||
2021-02-03 Pedro Alves <pedro@palves.net>
|
||
|
||
* infcmd.c (detach_command): Hold strong reference to target, and
|
||
if all-stop on entry, restart threads on exit.
|
||
* infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
|
||
(restart_stepped_thread): ... this new function. Also handle
|
||
trap_expected.
|
||
(restart_after_all_stop_detach): New function.
|
||
* infrun.h (restart_after_all_stop_detach): Declare.
|
||
|
||
2021-02-03 Pedro Alves <pedro@palves.net>
|
||
|
||
* infrun.c (struct step_over_info): Initialize fields.
|
||
(prepare_for_detach): Handle ongoing in-line step over.
|
||
|
||
2021-02-03 Pedro Alves <pedro@palves.net>
|
||
|
||
* linux-nat.c (linux_nat_target::detach): Remove breakpoints
|
||
here...
|
||
* remote.c (remote_target::remote_detach_1): ... and here ...
|
||
* target.c (target_detach): ... instead of here.
|
||
* target.h (target_ops::detach): Add comment.
|
||
|
||
2021-02-03 Pedro Alves <pedro@palves.net>
|
||
|
||
* infrun.c (struct wait_one_event): Move higher up.
|
||
(prepare_for_detach): Abort in-progress displaced steps instead of
|
||
letting them complete.
|
||
(handle_one): If the inferior is detaching, don't add the thread
|
||
back to the global step-over chain.
|
||
(restart_threads): Don't restart threads if detaching.
|
||
(handle_signal_stop): Remove inferior::detaching reference.
|
||
|
||
2021-02-03 Pedro Alves <pedro@palves.net>
|
||
|
||
* infrun.c (prepare_for_detach): Don't release scoped_restore
|
||
before returning.
|
||
|
||
2021-02-03 Pedro Alves <pedro@palves.net>
|
||
|
||
* infrun.c (handle_one): New function, factored out from ...
|
||
(stop_all_threads): ... here.
|
||
|
||
2021-02-03 Pedro Alves <pedro@palves.net>
|
||
|
||
* remote.c (remote_notif_stop_ack): Don't error out on
|
||
TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
|
||
(remote_target::discard_pending_stop_replies): Don't delete
|
||
in-flight notification; instead, clear its contents.
|
||
|
||
2021-02-03 Pedro Alves <pedro@palves.net>
|
||
|
||
* remote.c (extended_remote_target::attach): Set target async in
|
||
the target-non-stop path too.
|
||
|
||
2021-02-03 Pedro Alves <pedro@palves.net>
|
||
|
||
PR gdb/27055
|
||
* infrun.c (handle_signal_stop): Move main context_switch call
|
||
earlier, before STOP_QUIETLY_NO_SIGSTOP.
|
||
|
||
2021-02-02 Lancelot SIX <lsix@lancelotsix.com>
|
||
|
||
* NEWS (Changed commands): Add entry for the behavior change of
|
||
the inferior command.
|
||
* inferior.c (inferior_command): When no argument is given to the
|
||
inferior command, display info about the currently selected
|
||
inferior.
|
||
|
||
2021-02-02 Simon Marchi <simon.marchi@efficios.com>
|
||
|
||
* dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
|
||
a sect_offset.
|
||
(read_attribute_reprocess): Adjust.
|
||
|
||
2021-02-02 Simon Marchi <simon.marchi@efficios.com>
|
||
|
||
* dwarf2/die.h (struct die_info) <ranges_base>: Split in...
|
||
<gnu_ranges_base>: ... this...
|
||
<rnglists_base>: ... and this.
|
||
* dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
|
||
<gnu_ranges_base>: ... this...
|
||
<rnglists_base>: ... and this.
|
||
(read_cutu_die_from_dwo): Adjust
|
||
(dwarf2_get_pc_bounds): Adjust
|
||
(dwarf2_record_block_ranges): Adjust.
|
||
(read_full_die_1): Adjust
|
||
(partial_die_info::read): Adjust.
|
||
(read_rnglist_index): Adjust.
|
||
|
||
2021-02-02 Simon Marchi <simon.marchi@efficios.com>
|
||
|
||
PR gdb/26813
|
||
* dwarf2/read.c (read_loclists_rnglists_header): Add
|
||
header_offset parameter and use it.
|
||
(read_loclist_index): Read header of the current contribution,
|
||
not the one at the beginning of the section.
|
||
(read_rnglist_index): Likewise.
|
||
|
||
2021-02-02 Simon Marchi <simon.marchi@efficios.com>
|
||
|
||
PR gdb/26813
|
||
* dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
|
||
requires_reprocessing flag.
|
||
* dwarf2/attribute.c (attribute::form_is_unsigned): Handle
|
||
DW_FORM_loclistx.
|
||
(attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
|
||
and DW_FORM_loclistx.
|
||
* dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
|
||
instead of set_address for DW_FORM_loclistx and
|
||
DW_FORM_rnglistx.
|
||
|
||
2021-02-02 Simon Marchi <simon.marchi@efficios.com>
|
||
|
||
* dwarf2/read.c (read_loclist_index): Remove bound check for
|
||
start of offset.
|
||
(read_rnglist_index): Likewise.
|
||
|
||
2021-02-02 Simon Marchi <simon.marchi@efficios.com>
|
||
|
||
* dwarf2/read.c (read_loclist_index): Add bound check for the end
|
||
of the offset.
|
||
|
||
2021-02-02 Simon Marchi <simon.marchi@efficios.com>
|
||
|
||
* dwarf2/read.c (read_rnglist_index): Fix bound check.
|
||
|
||
2021-02-02 Simon Marchi <simon.marchi@efficios.com>
|
||
|
||
* dwarf2/read.c (read_loclist_index): Change complaints into
|
||
errors.
|
||
|
||
2021-02-02 Tom de Vries <tdevries@suse.de>
|
||
|
||
PR symtab/24620
|
||
* dwarf2/index-write.c (write_one_signatured_type): Skip if
|
||
psymtab == nullptr.
|
||
|
||
2021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
|
||
* gcore.c (struct gcore_collect_regset_section_cb_data): Moved
|
||
here from linux-tdep.c and given a new name. Minor cleanups.
|
||
(gcore_collect_regset_section_cb): Likewise.
|
||
(gcore_collect_thread_registers): Likewise.
|
||
(gcore_build_thread_register_notes): Likewise.
|
||
(gcore_find_signalled_thread): Likewise.
|
||
* gcore.h (gcore_build_thread_register_notes): Declare.
|
||
(gcore_find_signalled_thread): Declare.
|
||
* fbsd-tdep.c: Add 'gcore.h' include.
|
||
(struct fbsd_collect_regset_section_cb_data): Delete.
|
||
(fbsd_collect_regset_section_cb): Delete.
|
||
(fbsd_collect_thread_registers): Delete.
|
||
(struct fbsd_corefile_thread_data): Delete.
|
||
(fbsd_corefile_thread): Delete.
|
||
(fbsd_make_corefile_notes): Call
|
||
gcore_build_thread_register_notes instead of the now deleted
|
||
FreeBSD code.
|
||
* linux-tdep.c: Add 'gcore.h' include.
|
||
(struct linux_collect_regset_section_cb_data): Delete.
|
||
(linux_collect_regset_section_cb): Delete.
|
||
(linux_collect_thread_registers): Delete.
|
||
(linux_corefile_thread): Call
|
||
gcore_build_thread_register_notes.
|
||
(find_signalled_thread): Delete.
|
||
(linux_make_corefile_notes): Call gcore_find_signalled_thread.
|
||
|
||
2021-01-29 Tom de Vries <tdevries@suse.de>
|
||
|
||
PR breakpoints/26063
|
||
* infrun.c (process_event_stop_test): Reset
|
||
ecs->event_thread->current_line to 0 if is-stmt=n and frame has
|
||
changed.
|
||
|
||
2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
|
||
assert. Extend the header comment.
|
||
|
||
2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
|
||
(HFILES_NO_SRCDIR): Add tui/tui-location.h.
|
||
* tui/tui-data.h (TUI_STATUS_WIN): Define.
|
||
(tui_locator_win_info_ptr): Delete declaration.
|
||
* tui/tui-disasm.c: Add 'tui/tui-location.h' include.
|
||
(tui_disasm_window::set_contents): Fetch state from tui_location
|
||
global.
|
||
(tui_get_begin_asm_address): Likewise.
|
||
* tui/tui-layout.c (tui_apply_current_layout): Remove special case
|
||
for locator window.
|
||
(get_locator_window): Delete.
|
||
(initialize_known_windows): Treat locator window just like all the
|
||
rest.
|
||
* tui/tui-source.c: Add 'tui/tui-location.h' include.
|
||
(tui_source_window::set_contents): Fetch state from tui_location
|
||
global.
|
||
(tui_source_window::showing_source_p): Likewise.
|
||
* tui/tui-stack.c: Add 'tui/tui-location.h' include.
|
||
(_locator): Delete.
|
||
(tui_locator_win_info_ptr): Delete.
|
||
(tui_locator_window::make_status_line): Fetch state from
|
||
tui_location global.
|
||
(tui_locator_window::rerender): Remove check of 'handle',
|
||
reindent function body.
|
||
(tui_locator_window::set_locator_fullname): Delete.
|
||
(tui_locator_window::set_locator_info): Delete.
|
||
(tui_update_locator_fullname): Delete.
|
||
(tui_show_frame_info): Likewise.
|
||
(tui_show_locator_content): Access window through TUI_STATUS_WIN.
|
||
* tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
|
||
tui/tui-location.h and renamed to
|
||
tui_location_tracker::set_location.
|
||
(tui_locator_window::set_locator_fullname): Moved to
|
||
tui/tui-location.h and renamed to
|
||
tui_location_tracker::set_fullname.
|
||
(tui_locator_window::full_name): Delete.
|
||
(tui_locator_window::proc_name): Delete.
|
||
(tui_locator_window::line_no): Delete.
|
||
(tui_locator_window::addr): Delete.
|
||
(tui_locator_window::gdbarch): Delete.
|
||
(tui_update_locator_fullname): Delete declaration.
|
||
* tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
|
||
for locator window.
|
||
* tui/tui-winsource.c: Add 'tui/tui-location.h' include.
|
||
(tui_display_main): Call function on tui_location directly.
|
||
* tui/tui.h (enum tui_win_type): Add STATUS_WIN.
|
||
* tui/tui-location.c: New file.
|
||
* tui/tui-location.h: New file.
|
||
|
||
2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* gdbtypes.h (get_type_arch): Rename to...
|
||
(struct type) <arch>: ... this, update all users.
|
||
|
||
2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* gdbtypes.h (struct type) <arch>: Rename to...
|
||
<arch_owner>: ... this, update all users.
|
||
<objfile>: Rename to...
|
||
<objfile_owner>: ... this, update all users.
|
||
|
||
2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* gdbcmd.h (execute_command_to_string): Update comment.
|
||
* top.c (execute_command_to_string): Update header comment.
|
||
|
||
2021-01-28 Tom de Vries <tdevries@suse.de>
|
||
|
||
PR breakpoints/27205
|
||
* breakpoint.c (create_longjmp_master_breakpoint_probe)
|
||
(create_longjmp_master_breakpoint_names): New function, factored out
|
||
of ...
|
||
(create_longjmp_master_breakpoint): ... here. Only try to install
|
||
longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
|
||
breakpoint in libc.so failed.
|
||
|
||
2021-01-27 Lancelot SIX <lsix@lancelotsix.com>
|
||
|
||
PR gdb/27133
|
||
* cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
|
||
unique_ptr is released when the wrapped pointer is kept for later
|
||
use.
|
||
|
||
2021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
|
||
|
||
* aarch64-tdep.c (aarch64_displaced_step_others): Account for
|
||
BLR and BR instructions.
|
||
* arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
|
||
(enum aarch64_masks): New.
|
||
|
||
2021-01-26 Tom Tromey <tromey@adacore.com>
|
||
|
||
* windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
|
||
(DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
|
||
(windows_init_thread_list, windows_nat::handle_load_dll)
|
||
(windows_nat::handle_unload_dll, windows_nat_target::resume)
|
||
(windows_nat_target::resume)
|
||
(windows_nat_target::get_windows_debug_event)
|
||
(windows_nat_target::interrupt, windows_xfer_memory)
|
||
(windows_nat_target::close): Update.
|
||
* nat/windows-nat.c (DEBUG_EVENTS): Use
|
||
debug_prefixed_printf_cond.
|
||
(matching_pending_stop, fetch_pending_stop)
|
||
(continue_last_debug_event): Update.
|
||
|
||
2020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
|
||
|
||
* linux-tdep.c (linux_make_mappings_corefile_notes): Start using
|
||
elfcore_write_file_note.
|
||
|
||
2021-01-26 Shahab Vahedi <shahab@synopsys.com>
|
||
|
||
* arc-tdep.c (arc_add_reggroups): New function.
|
||
(arc_gdbarch_init): Call arc_add_reggroups.
|
||
|
||
2021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
|
||
|
||
* arc-tdep.c (arc_skip_prologue): Log "pc" address.
|
||
|
||
2021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
|
||
Simon Marchi <simon.marchi@polymtl.ca>
|
||
Tom de Vries <tdevries@suse.de>
|
||
|
||
* dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
|
||
DW_AT_ranges.
|
||
|
||
2021-01-25 Tom Tromey <tromey@adacore.com>
|
||
|
||
* dwarf2/read.c (get_mpz): New function.
|
||
(get_dwarf2_rational_constant): Use it.
|
||
|
||
2021-01-25 Tom Tromey <tromey@adacore.com>
|
||
|
||
* ada-lang.c (resolve_subexp): Handle array context.
|
||
|
||
2021-01-23 Tom Tromey <tom@tromey.com>
|
||
|
||
PR compile/25575
|
||
* compile/compile-loc2c.c (note_register): New function.
|
||
(pushf_register_address, pushf_register): Use it.
|
||
|
||
2021-01-23 Tom Tromey <tom@tromey.com>
|
||
|
||
* symtab.h (struct symbol_computed_ops) <generate_c_location>:
|
||
Change type of "registers_used".
|
||
* dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
|
||
* dwarf2/loc.c (dwarf2_compile_property_to_c)
|
||
(locexpr_generate_c_location, loclist_generate_c_location): Change
|
||
type of "registers_used".
|
||
* compile/compile.h (compile_dwarf_expr_to_c)
|
||
(compile_dwarf_bounds_to_c): Update.
|
||
* compile/compile-loc2c.c (pushf_register_address)
|
||
(pushf_register, do_compile_dwarf_expr_to_c)
|
||
(compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
|
||
of "registers_used".
|
||
* compile/compile-c.h (generate_c_for_variable_locations):
|
||
Update.
|
||
* compile/compile-c-symbols.c (generate_vla_size)
|
||
(generate_c_for_for_one_variable): Change type of
|
||
"registers_used".
|
||
(generate_c_for_variable_locations): Return std::vector.
|
||
* compile/compile-c-support.c (generate_register_struct): Change
|
||
type of "registers_used".
|
||
(compute): Update.
|
||
|
||
2021-01-23 Tom Tromey <tom@tromey.com>
|
||
|
||
* compile/compile-internal.h (class compile_instance)
|
||
<set_arguments>: Change return type.
|
||
* compile/compile.c (compile_to_object): Remove call to reset.
|
||
(compile_instance::set_arguments): Change return type.
|
||
|
||
2021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* gdbtypes.c (copy_type_recursive): Use get_type_arch.
|
||
* gdbtypes.h (struct type) <set_owner>: Add asserts.
|
||
|
||
2021-01-23 Lancelot SIX <lsix@lancelotsix.com>
|
||
|
||
* Makefile.in (SELFTESTS_SRCS): Add
|
||
unittests/gdb_tilde_expand-selftests.c.
|
||
* unittests/gdb_tilde_expand-selftests.c: New file.
|
||
|
||
2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
PR cli/25956
|
||
* NEWS: Mention new command.
|
||
* cli/cli-style.c: Add 'cli/cli-setshow.h' include.
|
||
(version_style): Define.
|
||
(cli_style_option::cli_style_option): Add intensity parameter, and
|
||
use as appropriate.
|
||
(_initialize_cli_style): Register version style set/show commands.
|
||
* cli/cli-style.h (cli_style_option): Add intensity parameter.
|
||
(version_style): Declare.
|
||
* top.c (print_gdb_version): Use version_stype, and styled_string
|
||
to print the GDB version string.
|
||
|
||
2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* utils.c (emit_style_escape): Only emit an escape sequence if the
|
||
requested style is different than the current applied style.
|
||
(fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
|
||
current applied_style.
|
||
(fputs_styled): Remove is_default check.
|
||
(fputs_styled_unfiltered): Likewise.
|
||
(vfprintf_styled_no_gdbfmt): Likewise.
|
||
|
||
2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* remote.h (remote_debug_printf): New.
|
||
(remote_debug_printf_nofunc): New.
|
||
(REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
|
||
* remote.c: Use above macros throughout file.
|
||
|
||
2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* remote.h (remote_debug): Change to bool.
|
||
* remote.c (remote_debug): Change to bool.
|
||
(_initialize_remote): Adjust.
|
||
|
||
2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* target.h (remote_debug): Move to...
|
||
* remote.h (remote_debug): ... here.
|
||
* top.c (remote_debug): Move to...
|
||
* remote.c (remote_debug): ... here.
|
||
* remote-sim.c: Include remote.h.
|
||
|
||
2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* cli/cli-cmds.c (show_remote_debug): Remove.
|
||
(show_remote_timeout): Remove.
|
||
(_initialize_cli_cmds): Don't register commands.
|
||
* remote.c (show_remote_debug): Move here.
|
||
(show_remote_timeout): Move here.
|
||
(_initialize_remote): Register commands.
|
||
|
||
2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
|
||
type::objfile method instead.
|
||
|
||
2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
|
||
use the type::is_objfile_owned method.
|
||
|
||
2021-01-22 Simon Marchi <simon.marchi@efficios.com>
|
||
|
||
* gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
|
||
(TYPE_OWNER): Remove.
|
||
(TYPE_OBJFILE): Adjust.
|
||
(struct main_type) <flag_objfile_owned>: Rename to...
|
||
<m_flag_objfile_owned>: ... this.
|
||
<owner>: Rename to...
|
||
<m_owner>: ... this.
|
||
(struct type) <is_objfile_owned, set_owner, objfile, arch>: New
|
||
methods.
|
||
(TYPE_ALLOC): Adjust.
|
||
* gdbtypes.c (alloc_type): Adjust.
|
||
(alloc_type_arch): Adjust.
|
||
(alloc_type_copy): Adjust.
|
||
(get_type_arch): Adjust.
|
||
(smash_type): Adjust.
|
||
(lookup_array_range_type): Adjust.
|
||
(recursive_dump_type): Adjust.
|
||
(copy_type_recursive): Adjust.
|
||
* compile/compile-c-types.c (convert_func): Adjust.
|
||
(convert_type_basic): Adjust.
|
||
* compile/compile-cplus-types.c (compile_cplus_convert_func):
|
||
Adjust.
|
||
* language.c
|
||
(language_arch_info::type_and_symbol::alloc_type_symbol):
|
||
Adjust.
|
||
|
||
2021-01-21 Luis Machado <luis.machado@linaro.org>
|
||
|
||
* coffread.c (enter_linenos): Passing string to complaint.
|
||
* valops.c (value_assign): Make array view.
|
||
|
||
2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* auto-load.h (debug_auto_load): Move here.
|
||
(auto_load_debug_printf): New.
|
||
* auto-load.c: Use auto_load_debug_printf.
|
||
(debug_auto_load): Move to header.
|
||
* linux-thread-db.c (try_thread_db_load): Use
|
||
auto_load_debug_printf.
|
||
* main.c (captured_main_1): Likewise.
|
||
|
||
2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* f-valprint.c (f77_array_offset_tbl): Remove.
|
||
|
||
2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
|
||
|
||
2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* ser-tcp.c (wait_for_connect): Use interruptible_select instead
|
||
of gdb_select.
|
||
|
||
2021-01-21 Hannes Domani <ssbssa@yahoo.de>
|
||
|
||
PR python/19151
|
||
* python/py-breakpoint.c (bppy_get_location): Handle
|
||
bp_hardware_breakpoint.
|
||
(bppy_init): Likewise.
|
||
(gdbpy_breakpoint_created): Likewise.
|
||
|
||
2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* arm-tdep.c (arm_debug_printf): Add and use throughout file.
|
||
|
||
2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* gdb_bfd.c (debug_bfd_cache): Change type to bool.
|
||
(_initialize_gdb_bfd): Adjust.
|
||
|
||
2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
PR gdb/26828
|
||
* dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
|
||
|
||
2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* dwarf2/read.c (follow_die_offset): Add logging.
|
||
(dwarf2_per_objfile::age_comp_units): Add logging.
|
||
|
||
2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
|
||
* aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
|
||
aarch64_stub_unwind, aarch64_normal_base, ): Make static.
|
||
* arm-linux-tdep.c (arm_prologue_unwind): Make static.
|
||
* arm-tdep.c (struct frame_unwind): Make static.
|
||
* auto-load.c (auto_load_safe_path_vec): Make static.
|
||
* csky-tdep.c (csky_stub_unwind): Make static.
|
||
* gdbarch.c (gdbarch_data_registry): Make static.
|
||
* gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
|
||
* i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
|
||
* i386-tdep.c (i386_frame_setup_skip_insns,
|
||
i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
|
||
Make static.
|
||
* infrun.c (observer_mode): Make static.
|
||
* linux-nat.c (sigchld_action): Make static.
|
||
* linux-thread-db.c (thread_db_list): Make static.
|
||
* maint-test-options.c (maintenance_test_options_list):
|
||
* mep-tdep.c (mep_csr_registers): Make static.
|
||
* mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
|
||
(stats): Make static.
|
||
* nat/linux-osdata.c (struct osdata_type): Make static.
|
||
* ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
|
||
* progspace.c (last_program_space_num): Make static.
|
||
* python/py-param.c (struct parm_constant): Remove struct type
|
||
name.
|
||
(parm_constants): Make static.
|
||
* python/py-record-btrace.c (btpy_list_methods): Make static.
|
||
* python/py-record.c (recpy_gap_type): Make static.
|
||
* record.c (record_goto_cmdlist): Make static.
|
||
* regcache.c (regcache_descr_handle): Make static.
|
||
* registry.h (DEFINE_REGISTRY): Make definition static.
|
||
* symmisc.c (std_in, std_out, std_err): Make static.
|
||
* top.c (previous_saved_command_line): Make static.
|
||
* tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
|
||
static.
|
||
* unittests/command-def-selftests.c (nr_duplicates,
|
||
nr_invalid_prefixcmd, lists): Make static.
|
||
* unittests/observable-selftests.c (test_notification): Make
|
||
static.
|
||
* unittests/optional/assignment/1.cc (counter): Make static.
|
||
* unittests/optional/assignment/2.cc (counter): Make static.
|
||
* unittests/optional/assignment/3.cc (counter): Make static.
|
||
* unittests/optional/assignment/4.cc (counter): Make static.
|
||
* unittests/optional/assignment/5.cc (counter): Make static.
|
||
* unittests/optional/assignment/6.cc (counter): Make static.
|
||
|
||
2021-01-20 Joel Sherrill <joel@rtems.org>
|
||
|
||
PR gdb/27219
|
||
* remote.c (struct remote_thread_info) <resume_state>: Rename
|
||
to...
|
||
<get_resume_state>: ... this.
|
||
(remote_target::resume): Adjust.
|
||
(remote_target::commit_resume): Adjust.
|
||
(remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
|
||
|
||
2021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
|
||
Tom Tromey <tom@tromey.com>
|
||
|
||
* stap-probe.c (stap_parse_single_operand): Handle '!'
|
||
operator.
|
||
(stap_parse_argument_conditionally): Likewise.
|
||
Skip spaces after processing open-parenthesis sub-expression.
|
||
(stap_parse_argument_1): Skip spaces after call to
|
||
stap_parse_argument_conditionally.
|
||
Handle case when right-side expression is a parenthesized
|
||
sub-expression.
|
||
Skip spaces after call to stap_parse_argument_1.
|
||
|
||
2021-01-19 Lancelot SIX <lsix@lancelotsix.com>
|
||
|
||
* top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
|
||
|
||
2021-01-19 Luis Machado <luis.machado@linaro.org>
|
||
|
||
* trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
|
||
memory and save data.
|
||
(trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
|
||
(trad_frame_set_unknown, trad_frame_set_value_bytes)
|
||
(trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
|
||
(trad_frame_value_bytes_p): Remove.
|
||
(trad_frame_reset_saved_regs): Adjust documentation.
|
||
* trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
|
||
constructor and reset the state of the registers.
|
||
(trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
|
||
(trad_frame_value_bytes_p, trad_frame_set_value)
|
||
(trad_frame_set_realreg, trad_frame_set_addr)
|
||
(trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
|
||
(trad_frame_set_reg_realreg): Update to call member function.
|
||
(trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
|
||
(trad_frame_get_prev_register): Likewise.
|
||
|
||
* aarch64-tdep.c (aarch64_analyze_prologue)
|
||
(aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
|
||
(aarch64_prologue_prev_register): Update to use member functions.
|
||
* alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
|
||
* alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
|
||
* arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
|
||
* arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
|
||
(arm_make_epilogue_frame_cache): Likewise.
|
||
* avr-tdep.c (avr_frame_unwind_cache)
|
||
(avr_frame_prev_register): Likewise.
|
||
* cris-tdep.c (cris_scan_prologue): Likewise.
|
||
* csky-tdep.c (csky_frame_unwind_cache): Likewise.
|
||
* frv-tdep.c (frv_analyze_prologue): Likewise.
|
||
* hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
|
||
* lm32-tdep.c (lm32_frame_cache): Likewise.
|
||
* m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
|
||
* m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
|
||
* mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
|
||
(mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
|
||
(reset_saved_regs): Adjust to set realreg.
|
||
* riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
|
||
call member functions.
|
||
* rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
|
||
* s390-tdep.c (s390_prologue_frame_unwind_cache)
|
||
(s390_backchain_frame_unwind_cache): Likewise.
|
||
* score-tdep.c (score7_analyze_prologue)
|
||
(score3_analyze_prologue, score_make_prologue_cache): Likewise.
|
||
* sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
|
||
* sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
|
||
* sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
|
||
* sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
|
||
* tilegx-tdep.c (tilegx_analyze_prologue)
|
||
(tilegx_frame_cache): Likewise.
|
||
* v850-tdep.c (v850_frame_cache): Likewise.
|
||
* vax-tdep.c (vax_frame_cache): Likewise.
|
||
|
||
2021-01-19 Luis Machado <luis.machado@linaro.org>
|
||
|
||
* frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
|
||
of buffer + length.
|
||
(put_frame_register_bytes): Likewise.
|
||
Adjust documentation.
|
||
(get_frame_memory): Pass a gdb::array_view instead of buffer + length.
|
||
(safe_frame_unwind_memory): Likewise.
|
||
* frame.c (get_frame_register_bytes, put_frame_register_bytes)
|
||
(get_frame_memory, safe_frame_unwind_memory): Adjust to use
|
||
gdb::array_view.
|
||
* amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
|
||
* amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
|
||
* amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
|
||
* arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
|
||
* cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
|
||
* dwarf2/loc.c (rw_pieced_value): Likewise.
|
||
* hppa-tdep.c (hppa_frame_cache): Likewise.
|
||
* i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
|
||
* i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
|
||
* i386-linux-tdep.c (i386_linux_sigtramp_start)
|
||
(i386_linux_rt_sigtramp_start): Likewise.
|
||
* i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
|
||
* i386-tdep.c (i386_register_to_value): Likewise.
|
||
* i387-tdep.c (i387_register_to_value): Likewise.
|
||
* ia64-tdep.c (ia64_register_to_value): Likewise.
|
||
* m32r-linux-tdep.c (m32r_linux_sigtramp_start)
|
||
(m32r_linux_rt_sigtramp_start): Likewise.
|
||
* m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
|
||
* m68k-tdep.c (m68k_register_to_value): Likewise.
|
||
* mips-tdep.c (mips_register_to_value)
|
||
(mips_value_to_register): Likewise.
|
||
* ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
|
||
(ppcfbsd_sigtramp_frame_cache): Likewise.
|
||
* ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
|
||
(ppcobsd_sigtramp_frame_cache): Likewise.
|
||
* rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
|
||
(rs6000_register_to_value): Likewise.
|
||
* tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
|
||
* tramp-frame.c (tramp_frame_start): Likewise.
|
||
* valops.c (value_assign): Likewise.
|
||
|
||
2021-01-19 Luis Machado <luis.machado@linaro.org>
|
||
|
||
* aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
|
||
array_view.
|
||
* trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
|
||
instead of buffer and size.
|
||
(trad_frame_set_reg_value_bytes): Likewise.
|
||
* trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
|
||
(trad_frame_set_value_bytes): Likewise.
|
||
|
||
2021-01-18 Mike Frysinger <vapier@gentoo.org>
|
||
|
||
* copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
|
||
|
||
2021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
|
||
(riscv_fbsd_gregset): Use riscv_supply_regset.
|
||
(riscv_fbsd_fpregset): Likewise.
|
||
* riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
|
||
(riscv_linux_fregset): Likewise.
|
||
* riscv-tdep.c (riscv_supply_regset): Define new function.
|
||
* riscv-tdep.h (riscv_supply_regset): Declare new function.
|
||
|
||
2021-01-18 Tom de Vries <tdevries@suse.de>
|
||
|
||
PR tdep/27172
|
||
* nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
|
||
New macro.
|
||
(compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
|
||
for SEGV_BNDERR.
|
||
|
||
2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* remote.c (class remote_target) <remote_hostio_send_command,
|
||
remote_hostio_parse_result>: Constify parameter.
|
||
(remote_hostio_parse_result): Likewise.
|
||
(remote_target::remote_hostio_send_command): Adjust.
|
||
(remote_target::remote_hostio_pread_vFile): Adjust.
|
||
(remote_target::fileio_readlink): Adjust.
|
||
(remote_target::fileio_fstat): Adjust.
|
||
|
||
2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* remote.c (remote_target::start_remote): Move wait_status to
|
||
narrower scope.
|
||
|
||
2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* remote.c (class remote_target):
|
||
<add_current_inferior_and_thread>: Constify parameter.
|
||
(stop_reply_extract_thread): Likewise.
|
||
(remote_target::get_current_thread): Likewise.
|
||
(remote_target::add_current_inferior_and_thread): Likewise.
|
||
|
||
2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* remote.c (class remote_target)
|
||
<remote_unpack_thread_info_response,
|
||
parse_threadlist_response>: Constify parameter and/or return
|
||
value and or local variable.
|
||
(stub_unpack_int): Likewise.
|
||
(unpack_nibble): Likewise.
|
||
(unpack_byte): Likewise.
|
||
(unpack_int): Likewise.
|
||
(unpack_string): Likewise.
|
||
(unpack_threadid): Likewise.
|
||
(remote_target::remote_unpack_thread_info_response): Likewise.
|
||
(remote_target::parse_threadlist_response): Likewise.
|
||
|
||
2021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
|
||
|
||
2021-01-14 Lancelot Six <lsix@lancelotsix.com>
|
||
|
||
* MAINTAINERS (Write After Approval): Add myself.
|
||
|
||
2021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
|
||
|
||
* trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
|
||
because is_trivially_default_constructible was first implemented with
|
||
gcc-5.
|
||
|
||
2021-01-14 Tom de Vries <tdevries@suse.de>
|
||
|
||
PR breakpoints/27151
|
||
* objfiles.h (in_plt_section): Handle .plt.sec.
|
||
|
||
2021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
PR gdb/26819
|
||
* remote.c
|
||
(remote_target::select_thread_for_ambiguous_stop_reply): New
|
||
member function.
|
||
(remote_target::process_stop_reply): Call
|
||
select_thread_for_ambiguous_stop_reply.
|
||
|
||
2021-01-13 Simon Marchi <simon.marchi@efficios.com>
|
||
|
||
* record-btrace.c (class record_btrace_target): Remove.
|
||
(record_btrace_target::commit_resume): Remove.
|
||
* record-full.c (class record_full_target): Remove.
|
||
(record_full_target::commit_resume): Remove.
|
||
|
||
2021-01-13 Simon Marchi <simon.marchi@efficios.com>
|
||
|
||
* remote.c (enum class resume_state): New.
|
||
(struct resumed_pending_vcont_info): New.
|
||
(struct remote_thread_info) <resume_state, set_not_resumed,
|
||
set_resumed_pending_vcont, resumed_pending_vcont_info,
|
||
set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
|
||
New.
|
||
<last_resume_step, last_resume_sig, vcont_resumed>: Remove.
|
||
(remote_target::remote_add_thread): Adjust.
|
||
(remote_target::process_initial_stop_replies): Adjust.
|
||
(remote_target::resume): Adjust.
|
||
(remote_target::commit_resume): Rely on state in
|
||
remote_thread_info and not on tp->executing.
|
||
(remote_target::process_stop_reply): Adjust.
|
||
|
||
2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* arc-tdep.h (arc_debug_printf): New.
|
||
* arc-tdep.c: Use arc_debug_printf.
|
||
* arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
|
||
* arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
|
||
* arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
|
||
|
||
2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* arc-tdep.h (arc_debug): Change type to bool.
|
||
* arc-tdep.c (arc_debug): Change type to bool.
|
||
(arc_analyze_prologue): Adjust.
|
||
(_initialize_arc_tdep): Use add_setshow_boolean_cmd.
|
||
* arc-linux-nat.c (ps_get_thread_area): Adjust.
|
||
|
||
2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* auto-load.c (auto_load_objfile_script_1): Use bool.
|
||
(execute_script_contents): Use bool.
|
||
|
||
2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
|
||
comment here.
|
||
* auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
|
||
comment to header.
|
||
* extension-priv.h (struct extension_language_script_ops)
|
||
<auto_load_enabled>: Return bool.
|
||
* extension.h (ext_lang_auto_load_enabled): Return bool, move
|
||
comment here.
|
||
* extension.c (ext_lang_auto_load_enabled): Return bool, move
|
||
comment to header.
|
||
* guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
|
||
move comment here.
|
||
* guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
|
||
move comment to header.
|
||
* python/python-header.h (gdbpy_auto_load_enabled): Return bool,
|
||
move comment here.
|
||
* python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
|
||
move comment to header.
|
||
|
||
2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* auto-load.h (file_is_auto_load_safe): Change return type to
|
||
bool, move comment here.
|
||
* auto-load.c (file_is_auto_load_safe): Change return type and
|
||
advice_printed to bool. Move comment to header.
|
||
|
||
2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* jit.c (jit_debug_printf): New, use throughout file.
|
||
|
||
2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* infrun.c (normal_stop): Fix indentation.
|
||
|
||
2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* top.h (readnow_symbol_files, readnever_symbol_files): Move
|
||
declarations to ...
|
||
* symfile.h: ... here.
|
||
* symfile.c: Update doc.
|
||
|
||
2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* target.h (baud_rate, serial_parity): Move declarations...
|
||
* serial.h: ... here.
|
||
* main.c: Include serial.h.
|
||
* serial.c (baud_rate, serial_parity): Update doc.
|
||
|
||
2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* top.c (pre_init_ui_hook): Remove.
|
||
|
||
2021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
|
||
|
||
* aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
|
||
(aarch64_vnv_type): Add "bf" type in h field of v registers.
|
||
* features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
|
||
* features/aarch64-fpu.xml: Add bfloat16 type.
|
||
|
||
2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
|
||
|
||
2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* f-exp.y (dot_ops): Rename to...
|
||
(fortran_operators): ...this. Add a header comment. Add symbol
|
||
based operators.
|
||
(yylex): Update to use fortran_operators not dot_ops. Remove
|
||
special handling for '**', this is now included in
|
||
fortran_operators.
|
||
|
||
2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* arch/aarch64-insn.h (aarch64_debug_printf): New.
|
||
* arch/aarch64-insn.c: Use aarch64_debug_printf.
|
||
* aarch64-tdep.c: Use aarch64_debug_printf.
|
||
|
||
2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* solib-aix.c (solib_aix_debug_printf): New, use throughout
|
||
file.
|
||
|
||
2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* jit.c (jit_debug): Change type to bool.
|
||
(_initialize_jit): Adjust.
|
||
|
||
2021-01-09 Tom Tromey <tom@tromey.com>
|
||
|
||
PR compile/23672
|
||
* compile/compile.c (compile_to_object): Avoid crash when
|
||
osabi_triplet_regexp returns NULL.
|
||
|
||
2021-01-09 Tom Tromey <tom@tromey.com>
|
||
|
||
* tracepoint.h (class collection_list) <append_exp>: Take a
|
||
std::string.
|
||
* tracepoint.c (collection_list::append_exp): Take a std::string.
|
||
(encode_actions_1): Update.
|
||
|
||
2021-01-08 Tom Tromey <tromey@adacore.com>
|
||
|
||
* parse.c (parse_expression): Add void_context_p parameter. Use
|
||
parse_exp_in_context.
|
||
* printcmd.c (print_command_1): Change voidprint to bool. Pass to
|
||
parse_expression.
|
||
(print_command, call_command): Update.
|
||
* expression.h (parse_expression): Add void_context_p parameter.
|
||
|
||
2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* value.c (set_value_component_location): Adjust the VALUE_LVAL
|
||
for internalvar components that have a dynamic location.
|
||
|
||
2021-01-08 Tom de Vries <tdevries@suse.de>
|
||
|
||
PR gdb/26881
|
||
* breakpoint.c (create_exception_master_breakpoint_probe)
|
||
(create_exception_master_breakpoint_hook): Factor out
|
||
of ...
|
||
(create_exception_master_breakpoint): ... here. Only try to install
|
||
the master exception breakpoint in objfile.debug using the
|
||
_Unwind_DebugHook method, if the install using probes in objfile
|
||
failed.
|
||
|
||
2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* f-lang.c (fortran_value_subarray): Call value_from_component.
|
||
|
||
2021-01-07 Mike Frysinger <vapier@gentoo.org>
|
||
|
||
* remote-sim.c: Include memory-map.h.
|
||
(gdbsim_target): Define memory_map override.
|
||
(gdbsim_target::memory_map): Define.
|
||
|
||
2021-01-07 Tom Tromey <tromey@adacore.com>
|
||
|
||
* ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
|
||
|
||
2021-01-07 Tom Tromey <tromey@adacore.com>
|
||
|
||
* ada-lang.c (add_component_interval): Start loop using vector's
|
||
updated size.
|
||
|
||
2021-01-06 Tom Tromey <tromey@adacore.com>
|
||
|
||
* ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
|
||
Do not cast result.
|
||
* valarith.c (fixed_point_binop): Handle multiplication
|
||
and division specially.
|
||
* valops.c (value_to_gdb_mpq): New function.
|
||
(value_cast_to_fixed_point): Use it.
|
||
|
||
2021-01-05 Hannes Domani <ssbssa@yahoo.de>
|
||
|
||
* tui/tui-winsource.c (tui_source_window_base::refresh_window):
|
||
Call wnoutrefresh instead of tui_win_info::refresh_window.
|
||
|
||
2021-01-05 Hannes Domani <ssbssa@yahoo.de>
|
||
|
||
* tui/tui-source.c (tui_source_window::show_line_number):
|
||
Redraw second space after line number.
|
||
|
||
2021-01-05 Hannes Domani <ssbssa@yahoo.de>
|
||
|
||
PR tui/26927
|
||
* tui/tui-winsource.c (tui_source_window_base::refresh_window):
|
||
Fix source pad size in prefresh.
|
||
(tui_source_window_base::show_source_content): Grow source pad
|
||
if necessary.
|
||
|
||
2021-01-04 Mike Frysinger <vapier@gentoo.org>
|
||
|
||
* bfin-tdep.c (bfin_push_dummy_call): Use align_up.
|
||
(bfin_frame_align): Use align_down.
|
||
|
||
2021-01-04 Tom de Vries <tdevries@suse.de>
|
||
|
||
* buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
|
||
terminators that do not terminate anything.
|
||
|
||
2021-01-04 Simon Marchi <simon.marchi@efficios.com>
|
||
|
||
* debug.c (debug_print_depth): New.
|
||
* infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
|
||
(INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
|
||
* infrun.c (start_step_over): Use
|
||
INFRUN_SCOPED_DEBUG_ENTER_EXIT.
|
||
(proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
|
||
INFRUN_SCOPED_DEBUG_START_END.
|
||
(fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
|
||
|
||
2021-01-04 Simon Marchi <simon.marchi@efficios.com>
|
||
|
||
* infrun.c (print_target_wait_results): Use infrun_debug_printf.
|
||
|
||
2021-01-04 Simon Marchi <simon.marchi@efficios.com>
|
||
|
||
* utils.c (vfprintf_unfiltered): Print timestamp only when
|
||
previous debug output ended with a newline.
|
||
|
||
2021-01-04 Luis Machado <luis.machado@linaro.org>
|
||
|
||
Update all users of trad_frame_saved_reg to use the new member
|
||
functions.
|
||
|
||
Remote all struct keywords from declarations of trad_frame_saved_reg
|
||
types, except on forward declarations.
|
||
|
||
* aarch64-tdep.c: Update.
|
||
* alpha-mdebug-tdep.c: Update.
|
||
* alpha-tdep.c: Update.
|
||
* arc-tdep.c: Update.
|
||
* arm-tdep.c: Update.
|
||
* avr-tdep.c: Update.
|
||
* cris-tdep.c: Update.
|
||
* csky-tdep.c: Update.
|
||
* frv-tdep.c: Update.
|
||
* hppa-linux-tdep.c: Update.
|
||
* hppa-tdep.c: Update.
|
||
* hppa-tdep.h: Update.
|
||
* lm32-tdep.c: Update.
|
||
* m32r-linux-tdep.c: Update.
|
||
* m32r-tdep.c: Update.
|
||
* m68hc11-tdep.c: Update.
|
||
* mips-tdep.c: Update.
|
||
* moxie-tdep.c: Update.
|
||
* riscv-tdep.c: Update.
|
||
* rs6000-tdep.c: Update.
|
||
* s390-linux-tdep.c: Update.
|
||
* s390-tdep.c: Update.
|
||
* score-tdep.c: Update.
|
||
* sparc-netbsd-tdep.c: Update.
|
||
* sparc-sol2-tdep.c: Update.
|
||
* sparc64-fbsd-tdep.c: Update.
|
||
* sparc64-netbsd-tdep.c: Update.
|
||
* sparc64-obsd-tdep.c: Update.
|
||
* sparc64-sol2-tdep.c: Update.
|
||
* tilegx-tdep.c: Update.
|
||
* v850-tdep.c: Update.
|
||
* vax-tdep.c: Update.
|
||
|
||
* frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
|
||
* frame-unwind.h (frame_unwind_got_bytes): Likewise.
|
||
|
||
* trad-frame.c: Update.
|
||
Remove TF_REG_* enum.
|
||
(trad_frame_alloc_saved_regs): Add a static assertion to check for
|
||
a trivially-constructible struct.
|
||
(trad_frame_reset_saved_regs): Adjust to use member function.
|
||
(trad_frame_value_p): Likewise.
|
||
(trad_frame_addr_p): Likewise.
|
||
(trad_frame_realreg_p): Likewise.
|
||
(trad_frame_value_bytes_p): Likewise.
|
||
(trad_frame_set_value): Likewise.
|
||
(trad_frame_set_realreg): Likewise.
|
||
(trad_frame_set_addr): Likewise.
|
||
(trad_frame_set_unknown): Likewise.
|
||
(trad_frame_set_value_bytes): Likewise.
|
||
(trad_frame_get_prev_register): Likewise.
|
||
* trad-frame.h: Update.
|
||
(trad_frame_saved_reg_kind): New enum.
|
||
(struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
|
||
<m_kind, m_reg>: New member fields.
|
||
<set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
|
||
<kind, value, realreg, addr, value_bytes, is_value, is_realreg>
|
||
<is_addr, is_unknown, is_value_bytes>: New member functions.
|
||
|
||
2021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* target-float.c: Fix typos.
|
||
|
||
2021-01-02 Hannes Domani <ssbssa@yahoo.de>
|
||
|
||
* gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
|
||
|
||
2021-01-01 Joel Brobecker <brobecker@adacore.com>
|
||
|
||
* gdbarch.sh: Update copyright year range.
|
||
|
||
2021-01-01 Joel Brobecker <brobecker@adacore.com>
|
||
|
||
Update copyright year range in copyright header of all GDB files.
|
||
|
||
2021-01-01 Joel Brobecker <brobecker@adacore.com>
|
||
|
||
* copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
|
||
to the list of directories to update.
|
||
|
||
2021-01-01 Joel Brobecker <brobecker@adacore.com>
|
||
|
||
* top.c (print_gdb_version): Update copyright year.
|
||
|
||
2021-01-01 Joel Brobecker <brobecker@adacore.com>
|
||
|
||
* config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
|
||
|
||
For older changes see ChangeLog-2020.
|
||
|
||
Local Variables:
|
||
mode: change-log
|
||
left-margin: 8
|
||
fill-column: 74
|
||
version-control: never
|
||
coding: utf-8
|
||
End:
|