chs_gdb: Restore the stack and execute user script on demand