aboutsummaryrefslogtreecommitdiff
path: root/mkinstalldirs
diff options
context:
space:
mode:
authorTankut Baris Aktemur <tankut.baris.aktemur@intel.com>2020-06-22 14:13:48 +0200
committerTankut Baris Aktemur <tankut.baris.aktemur@intel.com>2020-06-22 14:13:48 +0200
commit013e3554b269aa1da0fcd478969f0df65341e50e (patch)
treeb7ef9feb80297403a78f0ab0bd582d7b764f1b1d /mkinstalldirs
parentbd920864f3dc2cad376989a642ab774aef6b2fce (diff)
downloadgdb-013e3554b269aa1da0fcd478969f0df65341e50e.zip
gdb-013e3554b269aa1da0fcd478969f0df65341e50e.tar.gz
gdb-013e3554b269aa1da0fcd478969f0df65341e50e.tar.bz2
gdbserver/linux-low: use std::list to store pending signals
Use std::list to store pending signals instead of a manually-managed linked list. This is a refactoring. In the existing code, pending signals are kept in a manually-created linked list with "prev" pointers. A new pending signal is thus inserted to the beginning of the list. When consuming, GDB goes until the end of the list, following the "prev" pointers, and processes the final item. With this patch, a new item is added to the end of the list and the item at the front of the list is consumed. In other words, the list elements used to be stored in reverse order; with this patch, they are stored in their order of arrival. This causes a change in the debug messages that print the pending signals. Otherwise, no behavioral change is expected. gdbserver/ChangeLog: 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> Use std::list to stop pending signal instead of manually-created linked list. * linux-low.h: Include <list>. (struct pending_signal): Move here from linux-low.cc. (struct lwp_info) <pending_signals> <pending_signals_to_report>: Update the type. * linux-low.cc (struct pending_signals): Remove. (linux_process_target::delete_lwp) (linux_process_target::add_lwp) (enqueue_one_deferred_signal) (dequeue_one_deferred_signal) (enqueue_pending_signal) (linux_process_target::resume_one_lwp_throw) (linux_process_target::thread_needs_step_over) (linux_process_target::resume_one_thread) (linux_process_target::proceed_one_lwp): Update the use of pending signal list.
Diffstat (limited to 'mkinstalldirs')
0 files changed, 0 insertions, 0 deletions