Don't crash simulator if lldb requests an invalid memory address
A number of fixes to gdb remote stub in simulator