Fix SMMUv3 StreamID boundary check. For a StreamID size of 32-bits, the
upper boundary crosses into 64-bit, so we need to use 1ULL for comparison.
This fixes use of PCI on Radxa Orion O6 (with SMMUv3 manually enabled).
Gdb improvements:
* Uses ptrace PT_GET_THREAD_* for both setting thread names and
detecting if threads are still alive. The thread_alive detection
fixes 'info threads' of processes whose threads exit while
debugging.
* Fixes SIGINT storm using patch from FreeBSD to direct the SIGINT
to the current inferior process instead of gdb's process group.
This allows ^C to bring us back to the gdb prompt on attached
processes.
okay jca@
Check that CH_DESTROY works. Also for now check that after CH_DESTROY
a CH_INSERT still works. This is because the table will be reinitalized
on first call but it may be something that could change in the long run.
Fix memory leak of the CH tables used by the per-peer pending queues.
Define CH_DESTROY() and use it in peer_delete() via adjout_peer_free()
to cleanup the lookup tables used by the pending attribute and prefix
queues. Also rename adjout_prefix_flush_pending() to
adjout_peer_flush_pending() since that function does no longer work
with struct adjout_prefix entries.
OK tb@