simulator remote GDB

Fix index when setting thread
Handle breakpoints properly