GDB monitor: add support for register writing

With this patch, register contents of a paused thread (which is not
currently executing a syscall) can get modified on Fiasco.OC by GDB.

Fixes #897.
log_console_filter_printable.diff
gdb_monitor_test.diff