target/arm: Move gdbstub related code out of helper.c