Fixes for GDB Server

- Fix variable name (xpsr instead of ipsr)
- Fix index out of range